April 28, 2016

Māori imprisonment statistics: not just age

Jarrod Gilbert had a piece in the Herald about prisons

Fifty per cent of the prison population is Maori. It’s a fact regularly cited in official documents, and from time to time it garners attention in the media. Given they make up 15 per cent of the population, it’s immediately clear that Maori incarceration is highly disproportionate, but it’s not until the numbers are given a greater examination that a more accurate perspective emerges.

The numbers seem dystopian, yet they very much reflect the realities of many Maori families and neighbourhoods.

to know what he was talking about, qualitatively. I mean, this isn’t David Brooks.

It turns out that while you can’t easily get data on ethnicity by age in the prison population, you can get data on age, and that this is enough to get a good idea of what’s going on, using what epidemiologists call “indirect standardisation”.

Actually, you can’t even easily get data on age, but you can get a graph of age:
ps_ages_3_16

and I resorted to software that reconstructs the numbers.

Next, I downloaded Māori population estimates by age and total population estimates by age from StatsNZ, for ages 15-84.  The definition of Māori won’t be exactly the same as in Dr Gilbert’s data. Also, the age groups aren’t quite right because we’d really like the age when the offence happened, not the current age.  The data still should be good enough to see how big the age bias is. In these age groups, 13.2% of the population is Māori by the StatsNZ population estimate definition.

We know what proportion of the prison population is in each age group, and we know what the population proportion of Māori is in each age group, so we can combine these to get the expected proportion of Māori in the prison population accounting for age differences. It’s 14.5%.  Now, 14.5% is higher than 13.2%, so the age-adjustment does make a difference, and in the expected direction, just not a very big difference.

We can also see what happens if we use the Māori population proportion from the next-younger five-year group, to allow for offences being committed further in the past. The expected proportion is then 15.3%, which again is higher than 13.2%, but not by very much. Accounting for age, it looks as though Māori are still more than three times as likely to be in prison as non-Māori.

You might then say there are lots of other variables to be looked at. But age is special.  If it turned out that Māori incarceration rates could be explained by poverty, that wouldn’t mean their treatment by society was fair, it would suggest that poverty was how it was unfair. If the rates could be explained by education, that wouldn’t mean their treatment by society was fair; it would suggest education was how it was unfair. But if the rates could be explained by age, that would suggest the system was fair. They can’t be.

April 27, 2016

Super 18 Predictions for Round 10

Team Ratings for Round 10

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
Crusaders 9.46 9.84 -0.40
Chiefs 6.79 2.68 4.10
Hurricanes 6.42 7.26 -0.80
Highlanders 5.50 6.80 -1.30
Waratahs 3.51 4.88 -1.40
Brumbies 2.41 3.15 -0.70
Lions 1.95 -1.80 3.80
Stormers 1.88 -0.62 2.50
Bulls -0.32 -0.74 0.40
Sharks -0.56 -1.64 1.10
Blues -3.92 -5.51 1.60
Rebels -5.24 -6.33 1.10
Cheetahs -6.33 -9.27 2.90
Jaguares -9.20 -10.00 0.80
Reds -9.72 -9.81 0.10
Force -11.01 -8.43 -2.60
Sunwolves -16.26 -10.00 -6.30
Kings -18.59 -13.66 -4.90

 

Performance So Far

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

Game Date Score Prediction Correct
1 Highlanders vs. Sharks Apr 22 14 – 15 11.60 FALSE
2 Rebels vs. Cheetahs Apr 22 36 – 14 2.80 TRUE
3 Sunwolves vs. Jaguares Apr 23 36 – 28 -4.60 FALSE
4 Hurricanes vs. Chiefs Apr 23 27 – 28 3.70 FALSE
5 Force vs. Waratahs Apr 23 13 – 49 -7.60 TRUE
6 Stormers vs. Reds Apr 23 40 – 22 15.30 TRUE
7 Kings vs. Lions Apr 23 10 – 45 -14.60 TRUE
8 Brumbies vs. Crusaders Apr 24 14 – 40 0.10 FALSE

 

Predictions for Round 10

Here are the predictions for Round 10. 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. Sharks Apr 29 Chiefs 11.40
2 Force vs. Bulls Apr 29 Bulls -6.70
3 Highlanders vs. Brumbies Apr 30 Highlanders 7.10
4 Blues vs. Rebels Apr 30 Blues 5.30
5 Reds vs. Cheetahs Apr 30 Reds 0.60
6 Lions vs. Hurricanes Apr 30 Hurricanes -0.50
7 Stormers vs. Waratahs Apr 30 Stormers 2.40
8 Jaguares vs. Kings Apr 30 Jaguares 13.40

 

NRL Predictions for Round 9

Team Ratings for Round 9

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
Cowboys 12.93 10.29 2.60
Broncos 12.04 9.81 2.20
Storm 3.96 4.41 -0.50
Sharks 2.50 -1.06 3.60
Roosters 2.31 11.20 -8.90
Bulldogs 1.11 1.50 -0.40
Eels 1.04 -4.62 5.70
Panthers -0.10 -3.06 3.00
Raiders -0.12 -0.55 0.40
Sea Eagles -0.29 0.36 -0.70
Rabbitohs -0.35 -1.20 0.90
Dragons -2.46 -0.10 -2.40
Titans -4.75 -8.39 3.60
Warriors -6.70 -7.47 0.80
Wests Tigers -8.24 -4.06 -4.20
Knights -11.21 -5.41 -5.80

 

