Posts from August 2017 (43)

August 29, 2017

NRL Predictions for Round 26

Team Ratings for Round 26

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 14.65 8.49 6.20
Broncos 6.13 4.36 1.80
Raiders 5.10 9.94 -4.80
Panthers 3.37 6.08 -2.70
Cowboys 3.08 6.90 -3.80
Sharks 2.13 5.84 -3.70
Roosters 1.83 -1.17 3.00
Eels 1.54 -0.81 2.30
Dragons 0.20 -7.74 7.90
Sea Eagles -1.70 -2.98 1.30
Rabbitohs -4.12 -1.82 -2.30
Wests Tigers -4.17 -3.89 -0.30
Bulldogs -4.69 -1.34 -3.40
Warriors -6.79 -6.02 -0.80
Knights -8.68 -16.94 8.30
Titans -9.92 -0.98 -8.90

 

Performance So Far

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

Game Date Score Prediction Correct
1 Broncos vs. Eels Aug 24 34 – 52 12.70 FALSE
2 Raiders vs. Knights Aug 25 46 – 28 17.10 TRUE
3 Wests Tigers vs. Cowboys Aug 25 14 – 22 -2.90 TRUE
4 Titans vs. Bulldogs Aug 26 14 – 26 0.20 FALSE
5 Storm vs. Rabbitohs Aug 26 64 – 6 16.00 TRUE
6 Sharks vs. Roosters Aug 26 14 – 16 4.90 FALSE
7 Warriors vs. Sea Eagles Aug 27 21 – 22 -1.10 TRUE
8 Panthers vs. Dragons Aug 27 14 – 16 8.30 FALSE

 

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 Cowboys vs. Broncos Aug 31 Cowboys 0.50
2 Eels vs. Rabbitohs Sep 01 Eels 9.20
3 Roosters vs. Titans Sep 02 Roosters 15.20
4 Sea Eagles vs. Panthers Sep 02 Panthers -1.60
5 Storm vs. Raiders Sep 02 Storm 13.10
6 Knights vs. Sharks Sep 03 Sharks -7.30
7 Dragons vs. Bulldogs Sep 03 Dragons 8.40
8 Wests Tigers vs. Warriors Sep 03 Wests Tigers 6.60

 

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 16.70 14.78 1.90
Taranaki 4.78 7.04 -2.30
Auckland 4.47 6.11 -1.60
Counties Manukau 4.36 5.70 -1.30
Tasman 4.16 9.54 -5.40
Waikato 1.50 -0.26 1.80
Wellington 1.34 -1.62 3.00
Otago 1.23 -0.34 1.60
North Harbour -0.07 -1.27 1.20
Bay of Plenty -2.72 -3.98 1.30
Manawatu -2.87 -3.59 0.70
Hawke’s Bay -8.55 -5.85 -2.70
Northland -9.75 -12.37 2.60
Southland -17.20 -16.50 -0.70

 

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 Southland vs. North Harbour Aug 24 20 – 45 -10.50 TRUE
2 Bay of Plenty vs. Hawke’s Bay Aug 25 46 – 17 5.60 TRUE
3 Waikato vs. Counties Manukau Aug 25 33 – 21 -1.30 FALSE
4 Wellington vs. Taranaki Aug 26 42 – 26 -2.80 FALSE
5 Auckland vs. Northland Aug 26 10 – 8 21.80 TRUE
6 Manawatu vs. Tasman Aug 27 35 – 20 -7.00 FALSE
7 Canterbury vs. Otago Aug 27 30 – 24 22.40 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 Auckland vs. Waikato Aug 30 Auckland 7.00
2 Bay of Plenty vs. Wellington Aug 31 Wellington -0.10
3 Hawke’s Bay vs. Canterbury Sep 01 Canterbury -21.20
4 Otago vs. Manawatu Sep 02 Otago 8.10
5 Southland vs. Northland Sep 02 Northland -3.50
6 Taranaki vs. Counties Manukau Sep 02 Taranaki 4.40
7 Waikato vs. Tasman Sep 03 Waikato 1.30
8 North Harbour vs. Auckland Sep 03 Auckland -0.50

 

Currie Cup 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
Cheetahs 5.08 4.33 0.70
Sharks 4.09 2.15 1.90
Lions 3.60 7.41 -3.80
Western Province 2.99 3.30 -0.30
Blue Bulls 0.58 2.32 -1.70
Pumas -8.67 -10.63 2.00
Griquas -10.42 -11.62 1.20

 

