Showing posts with label mathematics. Show all posts
Showing posts with label mathematics. Show all posts

Saturday, January 2, 2010

Using Bayesian Analysis to find a lost nuclear weapon

Ten years ago I picked this book up at an airport bookstore, Blind Man's Bluff: The Untold Story of American Submarine Espionage, by Sherry Sontag and Christopher Drew. Some thinking I've been doing recently related to a project reminded me of this example of Bayesian Analysis described in the book:


[In January, 1966] A B-52 bomber had collided with an air tanker during a refueling operation 30,000 feet in the air off the coast of Palomares, Spain, losing its atomic payload. Three of the four bombs were recovered almost immediately. But a fourth was lost and had presumably fallen to the bottom of the Mediterranean.

[...]

[Naval intelligence officer John P.] Craven called in a group of mathematicians and set them to work constructing a map of the sea bottom outside Palomeres.

[...]

Once the map was completed, Craven asked a group of submarine and salvage experts to place Las Vegas-style bets on the probability of each of the different scenarios that might describe the bomb's loss being considered by the search team in Spain. Each scenario left the weapon in a different location.

Then, each possible location was run through a formula that was based on the odds created by the betting round. The locations were then replotted, yards or miles away from where logic and acoustic science alone would place them.

[...]

[Craven] was relying on Bayes' theorem

[...]

Craven applied that doctrine to the search. The bomb had been hitched to two parachutes. He took bets on whether both had opened, or one, or none. He went through the same exercise over each possible detail of the crash. His team of mathematicians wrote out possible endings to the crash story and took bets on which they believed most. After the betting rounds were over, they used the odds they created to assign probability quotients to several possible locations. Then they mapped those probabilities and came up with the most probably site and several other possible ones.

Without ever having gone to sea, the team now believed they knew where the bomb was [...] in a deep ravine [far from where the first three bombs were recovered].


Long story short, a deep sea submersible found the bomb in that ravine, right where the calculations plotted it would be.

Wednesday, December 23, 2009

Math without end, amen

In the comments of a previous post, Commenter J.K. linked to this Discover interview with cosmologist Max Tegmark, "Is the Universe Actually Made of Math?". Worth reading in full, if you are interested in this sort of thing, but here are a few excerpts from the interview that start in media res.

That brings us to the last level: the level IV multiverse intimately tied up with your mathematical universe, the “crackpot idea” you were once warned against. Perhaps we should start there.

I begin with something more basic. You can call it the external reality hypothesis, which is the assumption that there is a reality out there that is independent of us. I think most physicists would agree with this idea.

The question then becomes, what is the nature of this external reality?


If a reality exists independently of us, it must be free from the language that we use to describe it. There should be no human baggage.


I see where you’re heading. Without these descriptors, we’re left with only math.


The physicist Eugene Wigner wrote a famous essay in the 1960s called “The Unreasonable Effectiveness of Mathematics in the Natural Sciences.” In that essay he asked why nature is so accurately described by mathematics. The question did not start with him. As far back as Pythagoras in the ancient Greek era, there was the idea that the universe was built on mathematics. In the 17th century Galileo eloquently wrote that nature is a “grand book” that is “written in the language of mathematics.” Then, of course, there was the great Greek philosopher Plato, who said the objects of mathematics really exist.

How does your mathematical universe hypothesis fit in?

Well, Galileo and Wigner and lots of other scientists would argue that abstract mathematics “describes” reality. Plato would say that mathematics exists somewhere out there as an ideal reality. I am working in between. I have this sort of crazy-sounding idea that the reason why mathematics is so effective at describing reality is that it is reality. That is the mathematical universe hypothesis: Mathematical things actually exist, and they are actually physical reality.

[...]

But why do some equations describe our universe so perfectly and others not so much?

Stephen Hawking once asked it this way: “What is it that breathes fire into the equations and makes a universe for them to describe?” If I am right and the cosmos is just mathematics, then no fire-breathing is required. A mathematical structure doesn’t describe a universe, it is a universe. The existence of the level IV multiverse also answers another question that has bothered people for a long time. John Wheeler put it this way: Even if we found equations that describe our universe perfectly, then why these particular equations and not others? The answer is that the other equations govern other, parallel universes, and that our universe has these particular equations because they are just statistically likely, given the distribution of mathematical structures that can support observers like us.

