Posts from June 2014 (44)

June 10, 2014

Eat your greens

Stuff has a story about ‘Powerhouse Fruits and Vegetables”.  They get points for linking to the source, and for pointing out that although

“The rankings provide clarity on the nutrient quality of the different foods

the rankings are quite different from other rankings that are supposed to do the same thing.

They don’t point out that it’s silly to list scores to four digit accuracy when nutrient content varies enough to make the first digit somewhat unreliable.They also don’t point out that these are nutrient scores not per serving, but per 100 Calories of the food. Google thinks watercress has about 11 Calories/100g, so that’s 900g of watercress. The data are for raw watercress — the research paper doesn’t say how much the score goes down if you stir-fry it, Chinese-style.

If you much through a couple of pounds of watercress, it’s not surprising you’d pick up a few nutrients along the way. The applicability of this fact to NZ daily life must be a bit limited, though.

June 9, 2014

Sticking it to ACC

From Mark Hanna on Twitter, ACC expenditures on acupuncture (the sources are in the Twitter conversation)

acupuncture

 

The graph shows three things. Firstly, there was a review promised. Second, the expenditure on acupuncture is vastly different from the projections. Third, it’s getting to be a moderately large sum of money.

Comparing to the 2012 Pharmac report (PDF, p5), there were only seven prescription items where Pharmac spends more per year than the $17 million ACC spent on acupuncture that year (and one about the same). Things like diabetes test strips and the breast-cancer drug Herceptin.

I’m not as opposed as Mark to spending taxpayer money on the placebo effect, but at some point you have to wonder whether there might be more cost-effective ways to get it.

Chasing factoids

The Herald says

Almost four in 10 young UK adults describe themselves as digital addicts, according to research published by Foresters, the financial services company.

The story does quote an independent expert who is relatively unimpressed with the definition of ‘digital addict’, but it doesn’t answer the question ‘what sort of research?”

Via Google, I found a press release of a digital addiction survey promoted by Foresters. It’s not clear if the current story is based on a new press release from this survey or a new version of the survey, but the methodology is presumably similar.

So, what is the methodology?

Over 1,100 people across the UK responded to an online survey in November 2013 , conducted by Wriglesworth Research

There’s also a related press release from Wriglesworth, but without any more methodological detail. If I Google for “wriglesworth survey”, this is what comes up

wriglesworth

That is, the company is at least in the habit of conducting self-selected online polls, advertised on web forums and Twitter.

I tried, but I couldn’t find any evidence that the numbers in this online survey were worth the paper they aren’t written on.

Stat of the Week Competition: June 7 – 13 2014

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 June 13 2014.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of June 7 – 13 2014 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: June 7 – 13 2014

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

June 8, 2014

Foreign drivers

From the ChCh Press

Foreign drivers cause more fatal and injury crashes in the South Island than the national average – and the West Coast is the worst spot.

They don’t actually mean “more,” they mean “a higher proportion of”.

New Zealand Transport Agency (NZTA) safety directions chief adviser Lisa Rossiter said its crash statistics for the past 10 years showed foreign drivers were involved in about 6 per cent of all fatal or injury crashes in New Zealand, and were at fault in about 2 per cent.

On average, short-term visitors make up roughly 2.5% of people in New Zealand (2.78 million visitors in the year to April 2014, median visit of 9 days, so I’m guessing mean visit about two weeks). About another 2% of people in New Zealand are international students, who are at least sometimes counted as foreign drivers.

So, the risk seems to be a bit higher for foreign drivers, but probably not twice as high. Some of the excess can probably be explained by age: international students, backpackers, and drunk Australians in Queenstown are younger than the population average.

It’s different in parts of the South Island

The tourist hot spots of Otago and the West Coast fared worst.

A foreign driver was identified as a factor in 13 per cent of fatal crashes on the coast, and 5 per cent of fatal crashes in Otago from 2004 to 2013.

A lot of this must be because tourists are over-represented in tourist hot spots: that’s what ‘tourist hot-spot’ means. The proportion of short-term visitors is about 2.5% nationwide, but it’s probably rather lower that than in Gisborne and rather higher on the West Coast.

It’s also worth noting that “identified as a factor” is fairly weak. If you go to the Ministry of Transport reports and add up the percentage of times different factors were involved in a crash, you get a lot more than 100% (for the 2010 report I get 225% for fatal crashes and 185% for injury crashes)

