Posts from August 2018 (17)

August 28, 2018

NRL Predictions for Round 25

Team Ratings for Round 25

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
Storm 8.91 16.73 -7.80
Sharks 4.97 2.20 2.80
Roosters 4.68 0.13 4.50
Broncos 4.21 4.78 -0.60
Raiders 1.96 3.50 -1.50
Rabbitohs 1.62 -3.90 5.50
Cowboys -0.09 2.97 -3.10
Warriors -0.10 -6.97 6.90
Bulldogs -0.12 -3.43 3.30
Panthers -1.50 2.64 -4.10
Wests Tigers -3.10 -3.63 0.50
Titans -3.84 -8.91 5.10
Dragons -3.87 -0.45 -3.40
Eels -4.00 1.51 -5.50
Sea Eagles -4.02 -1.07 -3.00
Knights -8.04 -8.43 0.40

 

Performance So Far

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

Game Date Score Prediction Correct
1 Wests Tigers vs. Sea Eagles Aug 23 22 – 20 4.20 TRUE
2 Warriors vs. Panthers Aug 24 36 – 16 3.60 TRUE
3 Cowboys vs. Eels Aug 24 44 – 6 1.80 TRUE
4 Raiders vs. Rabbitohs Aug 25 24 – 12 1.90 TRUE
5 Titans vs. Storm Aug 25 8 – 10 -11.00 TRUE
6 Roosters vs. Broncos Aug 25 8 – 22 6.30 FALSE
7 Sharks vs. Knights Aug 26 38 – 12 14.40 TRUE
8 Dragons vs. Bulldogs Aug 26 0 – 38 5.30 FALSE

 

Predictions for Round 25

Here are the predictions for Round 25. 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 Rabbitohs vs. Wests Tigers Aug 30 Rabbitohs 7.70
2 Warriors vs. Raiders Aug 31 Warriors 2.40
3 Storm vs. Panthers Aug 31 Storm 13.40
4 Knights vs. Dragons Sep 01 Dragons -1.20
5 Titans vs. Cowboys Sep 01 Cowboys -0.70
6 Eels vs. Roosters Sep 01 Roosters -5.70
7 Bulldogs vs. Sharks Sep 02 Sharks -2.10
8 Broncos vs. Sea Eagles Sep 02 Broncos 11.20

 

Mitre 10 Cup Predictions for Round 3

Team Ratings for Round 3

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
Canterbury 13.95 15.32 -1.40
Wellington 12.23 12.18 0.10
Taranaki 5.23 6.58 -1.40
North Harbour 4.93 6.42 -1.50
Tasman 3.07 2.62 0.50
Bay of Plenty 3.03 0.27 2.80
Auckland 1.33 -0.50 1.80
Counties Manukau 0.88 1.84 -1.00
Otago -1.83 0.33 -2.20
Waikato -3.10 -3.24 0.10
Northland -3.91 -3.45 -0.50
Manawatu -4.83 -4.36 -0.50
Hawke’s Bay -9.71 -13.00 3.30
Southland -23.46 -23.17 -0.30

 

Performance So Far

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

Game Date Score Prediction Correct
1 Counties Manukau vs. Bay of Plenty Aug 23 17 – 22 3.40 FALSE
2 Otago vs. Hawke’s Bay Aug 24 25 – 31 15.80 FALSE
3 Taranaki vs. Manawatu Aug 24 41 – 21 12.70 TRUE
4 Canterbury vs. Wellington Aug 25 27 – 20 5.40 TRUE
5 Waikato vs. North Harbour Aug 25 28 – 29 -4.70 TRUE
6 Tasman vs. Southland Aug 26 45 – 24 32.60 TRUE
7 Northland vs. Auckland Aug 26 12 – 28 2.00 FALSE

 

Predictions for Round 3

