July 18, 2012

Repopulating Canterbury?

Stuff has a story about twins in Canterbury, which is driven by two general human tendencies shared even by statisticians: thinking babies are cute, and overestimating the strangeness of coincidences.  We hear that

Canterbury mums have given birth to 21 sets of twins in the past six weeks.

and

 10 years ago the average would have been about six to eight sets a month.

Using the StatsNZ Infoshare tool (go to Population | Births -VSB | Single and multiple confinements by DHB) we find about 100 sets of multiple births per year in Canterbury DHB and a further dozen or so in South Canterbury DHB, without much change for the past ten years.  That means about nine or so multiple births per month on average.  If you use the average twin rate for all of NZ  (2.7%) and the number of births in the Canterbury region, you get a slightly lower 7.7 sets of twins per month on average.

If there are, on average, 9 multiple births per month, how long would you have to wait for a six-week period with 21?  Because the possible six-week periods overlap, it’s hard to do this calculation analytically, but we can simulate it: 9 per month is 108 per year, which is 108/52 per week.  We simulate a long string of one-week counts from a Poisson distribution with mean 108/52, and see how long we have to  wait between six-week totals of at least 21.  The average waiting time is about two years.  (you have to be a bit careful: the proportion of six-week intervals over 21 is a lot more than one in two years, because of the overlap between six-week intervals)

So, this is a once in two years coincidence if we just look at Canterbury.  It’s much more likely if twin stories from other regions might also end up as news — the probability is hard to estimate, because twins in Canterbury really are more newsworthy than in, say, Waikato.

July 17, 2012

NRL Predictions, Round 20

Team Ratings for Round 20

Here are the team ratings prior to Round 20, along with the ratings at the start of the season. I have created a brief description of the method I use for predicting rugby games. Go to my Department home page to see this.

Current Rating Rating at Season Start Difference
Bulldogs 7.09 -1.86 9.00
Warriors 4.96 5.28 -0.30
Storm 4.22 4.63 -0.40
Broncos 3.91 5.57 -1.70
Rabbitohs 3.00 0.04 3.00
Sea Eagles 2.96 9.83 -6.90
Cowboys 2.90 -1.32 4.20
Wests Tigers 0.21 4.52 -4.30
Sharks -1.05 -7.97 6.90
Knights -1.92 0.77 -2.70
Dragons -2.08 4.36 -6.40
Titans -2.36 -11.80 9.40
Roosters -4.40 0.25 -4.70
Raiders -5.02 -8.40 3.40
Panthers -7.73 -3.40 -4.30
Eels -8.41 -4.23 -4.20

 

Performance So Far

So far there have been 136 matches played, 81 of which were correctly predicted, a success rate of 59.56%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Bulldogs vs. Eels Jul 13 32 – 12 20.00 TRUE
2 Broncos vs. Warriors Jul 13 10 – 8 3.73 TRUE
3 Knights vs. Sea Eagles Jul 14 32 – 6 -5.40 FALSE
4 Storm vs. Cowboys Jul 14 16 – 20 7.69 FALSE
5 Wests Tigers vs. Panthers Jul 14 26 – 18 13.29 TRUE
6 Raiders vs. Titans Jul 15 26 – 38 4.48 FALSE
7 Dragons vs. Sharks Jul 15 18 – 10 2.60 TRUE
8 Roosters vs. Rabbitohs Jul 16 22 – 24 -3.07 TRUE

 

Predictions for Round 20

Here are the predictions for Round 20

Game Date Winner Prediction
1 Sea Eagles vs. Bulldogs Jul 20 Sea Eagles 0.40
2 Titans vs. Broncos Jul 20 Broncos -1.80
3 Warriors vs. Knights Jul 21 Warriors 11.40
4 Eels vs. Storm Jul 21 Storm -8.10
5 Rabbitohs vs. Dragons Jul 21 Rabbitohs 9.60
6 Sharks vs. Raiders Jul 22 Sharks 8.50
7 Panthers vs. Roosters Jul 22 Panthers 1.20
8 Cowboys vs. Wests Tigers Jul 23 Cowboys 7.20

 

Super 15 Predictions, Week 22

Team Ratings for Week 22

Here are the team ratings prior to Week 22, along with the ratings at the start of the season. I have created a brief description of the method I use for predicting rugby games. Go to my Department home page to see this.

Current Rating Rating at Season Start Difference
Crusaders 9.02 10.46 -1.40
Sharks 4.77 0.87 3.90
Stormers 4.55 6.59 -2.00
Hurricanes 3.40 -1.90 5.30
Bulls 3.32 4.16 -0.80
Chiefs 3.09 -1.17 4.30
Reds 1.55 5.03 -3.50
Brumbies -0.89 -6.66 5.80
Blues -2.77 2.87 -5.60
Waratahs -3.13 4.98 -8.10
Highlanders -3.17 -5.69 2.50
Cheetahs -3.99 -1.46 -2.50
Lions -8.75 -10.82 2.10
Force -9.18 -4.95 -4.20
Rebels -11.11 -15.64 4.50

 