For crashes involving a tourist driver and more than one car, the foreign driver was fully or partly responsible two out of three times.

This at least gets rid of the denominator problem, but the “partly” responsible is still a problem. We aren’t told what proportion of the time the local driver was fully or partly responsible — based on the information given, that could also be two out of three times.

It’s quite likely that foreign drivers are at higher risk, especially those from countries that drive on the right, but the problem is not a big fraction of the NZ road toll. It’s worth considering things that can sensibly be done to reduce it — which doesn’t include withdrawing from the U.N. Convention on Road Traffic — but if you’re trying to stop road deaths it may be more effective to concentrate on interventions that don’t just affect foreign drivers.  Clearer signage, guard rails and median barriers, separated bike lanes, improved public transport… there are many things that might knock a percentage point off road deaths more easily than targetting foreign drivers.

Briefly

June 5, 2014

NZ interactive graphic examples

 

  • From The Wireless, a story with maps of voter turnout and registration rates for younger people (RadioNZ might not be where you expect interactive graphics, but there it is). If I were being picky, I would say the popup labels are too big relative to the size of the map window.

Gender, coding, and measurement error

Alyssa Frazee, a PhD student in biostatistics at Johns Hopkins, has an interesting post looking at gender of programmers using the Github code repository. Github users have a profile, which includes a first name, and there programs that attempt to classify first names by gender.

This graph (click to embiggen, as usual) shows the guessed gender distribution for software with at least five ‘stars’ (likes, sort of) across programming languages. Orange is male, green is female, grey is “don’t know”

coder-gender

The main message is obvious. Women either aren’t putting code on Github or are using non-gender-revealing or male-associated names.

The other point is that the language with the most female coders seems to be R, the statistical programming language originally developed in Auckland, which has 5.5%.  Sadly, 3.9% of that is code by the very prolific Hadley Wickham (also originally developed in Auckland), who isn’t female. Measurement error, as I’ve written before, has a much bigger impact on rare categories than common ones.

June 4, 2014

NRL Predictions for Round 13

Team Ratings for Round 13

The basic method is described on my Department home page. I have made some changes to the methodology this year, including shrinking the ratings between seasons.

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
Roosters 8.18 12.35 -4.20
Rabbitohs 6.54 5.82 0.70
Cowboys 5.41 6.01 -0.60
Bulldogs 5.12 2.46 2.70
Sea Eagles 3.52 9.10 -5.60
Broncos 3.51 -4.69 8.20
Warriors 2.57 -0.72 3.30
Storm 1.40 7.64 -6.20
Panthers 1.34 -2.48 3.80
Knights -2.01 5.23 -7.20
Titans -2.18 1.45 -3.60
Wests Tigers -5.17 -11.26 6.10
Raiders -5.71 -8.99 3.30
Sharks -6.52 2.32 -8.80
Eels -7.34 -18.45 11.10
Dragons -10.46 -7.57 -2.90

 

Performance So Far

So far there have been 91 matches played, 51 of which were correctly predicted, a success rate of 56%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Panthers vs. Eels May 30 38 – 12 10.30 TRUE
2 Roosters vs. Raiders May 31 26 – 12 19.50 TRUE
3 Cowboys vs. Storm May 31 22 – 0 5.50 TRUE
4 Warriors vs. Knights Jun 01 38 – 18 6.60 TRUE
5 Broncos vs. Sea Eagles Jun 01 36 – 10 -0.00 FALSE
6 Rabbitohs vs. Dragons Jun 02 29 – 10 22.20 TRUE

 

Predictions for Round 13

Here are the predictions for Round 13. 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 Sea Eagles vs. Bulldogs Jun 06 Sea Eagles 2.90
2 Eels vs. Cowboys Jun 06 Cowboys -8.30
3 Titans vs. Panthers Jun 07 Titans 1.00
4 Dragons vs. Sharks Jun 07 Dragons 0.60
5 Rabbitohs vs. Warriors Jun 07 Rabbitohs 8.50
6 Knights vs. Wests Tigers Jun 08 Knights 7.70
7 Storm vs. Roosters Jun 08 Roosters -2.30
8 Raiders vs. Broncos Jun 09 Broncos -4.70