Saturday, November 21, 2009

Mandelbrot Set, animated

I've mentioned Jonathan Coulton's song Mandelbrot Set here a couple of times before, but I just found this video for it animated by a self-described "math dude" at Cornell. For any math geniuses reading this, be sure to listen to what Coulton says over the credits.

Sunday, August 2, 2009

Infimum Jest

For the math lovers out there, this post is for you. In the footnote to a recent post ("A Visitor from Redmond") I referred to an infimum function. From Wolfram Math World1, here's a definition of infimum (Hat tip to M.I., my finance consultant):

Infimum

The infimum is the greatest lower bound of a set S, defined as a quantity m such that no member of the set is less than m, but if epsilon is any positive quantity, however small, there is always one member that is less than m+epsilon (Jeffreys and Jeffreys 1988). When it exists (which is not required by this definition, e.g., infR does not exist), the infimum is denoted infS or inf_(x in S)x. The infimum is implemented in Mathematica as MinValue[f, constr, vars].

Consider the real numbers with their usual order. Then for any set M subset= R, the infimum infM exists (in R) if and only if M is bounded from below and nonempty.

More formally, the infimum infS for S a (nonempty) subset of the affinely extended real numbers R^_=R union {+/-infty} is the largest value y in R^_ such that for all x in S we have x>=y. Using this definition, infS always exists and, in particular, infR=-infty.

Whenever an infimum exists, its value is unique.

SEE ALSO: Infimum Limit, Lower Bound, Supremum


Note that Blogger converted some of the symbols in that definition to text, e.g., writing out the Greek letter epsilon instead of showing the Greek symbol for it.

Had I known of this back in December, when I wrote this post, "Infinite Connections or Infinite Jest", I could have used "Infimum Connections" as an alternative, obscurer post title.

Tuesday, July 28, 2009

A Visitor From Redmond, WA

A few days ago, this blog's Feedjit widget showed that a visitor from Redmond, WA (home of Microsoft's headquarters) clicked on this post, "Algebra Challenge". Seeing that, I wondered if someone an interviewer at Microsoft was binging math questions for the company's notorious interview questions1. I happen to have middling math skills myself, but I think this could be an decent interview question, as long as the interviewer just asked the interviewee how he would solve the problem, instead of requiring him to actually solve it (since, the arithmetic is messy, andas commenter J.K. noted in that thread, the actual formula is heavily rounded). The key insight here would be to recognize that the problem can be stated and solved as a system of three equations.

This raises a question I've wondered about in the past, which is to what extent these sorts of questions actually measure intelligence. Maybe it doesn't even matter though, if the questions test for a similarly valuable attribute other than intelligence.

Consider, for example, a couple of word problems I remember from tests I had to take as part of the application process for jobs in the past. Without digging up the exact text of the two word problems this was the gist of them: The first asked how many of each type of coin you would have if you had a certain amount of money in change; the second asked how far apart two individuals would be if one walked so far in one direction and then so far to the left, and the other did the exact opposite. I remember these two word problems for two reasons: I know I got them right, and I know that my getting them right wasn't a reflection of my intelligence or math aptitude. I got the problems right because I had seen them before.

I knew that the first problem could be solved with elementary algebra (using 25x for a quarter, 10x for a dime, and so on), and the second one could be solved with elementary geometry (adding the hypotenuses of the two resulting right triangles). Although these questions didn't measure my intelligence or math aptitude, my getting them right did demonstrate something else: that I had paid attention in math class, or perhaps that I had studied this stuff relatively recently while preparing for a standardized test needed for a graduate degree. So getting those problems right demonstrated either intelligence/aptitude, conscientiousness, or ambition, or some combination of those attributes; and whichever of these attributes a test-taker had would reflect well on him, as far as the employer was concerned.


1I was reminded of this by a conference call I had today with an ABD finance Ph.D. who is doing some consulting for me and one of my web developers. My finance consultant created an algorithm for me, and he was going over it with one of my web developers. My finance consultant assumed that my web developer, who has a bachelors degree in computer science, would have had all the math background necessary to understand the algorithm. My web developer noted that he had a minor in math, in addition to his comp sci degree, but he just wasn't familiar with a particular function the finance consultant specified (an infimum function). I hadn't heard of the function before either, and if a comp sci major/math minor hasn't heard of it, I guess a question based on that function wouldn't be a good one for a Microsoft interviewer.