Performance So Far

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

Game Date Score Prediction Correct
1 Pumas vs. Blue Bulls Aug 25 51 – 15 -7.00 FALSE
2 Cheetahs vs. Lions Aug 26 30 – 24 6.00 TRUE
3 Western Province vs. Sharks Aug 26 20 – 21 4.20 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 Blue Bulls vs. Griquas Sep 01 Blue Bulls 15.50
2 Sharks vs. Cheetahs Sep 02 Sharks 3.50
3 Lions vs. Pumas Sep 02 Lions 16.80

 

FDA doesn’t make vaccine approvals impossible

There’s a trial of a herpes vaccine being conducted on the Caribbean island of St Kitts, because it can be done there without any ethical or regulatory oversight.  This is not a good precedent.

One of the investors involved a well-known NZ not-precisely-immigrant, Peter Thiel. He has said in the past  “you would not be able to invent the polio vaccine today.” Perhaps he should talk to the people who think there are far too many new vaccines nowadays.  They’re both wrong.

Because this is the sort of factoid that gets passed around, I thought a list of some recently approved vaccines  might be helpful.  They’re taken from this list:

20-30 years ago: Hepatitis A vaccine (PDF). Hemophilus influenzae Type B vaccine (PDF)

10-20 years ago: Intranasal quadrivalent flu vaccine (PDF).  Meningococcal Group A, C, Y, W (PDF). Shingles (PDF)

less than 10 years ago: Human papilloma virus (PDF). Injected quadrivalent flu vaccine (PDF). Japanese encephalitis vaccine (PDF) Live-bacteria cholera vaccine (PDF). Meningococcal Group B (PDF). Rotavirus (PDF)

 

And, polio vaccine? If you look at the consultation procedures used in designing the polio vaccine trial, back when randomised trials were new and controversial, you’d be glad to just deal with an ethics committee and an FDA advisory panel.

August 28, 2017

Stat of the Week Competition: August 26 – September 1 2017

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 1 2017.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of August 26 – September 1 2017 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: August 26 – September 1 2017

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

August 27, 2017

Overselling research

Three examples that have come across my Twitter feed recently:

A genetic “crystal ball” can predict whether certain people will respond effectively to the flu vaccine. Science News

This is actually really interesting research looking at why some people get high levels of antibodies and others don’t.  However, the ‘crystal ball’ is cloudy. If people are divided into ‘low’, ‘medium’ and ‘high’ responders, and you take one ‘low’ responder and one ‘high’ responder, the test has about a 75% chance of working out which is which.

Is Swiss cheese a superfood?, asks Food & Wine.

According to metro.co.uk, researchers at the University of Korea have found that Swiss cheese has a whole lot of health benefits. It contains a probiotic called—you ready for this?—propionibacterium freudenreichii, which reduces inflammation. Among other things, reducing inflammation can reduce the risk of getting a number of diseases and slow the aging process. Propionibacterium freudenreichii also boosts immune system functions.

The research was carried out in microscopic nematodes, and didn’t involve Swiss cheese. The nematodes eat bacteria, and these ones were given a diet of  Propionibacterium freudenreichii instead of their normal E. coli. While the live bacteria are present in Swiss cheese, the recipes linked from the story would make sure no live bacteria reached your gut.

 

From the Guardian

Dating from 1,000 years before Pythagoras’s theorem, the Babylonian clay tablet is a trigonometric table more accurate than any today, say researchers.

It’s pretty clear that this has to be bullshit. It’s harder to find what’s actually being claimed.  Popular Science has a more balanced view: the conjecture is that the Babylonians worked with triangles where the ratios of side lengths were simple fractions rather than where the angles were simple fractions of a circle.  Like we do in measuring slopes of roads or railways.  If that’s true, it’s an interesting idea and if they knew about trignometric relationships then it pushes back the discovery quite a bit.  It’s still not ‘more accurate than any today’; the rounding-off just happens in a different place.

 

August 26, 2017

Successive approximations to understanding MMP

The MMP voting system and its implications are relatively complicated. I’m going to try to give simple approximations and then corrections to them. If you want more definitive details, here’s the Electoral Commission and the Electoral Act.

