November 19, 2019

How many renters?

The 1 in 3 figure, as Tava Olsen reminded us on Twitter, is the proportion of homes that are rented.  The proportion of people is probably higher, but it’s surprisingly hard to tell. I’m going to outsource this to me from 2017, when it was a Stat-of-the-Week nomination.

November 12, 2019

The Bird of the Year race as a data visualisation!

The Bird of the Year contest, run by wildlife advocate Forest & Bird, asks the public to vote for their favourite New Zealand native bird. People get very excited by this, with campaigns coalescing around particular birds and much trash-talk between rival camps.

This year, the race was between the kākāpō and the hoiho or yellow-eyed penguin. Find out which bird won and what voting looked like on the way there in a neat little data visualisation by Yvan Richard of Dragonfly Data Science here. Read a story about this year’s race here. #BirdoftheYear

 

Rugby Premiership Predictions for Round 5

 

 

Team Ratings for Round 5

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
Saracens 8.50 9.34 -0.80
Exeter Chiefs 6.09 7.99 -1.90
Northampton Saints 1.92 0.25 1.70
Sale Sharks 1.42 0.17 1.20
Gloucester 0.92 0.58 0.30
Bath 0.30 1.10 -0.80
Bristol -0.32 -2.77 2.50
Wasps -0.98 0.31 -1.30
Harlequins -1.56 -0.81 -0.80
Worcester Warriors -2.26 -2.69 0.40
Leicester Tigers -3.48 -1.76 -1.70
London Irish -4.33 -5.51 1.20

 

Performance So Far

So far there have been 24 matches played, 18 of which were correctly predicted, a success rate of 75%.
Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Sale Sharks vs. Wasps Nov 09 28 – 18 6.30 TRUE
2 Bath vs. Northampton Saints Nov 10 22 – 13 2.00 TRUE
3 Gloucester vs. Saracens Nov 10 12 – 21 -2.30 TRUE
4 Harlequins vs. Worcester Warriors Nov 10 14 – 19 6.50 FALSE
5 London Irish vs. Leicester Tigers Nov 11 36 – 11 1.30 TRUE
6 Exeter Chiefs vs. Bristol Nov 11 17 – 20 12.60 FALSE

 

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 Bath vs. Saracens Nov 30 Saracens -3.70
2 Exeter Chiefs vs. Wasps Dec 01 Exeter Chiefs 11.60
3 Northampton Saints vs. Leicester Tigers Dec 01 Northampton Saints 9.90
4 Worcester Warriors vs. Sale Sharks Dec 01 Worcester Warriors 0.80
5 Bristol vs. London Irish Dec 02 Bristol 8.50
6 Harlequins vs. Gloucester Dec 02 Harlequins 2.00

 

Pro14 Predictions for Round 7

Team Ratings for Round 7

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
Leinster 14.50 12.20 2.30
Munster 9.42 10.73 -1.30
Glasgow Warriors 7.88 9.66 -1.80
Connacht 3.09 2.68 0.40
Scarlets 3.07 3.91 -0.80
Ulster 2.34 1.89 0.40
Edinburgh 2.07 1.24 0.80
Cheetahs 0.44 -3.38 3.80
Cardiff Blues 0.12 0.54 -0.40
Ospreys -0.84 2.80 -3.60
Treviso -1.63 -1.33 -0.30
Dragons -8.82 -9.31 0.50
Southern Kings -13.67 -14.70 1.00
Zebre -17.98 -16.93 -1.00

 

Performance So Far

So far there have been 42 matches played, 35 of which were correctly predicted, a success rate of 83.3%.
Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Connacht vs. Leinster Nov 09 11 – 42 -4.60 TRUE
2 Edinburgh vs. Dragons Nov 09 20 – 7 18.40 TRUE
3 Ospreys vs. Southern Kings Nov 10 14 – 16 20.90 FALSE
4 Zebre vs. Glasgow Warriors Nov 10 7 – 31 -18.40 TRUE
5 Cardiff Blues vs. Cheetahs Nov 10 30 – 17 4.70 TRUE
6 Munster vs. Ulster Nov 10 22 – 16 13.40 TRUE
7 Scarlets vs. Treviso Nov 10 20 – 17 12.00 TRUE

 

Predictions for Round 7

Here are the predictions for Round 7. 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 Munster vs. Edinburgh Nov 30 Munster 13.80
2 Ulster vs. Scarlets Nov 30 Ulster 5.80
3 Treviso vs. Cardiff Blues Dec 01 Treviso 4.70
4 Connacht vs. Southern Kings Dec 01 Connacht 23.30
5 Dragons vs. Zebre Dec 01 Dragons 15.70
6 Ospreys vs. Cheetahs Dec 01 Ospreys 5.20
7 Glasgow Warriors vs. Leinster Dec 01 Leinster -0.10

 

