Thursday, 5 March 2009

I Think I KenKen, I Think I KenKen


I made the mistake of swinging by Dave Marain's MathNotations blog on a slow day... and there was that link to KENKEN.. Ok, I'm not really a big game bug.. I actually find Sudoku boring.. and those logic puzzles that match Ms. Jones as the Butcher married to Tom the Builder???? No way.. but for some reason I flicked one up and played around ... and then, what the heck, I wasn't in a hurry, so I did a bigger one... and then a harder one... then the really tough one and it took a while even giving in to get clues....
So you have been warned... the game is really addictive...but if you STILL want to try.. I have a permanent link on the sidebar just below my profile picture....and here is one if you just can't wait...... have a ball. They upgrade it each week with a few more games, although I thing you could play some of the hard ones over and over trying not to get hints...
Here are the rules, although they are right on the game...Click to enlarge

Wednesday, 4 March 2009

Does Your Doctor Know Statistics

Conditional probability is hard,; doctors, it seems, don't understand the implications of it with tests they do on a regular basis. In the new book, The Numbers Game, (with a long sub-title) by Michael Blastland and Andrew Dilnot,(see below, and order here and I will donate the profit to charity)... they report that only two of twenty-four physicians could correctly work out the probability that a woman has breast cancer given that she tests positive on a mammagram.


Here are the details as they give them in the book, see if you can figure it out. We know that about 0.8% or .008 of all women in the forty-fifty age group have the condition (I haven't checked that figure, that is eight out of every thousand women, will follow up... I promise). The test is 90% accurate at spotting a person who has the disease... if you have it, 9 times out of ten they will catch it. The false positive rate is only 7%. If you don't have it, there is a 93% chance they will give you a clear bill of health. So you go to the doctor and he gives you that long face and says, "Sorry, you tested positive for breast cancer." Now the million dollar question.... .what is the probability that you really have it? Out of all the women in the forty-fifty age group who get that mind numbing statement, what percent REALLY has cancer?

If you are in my stats class, or ever were, you should know how to solve that, and it seems even a little shocking that some (they actually said "Most were not only wrong, but hopelessly wrong."

My way of addressing these kinds of problems is to make a table, and figure out wher all the labels go. The problem assumes that only 8 out of a thousand women really have it, so if we assume a million tests, 8,000 women really have cancer... 992,000 do not. We put this in the table.

Now let's analyze what the test say.... of the 8,000 poeple who DO have cancer, the test will catch 90% or 7,200 of these people (the real victims are the 800 who walk away thinking they are clear and the cancer goes untreated). So we put these numbers in the correct squares of the table.

Now we want to look at the much larger group who do not have cancer; even though the test is 93% accurate in identifying those who are free from cancer, it will falsly tell 7% of the group, or 69.440 of these people that they tested positive for the cancer. We include this information in the table here.

Now we want to look at just the people who got a notice that they tested positive, and we see that there are 76,640 of them; but most of them, 69,440 of them, were false positives. Because such a large group do not have the disease, the number of false positives has swamped the true positives, and less than ten percent of these women really have cancer.

I hope that if these nubmers are anywhere near the true probability, if someone tests positive, the doctor will at least say, "Hey, most of these are false positives..but just to be sure, let's look at a second test..because the probability of another false positive is only 7% (it hasn't changed just because you already had one false positive).. so most of these people will get a clean bill of health on the second trial, but amazingly, there will still be more women who receive a second false positive (46,860) than there were actual sufferers of the disease; over six times as many... maybe there are a few questions you want to ask your G.P. ; like , "When was the last time you took a statistics course?".

Tuesday, 3 March 2009

Tiny Circles

Just reviewing a note about the wonderful property of pinholes. If you are in a well lighted room, look at a sign or picture far across the room. If your eyes are old like mine, it may not be very clear. If you have great eyes, pick out a small object that is difficult to see clearly. Now punch a small hole in a 3x5 card or piece of paper with a thumbtack or such. Hold it up in front of the eye and look at the object through the hole. If you move it back and forth a little, you should notice the object is in much sharper focus... WHY???

As light strikes the eye it has to be brought to bear on a single point on the retina to foucs sharply. By looking though a tiny hole, the light is all falling on a very small spot, and thus is much sharper. It does reduce the total light, so the object has to be pretty bright.

You can do the same thing by squeezing the thumb and finger together (like you are signing OK) on both hands and then push the two thumbs and fingers together. They form a little diamond shaped hole in the center, and if you peer through this, it will have the same effect. Press a little harder to make the hole smaller and the image sharper. I use this sometimes in the underground to be able to read the tube maps on the opposite wall when they aren't clear.... and it works..

I just learned that "it was the 10th-century Arab physicist, astronomer and mathematician, Ibn al-Haytham (Alhazen), who published the principle of the pinhole camera in the Book of Optics in 1021 AD. He also invented the first pinhole camera after noticing the way light was streaming through a hole in a window shutter. He improved on the camera after realizing that the smaller the pinhole, the sharper the image. He went on to designed the first camera obscura (Latin for something like Shadow room).

Sunday, 1 March 2009

We Just Don't Talk That Way Anymore

I love reading old journals and am often struck by the precision and beauty of language in old math and science journals.

Many brighter than I have commented on the seemingly inevitable reduction in rigor as schools require all students to take more advanced math. I think the same thing has happened across the board to language as everyone is expected to complete a high school education. I recently read a note that had two quotes, both saying essentially the same thing. The first is from Leonhard Euler and dates around the American revolution; the second is from George Box and dated around 1987Empirical Model-Building and Response Surfaces. Both are incredibly literate and knowledgable people, and yet..

"Although to penetrate into the intimate mysteries of nature and thence
to learn the true causes of phenomena is not allowed to us, nevertheless
it can happen that a certain fictive hypothesis may suffice for
explaining many phenomena"

All models are wrong... some models are useful