Posts from August 2013 (54)

August 21, 2013

Measuring what you care about

From the Twitters

There followed a lively discussion, with comparisons to election results in various unpleasant places.

As I’ve suggested before, the really damning aspect of the 99.9% bus punctuality stats is that they might actually be honest. That is, `punctuality’ has been defined in a way that it does not reflect passenger experience and is of almost no interest to passengers. A bus is ‘punctual’ if it starts its route (which I assume means the driver starts up the ticket system) no more than 5 minutes late. What happens later doesn’t matter, as long as the bus does eventually reach its destination.

The real-time prediction system (although it may not be great at predicting the future) knows where the buses have been, so it would be feasible to set up a punctuality summary that actually measured punctuality — perhaps the proportion of major timepoints where the bus was no more than 5 minutes late or 1 minute early in departing.

I mention this point again because I’m teaching Design of Clinical Trials at the moment, and one of the big issues is ‘surrogate outcomes’. That is, people running studies are often tempted to measure something convenient rather than what patients care about: diabetes trials may measure blood sugar rather than heart attacks and kidney failure; heart disease trials may measure blood pressure rather than heart attacks or strokes; cancer trials may measure tumour size rather than survival or symptoms.  This matters, because there are important examples where a treatment improves a surrogate outcome, but makes the real outcomes worse.

There is no way that the Auckland bus punctuality statistics are accurate measurements of something that matters to passengers. It’s not a matter of life and death as it is in clinical trials, but it’s still a waste of time and money.  And since the Auckland bus system is actually pretty good, it makes Auckland Transport and the Council look unnecessarily stupid.

Currie Cup Predictions for Round 3

Oh dear, mea culpa. I was alerted by Pierre du Plessis (pduplessis1@gmail.com) that my predictions were a bit bizarre and on checking I found I had entered an incorrect parameter value. Here are the correct predictions for this week. Note that the success probability below is what would have been obtained if I had entered the correct parameter value previously.
 

Team Ratings for Round 3

Here are the team ratings prior to Round 3, 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.

Here are the team ratings prior to this week’s games, along with the ratings at the start of the season.

Current Rating Rating at Season Start Difference
Western Province 2.39 4.47 -2.10
Sharks 1.22 3.24 -2.00
Blue Bulls 0.91 0.59 0.30
Cheetahs -0.78 -2.74 2.00
Lions -1.84 -1.22 -0.60
Griquas -4.05 -6.48 2.40

 

Performance So Far

So far there have been 6 matches played, 3 of which were correctly predicted, a success rate of 50%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Sharks vs. Lions Aug 16 33 – 25 11.10 TRUE
2 Blue Bulls vs. Griquas Aug 16 15 – 9 13.90 TRUE
3 Western Province vs. Cheetahs Aug 17 15 – 14 12.80 TRUE

 

Predictions for Round 3

Here are the predictions for Round 3. The prediction is my estimated expected 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 Cheetahs vs. Sharks Aug 23 Cheetahs 5.50
2 Griquas vs. Western Province Aug 24 Griquas 1.10
3 Blue Bulls vs. Lions Aug 24 Blue Bulls 10.20

 

NRL Predictions, Round 24

Team Ratings for Round 24

Here are the team ratings prior to Round 24, 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
Roosters 14.65 -5.68 20.30
Storm 10.83 9.73 1.10
Sea Eagles 8.67 4.78 3.90
Rabbitohs 7.34 5.23 2.10
Bulldogs 5.02 7.33 -2.30
Cowboys 3.30 7.05 -3.70
Knights 2.90 0.44 2.50
Sharks -0.64 -1.78 1.10
Titans -1.26 -1.85 0.60
Warriors -2.75 -10.01 7.30
Broncos -4.48 -1.55 -2.90
Raiders -5.70 2.03 -7.70
Dragons -5.93 -0.33 -5.60
Panthers -6.78 -6.58 -0.20
Wests Tigers -13.48 -3.71 -9.80
Eels -15.45 -8.82 -6.60

 

Performance So Far

So far there have been 168 matches played, 103 of which were correctly predicted, a success rate of 61.31%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Rabbitohs vs. Sea Eagles Aug 16 22 – 10 0.96 TRUE
2 Broncos vs. Eels Aug 16 22 – 12 16.84 TRUE
3 Raiders vs. Bulldogs Aug 17 16 – 28 -4.78 TRUE
4 Cowboys vs. Titans Aug 17 22 – 10 8.33 TRUE
5 Dragons vs. Sharks Aug 17 18 – 22 0.01 FALSE
6 Warriors vs. Panthers Aug 18 24 – 28 11.66 FALSE
7 Knights vs. Storm Aug 18 10 – 23 -1.04 TRUE
8 Wests Tigers vs. Roosters Aug 19 14 – 56 -19.04 TRUE

 

Predictions for Round 24

Here are the predictions for Round 24. The prediction is my estimated expected 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 Rabbitohs vs. Bulldogs Aug 23 Rabbitohs 6.80
2 Panthers vs. Broncos Aug 23 Panthers 2.20
3 Dragons vs. Wests Tigers Aug 24 Dragons 12.10
4 Titans vs. Warriors Aug 24 Titans 6.00
5 Cowboys vs. Knights Aug 24 Cowboys 4.90
6 Raiders vs. Sea Eagles Aug 25 Sea Eagles -9.90
7 Storm vs. Eels Aug 25 Storm 30.80
8 Sharks vs. Roosters Aug 26 Roosters -10.80

 

August 20, 2013

US language maps

The US Census Bureau has put together an interactive map of languages other than English spoken in the US — you can look at all speakers of the language, or just those who are not fluent in English, for a range of languages.

Here’s the map for (preferentially) French speakers, showing concentrations in Maine (near French Canada) and Louisiana (Cajun) that I’d expect, groups in the major cities, and a cluster I don’t understand in northwestern Georgia

frenchmap

Briefly

Diversity edition

  • Statistical classification (data mining, learning) algorithms will learn to match your classifications. Sometimes that’s not quite what you want
  • People are starting to comment more on entirely-male conference speaker lineups. Here’s a simple calculator for the probability distribution of number of people from some group (eg women), for a given proportion in the target population. For example, if you select 10 people from a population that’s 15% female, you should have only a 1/9 chance of not getting any women.
  • Map of scientific collaborations, based on co-authorship of books and papers. (click for a really big version)

collabolinks

 

August 19, 2013

Sympathetic magic again

Once again, the Herald is relying on sympathetic magic in a nutrition story (previous examples)

1. Walnuts: These nuts look just like a brain, so it makes sense that they’re packed with good stuff for your grey matter.The British Journal of Nutrition reported that eating half a cup of walnuts a day for eight weeks increased reasoning skills by nearly 12 per cent in students. 

There’s no way that the appearance of a natural food could possibly be a guide to its nutritional value — how would the walnut know that it’s good for human brains, and why would it care? Pecans, which look a bit like brains, don’t contain the levels of n-3 fatty acids that are supposed to be the beneficial component of walnuts, and fish and flax seeds, which do contain n-3 fatty acids, don’t look like brains.

The story gets two cheers for almost providing a reference: searching on “British Journal of Nutrition walnuts reasoning skills” leads to the paper. It’s a reasonable placebo-controlled randomised experiment, with participants eating banana bread with or without walnuts.  The main problem is that the researchers tested 34 measurements of cognitive function or mood, and found a difference in just one of them.  As they admit

The authors are unable to explain why inference alone was affected by consumption of walnuts and not the other ‘critical thinking’ subtests – recognition of assumption, deduction, interpretation, and evaluation of arguments.

The prior research summarised in the paper shows the same problem, eg,  one dose of walnuts improved one coordination test in rats, but a higher dose improved a different test, and the highest dose didn’t improve anything.

Stat of the Week Winner: August 10 – 16 2013

This week there were 5 nominations.

We’re awarding Nathaniel Wilson’s nomination of the NZ Herald‘s “complete ignorance of how averages work”:

Can I please nominate the New Zealand Herald, for displaying a complete ignorance of how averages work?

“Aucklanders’ rates bills have arrived in letterboxes and the figures
have come as a shock to some homeowers who have seen rises of 10 per
cent – despite the council promising an average increase of 2.9 per
cent.”

Because averages and maximums are not the same thing.

Thomas posted more about that story:

Obviously there’s nothing inconsistent about the average being 2.9% and the maximum being 10%. NZ’s average income is about $48000, but I take home somewhat more than that, and the CEO of Fonterra makes a whole lot more, and he may well not be the maximum. The average and the maximum are different. That’s not a shock.

The other point, that our nominator doesn’t make, is that rate increases are capped at 10%, and that all the people who hit the cap last year already knew that they would be seeing an increase this year, and roughly how much it would be. I know this because I live in Onehunga, where property values have gone up quite a lot, and I’m one of the people with a large rate increase. Since I read the rates notice I received last year I’m not at all shocked. I don’t have to say whether I’m happy or not, but it certainly wasn’t a surprise.

Congratulations Nathaniel, and thank you for the other nominations. Please keep them coming in!

Stat of the Week Competition: August 17 – 23 2013

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 August 23 2013.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of August 17 – 23 2013 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…)

Stat of the Week Competition Discussion: August 17 – 23 2013

If you’d like to comment on or debate any of this week’s Stat of the Week nominations, please do so below!

August 18, 2013

Correlation, genetics, and causation

There’s an interesting piece on cannabis risks at Project Syndicate. One of the things they look at is the correlation between frequent cannabis use and psychosis.  Many people are, quite rightly, unimpressed with the sort of correlation, since it isn’t hard to come up with explanations for psychosis causing cannabis use or for other factors causing both.

However, there is also some genetic data.  The added risk of psychosis seems to be confined to people with two copies of a particular genetic variant in a gene called AKT1. This is harder to explain as confounding (assuming the genetics has been done right), and is one of the things genetics is useful for. This isn’t just a one-off finding; it was found in one study and replicated in another.

On the other hand, the gene AKT1 doesn’t seem to be very active in brain cells, making it more likely that the finding is just a coincidence.  This is one of the things bioinformatics is good for.

In times like these it’s good to remember Ben Goldacre’s slogan “I think you’ll find it’s a bit more complicated than that.”