November 5, 2019

Rugby Premiership Predictions for Round 4

Team Ratings for Round 4

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
Saracens 8.09 9.34 -1.20
Exeter Chiefs 6.92 7.99 -1.10
Northampton Saints 2.33 0.25 2.10
Gloucester 1.33 0.58 0.70
Sale Sharks 1.12 0.17 0.90
Bath -0.12 1.10 -1.20
Wasps -0.69 0.31 -1.00
Harlequins -0.93 -0.81 -0.10
Bristol -1.14 -2.77 1.60
Leicester Tigers -2.30 -1.76 -0.50
Worcester Warriors -2.89 -2.69 -0.20
London Irish -5.50 -5.51 0.00

 

Performance So Far

So far there have been 18 matches played, 14 of which were correctly predicted, a success rate of 77.8%.
Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Bristol vs. Sale Sharks Nov 02 16 – 10 1.70 TRUE
2 Northampton Saints vs. Harlequins Nov 02 40 – 22 6.50 TRUE
3 Leicester Tigers vs. Gloucester Nov 03 16 – 13 0.50 TRUE
4 Saracens vs. London Irish Nov 03 16 – 13 19.90 TRUE
5 Wasps vs. Bath Nov 03 30 – 22 3.30 TRUE
6 Worcester Warriors vs. Exeter Chiefs Nov 04 20 – 24 -5.60 TRUE

 

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 Sale Sharks vs. Wasps Nov 09 Sale Sharks 6.30
2 Bath vs. Northampton Saints Nov 10 Bath 2.00
3 Gloucester vs. Saracens Nov 10 Saracens -2.30
4 Harlequins vs. Worcester Warriors Nov 10 Harlequins 6.50
5 London Irish vs. Leicester Tigers Nov 11 London Irish 1.30
6 Exeter Chiefs vs. Bristol Nov 11 Exeter Chiefs 12.60

 

Pro14 Predictions for Round 6

Team Ratings for Round 6

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
Leinster 13.62 12.20 1.40
Munster 10.09 10.73 -0.60
Glasgow Warriors 7.38 9.66 -2.30
Connacht 3.98 2.68 1.30
Scarlets 3.49 3.91 -0.40
Edinburgh 2.56 1.24 1.30
Ulster 1.67 1.89 -0.20
Cheetahs 1.19 -3.38 4.60
Ospreys -0.03 2.80 -2.80
Cardiff Blues -0.62 0.54 -1.20
Treviso -2.05 -1.33 -0.70
Dragons -9.30 -9.31 0.00
Southern Kings -14.47 -14.70 0.20
Zebre -17.48 -16.93 -0.50

 

Performance So Far

So far there have been 35 matches played, 29 of which were correctly predicted, a success rate of 82.9%.
Here are the predictions for last week’s games.

Game Date Score Prediction Correct
1 Glasgow Warriors vs. Southern Kings Nov 02 50 – 0 26.70 TRUE
2 Leinster vs. Dragons Nov 02 50 – 15 28.20 TRUE
3 Ulster vs. Zebre Nov 02 22 – 7 26.60 TRUE
4 Scarlets vs. Cheetahs Nov 03 17 – 13 9.90 TRUE
5 Ospreys vs. Connacht Nov 03 10 – 20 3.60 FALSE
6 Treviso vs. Edinburgh Nov 03 18 – 16 1.90 TRUE
7 Cardiff Blues vs. Munster Nov 03 23 – 33 -2.90 TRUE

 

Predictions for Round 6

Here are the predictions for Round 6. 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 Connacht vs. Leinster Nov 09 Leinster -4.60
2 Edinburgh vs. Dragons Nov 09 Edinburgh 18.40
3 Ospreys vs. Southern Kings Nov 10 Ospreys 20.90
4 Zebre vs. Glasgow Warriors Nov 10 Glasgow Warriors -18.40
5 Cardiff Blues vs. Cheetahs Nov 10 Cardiff Blues 4.70
6 Munster vs. Ulster Nov 10 Munster 13.40
7 Scarlets vs. Treviso Nov 10 Scarlets 12.00

 

October 31, 2019

Briefly

Opinion poll reporting

From the Herald: Most Norfolk Islanders want to cut ties with Australia and join New Zealand – survey

The second sentence of the piece: “The rebels outnumber those who want free association with Australia, with 37% of the vote compared to 35%.”

We don’t usually consider 37% as ‘most’.

