September 9, 2015

Assessing popular opinion

One of the important roles played by good-quality opinion polls before an election is getting people’s expectations right.  It’s easy to believe that the opinions you hear everyday are representative, but for a lot of people they won’t be.  For example, here are the percentages for the National Party for each polling place in Auckland Central in the 2014 election. The curves show the margin of error around the overall vote for the electorate, which in this case wasn’t far from the overall for the whole country.

kael

For lots of people in Auckland Central, their neighbours vote differently than the electorate as a whole.  You could do this for the whole country, especially if the data were in a more convenient form, and it would be more dramatic.

Pauline Kael, the famous New York movie critic, mentioned this issue in a talk to the Modern Languages Association

“I live in a rather special world. I only know one person who voted for Nixon. Where they are I don’t know. They’re outside my ken. But sometimes when I’m in a theater I can feel them.”

She’s usually misquoted in a way that reverses her meaning, but still illustrates the point.

It’s hard to get hold of popular opinion just from what you happen to come across in ordinary life, but there are some useful strategies. For example, on the flag question

  • How many people do you personally know in real life who had expressed a  preference for one of the Lockwood fern flags and now prefer Red Peak?
  • How many people do you follow on Twitter (or friend on Facebook, or whatever on WhatsApp) who had expressed a  preference for one of the Lockwood fern flags and now prefer Red Peak?

For me, the answer to both of these is “No-one”: the Red Peak enthusiasts that I know aren’t Lockwood converts. I know of some people who have changed their preferences that way — I heard because of my last StatsChat post — but I have no idea what the relevant denominator is.

The petition is currently just under 34,000 votes, having slowed down in the past day or so. I don’t see how Red Peak could have close to a million supporters.  More importantly, anyone who knows that it does must have important evidence they aren’t sharing. If the groundswell is genuinely this strong, it should be possible to come up with a few thousand dollars to get at least a cheap panel survey and demonstrate the level of support.

I don’t want to go too far in being negative. Enthusiasm for this option definitely goes beyond disaffected left-wing twitterati — it’s not just Red pique — but changing the final four at this point really should require some reason to believe the new flag could win. I don’t see it.

Opinion is still evolving, and maybe this time we’ll keep the Australia-lite flag and the country will support something I like next time.

 

September 8, 2015

Petitions and other non-representative data

Stuff has a story about the #redpeak  flag campaign, including a clicky bogus poll that currently shows nearly 11000 votes in support of the flag candidate. While Red Peak isn’t my favourite (I prefer Sven Baker’s Huihui),  I like it better than the four official candidates. That doesn’t mean I like the bogus poll.

As I’ve written before, a self-selected poll is like a petition; it shows that at least the people who took part had the views they had. The web polls don’t really even show that — it’s pretty easy to vote two or three times. There’s also no check that the votes are from New Zealand — mine wasn’t, though most of them probably are.  The Stuff clicky poll doesn’t even show that 11,000 people voted for the Red Peak flag.

So far, this Stuff poll at least hasn’t been treated as news. However, the previous one has.  At the bottom of one of the #redpeak stories you can read

In a Stuff.co.nz poll of 16,890 readers, 39 per cent of readers voted to keep the current flag rather than change it. 

Kyle Lockwood’s Silver Fern (black, white and blue) was the most popular alternate flag design, with 27 per cent of the vote, while his other design, Silver Fern (red, white and blue), got 23 per cent. This meant, if Lockwood fans rallied around one of his flags, they could vote one in.

Flags designed by Alofi Kanter – the black and white fern – and Andrew Fyfe each got 6 per cent or less of the vote

They don’t say, but that looks very much like this clicky poll from an earlier Stuff flag story, though it’s now up to about 17500 votes

flagpoll

You can’t use results from clicky polls as population estimates, whether for readers or the electorate as a whole. It doesn’t work.

