March 26, 2018

The data speak for themselves?

This graph was on Twitter this morning. There’s nothing wrong with the graph: good data, clear presentation, but it does provide a nice illustration of the difficulties in official statistics — you have to decide what categories to use, and it makes a difference.

The second leading cause, motor vehicles, is straightforward enough.  The first, firearms, is more complicated. A majority of the firearm deaths are suicides, and it’s controversial whether firearm access increases the suicide rate or just affects the method.  Poisoning is also complicated: you might well want to treat both suicide and accidental recreational-drug overdose separately. And so on.

Sometimes you want to break down the data by intent, sometimes by physical cause, sometimes by medical type of injury or damage. You can’t define the ‘correct’ answer in the absence of a question.

Ihaka Lecture Series 2018 – collected here for your viewing pleasure

The second annual edition of the Ihaka Lecture Series has just ended, and we are, once again, delighted with the turnout and engagement, in person and online. Our final speaker was Alberto Cairo, right, Knight Chair in Visual Journalism at the University of Miami, whose lecture on the dubious uses of data was thought-provoking and a bit worrying.

If you want to see how Trump supporters deluded themselves and misled others with graphics, it’s all laid bare here in Alberto’s lecture. And that this brand of Trumpery is not the only example of statistics willfully used to mislead – Alberto delivers a few other eye-openers. And some laughs, as well – he is a very entertaining and engaging speaker. By the way, it’s not all bad news – there is much useful and thoughtful work being done, and Alberto shows what that is and where.

Alberto’s lecture is accessible to all. He uses non-technical language, as and Alberto says, he’s not a statistician. So if you are teaching secondary-school statistics (or citizenship or social studies … ) this would be a really good resource for your students.

Also, Alberto was yesterday interviewed by Colin Peacock, the long-time host of Radio New Zealand’s Mediawatch, and it’s recommended listening. The pic Mediawatch ran of Alberto on its webpage was so nice, we stole it. Nice image, RNZ’s Claire Eastham-Farrelly!

Of course, we also had two other incomparable speakers: our own Associate Professor Paul Murrell, one of the movers and shakers behind R, on the BrailleR package, which generates text descriptions of R plots (watch here) and Monash Professor Dianne Cook, who described some simple tools for helping to decide if patterns you think you are seeing in the data are really there (watch here).

And … in breaking news, the theme of next year’s Ihaka Lecture Series is … machine learning! Speakers will be announced at a later date.

+ Useful link: The 2017 Ihaka Lecture Series.

March 20, 2018

Super 15 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
Hurricanes 16.02 16.18 -0.20
Crusaders 14.86 15.23 -0.40
Highlanders 10.76 10.29 0.50
Lions 9.99 13.81 -3.80
Chiefs 8.37 9.29 -0.90
Stormers 1.50 1.48 0.00
Sharks 0.91 1.02 -0.10
Blues 0.50 -0.24 0.70
Brumbies -1.36 1.75 -3.10
Waratahs -2.55 -3.92 1.40
Bulls -3.98 -4.79 0.80
Jaguares -5.70 -4.64 -1.10
Reds -8.43 -9.47 1.00
Rebels -11.03 -14.96 3.90
Sunwolves -17.28 -18.42 1.10

 

Performance So Far

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

Game Date Score Prediction Correct
1 Chiefs vs. Bulls Mar 16 41 – 28 16.80 TRUE
2 Highlanders vs. Crusaders Mar 17 25 – 17 -1.80 FALSE
3 Brumbies vs. Sharks Mar 17 24 – 17 1.00 TRUE
4 Stormers vs. Blues Mar 17 37 – 20 3.40 TRUE
5 Lions vs. Sunwolves Mar 17 40 – 38 35.30 TRUE
6 Jaguares vs. Reds Mar 17 7 – 18 9.10 FALSE
7 Waratahs vs. Rebels Mar 18 51 – 27 10.30 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 Crusaders vs. Bulls Mar 23 Crusaders 22.80
2 Rebels vs. Sharks Mar 23 Sharks -7.90
3 Sunwolves vs. Chiefs Mar 24 Chiefs -21.70
4 Hurricanes vs. Highlanders Mar 24 Hurricanes 8.80
5 Stormers vs. Reds Mar 24 Stormers 13.90
6 Jaguares vs. Lions Mar 24 Lions -11.70

 