Here are the predictions for Round 3. 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 Counties Manukau vs. Taranaki Aug 29 Taranaki -0.30
2 Auckland vs. Waikato Aug 30 Auckland 8.40
3 Wellington vs. Southland Aug 31 Wellington 39.70
4 Bay of Plenty vs. Canterbury Sep 01 Canterbury -6.90
5 Manawatu vs. Otago Sep 01 Manawatu 1.00
6 North Harbour vs. Tasman Sep 01 North Harbour 5.90
7 Hawke’s Bay vs. Counties Manukau Sep 02 Counties Manukau -6.60
8 Northland vs. Taranaki Sep 02 Taranaki -5.10

 

Currie Cup Predictions for Round 3

Team Ratings for Round 3

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.
Note that Cheetahs2 refers the Cheetahs team when there is a Pro14 match. The assumption is that the team playing in the Pro14 is the top team and the Currie Cup team is essentially a second team.

Current Rating Rating at Season Start Difference
Western Province 5.44 4.66 0.80
Sharks 4.56 4.18 0.40
Lions 3.46 3.23 0.20
Cheetahs 2.23 3.86 -1.60
Blue Bulls 1.42 0.94 0.50
Pumas -7.77 -8.36 0.60
Griquas -10.60 -9.78 -0.80
Cheetahs2 -30.00 -30.00 0.00

 

Performance So Far

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

Game Date Score Prediction Correct
1 Lions vs. Griquas Aug 24 62 – 41 18.10 TRUE
2 Sharks vs. Blue Bulls Aug 25 26 – 10 6.90 TRUE
3 Western Province vs. Cheetahs Aug 25 32 – 0 6.20 TRUE

 

Predictions for Round 3

Here are the predictions for Round 3. 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 Pumas vs. Western Province Aug 31 Western Province -8.70
2 Blue Bulls vs. Lions Sep 01 Blue Bulls 2.50
3 Cheetahs2 vs. Sharks Sep 01 Sharks -30.10

 

August 23, 2018

Evaluating policy changes

When government policies change in different ways in different parts of the country, you can try to estimate the impact of the changes by comparing trends in affected and unaffected areas.  This week I’ve seen two examples, one in the NZ media and one from a Twitter request.

Chris Knox, in the Herald, has both an interactive graph and a story about the changes in petrol prices, using data from Gaspy. There was a clear jump of 11.5c/litre when the 11.5c/litre tax was increased.  What’s not so clear is whether petrol companies have subsequently tried to spread the price rise to other parts of the country.  Averaged over the whole rest of the country the gap has narrowed from the 11.5c start, but that’s driven by the South Island.  In the Waikato and Bay of Plenty regions, which were previously the most similar to Auckland, there’s no sign of price spreading.

So, right now, it’s unclear whether Auckland is bearing the whole cost (as it should) or just most of it.  The Herald story makes this fairly clear, quoting the economist Sam Warburton, who has been looking at the data — but also quoting someone who doesn’t need data to be sure that the costs are being borne by the regions. A similar analysis was done by Peter Ellis, using Sam Warburton’s data from pricewatch.co.nz, with basically similar conclusions.

The other example from this week is a research paper looking at how fatal workplace injuries changed in US states that introduced medical cannabis laws. They found a decrease starting at the time of legislation and slowly increasing to about a 1/3rd reduction after five years, compared to states without legal medical cannabis.  The analysis looks sensible and the data on fatal workplace injuries are of high quality, but there’s still a bit of potential concern about publication bias — the researchers might have published a negative result, but I wouldn’t have heard about it and told you.  I’ve written before about an analysis that suggested banning single-use plastic bags caused deaths from food poisoning —  and while the analysis looked reasonable it was clear based on additional data that the conclusion wasn’t plausible.

On the cannabis issue what’s most unclear is the contribution of various possible reasons to the reduction (if it is real):

  • medical cannabis works to treat, say, pain or nausea, so people are healthier and better rested and don’t get injured
  • medical cannabis substitutes for legal or illegal opioid use, and while it might increase injury risk compared to nothing, it’s better than opioids
  • medical cannabis ends up in recreational use and substitutes for alcohol, and while it might increase injury risk compared to nothing, it’s better than alcohol
  • medical cannabis ends up in recreational use and substitutes for alcohol, and people are less likely to use at work.
  • it actually makes you safer

