A Persian Cafe, Edward Lord Weeks

Showing posts with label Statistics. Show all posts
Showing posts with label Statistics. Show all posts

Tuesday, 3 May 2016

Is Longer Better?

Having recently engaged in an assessment of Obama's presidency, I now turn to the horse for that particular cart: how should we actually go about assessing the greatness of historical figures, and in particular of heads of government? And in particular: how should the longevity of a person's term of office effect our assessment of their greatness?

Empirically, there is a fairly strong correlation between the term length of British Prime Ministers and their historical rankings as assessed by journalists for The Times: for the people on that page, the correlation coefficients between number of days as PM and ranking are -0.45 for Matthew Parris, -0.60 for Peter Riddell and -0.53 for Ben MacIntyre. (The rankings are such that 1 is best and 53 is worst; hence these numbers show that longer-lasting Prime Ministers were more positively assessed. I don't have p-values because after two hours of inputting data I really didn't feel like doing a whole new load of number crunching, and I can't see any easy way to find the p-value in Excel).

Now there are a couple of obvious ways to go about justifying this. First, if we are to assess leaders by their achievements then a longer tenure gives you more time to rack up achievements. I'm a bit sceptical of this, since (a) it also gives you more time to rack up failures, and (b) it doesn't take all that long to establish an impressive list of achievements. Churchill (unanimously ranked in first place by the Times journalists) is remembered almost entirely for his first term, during which he led Britain to victory in the Second World War; one could ignore his second term of four years without denting his position. David Lloyd George was Prime Minister for less than six years, yet is credited with winning the Great War and founding the welfare state. Peel lasted barely more than five years, but abolished the Corn Laws and established the first official Police. To be sure, longevity helps in this regard, but I suspect that diminishing marginal returns set in pretty quickly after the first five years.

A better argument would be that historians are likely to assess leaders on similar criteria as voters (or other people with the ability to topple a Premier). The better you perform, the more likely you are to continue surviving. Obviously there's considerable variation in this across parliaments - a US president can usually be unseated only every four years, the exceptions of course being Nixon and the four presidents who were assassinated, while Australian PMs can go from being unchallenged to being out of office in a matter of mere hours.

The question, then, becomes one of whether the criteria upon which leaders tend to be assessed are appropriate. This question is one I hope to return to.

Thursday, 7 April 2016

Study Design Bleg

I'm interested in the question of whether there are appreciable differences in the quality of parenting received by adopted children and children raised by their biological parents. Obviously this is an empirical question, so before I commit to any empirical investigation I want to be as confident as possible that a potential investigation would really be measuring what I hope to measure.

The standard way to answer questions about the effects of parenting and genes is through twin studies, which compare the achievement and variance thereof between identical twins raised by different families. It's not hard to think of set-ups of such studies which would allow us to test the hypothesis that there are indeed differences in the quality of parenting given to biological and adopted children; however, I'm struggling to think of set-ups that are actually likely to exist in sizeable numbers. Are there really likely to be many cases, for example, of pairs of identical twins where each set of parents raised one member of each set of twins?

The best design that I've so far been able to come up with and subsequently remember long enough to write down is to compare the achievement of children adopted by extended family with that of children adopted by non-relatives. If there is a biological dimension to whatever causes good parenting, we should expect it to be at least somewhat present when raising nephews, nieces, and grandchildren. Unfortunately there's a confound, in that having extended family who are willing and able to adopt your children is itself a fairly good indicator, so we may end up measuring things other than parenting quality.

Any ideas on other study designs or for improvements?

Monday, 27 January 2014

The (biggest) Problem with Statistical Significance

Statistical Significance is the standard test of whether a study or experiment in science or social science provides enough evidence to support a conclusion. The basic idea is that in testing some hypothesis H1, you start by assuming a null hypothesis H0. H0 is essentially the negation of H1: for example, if the hypothesis to be tested is that eating deep-fried Mars bars increases one's risk of heart disease, then H0 is that it doesn't.

Having made this assumption, we of course wish to disprove it. To this end we conduct an experiment (or get hold of data forming a natural experiment) which tests a prediction we can make based upon H0 - in the deep-fried Mars bars example, this might be that there should be no correlation between consuming deep-fried Mars bars and suffering from heart disease. If the result of the experiment would have a less than 5% (or, if we're being more stringent, 1%) chance of happening given the truth of the null hypothesis then we are allowed to reject it and conclude in favour of the truth of H1.

To see the problem with this, consider this xkcd comic:


Call the evidence - in this case, the output of the neutrino detector - E. Our hypothesis to test, H1, is that the sun has exploded. H0 is that the sun has not exploded. The probability of an event or of the truth of a proposition is denoted by P(event or proposition).

The statistical significance test "works" by finding P(E, conditional upon H0 being true). However, this represents a fundamental confusion, because that isn't what we ought to be interested in: we really want to know P(H1, conditional upon E being true) - that is, the probability of the hypothesis itself, rather than that of the evidence.

How do we find this, though? The answer is through Bayes' Theorem, a simple mathematical equation discovered by the Reverend Thomas Bayes (1701-1761). It is as follows:

P(H1 given E) =                    P'(H1) x P(E given H1)                     
                          P'(H1) x P(E given H1) + P'(H0) x P(E given H0)

Where P'(H1) and P'(H0) are our previous estimates of the probabilities of H1 and H0, the probabilities we attached to these before the experiment, generally referred to as our priors. (Where do our priors come from? That's a deep and involved question, upon which I do not feel qualified to pass even the slightest comment).

In the sun example, then, suppose our prior for "the sun has exploded" is one in a million. Then

P(sun has exploded) =                    P'(H1) x P(E given H1)                     
                          P'(H1) x P(E given H1) + P'(H0) x P(E given H0)

=                                     (one in a million) x (one)                             
   (one in a million) x (one) + (999,999 in a million) x (one in thirty-six)

Which works out at somewhat less than one in a million, but still very unlikely. In real life, our prior for the sun having exploded would be well under one in a million.


So the result of this is that statistical significance can give credence to ridiculously unlikely views. But the mistake involved is subtle - my guess is that most people give a less than 1% chance to the idea that another person can read their minds and yet if this happened...

... you wouldn't be inclined to count it down to blind luck.