Performance So Far

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

Game Date Score Prediction Correct
1 Broncos vs. Rabbitohs Apr 22 30 – 8 14.30 TRUE
2 Bulldogs vs. Titans Apr 23 21 – 20 10.20 TRUE
3 Raiders vs. Wests Tigers Apr 23 60 – 6 4.60 TRUE
4 Cowboys vs. Eels Apr 23 32 – 16 14.70 TRUE
5 Sharks vs. Panthers Apr 24 20 – 18 6.30 TRUE
6 Knights vs. Sea Eagles Apr 25 10 – 26 -6.60 TRUE
7 Dragons vs. Roosters Apr 25 20 – 18 -5.90 FALSE
8 Storm vs. Warriors Apr 25 42 – 0 10.40 TRUE

 

Predictions for Round 9

Here are the predictions for Round 9. 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 Apr 28 Rabbitohs 7.90
2 Eels vs. Bulldogs Apr 29 Eels 2.90
3 Panthers vs. Raiders Apr 30 Panthers 0.00
4 Roosters vs. Knights Apr 30 Roosters 16.50
5 Sea Eagles vs. Cowboys Apr 30 Cowboys -10.20
6 Warriors vs. Dragons May 01 Dragons -0.20
7 Titans vs. Storm May 01 Storm -5.70
8 Sharks vs. Broncos May 01 Broncos -6.50

 

Not just an illusion

There’s a headline in the IndependentIf you think more celebrities are dying young this year, you’re wrong – it’s just a trick of the mind“. And, in a sense, Ben Chu is right. In a much more important sense, he’s wrong.

He argues that there are more celebrities at risk now, which there are. He says a lot of these celebrities are older than we realise, which they are. He says that the number of celebrity deaths this year is within the scope of random variation looking at recent times, which may well be the case. But I don’t think that’s the question.

Usually, I’m taking the other side of this point. When there’s an especially good or especially bad weekend for road crashes, I say that it’s likely just random variation, and not evidence for speeding tolerances or unsafe tourists or breath alcohol levels. That’s because usually the question is whether the underlying process is changing: are the roads getting safer or more dangerous.

This time there isn’t really a serious question of whether karma, global warming, or spiders from Mars are killing off celebrities.  We know it must be a combination of understandable trends and bad luck that’s responsible.  But there really have been more celebrities dying this year.   Prince is really dead. Bowie is really dead. Victoria Wood, Patty Duke, Ronnie Corbett, Alan Rickman, Harper Lee — 2016 has actually happened this way,  it hasn’t been (to steal a line from Daniel Davies) just a particularly inaccurate observation of the underlying population and mortality patterns.

April 25, 2016

Stat of the Week Competition: April 23 – 29 2016

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 April 29 2016.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of April 23 – 29 2016 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…)

April 24, 2016

On numbers meaning something

From a 2014 interview of Randall Munroe (XKCD) at 538,

We’re always seeing things like, “This canal project will require 1.15 million tons of concrete.” It’s presented as if it should mean something to us, as if numbers are inherently informative. So we feel like if we don’t understand it, it’s our fault.

[…]

 …Or is this just easy, space-filling trivia? A good rule of thumb might be, “If I added a zero to this number, would the sentence containing it mean something different to me?” If the answer is “no,” maybe the number has no business being in the sentence in the first place.

via Jenny Bryan

Briefly

  • An example of bad forms design. 73% of members of the “American Indepedent Party” in California didn’t realise they were members of a party. They won’t be able to vote in the Democratic primary, though unaffiliated voters will be able to.  This ‘73%’ is also an example of the denominator mattering: the errors are estimated at 73% of AIP members but only 12% of independents
  • Herald (Daily Mail) headline “Meditation can knock 7 years off age of your brain”. Text: “those who meditate may lead healthier lifestyles in general. It is also possible that some inherent difference in brain structure makes some people more likely to take up meditating. Those studied had practised various types of traditional meditation for an average of 20 years.
  • Amazon has been distinctive for making the same prices available to rich and poor Americans. But the same-day free delivery service is becoming an exception. Bloomberg looks at why (with graphics) (via Harkanwal Singh)
  • Maps of electorate-level odds for the Australian election, with an interesting attempt to solve the problem of a continent made up mostly of empty space
  • A data proofreading app designed for data journalists (via Kristin Henry)
April 20, 2016

Housing affordability graphics

Another nice Herald interactive, this time of housing affordability.

map

Affordability comes in two parts: down payment and monthly mortgage costs. The affordability index from Massey University looks at monthly payments; this one looks at the 20% down payment.

The difference between Auckland and the rest of the country is pretty dramatic, but there are other things to see. Above, the centre of Auckland is much less expensive than the rest of the city: 75% of properties are valued at under $500,000 by CoreLogic.  That’s the apartments, but they mostly aren’t the sort of apartments people are planning to stay in long-term.