Two votes: You have an electorate vote, which only affects who your local MP is, and doesn’t affect the composition of Parliament. You also have a party vote that affects the composition of Parliament, but not who your local MP is. The number of seats a party gets in Parliament is proportional to the number of party votes it gets.

This isn’t true, but it’s actually a pretty good working approximation for most of us.

There are two obvious flaws. First, if your local MP belongs to a party that doesn’t get enough votes to have any seats in Parliament, they still get to be an MP. Peter Dunne in Ōhariu was an example of this in the 2014 election. Second, when working out the number of seats a party is entitled to in Parliament, parties with less than 5% of the vote are excluded unless they won some electorate.  In the 2014 election, the Conservative Party got 3.97% of the vote, but no seats.

The Māori Party was an example of both exceptions: they did get enough votes in proportional terms for two seats, but not enough to make the 5% cutoff, but they didn’t have to because Te Ururoa Flavell won the Waiāriki electorate seat for them.

Proportionality: There are 120 seats, so a party needs 1/120th, or about 0.83%, of the vote for each one.

That’s not quite true because of the 5% threshold, both because some parties miss out and because the relevant percentages are of the votes remaining after parties have been excluded by the threshold.

It’s also not true because of rounding.  We elect whole MPs, not fractional ones, so we need a rounding rule. Roughly speaking, half -seats round up. More accurately, suppose there is some number N of votes available per seat (which will be worked out later). If you have at least 0.5×N votes you get one seat, 1.5×N gets you two seats, 13.5×N gets you fourteen seats.  So what’s N? It’s roughly 1/121th (0.83%) of the votes; it’s exactly whatever number you need to allocate exactly as many seats as you have available. (The Electoral Commission actually uses a procedure that’s identical in effect to this one and easier to compute, but (I think) harder to explain).

In 2014, the Māori Party got 1.32% of the vote, which is a bit more than 1.5×0.83%, and were entitled to two seats. ACT got less than 0.83% but more than 0.5×0.83% and were entitled to one seat.

Finally, if a party gets more seats from electorate candidates than it is due by proportionality those seats are extra, above the 120-seat ideal size of Parliament — except that seats won by a party or individual not contesting the party vote do come out of the 120-seat total.  So, in 2014, ACT got enough party votes to be due one of the 120 seats, but United Future didn’t. United Future did contest the party vote so Peter Dunne’s seat did not come out of the 120-seat total — he was an ‘overhang’ 121st MP. I’m guessing the reason overhangs by parties contesting the party vote are extra is that you don’t know how many there will be until you’ve done the calculation, so you’d have to go back to the start and recalculate if you counted them in the 120 (which might change the number of over-allocated seats and force another recalculation and so on).

Māori Roll: People of Māori descent can choose, every five years, to be on a Māori electoral roll rather than the general roll. If enough of them do, Māori electorates are created with the same number of people as the general electorates. There are currently seven Māori electorates, representing just over half of the people of Māori descent.  As with any electorate, you don’t have to be enrolled there to stand there; anyone eligible to be an MP can stand. 

The main way this is oversimplified is because of the people of Māori descent who aren’t on either roll, because they’re too young or just not enrolled yet. You can’t tell whether they would be on the general roll or the Māori roll, so there are procedures for StatsNZ to split the non-enrolled Māori-descent population up to calculate electorate populations.

August 25, 2017

Pretty average

Q: Does the Herald really know “The amount of sex you should be having according to your age group”

A: No.

Q: Can they really tell you “ if the regularity of your sex life is “normal”.

A: No.

Q: Is that even a thing?

A: No.

Q: If it was, would a survey of people in the US be especially relevant to NZ?

A: It was from the US? The story didn’t say that.

Today’s episode of simple answers to complex questions is brought to you by the letters F and F and S. 

August 23, 2017

Briefly

  • On Thursday 7 September, 3pm, in Auckland, “The Future of Open Data in Aotearoa”, featuring Ed Corkery (CEO of Koordinates),  Harkanwal Singh (Data Editor, NZ Herald) and Liz MacPherson (Government Statistician)
  • “The flip side of personal genomics: When a mutation doesn’t spell disease” from Nature News
  • Another story about machines learning stereotypes, this time in image recognition.
  • A couple of eclipse graphs:
    From reddit user  superpaow
    eclipse-ow
    and from Noah Illinsky
    eclipse-pow