Posts from July 2015 (36)

July 15, 2015

NRL Predictions for Round 19

Team Ratings for Round 19

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.23 9.09 -0.90
Broncos 7.81 4.03 3.80
Cowboys 5.13 9.52 -4.40
Rabbitohs 2.97 13.06 -10.10
Warriors 2.54 3.07 -0.50
Storm 2.00 4.36 -2.40
Panthers 0.60 3.69 -3.10
Bulldogs 0.10 0.21 -0.10
Dragons -0.01 -1.74 1.70
Sea Eagles -0.26 2.68 -2.90
Raiders -1.62 -7.09 5.50
Eels -2.14 -7.19 5.00
Sharks -3.00 -10.76 7.80
Knights -5.58 -0.28 -5.30
Wests Tigers -7.54 -13.13 5.60
Titans -7.91 -8.20 0.30

 

Performance So Far

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

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Raiders vs. Knights Jul 10 36 – 22 5.80 TRUE
2 Bulldogs vs. Broncos Jul 11 8 – 16 -4.10 TRUE
3 Warriors vs. Storm Jul 12 28 – 14 3.00 TRUE
4 Sharks vs. Dragons Jul 12 28 – 8 -3.20 FALSE
5 Titans vs. Sea Eagles Jul 13 6 – 38 -0.40 TRUE

 

Predictions for Round 19

Here are the predictions for Round 19. 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 Storm vs. Panthers Jul 17 Storm 4.40
2 Eels vs. Bulldogs Jul 17 Eels 0.80
3 Dragons vs. Rabbitohs Jul 18 Dragons 0.00
4 Knights vs. Titans Jul 18 Knights 5.30
5 Raiders vs. Sharks Jul 18 Raiders 4.40
6 Roosters vs. Warriors Jul 19 Roosters 9.70
7 Broncos vs. Wests Tigers Jul 19 Broncos 18.40
8 Sea Eagles vs. Cowboys Jul 20 Cowboys -2.40

 

A modest proposal

Positive-looking results are more likely to be published in scientific journals, much more likely to get press releases, and hugely more likely to end up in the news. This trend is exaggerated if the size of the association is large.  The most likely way to get a large association is to do a very small study and be lucky enough (by chance or sloppiness) to overestimate the strength of association, so the news selects for small, early-stage, and poorly-done research.

One way to reduce this bias would be for media to quote the lower (less impressive) end of the uncertainty interval (confidence interval, credibility interval) rather than quoting the midpoint of the interval as scientists usually do. In small studies, the lower end of the interval will be close to no association, even if the midpoint of the interval is a strong association. In large, well-designed studies the change in practice would have little impact.

Isn’t that biased?

If you assume that in most cases the association being tested is smaller that the uncertainty in the experiment (ie, close to zero), and that positive results are more likely to make the news then it’s less biased than using the middle of the interval.

Scientists would’t be able to use tests that don’t produce confidence intervals.

How sad. Anyway, they would, they just wouldn’t be able to get their press releases into the papers

Press releases often don’t report uncertainty estimates.

So those ones wouldn’t get in the papers. The silver linings are just piling up.

 

 

Bogus poll story, again

From the Herald

[Juwai.com] has surveyed its users and found 36 per cent of people spoken to bought property in New Zealand for investment.

34 per cent bought for immigration, 18 per cent for education and 7 per cent lifestyle – a total of 59 per cent.

There’s no methodology listed, and this is really unlikely to be anything other than a convenience sample, not representative even of users of this one particular website.

As a summary of foreign real-estate investment in Auckland, these numbers are more bogus than the original leak, though at least without the toxic rhetoric.

July 14, 2015

Another test for Alzheimer’s?

The Herald (from the Telegraph) has a story today about a Google Science Fair contestant, under the headline “Has a 15-year-old found a way to test for Alzheimer’s?“. This is the sort of science story it’s good to see in the papers, but it would be better if it were more accurate.

Krtin Nithiyanandam’s research is impressive even if you ignore the fact that he was only 14. But claiming he

 has developed a “Trojan horse” antibody which can penetrate the brain and attach itself to the toxic proteins present in the disease’s early stages.

is a bit of an exaggeration.