NRL Predictions for Round

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
Storm 15.03 16.73 -1.70
Panthers 3.19 2.64 0.60
Broncos 3.16 4.78 -1.60
Cowboys 3.05 2.97 0.10
Sea Eagles 2.26 -1.07 3.30
Dragons 1.80 -0.45 2.20
Raiders 1.60 3.50 -1.90
Sharks 1.50 2.20 -0.70
Roosters 0.75 0.13 0.60
Wests Tigers -1.67 -3.63 2.00
Eels -3.30 1.51 -4.80
Bulldogs -4.30 -3.43 -0.90
Rabbitohs -4.71 -3.90 -0.80
Warriors -5.25 -6.97 1.70
Knights -6.95 -8.43 1.50
Titans -8.46 -8.91 0.50

 

Performance So Far

So far there have been 16 matches played, 8 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 Sharks vs. Dragons Mar 15 16 – 20 3.80 FALSE
2 Roosters vs. Bulldogs Mar 16 30 – 12 6.40 TRUE
3 Broncos vs. Cowboys Mar 16 24 – 20 3.00 TRUE
4 Warriors vs. Titans Mar 17 20 – 8 7.00 TRUE
5 Panthers vs. Rabbitohs Mar 17 18 – 14 12.00 TRUE
6 Storm vs. Wests Tigers Mar 17 8 – 10 23.20 FALSE
7 Sea Eagles vs. Eels Mar 18 54 – 0 1.20 TRUE
8 Raiders vs. Knights Mar 18 28 – 30 13.80 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 Storm vs. Cowboys Mar 22 Storm 15.00
2 Bulldogs vs. Panthers Mar 23 Panthers -4.50
3 Wests Tigers vs. Broncos Mar 23 Broncos -1.80
4 Raiders vs. Warriors Mar 24 Raiders 11.40
5 Rabbitohs vs. Sea Eagles Mar 24 Sea Eagles -4.00
6 Eels vs. Sharks Mar 24 Sharks -1.80
7 Titans vs. Dragons Mar 25 Dragons -7.30
8 Roosters vs. Knights Mar 25 Roosters 10.70

 

March 17, 2018

Briefly

March 16, 2018

Low-flying rocks

This is starting to look like a series. The Herald today has Warning: Doomsday asteroid taller than Empire State building cannot be stopped by Nasa. They go on to say

The consequences would be “dire” experts have warned, and the asteroid has sparked fears that it could even wipe out life for good.

Stuff has the less-exciting headline Nasa draws up plans for huge eight-ton spacecraft to blow up doomsday asteroid. You might be able to guess which one is more accurate.

If you follow the link from the Herald to the Daily Mail, and then from the Daily Mail to the scientific research paper, and then get past the paywall, you find the research is about the best ways to handle an asteroid like this one if it turns out to be a threat. As the Stuff story says, the scientists think they could manage a deflection given enough notice; with less warning than that they might need to blow it up with a big nuke.

So, how much warning do we have? The Herald says

Based on observational data, Bennu has a 1 in 2,700-chance of striking Earth on Sept. 25, 2135.

That’s quite a long time in the future — if scientists think they’ve got a good chance of deflecting it even with today’s technology, we should be ok even without Bruce Willis.

That’s if we believe the numbers in the story. Let’s check them. The research paper points to a lovely website from NASA that lists all the object we know about that could get scarily close to Earth at some point in the future.  Here’s their entry for Doomsday Asteroid 101955 Bennu.