Over approximately the same time period there was a real survey by UMR (PDF), which found only 52% of people preferred their favourite among the four flags to the current flag.  The referendum looks a lot closer than the clicky poll suggests.

The two Lockwood ferns were robustly the most popular flags in the survey, coming  in as the top two for all age groups; men and women; Māori; and Labour, National and Green voters. Red Peak was one of the four least preferred in every one of these groups.

Only 1.5% of respondents listed Red Peak among their top four.  Over the whole electorate that’s still about 45000, which is why an online petition with 31000 electronic signatures should have about the impact it’s going to have on the government.

Depending on turnout, it’s going to take in the neighbourhood of a million supporting votes for a new flag to overturn the current flag. It’s going to take about the same number of votes ranking Red Peak higher than the Lockwood ferns for it to get on to the final ballot.

In the Stuff story, Graeme Edgeler suggests “Perhaps if there were a million people in a march” would be enough to change the government’s mind. He’s probably right, though I’d say a million estimated from a proper survey, or maybe fifty thousand in a march should be enough. For an internet petition, perhaps two hundred thousand might be a persuasive number, if there was some care taken that they were distinct people and eligible voters.

For those of us in a minority on flag matters, Andrew Geddis has a useful take

In fact, I’m pretty take-it-or-leave-it on the whole point of having a “national” flag. Sure, we need something to put up on public buildings and hoist a few times at sporting events. But I quite like the fact that we’ve got a bunch of other generally used national symbols that can be appropriated for different purposes. The silver fern for putting onto backpacks in Europe. The Kiwi for our armed forces and “Buy NZ Made” logos. The Koru for when we’re feeling the need to be all bi-cultural.

If you like Red Peak, fly it. At the moment, the available data suggest you’re in as much of minority as me.

September 7, 2015

Don’t take sex advice from the Daily Mail

I usually don’t bother commenting on unsourced ‘nutrition’ claims, but the Herald has this one on the front page of the website, only four stories down from the increase in the number of Syrian refugees

mail

It’s from the Daily Mail  and it’s about sex. That’s never a good sign.

Some of the advice is plausible — they say the same things about alcohol that the Porter does in Macbeth, though less felicitously phrased. At the other extreme

The trans-fats found in most fried foods are known to decrease the libido in both men and women by increasing abnormal sperm production (lower sperm count and slower sperm movement) in men and interfering with gestation in women.

That’s fertility, not libido. The difference is kind of important.

Chocolate is always a favourite of this sort of story

A known aphrodisiac, chocolate is absolutely delightful, as it is full of anandamide and phenylethylamine, two ingredients that cause the body to release the happy hormones, known as endorphins. However, while the happy hormones are great, cocoa also contains methylxantines, which can make us lethargic and lower the libido.

The concentrations of anandamide and phenylethylamine have been demonstrated to be too small to have an effect.  Also, anandamide doesn’t release endorphins — it has a direct effect (in larger doses) as a cannabis analogue. And phenylethylamine doesn’t release endorphins; it has direct but different drug-like effects (again, in larger doses).  Methylxanthines are actually present in chocolate at what might be biologically relevant levels, but that description of their effects is very unusual: the best known one is caffeine.

There’s also the common sort of  translation problem with stories from the other side of the world.  Red meat in New Zealand typically doesn’t contain hormones used to promote animal growth — it’s illegal for lamb or venison and rare for beef. [Update: actually, this part wouldn’t be true in the UK either]

Overall, the food effects are either untrue or exaggerated, which is pretty much what you’d expect given the topic and the source.  If your favourite member of the appropriate sex likes chocolate, giving them some might or might not have the desired effect. If it doesn’t, the problem probably isn’t the methylxanthines.

 

Some refugee numbers

First, the Gulf States. It has been widely reported that the Gulf States have taken zero refugees from Syria.  This is by definition: they are not signatories to the relevant UN Conventions, so people fleeing to the Gulf States do not count as refugees according to the UNHCR. Those people still exist. There are relevant questions about why these states aren’t signatories, and about how they have treated the (many) Syrians who fled there,  and about whether they should accept more people from Syria, and about their humanitarian record in general. The official figure of zero refugees isn’t a good starting point, though.

 