The project write-up describes how he attached antibodies to fluorescent quantum dots. These, cleverly, fluoresce at a near-infrared wavelength which passes through tissue, skin, and bone.  If the project works, it would be possible to screen for Alzheimer’s without even a lumbar puncture.

That’s still ‘if’. Despite what the story says, Krtin hasn’t tested the antibody on any actual brains. Theoretically, it binds to a transporter protein in the right way to penetrate the brain, but it needs testing. It also needs testing for toxicity — if it’s going to be used for screening, it will be injected into large numbers of healthy people, so has to be safe. After all that, it would have to be tested for predictive accuracy: to be useful, the test would have to have a very low false-positive rate. And, on top of that, for testing to really be helpful there would need to be some treatment that showed some sign of actually working. We’re not there yet.

You might also wonder how this relates to the four other early Alzheimer’s tests the Herald has reported on in the past year or so, or the other two proposed by Google Science Fair finalists.  Testing for Alzheimer’s has been an area with a lot of recent research, which is going to be useful if we ever have promising drugs to test.

 

July 13, 2015

Stat of the Week Competition: July 11 – 17 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 July 17 2015.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of July 11 – 17 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: July 11 – 17 2015

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

July 11, 2015

What’s in a name?

The Herald was, unsurprisingly, unable to resist the temptation of leaked data on house purchases in Auckland.  The basic points are:

  • Data on the names of buyers for one agency, representing 45% fo the market, for three months
  • Based on the names, an estimate that nearly 40% of the buyers were of Chinese ethnicity
  • This is more than the proportion of people of Chinese ethnicity in Auckland
  • Oh Noes! Foreign speculators! (or Oh Noes! Foreign investors!)

So, how much of this is supported by the various data?

First, the surnames.  This should be accurate for overall proportions of Chinese vs non-Chinese ethnicity if it was done carefully. The vast majority of people called, say, “Smith” will not be Chinese; the vast majority of people called, say, “Xu” will be Chinese; people called “Lee” will split in some fairly predictable proportion.  The same is probably true for, say, South Asian names, but Māori vs non-Māori would be less reliable.

So, we have fairly good evidence that people of Chinese ancestry are over-represented as buyers from this particular agency, compared to the Auckland population.

Second: the representativeness of the agency. It would not be at all surprising if migrants, especially those whose first language isn’t English, used real estate agents more than people born in NZ. It also wouldn’t be surprising if they were more likely to use some agencies than others. However, the claim is that these data represent 45% of home sales. If that’s true, people with Chinese names are over-represented compared to the Auckland population no matter how unrepresentative this agency is. Even if every Chinese buyer used this agency, the proportion among all buyers would still be more than 20%.

So, there is fairly good evidence that people of Chinese ethnicity are buying houses in Auckland at a higher rate than their proportion of the population.

The Labour claim extends this by saying that many of the buyers must be foreign. The data say nothing one way or the other about this, and it’s not obvious that it’s true. More precisely, since the existence of foreign investors is not really in doubt, it’s not obvious how far it’s true. The simple numbers don’t imply much, because relatively few people are housing buyers: for example, house buyers named “Wang” in the data set are less than 4% of Auckland residents named “Wang.” There are at least three other competing explanations, and probably more.

First, recent migrants are more likely to buy houses. I bought a house three years ago. I hadn’t previously bought one in Auckland. I bought it because I had moved to Auckland and I wanted somewhere to live. Consistent with this explanation, people with Korean and Indian names, while not over-represented to the same extent are also more likely to be buying than selling houses, by about the same ratio as Chinese.

Second, it could be that (some subset of) Chinese New Zealanders prefer real estate as an investment to, say, stocks (to an even greater extent than Aucklanders in general).  Third, it could easily be that (some subset of) Chinese New Zealanders have a higher savings rate than other New Zealanders, and so have more money to invest in houses.

Personally, I’d guess that all these explanations are true: that Chinese New Zealanders (on average) buy both homes and investment properties more than other New Zealanders, and that there are foreign property investors of Chinese ethnicity. But that’s a guess: these data don’t tell us — as the Herald explicitly points out.

One of the repeated points I  make on StatsChat is that you need to distinguish between what you measured and what you wanted to measure.  Using ‘Chinese’ as a surrogate for ‘foreign’ will capture many New Zealanders and miss out on many foreigners.