Another interesting feature for Auckland is that the neighbourhoods really are ordered in price — you don’t see the spatial trends changing as you move the slider, so there aren’t areas where the low-end houses are especially cheap and the high-end houses especially expensive.

You can also see the difficulty of relating valuations to prices. In Point Chev, the valuations say 70% of homes are valued at over $1 million. On the other hand, the median sale price is $990,00, so less than half the homes that changed hands went for over a million.

CgcdhlFUMAAj56W

Both those numbers are correct. Well, ok,  I assume they are both correct; they are both what they are supposed to be.  It’s just that home sales aren’t a random sample of all homes.  But if the median sale price is $990k and the median valuation for all homes is $1.2m, you can see that interpreting these numbers is harder than it looks.

Super 18 Predictions for Round 9

Team Ratings for Round 9

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
Crusaders 7.89 9.84 -1.90
Hurricanes 6.70 7.26 -0.60
Chiefs 6.51 2.68 3.80
Highlanders 6.25 6.80 -0.50
Brumbies 3.97 3.15 0.80
Waratahs 1.80 4.88 -3.10
Stormers 1.72 -0.62 2.30
Lions 0.73 -1.80 2.50
Bulls -0.32 -0.74 0.40
Sharks -1.31 -1.64 0.30
Blues -3.92 -5.51 1.60
Cheetahs -5.17 -9.27 4.10
Rebels -6.40 -6.33 -0.10
Jaguares -8.44 -10.00 1.60
Force -9.31 -8.43 -0.90
Reds -9.56 -9.81 0.30
Sunwolves -17.01 -10.00 -7.00
Kings -17.37 -13.66 -3.70

 

Performance So Far

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

Game Date Score Prediction Correct
1 Crusaders vs. Jaguares Apr 15 32 – 15 20.80 TRUE
2 Rebels vs. Hurricanes Apr 15 13 – 38 -6.90 TRUE
3 Cheetahs vs. Sunwolves Apr 15 92 – 17 7.80 TRUE
4 Blues vs. Sharks Apr 16 23 – 18 0.90 TRUE
5 Waratahs vs. Brumbies Apr 16 20 – 26 2.30 FALSE
6 Bulls vs. Reds Apr 16 41 – 22 12.40 TRUE
7 Lions vs. Stormers Apr 16 29 – 22 1.90 TRUE

 

Predictions for Round 9

Here are the predictions for Round 9. 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 Highlanders vs. Sharks Apr 22 Highlanders 11.60
2 Rebels vs. Cheetahs Apr 22 Rebels 2.80
3 Sunwolves vs. Jaguares Apr 23 Jaguares -4.60
4 Hurricanes vs. Chiefs Apr 23 Hurricanes 3.70
5 Force vs. Waratahs Apr 23 Waratahs -7.60
6 Stormers vs. Reds Apr 23 Stormers 15.30
7 Kings vs. Lions Apr 23 Lions -14.60
8 Brumbies vs. Crusaders Apr 24 Brumbies 0.10

 

NRL 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
Cowboys 12.83 10.29 2.50
Broncos 11.48 9.81 1.70
Roosters 2.88 11.20 -8.30
Sharks 2.84 -1.06 3.90
Storm 1.83 4.41 -2.60
Bulldogs 1.77 1.50 0.30
Eels 1.15 -4.62 5.80
Rabbitohs 0.21 -1.20 1.40
Panthers -0.44 -3.06 2.60
Sea Eagles -0.96 0.36 -1.30
Dragons -3.03 -0.10 -2.90
Raiders -3.37 -0.55 -2.80
Warriors -4.58 -7.47 2.90
Wests Tigers -4.99 -4.06 -0.90
Titans -5.41 -8.39 3.00
Knights -10.53 -5.41 -5.10

 

Performance So Far

So far there have been 56 matches played, 28 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 Sea Eagles vs. Eels Apr 14 10 – 22 3.00 FALSE
2 Cowboys vs. Rabbitohs Apr 15 44 – 18 13.90 TRUE
3 Titans vs. Dragons Apr 16 14 – 19 1.60 FALSE
4 Bulldogs vs. Warriors Apr 16 20 – 24 12.70 FALSE
5 Broncos vs. Knights Apr 16 53 – 0 20.70 TRUE
6 Raiders vs. Sharks Apr 17 16 – 40 0.10 FALSE
7 Wests Tigers vs. Storm Apr 17 18 – 19 -4.40 TRUE
8 Roosters vs. Panthers Apr 18 16 – 20 8.00 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 Broncos vs. Rabbitohs Apr 22 Broncos 14.30
2 Bulldogs vs. Titans Apr 23 Bulldogs 10.20
3 Raiders vs. Wests Tigers Apr 23 Raiders 4.60
4 Cowboys vs. Eels Apr 23 Cowboys 14.70
5 Sharks vs. Panthers Apr 24 Sharks 6.30
6 Knights vs. Sea Eagles Apr 25 Sea Eagles -6.60
7 Dragons vs. Roosters Apr 25 Roosters -5.90
8 Storm vs. Warriors Apr 25 Storm 10.40