Posts from April 2015 (35)

April 30, 2015

Half the median

From the Herald, under the headline “First-home buyers nab new home subsidies”

The AMP 360 First Home Buyer Affordability Report, published yesterday, shows housing remains “affordable” in all regions except Auckland and Queenstown.

The index tracked the lower-quartile (halfway between zero and the median) selling prices of houses and the median after-tax income of typical first-home buyers (a working couple both aged 25 to 29).

The lower quartile is not “halfway between zero and the median”. The lower quartile is the price that 25% of sales are below and 75% are above.

What’s more, the interpretation is obviously wrong. If you take the first Google link, at interest.co.nz, there’s a table by region, and it lists the lower quartile price for Auckland metro as $587000 and Auckland City as $681000. The Herald reports the median price often enough that they must know it isn’t over a million dollars.

While I’m complaining: the data table at interest.co.nz is in a state of sin. It’s not actually a data table; it’s a picture of a data table, a GIF image.

April 29, 2015

NRL Predictions for Round 9

Team Ratings for Round 9

The basic method is described on my Department home page.

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 7.59 9.09 -1.50
Cowboys 7.39 9.52 -2.10
Rabbitohs 6.39 13.06 -6.70
Broncos 4.48 4.03 0.40
Storm 4.19 4.36 -0.20
Dragons 1.27 -1.74 3.00
Warriors 0.70 3.07 -2.40
Panthers 0.64 3.69 -3.10
Knights -1.91 -0.28 -1.60
Sea Eagles -1.94 2.68 -4.60
Bulldogs -2.06 0.21 -2.30
Raiders -3.64 -7.09 3.40
Titans -4.31 -8.20 3.90
Wests Tigers -5.64 -13.13 7.50
Sharks -5.72 -10.76 5.00
Eels -6.09 -7.19 1.10

 

Performance So Far

So far there have been 64 matches played, 30 of which were correctly predicted, a success rate of 46.9%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Bulldogs vs. Wests Tigers Apr 24 14 – 38 11.30 FALSE
2 Broncos vs. Eels Apr 25 28 – 16 13.90 TRUE
3 Knights vs. Cowboys Apr 25 24 – 26 -7.00 TRUE
4 Roosters vs. Dragons Apr 25 12 – 14 11.20 FALSE
5 Storm vs. Sea Eagles Apr 25 10 – 12 11.00 FALSE
6 Warriors vs. Titans Apr 25 28 – 32 11.10 FALSE
7 Panthers vs. Sharks Apr 26 26 – 18 9.60 TRUE
8 Rabbitohs vs. Raiders Apr 26 22 – 30 16.40 FALSE

 

Predictions for Round 9

Here are the predictions for Round 9. 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 Broncos vs. Panthers May 08 Broncos 6.80
2 Roosters vs. Wests Tigers May 08 Roosters 16.20
3 Cowboys vs. Bulldogs May 09 Cowboys 12.40
4 Raiders vs. Titans May 09 Raiders 3.70
5 Sharks vs. Warriors May 09 Warriors -2.40
6 Eels vs. Storm May 10 Storm -7.30
7 Sea Eagles vs. Knights May 10 Sea Eagles 3.00
8 Rabbitohs vs. Dragons May 11 Rabbitohs 8.10

 

Super 15 Predictions for Round 12

Team Ratings for Round 12

The basic method is described on my Department home page.

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
Crusaders 8.05 10.42 -2.40
Waratahs 6.58 10.00 -3.40
Hurricanes 5.66 2.89 2.80
Chiefs 4.75 2.23 2.50
Brumbies 3.65 2.20 1.40
Bulls 3.63 2.88 0.80
Stormers 3.44 1.68 1.80
Highlanders 0.59 -2.54 3.10
Blues -0.06 1.44 -1.50
Sharks -0.50 3.91 -4.40
Lions -3.42 -3.39 -0.00
Rebels -5.09 -9.53 4.40
Force -5.25 -4.67 -0.60
Cheetahs -6.48 -5.55 -0.90
Reds -8.56 -4.98 -3.60

 

Performance So Far

So far there have been 73 matches played, 48 of which were correctly predicted, a success rate of 65.8%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Chiefs vs. Force Apr 24 35 – 27 15.50 TRUE
2 Brumbies vs. Highlanders Apr 24 31 – 18 6.70 TRUE
3 Crusaders vs. Blues Apr 25 29 – 15 11.70 TRUE
4 Waratahs vs. Rebels Apr 25 18 – 16 17.50 TRUE
5 Lions vs. Cheetahs Apr 25 34 – 29 7.50 TRUE
6 Stormers vs. Bulls Apr 25 15 – 13 4.20 TRUE
7 Reds vs. Hurricanes Apr 26 19 – 35 -8.80 TRUE

 