Performance So Far

So far there have been 120 matches played, 86 of which were correctly predicted, a success rate of 71.7%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Hurricanes vs. Chiefs Jul 13 28 – 25 5.20 TRUE
2 Brumbies vs. Blues Jul 14 16 – 30 10.30 FALSE
3 Crusaders vs. Force Jul 14 38 – 24 24.40 TRUE
4 Reds vs. Waratahs Jul 14 32 – 16 7.90 TRUE
5 Stormers vs. Rebels Jul 14 26 – 21 23.10 TRUE
6 Sharks vs. Cheetahs Jul 14 34 – 15 12.20 TRUE
7 Bulls vs. Lions Jul 14 37 – 20 16.50 TRUE

 

Predictions for Week 22

Here are the predictions for Week 22. The prediction is my estimated points difference with a positive margin being a win to the home team, and a negative margin a win to the away team.

Game Date Winner Prediction
1 Crusaders vs. Bulls Jul 21 Crusaders 10.20
2 Reds vs. Sharks Jul 21 Reds 1.30

 

Excellence in Statistical Reporting Award

The American Statistical Association gives an annual award for Excellence in Statistical Reporting.  This year it goes to Amanda Cox, a graphics editor at the New York Times, some of whose graphs we’ve highlighted on the blog.  Here are some more examples and talks.

The award was created to encourage and recognize members of the communications media who have best displayed an informed interest in the science of statistics and its role in public life. The award can be given for a single statistical article or for a body of work. In selecting the recipient, consideration is given to:

  • Correctness, clarity, fairness, brevity, and professionalism of the communication
  • Importance, relevance and overall effectiveness in impacting the intended audience
  • Impact on the growth and national or regional exposure of statistics
  • Appreciation and emphasis of the statistical aspects of a particular issue or event
  • Excellent coverage of research on statistics or statistical issues

You’re all individuals

The Herald  is at least showing some scepticism about Italian-style patisserie that is supposed to make you lose weight (they include green tea and guarana, ie, caffeine).  The manufacturer isn’t willing to give any numbers

But she said it was not possible to measure how much eating the treats would help boost the metabolism because ‘everyone is different’.

Of course, this is a pretty transparent excuse.  If the fact that everyone is different made measurements impossible, medical science would be in a bad way.  We can measure the average effect.  We can measure the variability in the effect.  We can measure the proportion of people helped.  And we do all these things.  For example,  we’ve known for years that angiotensin converting enzyme inhibitors reduce blood pressure on average by about 10mmHg.  More recently, some Sydney researchers reanalyzed the data from the randomized trials to look at how much person-to-person variation in effect there was, and found it was extremely small.

The story goes on to say

Registered public health nutritionist Charlotte Stirling-Reed said that consumers should always look for evidence before making purchases based on health claims.

True, but that would spoil all the fun.

Margin of error yet again

In my last post I more-or-less assumed that the design of the opinion polls was handed down on tablets of stone.  Of course, if you really need more accuracy for month-to-month differences, you can get it.   The Household Labour Force Survey gives us the official estimates of unemployment rate.  We need to be able to measure changes in unemployment that are much smaller than a few percentage points, so StatsNZ doesn’t just use independent random samples of 1000 people.

The HLFS sample contains about 15,000 private households and about 30,000 individuals each quarter. We sample households on a statistically representative basis from areas throughout New Zealand, and obtain information for each member of the household. The sample is stratified by geographic region, urban and rural areas, ethnic density, and socio-economic characteristics. 

Households stay in the survey for two years. Each quarter, one-eighth of the households in the sample are rotated out and replaced by a new set of households. Therefore, up to seven-eighths of the same people are surveyed in adjacent quarters. This overlap improves the reliability of quarterly change estimates.

That is, StatsNZ uses a much larger sample, which reduces the sampling error at any single time point, and samples the same households more than once, which reduces the sampling error when estimating changes over time.   The example they give on that web page shows that the margin of error  for annual change in the employment rate is on the order of 1 percentage point.  StatsNZ calculates sampling errors for all the employment numbers they publish, but I can’t find where they publish the sampling errors.

[Update: as has just been pointed out to me, StatsNZ publish the sampling errors at the bottom of each column of the Excel version of their table,  for all the tables that aren’t seasonally adjusted]

July 16, 2012

Euro-zone debt crisis hits number-crunchers, too …