The misclassifications aren’t just unavoidable bad luck, either. If you have a measure of ‘foreign real estate ownership’ that includes my next-door neighbours and excludes James Cameron, you’re doing it wrong, and in a way that has a long and reprehensible political history.

But on top of that, if there is substantial foreign investment and if it is driving up prices, that’s only because of the artificial restrictions on the supply of Auckland houses. If Auckland could get its consent and zoning right, so that more money meant more homes, foreign investment wouldn’t be a problem for people trying to find somewhere to live. That’s a real problem, and it’s one that lies within the power of governments to solve.

July 9, 2015

Followup: vitamin D and diabetes

Quite some time ago, I wrote about a story on vitamin D and diabetes:

A: Someone needs to do a randomized trial, where half the participants get vitamin D and half get a dummy pill. If the effect is real, fewer people getting vitamin D will end up with diabetes.

Q: That sounds like a good idea. Is someone doing a trial?

A: Yes, Professor Peter Ebeling, of the the University of Melbourne.

Q: Is there some useful website where I can find more information about the trial?

A: Indeed.

Q: Will it work?

A: No.

Q: Are you sure?

A: No, that’s why we need the trial.[…]

While the clinical trial registry hasn’t been updated, there are now published results from this trial.  The researchers didn’t get to their planned 160 participants; they gave up at 95 because of slow recruitment.  Even so, if the results had been as dramatic as in the observational studies, they would have been able to see the benefit.

They didn’t:

In this 6-month RCT of vitamin D and calcium supplementation in which over 90% of the participants reached the target serum 25(OH)D concentration of 75 nmol/L, there was no effect of supplementation on any measure of insulin sensitivity, insulin secretion or β-cell function in multi-ethnic vitamin D-deficient individuals at risk of type 2 diabetes (with prediabetes or an AUSDRISK score ≥15).

These results are no fun, so they have not received the same media attention as the observational correlations that prompted the trial, even though they are more reliable and more relevant to individual health choices.

Interesting graph of the day

From Matt Levine at Bloomberg

nyse

This is a graph of cumulative US stock trades today. The pink circle is centred at 11:32am, when the New York Stock Exchange had technical problems and shut down. Notice how nothing happens: the computers adapt very quickly to having a slightly smaller range of places to trade. As Levine puts it:

“For the most part the system is muddling along, relatively normally,” says a guy, and presumably if you asked a computer it would be even more chill.

July 8, 2015

NRL Predictions for Round 18

Team Ratings for Round 18

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.23 9.09 -0.90
Broncos 7.52 4.03 3.50
Cowboys 5.13 9.52 -4.40
Rabbitohs 2.97 13.06 -10.10
Storm 2.78 4.36 -1.60
Warriors 1.76 3.07 -1.30
Dragons 1.57 -1.74 3.30
Panthers 0.60 3.69 -3.10
Bulldogs 0.38 0.21 0.20
Eels -2.14 -7.19 5.00
Raiders -2.21 -7.09 4.90
Sea Eagles -2.38 2.68 -5.10
Sharks -4.58 -10.76 6.20
Knights -4.99 -0.28 -4.70
Titans -5.78 -8.20 2.40
Wests Tigers -7.54 -13.13 5.60

 

Performance So Far

So far there have been 122 matches played, 69 of which were correctly predicted, a success rate of 56.6%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Panthers vs. Rabbitohs Jul 03 20 – 6 -1.50 FALSE
2 Dragons vs. Cowboys Jul 04 12 – 18 0.40 FALSE
3 Sea Eagles vs. Sharks Jul 05 28 – 16 4.10 TRUE
4 Wests Tigers vs. Eels Jul 06 16 – 28 -0.80 TRUE

 

Predictions for Round 18

Here are the predictions for Round 18. 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 Raiders vs. Knights Jul 10 Raiders 5.80
2 Bulldogs vs. Broncos Jul 11 Broncos -4.10
3 Warriors vs. Storm Jul 12 Warriors 3.00
4 Sharks vs. Dragons Jul 12 Dragons -3.20
5 Titans vs. Sea Eagles Jul 13 Sea Eagles -0.40
6 Panthers vs. Roosters Jul 11 Roosters -4.60