Predictions for Round 12

Here are the predictions for Round 12. 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 Highlanders vs. Sharks May 01 Highlanders 5.60
2 Brumbies vs. Waratahs May 01 Brumbies 1.10
3 Blues vs. Force May 02 Blues 9.70
4 Hurricanes vs. Crusaders May 02 Hurricanes 1.60
5 Rebels vs. Chiefs May 02 Chiefs -5.30
6 Cheetahs vs. Stormers May 02 Stormers -5.90
7 Bulls vs. Lions May 02 Bulls 11.00

 

April 27, 2015

Stat of the Week Competition: April 25 – May 1 2015

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 May 1 2015.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of April 25 – May 1 2015 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: April 25 – May 1 2015

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

April 24, 2015

Graph of the week

Via @ian_sample on Twitter, a UK election ad

libdem

The basic approach has been traditional with the Liberal Party since before they merged with the Social Democratic Party; the accuracy has been, let’s say, variable. In this example, the 19-point difference between Labour and Liberal Democrats is shown as larger smaller than the 5-point difference between Liberal Democrats and Conservatives.

Here’s what those numbers really look like:
dulwich

 

 

April 23, 2015

Genetic determinism: mosquito bite edition

Q: Did you see that being bitten by mosquitoes is genetic?

A: What? Being outside without mosquito repellent, especially in the evening, is genetic now?

Q: No.

A: Living in places with lots little pools of standing water in the summer is genetic?

Q: No

A: Having wire mesh screens on your windows is genetic?

Q: Ok, yes, very droll. No, “Scientists have found that the chance of being bitten by a mosquito is written in the genes and some people are just more likely to be attacked no matter how much insect repellent they slap on.” What repellent did they use? DEET or one of those lemon things?

A: You mean this paper in PLoS One. They didn’t use any repellent.

Q: So they don’t really know that the usual repellents don’t work for some people because of genetics?

A: No. They didn’t look at that at all.

Q: Should I pretend to be shocked?

A: Don’t bother for now.

Q: Ok, who got bitten by the mosquitoes? You’re not going to tell me it was mice again, are you?

A: No, no mice, but also no bites. The researchers took smell samples from volunteers’ hands, and measured which samples the mosquitoes flew towards?

Q: How did they choose the people?

A: The comparisons were all within sets of female twins.

Q: Not really a representative population sample, was it?

A: It’s a reasonable approach for testing if there’s a genetic component to something: identical twins should be more similar than non-identical twins.

Q: And if it was completely genetic, identical twins would be identical, right?

A: Yes.

Q: So when they say “the mosquitoes would bite none, or both of the identical twins, but the results were mixed for the non-identical twins” that means it was completely genetic?

A:  No, the implication doesn’t work backwards that way. And also that’s a pretty serious exaggeration of what they found.

Q: But at least they did find a genetic component? Some people make a natural repellent?

A: There’s pretty good evidence of a genetic component, even a fairly big one. The article makes it clear that they don’t know whether some people make a repellent or whether other people make an attractant: “It is not known whether the differences between MZ and DZ twins is due to the presence or absence of attractive or repellent chemicals,”

Q: That seems pretty unambiguous, but it isn’t what the newspaper says.

A: No, it isn’t.

Q: Should I pretend to be shocked now?

A: I’d wait and get it over with all at once.

Q: The newspaper has a link to a related story. Should we read that?

A: Sure. Why not?

Q: It says “most of this research uses only one mosquito species. Switch to another species and the results are likely to be different.” Huh. I didn’t know that. Which species did the twin research use?

A: Aedes aegypti, a tropical mosquito (originally from Africa) that spreads yellow fever and dengue.

Q: Is Aedes aegypti common in New Zealand?

A: No, it could live in Northland but the biosecurity folks have stopped it invading so far.

Q: How about in the UK, where the news story came from initially?

A: No, the UK is too cold.

Q: So it’s not really relevant to mosquito bites for their readers?

A: It’s still important as a global health issue, but no, not all that relevant from a mundane viewpoint of actual day-to-day utility.

Q: Ok, is now the time to pretend to be shocked?

A: If it makes you feel better, sure.

 

 

Don’t hold your breath

The story at the Herald (from the Telegraph) starts off dramatically, then walks its claims back, but not back far enough.

First off, the dramatic claim:

