September 8, 2014

Briefly

  • Interesting maps: a Moral Topography of Portland “The [1913] report found, specified per type of dwelling, only 22 of 80 apartments, merely 5 out of 59 hotels and no more than 71 out of 408 rooming and lodging houses to be ‘moral’.”  If you cynically expected that “immoral” didn’t refer to racial discrimination, rent-gouging, unhygienic conditions, or lack of fire escapes, you were right. (via consumerist.com)

 

  • An interactive display of US lifetime earnings for various groups by education and gender. The underlying data are good, but there’s inevitably an assumption that the correlations with education are broadly a result of education (including social status and networking effects) rather than selection for existing differences.

 

Stat of the Week Competition: September 6 – 12 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 September 12 2014.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of September 6 – 12 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…)

September 2, 2014

NRL Predictions for Round 26

Team Ratings for Round 26

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 11.62 12.35 -0.70
Rabbitohs 10.28 5.82 4.50
Cowboys 8.03 6.01 2.00
Storm 7.09 7.64 -0.50
Sea Eagles 4.77 9.10 -4.30
Broncos 4.50 -4.69 9.20
Warriors 4.09 -0.72 4.80
Panthers 1.92 -2.48 4.40
Dragons 0.35 -7.57 7.90
Bulldogs -2.68 2.46 -5.10
Knights -2.73 5.23 -8.00
Eels -7.17 -18.45 11.30
Raiders -8.58 -8.99 0.40
Titans -8.67 1.45 -10.10
Sharks -9.35 2.32 -11.70
Wests Tigers -15.25 -11.26 -4.00

 

Performance So Far

So far there have been 184 matches played, 107 of which were correctly predicted, a success rate of 58.2%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Bulldogs vs. Rabbitohs Aug 28 14 – 21 -8.90 TRUE
2 Broncos vs. Dragons Aug 29 30 – 22 8.90 TRUE
3 Knights vs. Eels Aug 30 42 – 12 4.50 TRUE
4 Raiders vs. Wests Tigers Aug 30 27 – 12 10.20 TRUE
5 Roosters vs. Storm Aug 30 24 – 12 8.20 TRUE
6 Warriors vs. Titans Aug 31 42 – 0 12.20 TRUE
7 Sea Eagles vs. Panthers Aug 31 26 – 25 8.90 TRUE
8 Cowboys vs. Sharks Sep 01 20 – 19 26.30 TRUE

 

Predictions for Round 26

Here are the predictions for Round 26. 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 Roosters vs. Rabbitohs Sep 04 Roosters 5.80
2 Storm vs. Broncos Sep 05 Storm 7.10
3 Wests Tigers vs. Sharks Sep 06 Sharks -1.40
4 Raiders vs. Eels Sep 06 Raiders 3.10
5 Cowboys vs. Sea Eagles Sep 06 Cowboys 7.80
6 Knights vs. Dragons Sep 07 Knights 1.40
7 Titans vs. Bulldogs Sep 07 Bulldogs -1.50
8 Panthers vs. Warriors Sep 08 Panthers 2.30

 

ITM Cup Predictions for Round 4

Team Ratings for Round 4

Here are the team ratings prior to Round 4, 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
Canterbury 19.69 18.09 1.60
Tasman 12.10 5.78 6.30
Wellington 8.20 10.16 -2.00
Counties Manukau 2.19 2.40 -0.20
Hawke’s Bay 1.75 2.75 -1.00
Waikato 0.77 -1.20 2.00
Auckland 0.31 4.92 -4.60
Otago -1.29 -1.45 0.20
Taranaki -3.68 -3.89 0.20
Southland -5.25 -5.85 0.60
Bay of Plenty -8.38 -5.47 -2.90
Northland -9.09 -8.22 -0.90
Manawatu -9.45 -10.32 0.90
North Harbour -9.93 -9.77 -0.20

 

Performance So Far

So far there have been 22 matches played, 13 of which were correctly predicted, a success rate of 59.1%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Waikato vs. Taranaki Aug 27 17 – 46 8.50 FALSE
2 Canterbury vs. Northland Aug 28 48 – 3 32.80 TRUE
3 Wellington vs. Manawatu Aug 29 21 – 27 21.60 FALSE
4 Counties Manukau vs. Hawke’s Bay Aug 30 21 – 27 4.40 FALSE
5 Southland vs. Otago Aug 30 22 – 33 0.00 FALSE
6 North Harbour vs. Waikato Aug 30 16 – 22 -6.70 TRUE
7 Taranaki vs. Bay of Plenty Aug 31 41 – 3 8.70 TRUE
8 Auckland vs. Tasman Aug 31 16 – 16 -1.80 FALSE

 

Predictions for Round 4

Here are the predictions for Round 4. 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 Manawatu vs. Bay of Plenty Sep 03 Manawatu 2.90
2 Otago vs. Canterbury Sep 04 Canterbury -17.00
3 Tasman vs. Waikato Sep 05 Tasman 15.30
4 Northland vs. Hawke’s Bay Sep 05 Hawke’s Bay -6.80
5 Auckland vs. Wellington Sep 06 Wellington -3.90
6 Taranaki vs. Southland Sep 06 Taranaki 5.60
7 Manawatu vs. Counties Manukau Sep 07 Counties Manukau -7.60
8 Bay of Plenty vs. North Harbour Sep 07 Bay of Plenty 5.50

 

Currie Cup Predictions for Round 5

Team Ratings for Round 5

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
Western Province 5.39 3.43 2.00
Sharks 3.32 5.09 -1.80
Lions 3.02 0.07 3.00
Cheetahs 0.25 0.33 -0.10
Blue Bulls -3.53 -0.74 -2.80
Pumas -7.10 -10.00 2.90
Griquas -8.55 -7.49 -1.10
Kings -12.12 -10.00 -2.10

 