To the extent that the second reason is important in the US, where there’s an opioid use epidemic, it won’t generalise to New Zealand. The other reasons would probably generalise.

August 21, 2018

NRL Predictions for Round 24

Team Ratings for Round 24

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
Storm 9.54 16.73 -7.20
Roosters 6.10 0.13 6.00
Sharks 4.16 2.20 2.00
Broncos 2.79 4.78 -2.00
Rabbitohs 2.33 -3.90 6.20
Raiders 1.26 3.50 -2.20
Panthers -0.35 2.64 -3.00
Dragons -0.83 -0.45 -0.40
Warriors -1.25 -6.97 5.70
Eels -1.47 1.51 -3.00
Cowboys -2.62 2.97 -5.60
Wests Tigers -2.94 -3.63 0.70
Bulldogs -3.16 -3.43 0.30
Sea Eagles -4.18 -1.07 -3.10
Titans -4.47 -8.91 4.40
Knights -7.22 -8.43 1.20

 

Performance So Far

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

Game Date Score Prediction Correct
1 Broncos vs. Rabbitohs Aug 16 38 – 18 0.80 TRUE
2 Sea Eagles vs. Titans Aug 17 34 – 42 5.10 FALSE
3 Storm vs. Eels Aug 17 20 – 4 13.70 TRUE
4 Panthers vs. Knights Aug 18 12 – 20 12.80 FALSE
5 Wests Tigers vs. Dragons Aug 18 10 – 20 2.70 FALSE
6 Sharks vs. Cowboys Aug 18 28 – 16 9.40 TRUE
7 Bulldogs vs. Warriors Aug 19 27 – 26 2.90 TRUE
8 Raiders vs. Roosters Aug 19 14 – 12 -2.50 FALSE

 

Predictions for Round 24

Here are the predictions for Round 24. 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 Wests Tigers vs. Sea Eagles Aug 23 Wests Tigers 4.20
2 Warriors vs. Panthers Aug 24 Warriors 3.60
3 Cowboys vs. Eels Aug 24 Cowboys 1.80
4 Raiders vs. Rabbitohs Aug 25 Raiders 1.90
5 Titans vs. Storm Aug 25 Storm -11.00
6 Roosters vs. Broncos Aug 25 Roosters 6.30
7 Sharks vs. Knights Aug 26 Sharks 14.40
8 Dragons vs. Bulldogs Aug 26 Dragons 5.30

 

Mitre 10 Cup Predictions for Round 2

Team Ratings for Round 2

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
Canterbury 13.81 15.32 -1.50
Wellington 12.37 12.18 0.20
North Harbour 5.26 6.42 -1.20
Taranaki 4.57 6.58 -2.00
Tasman 4.12 2.62 1.50
Bay of Plenty 2.27 0.27 2.00
Counties Manukau 1.63 1.84 -0.20
Otago 0.13 0.33 -0.20
Auckland -0.29 -0.50 0.20
Northland -2.29 -3.45 1.20
Waikato -3.43 -3.24 -0.20
Manawatu -4.17 -4.36 0.20
Hawke’s Bay -11.67 -13.00 1.30
Southland -24.51 -23.17 -1.30

 

Performance So Far

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

Game Date Score Prediction Correct
1 North Harbour vs. Northland Aug 16 21 – 20 13.90 TRUE
2 Tasman vs. Canterbury Aug 17 25 – 17 -8.70 FALSE
3 Manawatu vs. Waikato Aug 18 24 – 19 2.90 TRUE
4 Auckland vs. Counties Manukau Aug 18 23 – 19 1.70 TRUE
5 Bay of Plenty vs. Taranaki Aug 18 30 – 10 -2.30 FALSE
6 Wellington vs. Otago Aug 19 34 – 16 15.80 TRUE
7 Southland vs. Hawke’s Bay Aug 19 10 – 31 -6.20 TRUE

 

Predictions for Round 2

