A couple of items from the local news over the weekend:
Obama has the confidence of people in Europe, Asia, Africa and Australia and is strongly preferred as president over McCain
"In Australia, 80 per cent of participants said they had confidence in Senator Obama, against 40 per cent for Senator McCain. Similar results were reported from Britain, France, Germany, Spain, Japan and Tanzania."
The secretive religious group at the heart of US politics
"The Family organises Washington politicians into intimate "prayer cells", influences foreign policy, inspired the creation of the president's annual prayer breakfast in 1953 and sponsored George Bush's faith-based 2001 policy of transferring social welfare responsibilities to religious groups."
Read about them, and be scared. Or angry. Or both. But know they they're there, and they may well be behind a lot of what you really hate about what goes on in US politics. They're the elitists we should be fighting against.
Monday, June 16, 2008
Sunday, June 15, 2008
Technorati blog claim
Taking vjack's advice and trying to add my blog to Technorati - here I'm claiming my blog there ... so here goes. There's my Technorati Profile.
Edit: Currently not showing my blog under blog tags nor my posts under post tags. A lot of effort for zip so far. Now seems to work thanks to admin assistance
A possible place to look for an explanation for religious belief?
Dana has a review of Julie Sweeney's movie Letting Go of God.
Now, on a completely unrelated note, there are various potential explanations that have been suggested for the fact that religious belief is very common - generally either taking the form that it in some sense carries a social benefit, or that it is a side effect of something else (or an interaction of several somethings) that carry a benefit. Some of these explanations have some evidence for them, though I don't think there's really conclusive evidence that any of them forms a complete explanation.
Anyway, something Dana said brought up a thought:
And then I thought... if you add in the "invisible friends" bit, you've got a couple of indicators of development typical of maybe a three year old.
That reminded me of neoteny - the retention of juvenile characteristics into adulthood. This is a common evolutionary trick - rather than change an underlying gene, alter the timing of its development - it's generally going to be a much smaller change (this sort of idea should be standard fare for the evo-devo crowd, but I first encountered the concept in one of Dawkins' books, many years ago), but the effects can be dramatic.
Humans are "masters" of neoteny. We retain dozens of juvenile-ape characterstics. It's why our faces tend to be almost hairless. It's why we play games and retain curiosity into adulthood. It is one of the major drivers of our success; it is, not to put too fine a point on it, a prime cause of why we are who we are: I gather chimp brain development continues until about 1 year of age. In humans it lasts until we're about 23!
Is it so surprising then, that certain mental development characteristics of toddlers might hang on? If our evolution has caused us to so dramatically retain certain juvenile aspects of brain development, might associated mental milestones tend to come along with them?
Is religious belief a side effect of neoteny?
If speculation is not to your taste, have some (tangentially related) science - on genes in humans that have shown a much higher rate of evolution since our last common ancestor with chimps - what potentially makes us what we are.
Now, on a completely unrelated note, there are various potential explanations that have been suggested for the fact that religious belief is very common - generally either taking the form that it in some sense carries a social benefit, or that it is a side effect of something else (or an interaction of several somethings) that carry a benefit. Some of these explanations have some evidence for them, though I don't think there's really conclusive evidence that any of them forms a complete explanation.
Anyway, something Dana said brought up a thought:
She doesn't ever state this directly, but the end of the movie talks about her daughter reaching for magical explanations when Julia's trying to explain things like death in rational, material terms. And that struck me: religion is never growing up. What her daughter invented to make herself feel better about things she didn't understand sounded exactly like the answers most human religions invent.
We as a species have never seemed to mature past the age of four.
And then I thought... if you add in the "invisible friends" bit, you've got a couple of indicators of development typical of maybe a three year old.
That reminded me of neoteny - the retention of juvenile characteristics into adulthood. This is a common evolutionary trick - rather than change an underlying gene, alter the timing of its development - it's generally going to be a much smaller change (this sort of idea should be standard fare for the evo-devo crowd, but I first encountered the concept in one of Dawkins' books, many years ago), but the effects can be dramatic.
Humans are "masters" of neoteny. We retain dozens of juvenile-ape characterstics. It's why our faces tend to be almost hairless. It's why we play games and retain curiosity into adulthood. It is one of the major drivers of our success; it is, not to put too fine a point on it, a prime cause of why we are who we are: I gather chimp brain development continues until about 1 year of age. In humans it lasts until we're about 23!
Is it so surprising then, that certain mental development characteristics of toddlers might hang on? If our evolution has caused us to so dramatically retain certain juvenile aspects of brain development, might associated mental milestones tend to come along with them?
Is religious belief a side effect of neoteny?
If speculation is not to your taste, have some (tangentially related) science - on genes in humans that have shown a much higher rate of evolution since our last common ancestor with chimps - what potentially makes us what we are.
Adding percentiles means there's probably more oil than we thought
Isabel Lugo has an interesting post up that points out that because "proven reserves" figures for individual oil fields are given as the tenth percentile (that is, the amount of oil in a field is estimated to have a 90% chance of being larger than the stated amount), you can't just add up the individual "proven reserve" figures and have a figure that means the same thing. But apparently that's exactly what many bodies do with the figures!
(She refers to this New Scientist story.)

Isabel gives an example where adding two tenth percentiles gives much lower than the tenth percentile of the estimate of the total oil for both (with the implication that if you add enough of these things together, the true amount of oil is probably far, far larger).
[I pointed out in comments that the conservatism in the sum is not necessarily the case (but for readers here - it very likely is the case; the counterexample to conservatism that I give is not a likely situation).]
(She refers to this New Scientist story.)