Bennu has a cumulative impact probability of 3.7×10-4, ie, 1/2,700.  That’s added up over the entire foreseeable future. There are 78 potential impact dates listed. The first is 25th September 2175, with a probability of 4.1×10-5, or about 1/25,000.  The remainder of the 1/2700 probability is spread over the following 25 years.  So, the date is wrong, and the probability is misleading. Since it looks like the Daily Mail got the numbers from Buzzfeed, that’s a bit disappointing.

The NASA site also lists 101955 Bennu as -1.71 on the “Palermo scale.” The Palermo scale compares the risk of being hit by a specific asteroid over a period of time to the expected risk of being hit by all the other asteroids of the same size that we don’t know about yet. Bennu’s -1.71 means the risk from Bennu is 10-1.71 times lower than the background risk — about 50 times lower. Dealling with Bennu would lower our risk over the next couple of centuries for asteroids of that size by a few percent. It’s worth doing — but mostly as a test of the technology.

Also, it would be interesting to know who is actually afraid the asteroid “could wipe out life for good”. It’s presumably not the “experts” from earlier in the sentence: the impact is estimated as having the energy of a 1.15 gigaton explosion.  That’s not something you want in your school zone, but it’s tiny compared to, say, the Taupo eruption roughly 2000 years ago. It’s about of the order of magnitude of the Tarawera explosion in 1886.  An impact in the worst possible place — maybe on top of Shanghai —  could kill a lot of people even with the best evacuation efforts but it wouldn’t wipe out industrial civilisation, let alone all life.

 

(hat tip: Mark Hanna)

March 15, 2018

Polls aren’t dead yet

There’s a new paper in the journal Nature Human Behaviour analysing a huge collection of election poll data: over 30,000 polls. The researchers’ conclusion is straightforward: polls have not become less accurate. Unfortunately, all the nice graphs are behind a paywall. Fortunately, the data isn’t, and I can draw you a nice graph of my own

The graph shows all the poll results back to 1970, split up into panels by how many weeks before the election they were.  I’m showing just one party per poll: the data have conveniently been coded so it’s a big party (eg Labour for NZ, Conservatives for UK). Each panel shows the error in the poll plotted against the year of the election; the red line is an average.

The red lines are basically flat. Despite cellphones, the internet, political polarisation, and millennials, average polling error hasn’t changed all that much over the past fifty years.

March 13, 2018

Super 15 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
Hurricanes 16.02 16.18 -0.20
Crusaders 15.45 15.23 0.20
Lions 11.98 13.81 -1.80
Highlanders 10.18 10.29 -0.10
Chiefs 8.60 9.29 -0.70
Blues 1.32 -0.24 1.60
Sharks 1.27 1.02 0.30
Stormers 0.68 1.48 -0.80
Brumbies -1.72 1.75 -3.50
Waratahs -3.37 -3.92 0.50
Bulls -4.20 -4.79 0.60
Jaguares -4.49 -4.64 0.20
Reds -9.64 -9.47 -0.20
Rebels -10.21 -14.96 4.80
Sunwolves -19.27 -18.42 -0.80

 

Performance So Far

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

Game Date Score Prediction Correct
1 Highlanders vs. Stormers Mar 09 33 – 15 12.90 TRUE
2 Rebels vs. Brumbies Mar 09 33 – 10 -8.80 FALSE
3 Hurricanes vs. Crusaders Mar 10 29 – 19 3.30 TRUE
4 Reds vs. Bulls Mar 10 20 – 14 -2.40 FALSE
5 Sharks vs. Sunwolves Mar 10 50 – 22 24.10 TRUE
6 Lions vs. Blues Mar 10 35 – 38 17.10 FALSE
7 Jaguares vs. Waratahs Mar 10 38 – 28 1.90 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 Chiefs vs. Bulls Mar 16 Chiefs 16.80
2 Highlanders vs. Crusaders Mar 17 Crusaders -1.80
3 Brumbies vs. Sharks Mar 17 Brumbies 1.00
4 Stormers vs. Blues Mar 17 Stormers 3.40
5 Lions vs. Sunwolves Mar 17 Lions 35.30
6 Jaguares vs. Reds Mar 17 Jaguares 9.10
7 Waratahs vs. Rebels Mar 18 Waratahs 10.30

 