Sunday, May 17, 2009

Algebra Challenge


Weight Watchers uses a formula that takes into account total calories, grams of fat, and grams of fiber to assign point values to foods. According to the Weight Watchers formula, a McDonald's hamburger is worth 5 points, a McDonald's cheeseburger is worth 7 points, and a McDonald's double cheeseburger is worth 10 points. According to McDonald's, the hamburger has 250 calories, 9 grams of fat and 2 grams of fiber; the cheeseburger has 300 calories, 12 grams of fat, and 2 grams of fiber; and the double cheeseburger has 440 calories, 23 grams of fat, and 2 grams of fiber.

What is the Weight Watchers formula?

The photo above, of the McDonald's double cheeseburger, comes from bloggingstocks.com.

Monday, December 22, 2008

"The Arab Sole"


Whoever writes the headlines at Forbes, wrote a clever one for Tunku Varadarajan's column today about Muntader-al-Zaidi, the Arab journalist who threw his shoes at President Bush during the President's recent joint press conference in Baghdad with Iraqi Prime Minister al-Maliki, "The Arab Sole". Below is a brief excerpt from Varadarajan's column:

The Arabs, who once upon a time boasted Averroes and Avicenna, are now reduced to eulogizing a boorish act of agitprop as a heroic achievement. America gave us Martin Luther King; South Africa gave us Mandela; India gave us Gandhi; the Arab world gives us ... Muntader-al-Zaidi. A people who invented the zero are now reduced, themselves, to zero. Only a people who live under the boots of their rulers celebrate the throwing of a shoe at a guest.


A commenter on Varadarajan's column on Forbes's website objected that zero was actually invented by the Hindus. According to Scientific American's take on this question, by former Harvard professor of mathematics Robert Kaplan ("What is the origin of zero? How did we indicate nothingness before zero?"),

The first recorded zero appeared in Mesopotamia around 3 B.C. The Mayans invented it independently circa 4 A.D. It was later devised in India in the mid-fifth century, spread to Cambodia near the end of the seventh century, and into China and the Islamic countries at the end of the eighth. Zero reached western Europe in the 12th century.

The symbol changed over time as positional notation (for which zero was crucial), made its way to the Babylonian empire and from there to India, via the Greeks (in whose own culture zero made a late and only occasional appearance; the Romans had no trace of it at all). Arab merchants brought the zero they found in India to the West.

Saturday, November 8, 2008

Fallows on the Future of Aviation


Reading James Fallows's post on Michael Crichton, I was reminded of an article Fallows wrote about an air taxi company called DayJet last spring in the Atlantic, "Taxis in the Sky". One of the fascinating aspects of DayJet that Fallows covered was the way the company decided what routes to fly and how much to charge. Below are a couple of brief excerpts.

Their computer models resemble a much more complex version of an “artificial life” computerized game like SimCity or SimLife—or, to explain the nickname they gave themselves, programs that simulate the paths a colony of ants will take across a floor as they discover and retrieve pieces of food. This process is also known as “agent-based modeling.”


Fallows writes that the company's computer programmers are called "ant farmers" because of this. The photo above, from the article, shows some of the ant farmers' equations.

While the ant farmers tried to determine where the company should start its service, the mathematicians from Russia were devising the software on which the company would run. In the end, they came up with plans that, in their view, made DayJet conceptually closer to Google or eBay than to existing airline companies. Before I explain what I heard from Alex Khmelnitsky, a note: most of the time I spend reporting, I spend listening to people describe what they do. It’s the payoff of the job—and through years of transcribing notes, I’ve learned that the typical minute or two or 10 of conversation boils down to a sentence or so of usable thought.

Not so with Alex! He and his colleague Eugene Taits worked for Iacobucci at Citrix and joined DayJet in its early days; another Russian veteran of Citrix, Oleg Kuzedub, joined DayJet recently. During the hour I spent with Alex and Oleg (Taits was out of town), Oleg said only a few words. But Alex more than made up—and I have never listened so hard trying to comprehend.

To spare readers, not to mention myself, undue exertion, I’ll simply say that in the view of everyone I spoke with at the company, the Russian-designed mathematical backbone of the company was its crucial advantage over any competitors, and would mean the difference between the company’s making a profit and not.