Isabel gives an example where adding two tenth percentiles gives much lower than the tenth percentile of the estimate of the total oil for both (with the implication that if you add enough of these things together, the true amount of oil is probably far, far larger).
[I pointed out in comments that the conservatism in the sum is not necessarily the case (but for readers here - it very likely is the case; the counterexample to conservatism that I give is not a likely situation).]
Friday, June 13, 2008
Changing patterns of belief
A very interesting article on falling rates of belief (in percentage of population terms).
I'm not sure the evidence is completely clear for a few things they say, but overall gist looks pretty solid.
I'm not sure the evidence is completely clear for a few things they say, but overall gist looks pretty solid.
Thursday, June 12, 2008
Wednesday, June 11, 2008
Scary atheists
Ebonmuse has an interesting post up at Daylight Atheism, about what's going on with the sense of distrust believers feel for atheists.
I disagree with some of it, but it's a great post, and brings up some great points.
I disagree with some of it, but it's a great post, and brings up some great points.
Contingency in evolution vs the journalists
Answers in Genesis BUSTED! points to New Scientist's reporting of the interesting story of contingent evolution in e. coli.
Fortunately, nowadays we have the resource of actual scientist-bloggers rather than being restricted to what passes for science reporting these days, because the New Scientist story drives me nuts. As much as I love being able to hold a magazine in my hands to read, this reminds me why I decided a few years back that New Scientist was too expensive for what I was getting. (I have boxes and boxes of the things. Is there a good charity that needs a whole lot of old science magazines that I won't go broke getting them to?)
Frankly, it's entirely typical of science reporting, and another example of why science reporting sucks, and why blogging by scientists beats it hands down.
Aside from the fact that the New Scientist report has the emphasis wrong, it's just a generally typical sucky example of science reporting, with distortions of fact and silliness. (To be fair, here and there it does an okay job of explaining some bits, but really, I'm no expert, and I could tell it sucked before I'd read about it anywhere else.)
[Actually, what used to really drive me to screaming fits of rage was whenever they let Ian Stewart start talking about statistics. The guy may be a reasonable mathematician, but his explanations of statistics sucked dogs balls.]
I highly recommend reading the Pharyngula
discussion.
For goodness sake, even the abstract of the paper he quotes (jargon aside) is in many places better written than the New Scientist article.
Let me quote a paragraph from the New Scientist report:
"In the meantime, the experiment stands as proof that evolution does not always lead to the best possible outcome. Instead, a chance event can sometimes open evolutionary doors for one population that remain forever closed to other populations with different histories."
Gah!
"doors ... that remain forever closed to other populations" is one of the more ridiculous statements I've seen from New Scientist, and they've had some doozys.
forever closed? forever??
Bullshit. If the "tricky part" - the enabling mutation - evolved once, in only 20000 generations (which then further evolved several times to produce the ability to metabolize citrate), it's obviously possible for it to happen again. The probability of it evolving is not zero.
The fact that Blount, Borland & Lenski couldn't get it to evolve independently a second time just means that probability is likely very low. Maybe extremely low.
But forever is actually a pretty long while. You might think it's a long time 'til lunch, but forever is such a really long time that any mathematically nonzero probability of it evolving in a finite amount of time (as was observed to occur) means that by forever, it will have evolved an infinite number of times. And, if you're not real good with the counting thing, take it from me that infinity times is just a tad bit bigger than zero.
And what's with that bit about "evolution does not always lead to the best possible outcome"? Which cryptotheist retarded version of evolution do they think they are arguing with there? All you have to do is take a look at a human eye (heck, just get a small light and grab a handy animal with a spine) to know that. The blood vessels of the eye lie on top of the rods and cones! They're in the way! Anyone can see them! And the nerves, too - that's why we have a blindspot. And, funnily enough, the light sensitive bits point backwards, away from the light. Our eyes are arranged ass-backwards!
(That it needn't have happened this way is obvious from squid and related creatures, whose eyes are not arranged "backwards" like ours. And there are hundreds of little examples of this sort of thing.)
Evolution is completely cobbled-together (i.e. contingent), and it's already completely obvious that it's so - to anyone with eyes. Well, and maybe a brain.
[based on a comment I made at AIGBusted.]
Fortunately, nowadays we have the resource of actual scientist-bloggers rather than being restricted to what passes for science reporting these days, because the New Scientist story drives me nuts. As much as I love being able to hold a magazine in my hands to read, this reminds me why I decided a few years back that New Scientist was too expensive for what I was getting. (I have boxes and boxes of the things. Is there a good charity that needs a whole lot of old science magazines that I won't go broke getting them to?)
Frankly, it's entirely typical of science reporting, and another example of why science reporting sucks, and why blogging by scientists beats it hands down.
Aside from the fact that the New Scientist report has the emphasis wrong, it's just a generally typical sucky example of science reporting, with distortions of fact and silliness. (To be fair, here and there it does an okay job of explaining some bits, but really, I'm no expert, and I could tell it sucked before I'd read about it anywhere else.)
[Actually, what used to really drive me to screaming fits of rage was whenever they let Ian Stewart start talking about statistics. The guy may be a reasonable mathematician, but his explanations of statistics sucked dogs balls.]
I highly recommend reading the Pharyngula
discussion.
For goodness sake, even the abstract of the paper he quotes (jargon aside) is in many places better written than the New Scientist article.
Let me quote a paragraph from the New Scientist report:
"In the meantime, the experiment stands as proof that evolution does not always lead to the best possible outcome. Instead, a chance event can sometimes open evolutionary doors for one population that remain forever closed to other populations with different histories."
Gah!
"doors ... that remain forever closed to other populations" is one of the more ridiculous statements I've seen from New Scientist, and they've had some doozys.
forever closed? forever??
Bullshit. If the "tricky part" - the enabling mutation - evolved once, in only 20000 generations (which then further evolved several times to produce the ability to metabolize citrate), it's obviously possible for it to happen again. The probability of it evolving is not zero.
The fact that Blount, Borland & Lenski couldn't get it to evolve independently a second time just means that probability is likely very low. Maybe extremely low.
But forever is actually a pretty long while. You might think it's a long time 'til lunch, but forever is such a really long time that any mathematically nonzero probability of it evolving in a finite amount of time (as was observed to occur) means that by forever, it will have evolved an infinite number of times. And, if you're not real good with the counting thing, take it from me that infinity times is just a tad bit bigger than zero.
And what's with that bit about "evolution does not always lead to the best possible outcome"? Which cryptotheist retarded version of evolution do they think they are arguing with there? All you have to do is take a look at a human eye (heck, just get a small light and grab a handy animal with a spine) to know that. The blood vessels of the eye lie on top of the rods and cones! They're in the way! Anyone can see them! And the nerves, too - that's why we have a blindspot. And, funnily enough, the light sensitive bits point backwards, away from the light. Our eyes are arranged ass-backwards!
(That it needn't have happened this way is obvious from squid and related creatures, whose eyes are not arranged "backwards" like ours. And there are hundreds of little examples of this sort of thing.)
Evolution is completely cobbled-together (i.e. contingent), and it's already completely obvious that it's so - to anyone with eyes. Well, and maybe a brain.
[based on a comment I made at AIGBusted.]
Tuesday, June 10, 2008
The problem of suffering and free will
There's a standard apologetic response to what's usually called "the problem of evil". That response is, basically, that evil is a consequence of free will.
However, that utterly fails to deal with suffering that has nothing to do with free will. Disasters, painful disease and so on have nothing whatever to do with free will, and so the apologetic response does not apply.
There's a second response I've seen (usually from the more fundamentally minded), which is that these things are either "caused by the devil" or "caused by the fall".
I could easily deal with both of these point by point, but they're directly covered by Epicurus' 33AD argument (slightly recast):
"Is God willing to prevent suffering, but not able?
Then he is not omnipotent.
Is he able, but not willing?
Then he is malevolent.
Is he both able and willing?
Then whence cometh suffering?
Is he neither able nor willing?
Then why call him God?"
Either God is able to stop the devil or not. If not, "caused by the devil" is answered by the first pair of lines, but if God could stop the devil, it's answered by the second pair of lines. If it's caused by the fall, then (second pair) God is punishing the innocent because "hundreds of generations ago" someone didn't believe him when he lied (it's right there in the bible) about the fruit on the tree.
(Yep, the snake told the truth and God lied, and he condemns humans to floods and earthquakes and painful deaths forever - nice guy. Oh, and he pulls the legs off talking snakes that point out he's a big shifty fibber. Niice. And then yells at everyone to get the hell off his lawn.)
So we get stuck - the problem of suffering is not answered by free will. If it's the devil, God is either not omnipotent or malevolent, and if it's the fall, God is plainly malevolent. As well as a big fat liar.
However, that utterly fails to deal with suffering that has nothing to do with free will. Disasters, painful disease and so on have nothing whatever to do with free will, and so the apologetic response does not apply.
There's a second response I've seen (usually from the more fundamentally minded), which is that these things are either "caused by the devil" or "caused by the fall".
I could easily deal with both of these point by point, but they're directly covered by Epicurus' 33AD argument (slightly recast):
"Is God willing to prevent suffering, but not able?
Then he is not omnipotent.
Is he able, but not willing?
Then he is malevolent.
Is he both able and willing?
Then whence cometh suffering?
Is he neither able nor willing?
Then why call him God?"
Either God is able to stop the devil or not. If not, "caused by the devil" is answered by the first pair of lines, but if God could stop the devil, it's answered by the second pair of lines. If it's caused by the fall, then (second pair) God is punishing the innocent because "hundreds of generations ago" someone didn't believe him when he lied (it's right there in the bible) about the fruit on the tree.
(Yep, the snake told the truth and God lied, and he condemns humans to floods and earthquakes and painful deaths forever - nice guy. Oh, and he pulls the legs off talking snakes that point out he's a big shifty fibber. Niice. And then yells at everyone to get the hell off his lawn.)
So we get stuck - the problem of suffering is not answered by free will. If it's the devil, God is either not omnipotent or malevolent, and if it's the fall, God is plainly malevolent. As well as a big fat liar.
Government in SF - a failure of imagination?
(Within this post, I'm going to take the stance that SF stands for "speculative fiction" rather than science fiction. My main reason is that SF these days rarely contains much actual "sciency" stuff, and the category has become so broad that the term "science fiction" is not even vaguely true of most of it. It is also possible that it serves my argument. )
I've long had a problem with how government is represented in SF, particularly film and television, but it also happens in written SF - that the governments almost always seem to be of only two very narrow types:
(i) near-absolute monarchy (though possibly called an emperor or something, often also with a noble class);
(ii) US-style presidential democracy.
I have no doubt that in many stories, these are plausible models. However, I simply cannot fathom why so many writers assume that if it's not the first, it must be the second. Sometimes the US political system is reproduced to an astonishing level of detail, including a near duplicate constitution and everything.
According to wikipedia:
- there are 123 democratic countries
- there are 72 parliamentary democracies
- in addition, there are a large number of "hybrid" models (particularly in Eastern Europe)
That is, a US-style democracy is by far in the minority. On earth, parliamentary-style democracies are the rule. Yet in SF, they're almost unheard of.
So why in visual-media SF (the majority of whose writers are from the US), if you don't have some form of monarchy or monarchy analogue, will it be (apart from a very few exceptions), a US-clone democracy, often down to its boot-buckles? Is this a failure of imagination? Are US film and TV writers largely unable to imagine anything else? Are they unaware of anything else? Or do they imagine that a US audience won't accept anything else (and everyone else will, presumably)? If it's the last, that, too, is a failure of imagination - I certainly don't believe US fans of SF are that unimaginative and unwilling to think about different ideas.
Obviously, people tend to write about what they're familiar with, but if you only ever write about only what's in your back yard, your fiction hardly deserves the name "speculative".
Come on, people, have a look at the world around you. Try a different model for government once in a while!
I've long had a problem with how government is represented in SF, particularly film and television, but it also happens in written SF - that the governments almost always seem to be of only two very narrow types:
(i) near-absolute monarchy (though possibly called an emperor or something, often also with a noble class);
(ii) US-style presidential democracy.
I have no doubt that in many stories, these are plausible models. However, I simply cannot fathom why so many writers assume that if it's not the first, it must be the second. Sometimes the US political system is reproduced to an astonishing level of detail, including a near duplicate constitution and everything.
According to wikipedia:
- there are 123 democratic countries
- there are 72 parliamentary democracies
- in addition, there are a large number of "hybrid" models (particularly in Eastern Europe)
That is, a US-style democracy is by far in the minority. On earth, parliamentary-style democracies are the rule. Yet in SF, they're almost unheard of.
So why in visual-media SF (the majority of whose writers are from the US), if you don't have some form of monarchy or monarchy analogue, will it be (apart from a very few exceptions), a US-clone democracy, often down to its boot-buckles? Is this a failure of imagination? Are US film and TV writers largely unable to imagine anything else? Are they unaware of anything else? Or do they imagine that a US audience won't accept anything else (and everyone else will, presumably)? If it's the last, that, too, is a failure of imagination - I certainly don't believe US fans of SF are that unimaginative and unwilling to think about different ideas.
Obviously, people tend to write about what they're familiar with, but if you only ever write about only what's in your back yard, your fiction hardly deserves the name "speculative".
Come on, people, have a look at the world around you. Try a different model for government once in a while!
Monday, June 9, 2008
The Consolations of Probability
There's little doubt that many people find comfort in the presence of an all-powerful, all-knowing being watching over them, in knowing that everything happens for a reason, even if they don't know what those reasons might be. People who don't believe in such things cannot have such consolation. After all, what consolation is there if things just happen?
I'm not just talking about the fact that there's a lot of random stuff that happens that we aren't responsible for, or that we're incredibly lucky to be here. Those pieces of understanding are major consolations, no doubt (or at least they are to me). Greta Christina has touched on these, and similar issues several times, and written about them better than I could.
Probability and statistics, or at least an understanding of them, are incredibly useful things to have. I make a living out of them, so they're obviously useful in that sense, but I am talking here about ordinary everyday getting-through-life stuff.
For example, they're essential tools when responding to the news, because they help you identify the difference between a real issue and a likely manufacturoversy.
The tale of the traffic blackspot
Some time ago I saw a headline about how a particular busy intersection had become a pedestrian "black-spot" because there had been a "50 percent increase" in pedestrian deaths and serious injuries last year; it was suggested that it may have been caused by increased traffic from changes several intersections back along the same road. The relevant state minister was grilled about his "lack of action" and induced to promise some very expensive changes at the intersection.

My initial, emotional response was the one the journalist was doubtless trying to induce - horror at an apparently huge increase in deaths and injuries. But that nice round "50 percent" figure worried me. Was that number so rounded off from say 48 or 52 percent, or was it exactly 50, suggesting the numbers were very small? So I looked through the story for the figures. The number of deaths and serious inuries had gone from 8 the previous year to 12 in the last year. A quick calculation in my head showed that, even if the underlying probability of incidents had not changed, such a change in actual numbers could easily have happened. The fuss over the change from 8 to 12 may well be a big fuss over nothing but randomness. It could well be that the figure of 8 was itself too high - maybe something should have been done years ago - but the controversy highlighted by the article was misplaced; there was no particular reason to believe anything had changed. The journalist had managed to induce the minister to reallocate funds that may well have been much better left where they had been before.
[Since the details of the mathematics is not the point of this post, I haven't included them - in another post at a later time, I may explore a little of the specific calculations in these (real) examples. ]
If you're watching for it, this kind of thing comes up a lot. H.G. Wells once wrote "Statistical thinking will one day be as necessary for efficient citizenship as the ability to read and write". Is he overselling the case? When government policy is increasingly driven by media attention to unimportant detail rather than substantive policy, I do think it's become increasingly important. We need to be able to understand the flood of information, and if necessary, debunk the nonsense it contains. Can the broader awareness suggested by Wells' comment come to pass?
It seems that educators are responding.

In the part of the world where I live, statistics and probability are now taught throughout school (K-12). My six-year-old has already learned to record data and produce simple graphs of it on the computer. My nine-year-old has learned some basic probability. By the end of year 12, they will have a pretty solid grounding in the basic ideas. They might not end up with all the tools to do the calculations I used, but they will at least be able to ask the right questions.
While important, this sort of understanding of what's going on in the world - certainly a form of comfort - is perhaps a relatively abstract one. However, the comforts can also be much more personal.
The tale of the overtested driver
Some years ago, a fellow was asking a group of statistically-minded people (of which I was one) whether he was being victimized at work. His employer, who owned a business that had many employees driving trucks, had instituted random drug testing. Every week a small number of employees were selected and tested.

This particular driver felt he was being targetted, because he had been tested seven times in 18 months, while he knew of several others who had not been tested at all. He was worried that someone must have it in for him; he thought that maybe another employee he'd had a falling out with may have said that he was taking drugs in order to make trouble for him. He was wondering if he should confront that person.
I pointed out that for it to be an effective deterrent, drug testing had to be done at random - you can't test someone once and then not again until everyone else had been done, because if someone were inclined to take drugs while driving trucks, once they'd been tested, they'd know they were "safe" for a while. There always had to be a risk you would be tested next month. Random testing in turn meant that there would always be some people tested substantially more than others. Since he was asking, rather than someone else, it was likely that he was one of the most heavily tested people in that company, probably the most heavily tested - but someone had to be the most tested person.
The question was - if testing really was being done randomly, would seven tests in 18 months be an unusually high number for the most-tested person? Of course, you need to look at the number of people in the company and the number being tested each week. You'd also want to ask whether you'd really expect to find some people still untested at the same time.
It turned out that after 18 months, it was reasonably likely someone at the company was going to be tested seven times (around a 20% chance - a higher chance than picking up a die and rolling a six), and at the same time there would be a fair number of still-untested people (enough so that he'd likely know several). So there was no particular reason to think he was being targetted. No reason, based on the numbers so far, to expect the person he was worried about was making trouble for him.
Such knowledge was indeed, a consolation. Sure, the drug testing was a nuisance, but there wasn't any reason to think it was personal, or that anybody had it in for him. A significant source of stress in his life was lifted.
And understanding not just that things can happen at random, but of the specific consequences of how randomness works can show us that nobody may be to blame. It can show us that we are not a victim.
Probability can be a consolation, sometimes quite a personal one.
I'm not just talking about the fact that there's a lot of random stuff that happens that we aren't responsible for, or that we're incredibly lucky to be here. Those pieces of understanding are major consolations, no doubt (or at least they are to me). Greta Christina has touched on these, and similar issues several times, and written about them better than I could.
Probability and statistics, or at least an understanding of them, are incredibly useful things to have. I make a living out of them, so they're obviously useful in that sense, but I am talking here about ordinary everyday getting-through-life stuff.
For example, they're essential tools when responding to the news, because they help you identify the difference between a real issue and a likely manufacturoversy.
The tale of the traffic blackspot
Some time ago I saw a headline about how a particular busy intersection had become a pedestrian "black-spot" because there had been a "50 percent increase" in pedestrian deaths and serious injuries last year; it was suggested that it may have been caused by increased traffic from changes several intersections back along the same road. The relevant state minister was grilled about his "lack of action" and induced to promise some very expensive changes at the intersection.

My initial, emotional response was the one the journalist was doubtless trying to induce - horror at an apparently huge increase in deaths and injuries. But that nice round "50 percent" figure worried me. Was that number so rounded off from say 48 or 52 percent, or was it exactly 50, suggesting the numbers were very small? So I looked through the story for the figures. The number of deaths and serious inuries had gone from 8 the previous year to 12 in the last year. A quick calculation in my head showed that, even if the underlying probability of incidents had not changed, such a change in actual numbers could easily have happened. The fuss over the change from 8 to 12 may well be a big fuss over nothing but randomness. It could well be that the figure of 8 was itself too high - maybe something should have been done years ago - but the controversy highlighted by the article was misplaced; there was no particular reason to believe anything had changed. The journalist had managed to induce the minister to reallocate funds that may well have been much better left where they had been before.
[Since the details of the mathematics is not the point of this post, I haven't included them - in another post at a later time, I may explore a little of the specific calculations in these (real) examples. ]
If you're watching for it, this kind of thing comes up a lot. H.G. Wells once wrote "Statistical thinking will one day be as necessary for efficient citizenship as the ability to read and write". Is he overselling the case? When government policy is increasingly driven by media attention to unimportant detail rather than substantive policy, I do think it's become increasingly important. We need to be able to understand the flood of information, and if necessary, debunk the nonsense it contains. Can the broader awareness suggested by Wells' comment come to pass?
It seems that educators are responding.

In the part of the world where I live, statistics and probability are now taught throughout school (K-12). My six-year-old has already learned to record data and produce simple graphs of it on the computer. My nine-year-old has learned some basic probability. By the end of year 12, they will have a pretty solid grounding in the basic ideas. They might not end up with all the tools to do the calculations I used, but they will at least be able to ask the right questions.
While important, this sort of understanding of what's going on in the world - certainly a form of comfort - is perhaps a relatively abstract one. However, the comforts can also be much more personal.
The tale of the overtested driver
Some years ago, a fellow was asking a group of statistically-minded people (of which I was one) whether he was being victimized at work. His employer, who owned a business that had many employees driving trucks, had instituted random drug testing. Every week a small number of employees were selected and tested.

This particular driver felt he was being targetted, because he had been tested seven times in 18 months, while he knew of several others who had not been tested at all. He was worried that someone must have it in for him; he thought that maybe another employee he'd had a falling out with may have said that he was taking drugs in order to make trouble for him. He was wondering if he should confront that person.
I pointed out that for it to be an effective deterrent, drug testing had to be done at random - you can't test someone once and then not again until everyone else had been done, because if someone were inclined to take drugs while driving trucks, once they'd been tested, they'd know they were "safe" for a while. There always had to be a risk you would be tested next month. Random testing in turn meant that there would always be some people tested substantially more than others. Since he was asking, rather than someone else, it was likely that he was one of the most heavily tested people in that company, probably the most heavily tested - but someone had to be the most tested person.
The question was - if testing really was being done randomly, would seven tests in 18 months be an unusually high number for the most-tested person? Of course, you need to look at the number of people in the company and the number being tested each week. You'd also want to ask whether you'd really expect to find some people still untested at the same time.
It turned out that after 18 months, it was reasonably likely someone at the company was going to be tested seven times (around a 20% chance - a higher chance than picking up a die and rolling a six), and at the same time there would be a fair number of still-untested people (enough so that he'd likely know several). So there was no particular reason to think he was being targetted. No reason, based on the numbers so far, to expect the person he was worried about was making trouble for him.
Such knowledge was indeed, a consolation. Sure, the drug testing was a nuisance, but there wasn't any reason to think it was personal, or that anybody had it in for him. A significant source of stress in his life was lifted.
And understanding not just that things can happen at random, but of the specific consequences of how randomness works can show us that nobody may be to blame. It can show us that we are not a victim.
Probability can be a consolation, sometimes quite a personal one.
Sunday, June 8, 2008
What I think of when sports stars thank God
16000 children died of hunger today, but God made your football team win.
God must really like football.
God must really like football.
Thursday, June 5, 2008
Right change
NEW ORLEANS, Louisiana -- Senator John McCain portrayed himself as the candidate of "right change". "The choice is between the right change and the wrong change," he said.
"No matter what you're buying, you should always count your change. Senator McCain thinks it's very important that you get the right amount of money back," an aide explained. "Also, check down the back of your sofa. I found a dollar fifty three last week. When elected, Senator McCain plans to check every sofa in the White House. Do you have any idea how much the last Hundred Years War cost? And wars are apparently more expensive nowadays. If everyone in America found a dollar fifty three every week, umm... how many people live in America? Let's say a trillion? Okay. Oh wow, is that a penny on the ground? Senator McCain! Senator McCain! I found another one!"
"No matter what you're buying, you should always count your change. Senator McCain thinks it's very important that you get the right amount of money back," an aide explained. "Also, check down the back of your sofa. I found a dollar fifty three last week. When elected, Senator McCain plans to check every sofa in the White House. Do you have any idea how much the last Hundred Years War cost? And wars are apparently more expensive nowadays. If everyone in America found a dollar fifty three every week, umm... how many people live in America? Let's say a trillion? Okay. Oh wow, is that a penny on the ground? Senator McCain! Senator McCain! I found another one!"
Sunday, June 1, 2008
Time again for the triple quote
Hmm. I've almost hit the 8 month mark with this blog. This will be my 71st post, so that's...say (1/5)/(2/3)... 0.3 posts per day on average. (Which is better than I originally thought I'd manage.)
I haven't done the "Three quotes" thing in a while (and sometimes it's not three, anyway - it's not like it's a rule). So I guess it's time to dust it off.
In honour of the just-posted Carnival of Elitist Bastards #1, here's three quotes relating to knowledge and truth ... and their lack.
"I have observed that the world has suffered far less from ignorance than from pretensions to knowledge." - Daniel Boorstin
"The truth may be puzzling. It may take some work to grapple with. It may be counterintuitive. It may contradict deeply held prejudices. It may not be consonant with what we desperately want to be true. But our preferences do not determine what’s true." –Carl Sagan
"If I look over my life, every single step of maturing for me, every single one, has had the exact same common denominator, and that was accepting what was true over what I wished were true." –Julia Sweeney
I haven't done the "Three quotes" thing in a while (and sometimes it's not three, anyway - it's not like it's a rule). So I guess it's time to dust it off.
In honour of the just-posted Carnival of Elitist Bastards #1, here's three quotes relating to knowledge and truth ... and their lack.
"I have observed that the world has suffered far less from ignorance than from pretensions to knowledge." - Daniel Boorstin
"The truth may be puzzling. It may take some work to grapple with. It may be counterintuitive. It may contradict deeply held prejudices. It may not be consonant with what we desperately want to be true. But our preferences do not determine what’s true." –Carl Sagan
"If I look over my life, every single step of maturing for me, every single one, has had the exact same common denominator, and that was accepting what was true over what I wished were true." –Julia Sweeney
Thursday, May 29, 2008
Relationships between percentages are not linear (usually)
Friendly Atheist had some graphs relating to biblical literalism and some other variables, which in turn came from several posts by razib at Gene Expression (e.g.).
I objected in comments to the fact that the relationships had been fitted by straight lines when the relationships would necessarily be curved, because of the fact that percentages are bounded by 0 and 100%. Sure enough, the curvature that we would expect to see was plainly there in some of the graphs.
Now, leaving aside a whole lot of other issues (some of which are addressed in the Friendly Atheist thread, some of which aren't), one way to make the relationships easier to see is to transform the percentages in order to stretch out the values close to the boundaries. One popular transform for proportions is the logit transform (log-odds-ratio).
Let's see its effect on the graph of the relationship between percentage of people with postgrad education and percentage who take the bible literally.
Original:

The R2 value is the square of the linear correlation between the two variables. But the relationship is strongly nonlinear! There's little value in this number.
As I said over in the Friendly Atheist comment thread:
The original post even refers to the "Roman Catholic" point as an outlier. It isn't!. It only looks like an outlier if you're crazy enough to fit a straight line. If you look at it as a curved relationship, it fits in just fine.
Instead of using a linear correlation, we could measure a nonparametric correlation - one that measures the monotonic association between the two variables. That is, something that measures the extent to which one variable increases while the other decreases. There are many such quantities - two common ones are the Kendall measure of concordance (Kendall's tau) and the rank correlation (Spearman's rho).
Because there is a strong relationship - just not a linear one - the monotonic association is higher than the linear correlation for this data. The linear correlation is -0.86, while the Spearman measure of the monotonic association is -0.92.
However, I think the main issue is simply a better display, so let's return to the graph of the suggested transformation.
Transformed:

I did this one in a bit of a hurry, so it's a little rough, but it gives the idea. In order that we can see the relationship more clearly I have omitted the labels for the individual points, but they could be included. Notice that the "Catholic" point (the one to the right of the "10%" tickmark on the vertical axis) is clearly not an unusual point - it fits the pattern nicely.
Note that since the logit transformation is monotonic, this transformation doesn't alter the nonparametric correlations at all. So, for example, the Spearman measure of monotonic association is still -0.92.
The linear correlation on this transformed scale is, however, changed from what it was before, because now the relationship is now almost linear (it's now -0.90). I still don't advocate drawing a line on the plot, however (though a line is now a pretty good description); if a relationship must be drawn in, any of a number of standard nonparametric smoothers could be used. I think we can see the relationship just fine on the second plot.
As to whether the relationship means much of anything, that's another issue, but at least we can now clearly see it, without some distracting straight line (and equation, and r-squared value) on the graph, mis-relating the raw percentages.
I think both graphs provide valuable information - Ideally, I'd be tempted to display both, side-by-side, and since the table of data is small, to give that as well.
Update:
Here's a plot with an added smooth, done on the original raw percentage scale. This one was generated by an old version of SPlus, but R can also generate stuff like this (as can numerous other packages). The smooth here is just the default spline smooth, though the supersmoother was about as good, and the loess smoother would probably work fine if I tweaked its parameters a bit (the default is too local).

This smooth (and the others I mentioned) done on the original scale don't recognize the inherent restrictions I discuss above; I think a better way to smooth would be to transform the data (like the second plot above), smooth that and then if desired, take that smooth back to the original scale. Of course, it's no longer estimating a mean, but that's not such a huge deal - we're just trying to describe a relationship.
Further Update:
Here's a graph of what happens when you smooth on the transformed scale and transform back to the original (percentage) scale. The blue curve is the smooth curve shown above, while the more strongly bent green curve is the smooth done on the logit-logit scale and then brought back. On the transformed scale the default spline smooth was somewhat curved (though much less so than a spline smooth on the original scale), and of course, when we come back, it's definitely curved on the percentage scale.

We shouldn't extrapolate any of these relationships outside the range of the data, but at least within the range of the data, the smooth curves above are not implausible descriptions of how the variables are related to one another.
Also fixed first two links.
I objected in comments to the fact that the relationships had been fitted by straight lines when the relationships would necessarily be curved, because of the fact that percentages are bounded by 0 and 100%. Sure enough, the curvature that we would expect to see was plainly there in some of the graphs.
Now, leaving aside a whole lot of other issues (some of which are addressed in the Friendly Atheist thread, some of which aren't), one way to make the relationships easier to see is to transform the percentages in order to stretch out the values close to the boundaries. One popular transform for proportions is the logit transform (log-odds-ratio).
Let's see its effect on the graph of the relationship between percentage of people with postgrad education and percentage who take the bible literally.
Original:

The R2 value is the square of the linear correlation between the two variables. But the relationship is strongly nonlinear! There's little value in this number.
As I said over in the Friendly Atheist comment thread:
These variables should NOT be having straight lines fitted to their relationships, unless someone really thinks percentages can go outside 0-100!
Look at the fitted “percentage with postgrad education” for the “Church of God In Christ”. It’s NEGATIVE! That makes no sense at all.
At the very least, a functional relationship that at least obeys the a priori facts about the situation (those fractions being bounded to [0,1], for example) should be used. In the first graph, the IQs also have a lower bound of 0, but we’re so many s.d.s from zero it doesn’t matter quite so much for that variable (there’s still the issue that there’s no a priori reason to expect linearity, though).
It really does matter for the percentages, because they approach their limits in this data. Notice the actual relationship from the points is curved in the second graph? That’s because the boundaries force it to be curved. Why is a straight line being fitted to a relationship that is plainly not (and worse, pretty obviously won’t be before we even see data)?
The linear equation, the R-squared and so on are all nonsense - worse than useless! (Indeed, since neither variable is necessarily thought to be causative, why use a technique - regression, whether linear or not - that treats one variable as the predictor and the other as the response?)
The original post even refers to the "Roman Catholic" point as an outlier. It isn't!. It only looks like an outlier if you're crazy enough to fit a straight line. If you look at it as a curved relationship, it fits in just fine.
Instead of using a linear correlation, we could measure a nonparametric correlation - one that measures the monotonic association between the two variables. That is, something that measures the extent to which one variable increases while the other decreases. There are many such quantities - two common ones are the Kendall measure of concordance (Kendall's tau) and the rank correlation (Spearman's rho).
Because there is a strong relationship - just not a linear one - the monotonic association is higher than the linear correlation for this data. The linear correlation is -0.86, while the Spearman measure of the monotonic association is -0.92.
However, I think the main issue is simply a better display, so let's return to the graph of the suggested transformation.
Transformed:

I did this one in a bit of a hurry, so it's a little rough, but it gives the idea. In order that we can see the relationship more clearly I have omitted the labels for the individual points, but they could be included. Notice that the "Catholic" point (the one to the right of the "10%" tickmark on the vertical axis) is clearly not an unusual point - it fits the pattern nicely.
Note that since the logit transformation is monotonic, this transformation doesn't alter the nonparametric correlations at all. So, for example, the Spearman measure of monotonic association is still -0.92.
The linear correlation on this transformed scale is, however, changed from what it was before, because now the relationship is now almost linear (it's now -0.90). I still don't advocate drawing a line on the plot, however (though a line is now a pretty good description); if a relationship must be drawn in, any of a number of standard nonparametric smoothers could be used. I think we can see the relationship just fine on the second plot.
As to whether the relationship means much of anything, that's another issue, but at least we can now clearly see it, without some distracting straight line (and equation, and r-squared value) on the graph, mis-relating the raw percentages.
I think both graphs provide valuable information - Ideally, I'd be tempted to display both, side-by-side, and since the table of data is small, to give that as well.
Update:
Here's a plot with an added smooth, done on the original raw percentage scale. This one was generated by an old version of SPlus, but R can also generate stuff like this (as can numerous other packages). The smooth here is just the default spline smooth, though the supersmoother was about as good, and the loess smoother would probably work fine if I tweaked its parameters a bit (the default is too local).

This smooth (and the others I mentioned) done on the original scale don't recognize the inherent restrictions I discuss above; I think a better way to smooth would be to transform the data (like the second plot above), smooth that and then if desired, take that smooth back to the original scale. Of course, it's no longer estimating a mean, but that's not such a huge deal - we're just trying to describe a relationship.
Further Update:
Here's a graph of what happens when you smooth on the transformed scale and transform back to the original (percentage) scale. The blue curve is the smooth curve shown above, while the more strongly bent green curve is the smooth done on the logit-logit scale and then brought back. On the transformed scale the default spline smooth was somewhat curved (though much less so than a spline smooth on the original scale), and of course, when we come back, it's definitely curved on the percentage scale.

We shouldn't extrapolate any of these relationships outside the range of the data, but at least within the range of the data, the smooth curves above are not implausible descriptions of how the variables are related to one another.
Also fixed first two links.
Labels:
biblical literalism,
graphics,
mathematics,
statistics
Monday, May 26, 2008
Who's in the lead?
Percentages don't always do what you expect
I was reading an article at Dailykos (with the ironic title "Montana's huge black population gives Obama the edge"), which is mostly debunking the myth that Obama has a problem with blue-collar whites. (I am not normally given to reading Dailykos, but I do pop in occasionally.)
At one point in the article I was reminded of Simpson's Paradox, and I thought I'd discuss it here, since it lets me talk about elections and about simple mathematics at the same time. Note that the issue doesn't occur in the story to my knowledge - it just served to remind me of it.
Imagine the following situation. Let's say you're looking at how much likely voters approve a particular candidate - let's imagine people are asked a question about exactly one candidate - whether they agree with a statement something like "the candidate would make a good president".
[NB: These numbers are completely made up! They're not real, but are just there to illustrate a point.]
Imagine we ended up with the following table (of percentages):
Note that in this case, different people are being asked about Clinton and McCain; this would not usually be the case with a typical survey. Also, these figures don't have to add to 100% - all candidates might have 80% approval, or all might have 30%.
So on these figures Clinton is slightly leading McCain in approval (maybe not outside the margin of error, but let's ignore that issue). Let's say you want to figure out whether McCain's biggest problem is with males or females. Fortunately, it turns out that this information is available.
Hang on a minute! McCain leads Clinton on men and on women!? Did we make a mistake somewhere?
Actually, no, this is possible. Look at these numbers (counts of people):
If you check those numbers out (unless I made a mistake somewhere), they give the percentages I quote above (to the nearest whole percent).
This is called Simpson's Paradox. It's worth knowing about if you're comparing rates or percentages.
What's going on? Well, as it turns out in our sample, women were less approving overall than men, and more women were asked about McCain than were men.
So which figure matters? Well, actually, if the proportion within each of the sub-samples are representative of the voting population, you'd need to weight each figure by the proportion in the population ... and then McCain would tend to come out looking better.
I was reading an article at Dailykos (with the ironic title "Montana's huge black population gives Obama the edge"), which is mostly debunking the myth that Obama has a problem with blue-collar whites. (I am not normally given to reading Dailykos, but I do pop in occasionally.)
At one point in the article I was reminded of Simpson's Paradox, and I thought I'd discuss it here, since it lets me talk about elections and about simple mathematics at the same time. Note that the issue doesn't occur in the story to my knowledge - it just served to remind me of it.
Imagine the following situation. Let's say you're looking at how much likely voters approve a particular candidate - let's imagine people are asked a question about exactly one candidate - whether they agree with a statement something like "the candidate would make a good president".
[NB: These numbers are completely made up! They're not real, but are just there to illustrate a point.]
Imagine we ended up with the following table (of percentages):
Percentage of people surveyed that agree that
candidate would make a good president
McCain (R) 38
Clinton (D) 41
Note that in this case, different people are being asked about Clinton and McCain; this would not usually be the case with a typical survey. Also, these figures don't have to add to 100% - all candidates might have 80% approval, or all might have 30%.
So on these figures Clinton is slightly leading McCain in approval (maybe not outside the margin of error, but let's ignore that issue). Let's say you want to figure out whether McCain's biggest problem is with males or females. Fortunately, it turns out that this information is available.
Percentage of people surveyed that agree that
candidate would make a good president
Men Women
McCain (R) 46 36
Clinton (D) 43 34
Hang on a minute! McCain leads Clinton on men and on women!? Did we make a mistake somewhere?
Actually, no, this is possible. Look at these numbers (counts of people):
Number of people surveyed that agree that
candidate would make a good president
Men Women Total
McCain Approved 80 189 269
Number Asked 174 526 700
Clinton Approved 233 55 288
Number Asked 540 160 700
If you check those numbers out (unless I made a mistake somewhere), they give the percentages I quote above (to the nearest whole percent).
This is called Simpson's Paradox. It's worth knowing about if you're comparing rates or percentages.
What's going on? Well, as it turns out in our sample, women were less approving overall than men, and more women were asked about McCain than were men.
So which figure matters? Well, actually, if the proportion within each of the sub-samples are representative of the voting population, you'd need to weight each figure by the proportion in the population ... and then McCain would tend to come out looking better.
Saturday, May 24, 2008
Fame! Fortune! ... well, neither, really
... but on the latest Monday Math Madness - they used one of my solutions. (solutions not linked directly so as not to spoil it for anyone)
Subscribe to:
Posts (Atom)