NRL 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
Storm 16.79 16.73 0.10
Panthers 3.75 2.64 1.10
Cowboys 3.12 2.97 0.20
Broncos 3.09 4.78 -1.70
Raiders 2.70 3.50 -0.80
Sharks 2.05 2.20 -0.20
Dragons 1.25 -0.45 1.70
Eels 0.40 1.51 -1.10
Roosters -0.06 0.13 -0.20
Sea Eagles -1.44 -1.07 -0.40
Wests Tigers -3.44 -3.63 0.20
Bulldogs -3.49 -3.43 -0.10
Rabbitohs -5.27 -3.90 -1.40
Warriors -5.60 -6.97 1.40
Knights -8.05 -8.43 0.40
Titans -8.11 -8.91 0.80

 

Performance So Far

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

Game Date Score Prediction Correct
1 Dragons vs. Broncos Mar 08 34 – 12 -2.20 FALSE
2 Knights vs. Sea Eagles Mar 09 19 – 18 -4.40 FALSE
3 Cowboys vs. Sharks Mar 09 20 – 14 3.80 TRUE
4 Wests Tigers vs. Roosters Mar 10 10 – 8 -0.80 FALSE
5 Rabbitohs vs. Warriors Mar 10 20 – 32 7.60 FALSE
6 Bulldogs vs. Storm Mar 10 18 – 36 -17.20 TRUE
7 Panthers vs. Eels Mar 11 24 – 4 4.10 TRUE
8 Titans vs. Raiders Mar 11 30 – 28 -9.40 FALSE

 

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 Sharks vs. Dragons Mar 15 Sharks 3.80
2 Roosters vs. Bulldogs Mar 16 Roosters 6.40
3 Broncos vs. Cowboys Mar 16 Broncos 3.00
4 Warriors vs. Titans Mar 17 Warriors 7.00
5 Panthers vs. Rabbitohs Mar 17 Panthers 12.00
6 Storm vs. Wests Tigers Mar 17 Storm 23.20
7 Sea Eagles vs. Eels Mar 18 Sea Eagles 1.20
8 Raiders vs. Knights Mar 18 Raiders 13.80

 

March 11, 2018

The 7% solution

Astronaut Scott Kelly has been extensively studied after a year in space (and so has his identical twin).  There’s a new, and pretty dramatic, story about some of the results. For example, IFLScience says NASA Sent One Identical Twin Brother To Space For A Year – And It May Have Permanently Changed 7 Percent Of His DNA. So does Business Insider.

If you know that a chimpanzee’s DNA is only about 1% different from a human’s — or that a mouse’s is about 8% different — that sounds weird. It’s even worse than that: the chance you’d still be alive after that sort of mutation load is pretty small.

So what did happen? Well, the story seems to be an example of accumulated mutations itself. In a recent interview for Marketplace, Scott Kelly said

“I did read in the newspaper the other day… that 7 percent of my DNA had changed permanently,” Kelly said. “And I’m reading that, I’m like, ‘Huh, well that’s weird.’” 

We’re seeing reports of someone quoting something from the media, rather than any primary source. If you go to the NASA press release, it says

Although 93% of genes’ expression returned to normal postflight, a subset of several hundred “space genes” were still disrupted after return to Earth.

That seems to be the origin of the ‘7%’ figure.

So what’s the difference? Imagine the genome as a library.  A 7% chance in DNA would be like saying 7% of the words in all the books in the library had been altered.  A change in expression in 7% of genes would be like 7% of the books having a noticeable increase or decrease in how often they were borrowed.

There were also some small changes in Scott’s DNA.  His telomeres, which are the caps on chromosomes that stop them fraying at the ends (like the little plastic bits on shoelaces) were slightly longer — which is probably good. DNA that scientists sequenced from his blood also had “hundreds” of new mutations: more than you’d typically expect, but still only about 0.0000001% of his DNA