Performance So Far

So far there have been 16 matches played, 14 of which were correctly predicted, a success rate of 87.5%.

Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Pumas vs. Sharks Aug 29 32 – 22 -7.50 FALSE
2 Griquas vs. Cheetahs Aug 30 25 – 36 -2.70 TRUE
3 Blue Bulls vs. Western Province Aug 30 18 – 23 -3.70 TRUE
4 Kings vs. Lions Aug 30 22 – 41 -8.80 TRUE

 

Predictions for Round 5

Here are the predictions for Round 5. 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 Western Province vs. Kings Sep 05 Western Province 22.50
2 Cheetahs vs. Pumas Sep 06 Cheetahs 12.40
3 Sharks vs. Griquas Sep 06 Sharks 16.90
4 Blue Bulls vs. Lions Sep 06 Lions -1.50

 

September 1, 2014

Sometimes there isn’t a (useful) probability

In this week’s Slate Money podcast (starting at about 2:50), there’s an example of a probability puzzle that mathematically trained people tend to get wrong.  In summary, the story is

You’re at a theatre watching a magician. The magician hands a pack of cards to one member of the audience  and asks him to check that it is an ordinary pack, and to shuffle it. He asks another member of the audience to name a card. She says “Ace of Hearts”.  The magician covers his eyes, reaches out to the pack of cards, fumbles around a bit, and pulls out a card. What’s the probability that it is the Ace of Hearts?

It’s very tempting to say 1 in 52, because the framing of the puzzle prompts you to think in terms of equal-probability sampling.  Of course, as Felix Salmon points out, this is the only definitively wrong answer. The guy’s a magician. Why would he be doing this if the probability was going to be 1 in 52?

With an ordinary well-shuffled pack of cards and random selection we do know the probability: if you like the frequency interpretation of probability it’s an unknown number quite close to 1 in 52, if you like the subjective interpretation it should be a distribution of numbers quite close to 1 in 52.

With a magic trick we’d expect the probability (in the frequency sense) to be close to either zero or one, depending on the trick, but we don’t know.  Under the subjective interpretation of probability then you do know what the probability is for you, but you’ve got no real reason to expect it to be similar for other people.

 

Stat of the Week Competition: August 30 – September 5 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 September 5 2014.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of August 30 – September 5 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…)

August 30, 2014

Funding vs disease burden: two graphics

You have probably seen the graphic from vox.comhyU8ohq

 

There are several things wrong with it. From a graphics point of view it doesn’t make any of the relevant comparisons easy. The diameter of the circle is proportional to the deaths or money, exaggerating the differences. And the donation data are basically wrong — the original story tries to make it clear that these are particular events, not all donations for a disease, but it’s the graph that is quoted.

For example, the graph lists $54 million for heart disease, based on the ‘Jump Rope for Heart’ fundraiser. According to Forbes magazine’s list of top charities, the American Heart Association actually received $511 million in private donations in the year to June 2012, almost ten times as much.  Almost as much again came in grants for heart disease research from the National Institutes of Health.

There’s another graph I’ve seen on Twitter, which shows what could have been done to make the comparisons clearer:

BwNxOzdCIAAyIZS

 

It’s limited, because it only shows government funding, not private charity, but it shows the relationship between funding and the aggregate loss of health and life for a wide range of diseases.

There are a few outliers, and some of them are for interesting reasons. Tuberculosis is not currently a major health problem in the US, but it is in other countries, and there’s a real risk that it could spread to the US.  AIDS is highly funded partly because of successful lobbying, partly because it — like TB — is a foreign-aid issue, and partly because it has been scientifically rewarding and interesting. COPD and lung cancer are going to become much less common in the future, as the victims of the century-long smoking epidemic die off.

Depression and injuries, though?

 

Update: here’s how distorted the areas are: the purple number is about 4.2 times the blue number

four-to-one

Flying vs driving costs

To complement the Herald’s flying Air New Zealand vs driving costs for various NZ cities, I thought I’d work out similar comparisons for the Pacific Northwest, where I used to live.  It’s a reasonable comparison — both have relatively sparsely spaced cities, though the roads are better there.

I used Alaska Airlines for the flying costs; they are the main local airline in the region. The costs are the cheapest flight on a random weekday in September — there will be some days and seasons when it’s cheaper or more expensive.  The driving cost  is based on the actual driving distance, not the straight-line distance, and uses the cost per mile specified for business tax deductions.

from to distance (km) US$flying US$driving NZ$flying NZ$driving
1 Seattle Portland 278 368 97 438 116
2 Seattle Spokane 449 398 157 474 187
3 Seattle Calgary 1146 455 401 542 478
4 Seattle Kelowna 507 440 177 524 211
5 Portland Kelowna 785 487 275 580 327
6 Spokane Calgary 698 581 244 692 291

 

The results aren’t that different from NZ, except that the impact of competition is clearer: the Seattle–Calgary flight is much less expensive that you’d predict from the others, probably because there lots of one-stop alternatives via Vancouver.

August 29, 2014

Getting good information to government

On the positive side: there’s a conference of science advisers and people who know about the field here in Auckland at the moment. There’s a blog, and there will soon be videos of the presentations.

On the negative side: Statistics Canada continues to provide an example of how a world-class official statistics agency can go downhill with budget cuts and government neglect.  The latest story is the report on how the Labour Force Survey (which is how unemployment is estimated) was off by 42000 in July. There’s a shorter writeup in Maclean’s magazine, and their archive of stories on StatsCan is depressing reading.