Here’s a different statistical take on the Euro-zone crisis:

Debt crisis: Italy’s statisticians threaten ‘stats black-out’

Italy’s official statisticians are threatening to down calculators and stop reporting on its stricken economy – as they themselves fall victim to the recession they are paid to track. 

Read the details here.

 

 

Ewen Macdonald: (Vile) trial by opinion poll

This appeared on stuff.co.nz and in Fairfax papers last week:

After a harrowing trial that gripped the nation, a survey has revealed just one in five New Zealanders think Ewen Macdonald did not murder his brother-in-law Scott Guy.

A jury of 11 handed down a not guilty verdict to Macdonald, 32, last week, after a month-long trial in the High Court at Wellington.

But results to be made public by market research company UMR today show just 20 per cent of people surveyed agreed with Ewen Macdonald being acquitted of slaying Mr Guy outside his rural Feilding home in July 2010.

Living in New Zealand means agreeing to deal with criminal allegations transparently in the courtroom, not the court of (ill-informed, speculative) public opinion. The only people with the information on which to make an informed opinion are members of the jury – and they have delivered a verdict that police will not appeal.  What was UMR thinking?

When a dog bites a man, that’s not news

A question on my recent post about political opinion polls asks

– at what point does the trend become relevant?

– and how do you calculate the margin of error between two polls?

Those are good questions, and the reply was getting long enough that I decided to promote it to a post of its own. The issue is that proportions will fluctuate up and down slightly from poll to poll even if nothing is changing, and we want to distinguish this from real changes in voter attitudes — otherwise there will be a different finding every month and it will look as if public opinion is bouncing around all over the place.  I don’t think you want to base a headline on a difference that’s much below the margin of error, though reporting the differences is fine if you don’t think people can find the press release on their own.

The (maximum) margin of error, which reputable polls usually quote, gives an estimate of uncertainty that’s designed to be fairly conservative. If the poll is well-designed and well-conducted, the difference between the poll estimate and the truth will be less than the maximum margin of error 95% of the time for true proportions near one-half, and more often than 95% for smaller proportions.  The difference will be less than half the margin of error about two-thirds of the time, so being less conservative doesn’t let you shrink the margin very much.   In this case the difference was well under half the margin of error.  In fact, if there were no changes in public opinion you would still see month-to-month differences this big about half the time.

For trends based on just two polls, the margin of error is larger than for a single poll, because it could happen by chance that one poll was a bit too low and the other was a bit too high: the difference between the two polls can easily be larger than the difference between either poll and the truth.

The best way to overcome the random fluctuations to pick up small trends is to do some sort of averaging of polls, either over time, or over competing polling organisations.  In the US, the website fivethirtyeight.com combines all the published polls to get estimates and probabilities of winning the election, and they do very well in short-term predictions.  Here’s a plot for Australian (2007) elections, by Simon Jackman, of  Stanford, where you can see individual poll results (with large fluctuations) around the average curve (which has much smaller uncertainties).  KiwiPollGuy  has apparently done something similar for NZ elections (though I’d be happier if their identity or their methodology was public).

So, how are these numbers computed?  If the poll was a uniform random sample of N people, and the true proportion was P, the margin of error would be 2 * square root(P*(1-P)/N).  The problem then is that we don’t know P — that’s why we’re doing the poll. The maximum margin of error takes P=0.5, which gives the largest margin of error, and one that’s pretty reasonable for a range of P from, say, 15% to 85%. The formula then simplifies to 1/square root of N.   If N is 1000, that’s 3.16%, for N=948 as in the previous post, it is 3.24%.

Why is it  2 * square root(P*(1-P)/N)?  Well, that takes more maths than I’m willing to type in this format so I’m just going to mutter “Bernoulli” at you and refer you to Wikipedia.

For trends based on two polls, as opposed to single polls, it turns out that the squared uncertainties add, so the square of the margin of error for the difference is twice the square of the margin of error for a single poll.  Converting back to actual percentages, that means the margin of error for a difference based on two polls is 1.4 times large than for a single poll.

In reality, the margins of error computed this way are an underestimate, because of non-response and other imperfections in the sampling, but they don’t do too badly.

Stat of the Week Competition: July 14 – 20 2012

Each week, we would like to invite readers of Stats Chat to submit nominations for our Stat of the Week competition and be in with the chance to win an iTunes voucher.

Here’s how it works:

  • Anyone may add a comment on this post to nominate their Stat of the Week candidate before midday Friday July 20 2012.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of July 14 – 20 2012 inclusive.
  • Quote the statistic, when and where it was published and tell us why it should be our Stat of the Week.

Next Monday at midday we’ll announce the winner of this week’s Stat of the Week competition, and start a new one.

(more…)