Second, New Zealand. The Government has announced an increase in the refugee quota, but the announcement is a mixture of annual figures and figures added up across two and a half years. It would be clearer if the numbers used the same time period.

The current quota is 750 per year. Over the next 2.5 years that would be 1875 people. We are increasing this by 600, to 2475.  The current budget is $58 million/year. Over the next 2.5 years that would be $145 million. We are increasing this by an estimated $48 million, to $193 million. Either by numbers or by dollars, this is about a 1/3 increase.

Stat of the Week Competition: September 5 – 11 2015

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 11 2015.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of September 5 – 11 2015 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…)

September 2, 2015

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
Roosters 11.92 9.09 2.80
Broncos 10.03 4.03 6.00
Cowboys 6.63 9.52 -2.90
Storm 4.13 4.36 -0.20
Bulldogs 3.68 0.21 3.50
Rabbitohs 1.96 13.06 -11.10
Sea Eagles 0.13 2.68 -2.50
Dragons 0.00 -1.74 1.70
Sharks -0.38 -10.76 10.40
Raiders -1.40 -7.09 5.70
Panthers -3.79 3.69 -7.50
Knights -4.46 -0.28 -4.20
Eels -4.80 -7.19 2.40
Wests Tigers -5.65 -13.13 7.50
Warriors -8.32 3.07 -11.40
Titans -8.35 -8.20 -0.10

 

Performance So Far

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

Game Date Score Prediction Correct
1 Rabbitohs vs. Broncos Aug 27 12 – 47 -0.40 TRUE
2 Sea Eagles vs. Roosters Aug 28 10 – 46 -4.60 TRUE
3 Eels vs. Sharks Aug 29 28 – 35 -0.50 TRUE
4 Knights vs. Bulldogs Aug 29 18 – 20 -5.70 TRUE
5 Storm vs. Cowboys Aug 29 14 – 6 -0.80 FALSE
6 Wests Tigers vs. Warriors Aug 30 50 – 16 2.40 TRUE
7 Titans vs. Dragons Aug 30 28 – 26 -6.60 FALSE
8 Raiders vs. Panthers Aug 31 34 – 18 3.60 TRUE

 

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 Broncos vs. Storm Sep 03 Broncos 8.90
2 Roosters vs. Rabbitohs Sep 04 Roosters 13.00
3 Panthers vs. Knights Sep 05 Panthers 3.70
4 Dragons vs. Wests Tigers Sep 05 Dragons 8.60
5 Cowboys vs. Titans Sep 05 Cowboys 18.00
6 Eels vs. Raiders Sep 06 Raiders -0.40
7 Sharks vs. Sea Eagles Sep 06 Sharks 2.50
8 Bulldogs vs. Warriors Sep 06 Bulldogs 16.00

 

ITM Cup 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
Tasman 12.47 12.86 -0.40
Canterbury 11.16 10.90 0.30
Hawke’s Bay 5.63 -0.57 6.20
Auckland 4.43 5.14 -0.70
Counties Manukau 4.14 7.86 -3.70
Taranaki 3.43 7.70 -4.30
Wellington 2.36 -4.62 7.00
Manawatu -2.13 -1.52 -0.60
Waikato -2.17 -6.96 4.80
Otago -4.30 -4.84 0.50
Southland -6.95 -6.01 -0.90
Northland -8.33 -3.64 -4.70
Bay of Plenty -10.56 -9.77 -0.80
North Harbour -13.18 -10.54 -2.60

 

Performance So Far

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