Here are the predictions for Round 2. 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 Counties Manukau vs. Bay of Plenty Aug 23 Counties Manukau 3.40
2 Otago vs. Hawke’s Bay Aug 24 Otago 15.80
3 Taranaki vs. Manawatu Aug 24 Taranaki 12.70
4 Canterbury vs. Wellington Aug 25 Canterbury 5.40
5 Waikato vs. North Harbour Aug 25 North Harbour -4.70
6 Tasman vs. Southland Aug 26 Tasman 32.60
7 Northland vs. Auckland Aug 26 Northland 2.00

 

Currie Cup Predictions for Round 2

Team Ratings for Round 2

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.
Note that Cheetahs2 refers the Cheetahs team when there is a Pro14 match. The assumption is that the team playing in the Pro14 is the top team and the Currie Cup team is essentially a second team.

Current Rating Rating at Season Start Difference
Western Province 4.66 4.66 -0.00
Sharks 4.18 4.18 -0.00
Lions 3.23 3.23 -0.00
Cheetahs 3.01 3.86 -0.80
Blue Bulls 1.79 0.94 0.90
Pumas -7.77 -8.36 0.60
Griquas -10.37 -9.78 -0.60
Cheetahs2 -30.00 -30.00 0.00

 

Performance So Far

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

Game Date Score Prediction Correct
1 Cheetahs vs. Blue Bulls Aug 17 12 – 34 7.40 FALSE
2 Pumas vs. Griquas Aug 18 42 – 19 5.90 TRUE

 

Predictions for Round 2

Here are the predictions for Round 2. 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 Lions vs. Griquas Aug 24 Lions 18.10
2 Sharks vs. Blue Bulls Aug 25 Sharks 6.90
3 Western Province vs. Cheetahs Aug 25 Western Province 6.20

 

August 20, 2018

Not commenting on the Census

This year’s census already been the subject of some news reports, some of which have quoted me.  I’ve now been appointed to an external data quality panel advising StatsNZ,  and I will be much more limited in what I can say in the future here or to journalists.  That’s partly just ordinary confidentiality to make the panel discussions work effectively, and partly because we’ll be seeing unreleased data whose disclosure is prohibited by the Statistics Act.

 

 

August 16, 2018

Currie Cup Predictions for Round 1

Team Ratings for Round 1

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.

Note that Cheetahs2 refers to the Cheetahs team when there is a Pro14 match. The assumption is that the team playing in the Pro14 is the top team and the Currie Cup team is essentially a second team.

Current Rating Rating at Season Start Difference
Western Province 4.66 4.66 -0.00
Sharks 4.18 4.18 -0.00
Cheetahs 3.86 3.86 0.00
Lions 3.23 3.23 -0.00
Blue Bulls 0.94 0.94 0.00
Pumas -8.36 -8.36 -0.00
Griquas -9.78 -9.78 0.00
Cheetahs2 -30.00 -30.00 0.00

 

Predictions for Round 1

Here are the predictions for Round 1. 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 Cheetahs vs. Blue Bulls Aug 17 Cheetahs 7.40
2 Pumas vs. Griquas Aug 18 Pumas 5.90

 

Briefly

  • From the Guardian: Mapping the world’s cities where you can live comfortably without heating or air conditioning reveals how few boast such ideal climates.  Among the cities that apparently don’t need heating or AC are Auckland and Melbourne.  Not entirely convincing.
  • From the Herald Scientists accidentally discover pill which could stop weight gain. What they actually discovered was a way to genetically engineer mice not to gain weight.  There’s a drug used to treat glaucoma that affects the same biochemical mechanism that the genetic engineering did — but it’s used as eyedrops to treat glaucoma, so that’s not great evidence it would be safe and effective as a pill.
  • Peter Ellis has been analysing petrol-price data after the Auckland tax was imposed: “after the spike caused by the tax, fuel prices in Auckland and in the rest of the country are converging somewhat (although much less than the full cost of the tax), and plausibly this is because of companies’ price adjustments down in Auckland and up elsewhere to spread the cost of the tax over a broader base.”
  • I’ve written a program to produce a map of Wellington-area buses showing how many are late.  It’s not quite real-time; it shows roughly the past hour. The map is here (you can click on the markers); the (more-technical) blog post explaining how it works is here.