Asthma could be cured within five years after scientists discovered what causes the condition and how to switch it off.

Then the description of what the researchers actually did: ‘identified which cells cause the airways to narrow when triggered by irritants like pollution.’ That’s less dramatic; it’s also not true. The researchers looked at the same cells everyone else looks at. What they did was show that a molecule on the surface of these cells (“calcium-sensing receptor”) appears to be central to the triggering.

The other main selling point:

Crucially, drugs already exist which can deactivate the cells. They are known as calcilytics and are used to treat people with osteoporosis.

In fact, they aren’t used to treat people with osteoporosis. As the research paper says, they “were initially developed as anti-osteoporotic drugs and reached phase 2 clinical trials for this purpose”. That is, they didn’t work. They might work for asthma, but it’s not like finding a new use for an actually-marketed drug — especially as the drugs would have to be inhaled, something that hasn’t been studied in humans at all. If everything goes right, it might be possible to get the safety and effectiveness studies done and the drug approved in five years, but that’s pretty optimistic.

Also, the drugs are promising, but not as promising as the story says:

But when calcilytic drugs are inhaled, it deactivates the cells and stops all symptoms.

Most of the research was either in isolated cells (which don’t have symptoms) or in non-asthmatic mice. One experiment, in asthmatic mice, showed a reduction in airway resistance with the drugs, but not down to the level in non-asthmatic mice.  And airway resistance isn’t the same as symptoms. And these are mice.

A comment from Asthma UK raises another point that hasn’t appeared so far

“Five per cent of people with asthma don’t respond to current treatments so research breakthroughs could be life changing for hundreds of thousands of people. If this research proves successful we may be just a few years away from a new treatment for asthma”

Inhaled steroids for asthma are already pretty effective. While they aren’t enough for everyone, a more common problem is the hassle of using the inhaler twice a day every day when you’re healthy, to prevent relatively rare asthma attacks.  The new drugs will likely have the same problem  — it’s a treatment, not a cure — and their real potential isn’t for everyone with asthma, but for the relatively small subset where current treatments don’t work.

 

April 22, 2015

Briefly

  • From the BBC: The illusion of control and how it makes us feel better. That’s part of the benefit of real-time transit prediction: knowing how long you have to wait makes you feel more in control, as long as the system is good enough not to shatter the illusion.
  • Social networks to visualise relationships between allegedly-independent landlords

NRL Predictions for Round 8

Team Ratings for Round 8

The basic method is described on my Department home page.

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.52 9.09 -0.60
Rabbitohs 8.05 13.06 -5.00
Cowboys 7.76 9.52 -1.80
Storm 5.11 4.36 0.80
Broncos 4.63 4.03 0.60
Warriors 1.75 3.07 -1.30
Panthers 0.77 3.69 -2.90
Dragons 0.35 -1.74 2.10
Bulldogs 0.31 0.21 0.10
Knights -2.28 -0.28 -2.00
Sea Eagles -2.85 2.68 -5.50
Raiders -5.31 -7.09 1.80
Titans -5.36 -8.20 2.80
Sharks -5.85 -10.76 4.90
Eels -6.24 -7.19 0.90
Wests Tigers -8.00 -13.13 5.10

 

Performance So Far

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

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Bulldogs vs. Sea Eagles Apr 17 28 – 16 5.20 TRUE
2 Dragons vs. Broncos Apr 17 12 – 10 -1.90 FALSE
3 Cowboys vs. Warriors Apr 18 28 – 24 11.00 TRUE
4 Storm vs. Roosters Apr 18 17 – 16 -0.70 FALSE
5 Titans vs. Panthers Apr 18 32 – 6 -7.60 FALSE
6 Knights vs. Eels Apr 19 22 – 28 9.10 FALSE
7 Wests Tigers vs. Raiders Apr 19 22 – 30 1.70 FALSE
8 Sharks vs. Rabbitohs Apr 20 18 – 10 -13.90 FALSE

 

Predictions for Round 8

Here are the predictions for Round 8. 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 Bulldogs vs. Wests Tigers Apr 24 Bulldogs 11.30
2 Broncos vs. Eels Apr 25 Broncos 13.90
3 Knights vs. Cowboys Apr 25 Cowboys -7.00
4 Roosters vs. Dragons Apr 25 Roosters 11.20
5 Storm vs. Sea Eagles Apr 25 Storm 11.00
6 Warriors vs. Titans Apr 25 Warriors 11.10
7 Panthers vs. Sharks Apr 26 Panthers 9.60
8 Rabbitohs vs. Raiders Apr 26 Rabbitohs 16.40