With a little searching, you can find the primary source: the website of Norfolk Island People for Democracy  Most people who responded don’t like the current system, and they are roughly evenly split between full independence, a looser association with Australia giving local control of domestic affairs, or a similarly loose association with New Zealand.

Also, it looks like an online clicky poll.  We’d usually just dismiss these, but there were 450 responses and the Island has a population of only 1800.  If they took reasonable care to make sure the votes were one to a person and from the local population, the numbers are worth paying attention to.  Even if you made the extreme assumption that everyone who didn’t take part supported the status quo, 415 wanting to change it is a substantial fraction.

Burgers or air?

Q: Did you see that asthma inhalers cause as much greenhouse gas emission as eating meat?

A: Yes

Q: That’s huge!! It’s like 15% of global warming!

A: No

Q: Yes!

A: No. The BBC claim is that the CO2 equivalent of one person‘s use of asthma inhalers is comparable to one person‘s meat consumption. A lot more people eat meat than use asthma inhalers.

Q: Oh. That’s still quite a lot, though?

A: They say it’s about 4% of emissions from the UK healthcare system. About 0.15% of the UK total.

Q: And compared to meat?

A: Well, the BBC don’t link, but if you find the research paper (PDF) and follow its link for the meat claim, you get a graph saying about 0.9 tonnes CO2 equivalent per year for an average person switching to a plant-based diet in the UK, compared to the 165kg average they’re claiming for the inhalers (range of 150-400kg).

Q: Isn’t 165kg less than 0.9 tonnes?

A: Yes, quite a bit less.

Q: So why do they get away with that in a published research paper?

A: It’s not the point of the paper. The point is to look at the financial cost of the National Health System switching to asthma inhalers that don’t use greenhouse gases, for the subset of people who can use them.  The costs aren’t that bad. They also suggest other sensible ways to reduce emissions, such as recycling or incinerating used inhalers, and labelling them with the number of doses so that they don’t get discarded early.

Q: What are we doing about this in New Zealand?

A: A bit more than for meat.  There’s an actual plan to reduce total imports of these synthetic greenhouse gases starting now and going through 2036, but in the short term that’s mostly going to affect air conditioners, not inhalers. Pharmac asked for bids for asthma inhaler supply through 2023, and (earlier this month) proposed settling on two products with HFC-134a propellant, which is the less-bad of the two greenhouse gases currently used in inhalers. 

Q: If the point is financial costs, isn’t the comparison with meat just trolling?

A: Pretty much.  Eating plants is an individual choice, it’s not an all-or-nothing change, it doesn’t take a doctor’s prescription, and you don’t need to have asthma to do it.  You could just decide to eat less meat, or give up beef, or your whole household could eat less  meat. And eating less meat doesn’t have negative health implications.

Q: So people should just use their inhalers like their doctor says?

A: Absolutely.  Modern preventer inhalers are a major achievement of medical and chemical science.  For any individual, there should be many possible lifestyle changes higher up your priority list than worrying about your model of asthma inhaler.  Maybe get ready to lobby Pharmac to take emissions into account when they next put out a bid for inhalers,  in 2022 or thereabouts.

October 29, 2019

Predictions for the Rugby World Cup Final

Team Ratings for the Rugby World Cup Final

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 Rugby World Cup.

 

Current Rating Rating at Season Start Difference
New Zealand 27.01 27.60 -0.60
England 23.20 19.78 3.40
South Africa 19.87 18.51 1.40
Ireland 10.56 12.12 -1.60
Wales 10.32 12.72 -2.40
Australia 6.60 8.70 -2.10
Scotland 6.14 5.44 0.70
France 5.26 7.11 -1.80
Argentina 3.32 4.15 -0.80
Japan -5.52 -7.67 2.20
Fiji -5.54 -5.27 -0.30
Italy -9.53 -8.57 -1.00
Samoa -15.53 -11.89 -3.60
Tonga -15.83 -20.46 4.60
Georgia -18.08 -17.43 -0.70
USA -18.64 -16.38 -2.30
Uruguay -30.89 -35.67 4.80
Canada -34.63 -32.45 -2.20
Russia -36.32 -36.78 0.50
Namibia -39.99 -41.80 1.80

 

Performance So Far

So far there have been 43 matches played, 39 of which were correctly predicted, a success rate of 90.7%.
Here are the predictions for last week’s games.

 

Game Date Score Prediction Correct
1 England vs. New Zealand Oct 26 19 – 7 -7.30 FALSE
2 Wales vs. South Africa Oct 27 16 – 19 -11.00 TRUE

 

Predictions for the Rugby World Cup Final

Here are the predictions for the Rugby World Cup Final. 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 New Zealand vs. Wales Nov 01 New Zealand 16.70
2 England vs. South Africa Nov 02 England 3.30