Game Date Score Prediction Correct
1 Bay of Plenty vs. Southland Aug 26 26 – 10 -0.70 FALSE
2 Tasman vs. Manawatu Aug 27 41 – 21 18.30 TRUE
3 Counties Manukau vs. Hawke’s Bay Aug 28 11 – 35 8.30 FALSE
4 Auckland vs. Canterbury Aug 29 21 – 27 -2.00 TRUE
5 Taranaki vs. Otago Aug 29 27 – 34 15.80 FALSE
6 Wellington vs. Northland Aug 29 29 – 0 11.50 TRUE
7 Bay of Plenty vs. Waikato Aug 30 10 – 43 0.40 FALSE
8 Southland vs. North Harbour Aug 30 25 – 26 14.20 FALSE

 

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 Taranaki vs. Counties Manukau Sep 02 Taranaki 3.30
2 Manawatu vs. Canterbury Sep 03 Canterbury -9.30
3 Otago vs. Tasman Sep 04 Tasman -12.80
4 Waikato vs. Auckland Sep 05 Auckland -2.60
5 Southland vs. Wellington Sep 05 Wellington -5.30
6 Hawke’s Bay vs. North Harbour Sep 05 Hawke’s Bay 22.80
7 Northland vs. Taranaki Sep 06 Taranaki -7.80
8 Counties Manukau vs. Bay of Plenty Sep 06 Counties Manukau 18.70

 

Currie Cup 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
Lions 4.79 3.04 1.70
Western Province 4.32 4.93 -0.60
Sharks 2.12 3.43 -1.30
Blue Bulls 2.05 0.17 1.90
Cheetahs -1.53 -1.75 0.20
Pumas -6.70 -6.47 -0.20
Griquas -9.29 -7.81 -1.50
Kings -9.66 -9.44 -0.20

 

Performance So Far

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

Game Date Score Prediction Correct
1 Pumas vs. Lions Aug 28 11 – 41 -6.90 TRUE
2 Cheetahs vs. Western Province Aug 28 28 – 21 -2.90 FALSE
3 Griquas vs. Blue Bulls Aug 29 32 – 46 -7.20 TRUE
4 Kings vs. Sharks Aug 29 20 – 24 -8.80 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 Blue Bulls vs. Cheetahs Sep 04 Blue Bulls 7.10
2 Sharks vs. Pumas Sep 05 Sharks 12.30
3 Western Province vs. Griquas Sep 05 Western Province 17.10
4 Lions vs. Kings Sep 05 Lions 18.00

 

August 31, 2015

Gender gap

As I’ve noted in the past, one of the big components of the remaining gender pay gap is lower pay for jobs that attract more women. I thought this was an issue where direct action would be infeasible. Maybe not.

Two New Zealand groups are now trying to target this, as described by Kirsty Johnson and Nicholas Jones in the Herald. When trying legal action, midwives and education support workers have the advantage that their wages are set by the government.

Having set wages for a large group gives the case someone to target, and it also weakens the counterargument based on individual differences. I don’t know whether this sort of claim is likely to succeed under NZ law, or what the impact would be if it did. I don’t even known whether success is desirable. But it’s an interesting approach to a real problem.

Graph of the day

Literally, this time. I got this from Andrew Gelman, but it’s too good not to share. It’s originally from the Wall Street Journal

image001

Apart from the attempts to make the body part representative of the activity, the unwisdom of playing soccer in high heels, and the mystery of what it actually is that she’s eating or drinking (a martini? an icecream?), there are some generalisable graphical points.

First, comparison of area between different shapes is hard, and so isn’t a good way to display data: it’s not immediately clear whether the Knee of Religion is larger than the Forehead of Education or the Shoe of Caring.

Second, trying to code the direction of change with colour means you can’t use colour (consistently) to distinguish categories.

Third, some of the figures aren’t very helpful because they average over everyone: only about 60% of the adult population is in paid employment, and only a small proportion are in education. For people who work or study the time spent is a lot more than the average, for everyone else it’s zero.

And finally, if you have to write all the numbers on the graph, the graph isn’t doing its job.