Posts filed under General (3152)

May 13, 2016

Aggregation, not ok?

You’ve probably heard of OkCupid, a dating site. People give sites like that a lot of personal information. And, in a sense, the information is obviously not going to be kept secret — after all, the point of using a dating site is to be found by people you don’t already know.  When someone writes a script to collect the data from large numbers of users, and then publishes it in a convenient and easy to process format, you can just about see how they’d think that was ok. It’s harder to see how they’d be surprised not everyone feels that way.

Aggregation makes a difference because we can search, match, and analyse the data by computer. That’s important for two reasons.

First, it’s quicker and easier — you can get a set of records grouped by sexual preference or other interests almost as quickly as you can think of the question, and you can link usernames or other information to other datasets. The database includes potential matching variables like income, education level, age, job, country, city, which you could still use just taking down data one person at a time by hand, but it would be slow and boring.

Second, the database is impersonal. If you stood outside a gay bar watching who went in and out, you couldn’t really pretend you were innocently using publicly visible information.  If you signed up and went through dating profiles one at a time, it would be easier to pretend, but you’d still tend to see the people behind the data. When it’s a big spreadsheet, it’s easier to ignore how the people would feel about it.

Sometimes people aggregate and publish data knowing it may do harm, because they think there’s a higher interest involved in getting the data out — even if the data release is obviously illegal. This release isn’t obviously illegal (though there are possibilities), but the higher interest is pretty obscure too. The accompanying research paper says

As an example of the analyses one can do with the dataset, a cognitive ability test is constructed from 14 suitable items. To validate the dataset and the test, the relationship of cognitive ability to religious beliefs and political interest/participation is examined.

Those variables are so not what’s going to attract people to these data. But even if you think it’s important for anyone on the internet to be able to do that sort of correlation for variables such as sexual orientation and drug use, it’s hard to think of a reason to include the OkCupid username.

May 12, 2016

Stretching it a bit

Q; Did you see yoghurt prevents cancer?

A: Where?

Q: The Herald (from the Daily Telegraph): “8 ways to lower your cancer risk.” Number one is “Eat yoghurt”. And they even have a link to research. How’s that for impressive?

A: Not exactly a link. They mention the name of a journal, but don’t even give the researchers’ names.

Q: Can’t you find them?

A: Of course. It’s even open-access.

Q: So, how much yoghurt did the people have to eat?

A: No yoghurt was harmed in this experiment. Also no people.

Q: Mice?

A: Mice.

Q: But yoghurt?

A: No. Some of the mice were set up with a restricted set of gut bacteria (missing known nasty ones) by being raised in a mouse colony who all had the restricted set.

Q: But the story says “gave one group of mice beneficial bacteria through probiotic supplements and the other non-beneficial bacteria.

A: Yes, it does. The research paper, not so much. Nor even the press release.

Q: So why yoghurt?

A: One of the bacteria that was more common in the mice with the restricted set is a Lactobacillus strain. Other Lactobacillus strains, even sometimes from the same species, are involved in making yoghurt, sourdough, sauerkraut, kimchi, etc.

Q: And you could use the mouse bacteria to make these foods?

A: In principle, probably, though you might not want to advertise it that way.

Q: So, the mice with more Lactobacillus were less likely to get cancer?

A: These were mutant mice who all get cancer, so that’s not really the question. They took longer to get cancer.

Q: So we can’t really be confident yoghurt would prevent normal mice from getting cancer?

A: No, it’s too soon to tell.

Q: Good thing normal mice don’t read the newspapers, then.

May 11, 2016

Super 18 Predictions for Round 12

 

Team Ratings for Round 12

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 10.09 9.84 0.30
Hurricanes 7.09 7.26 -0.20
Highlanders 6.86 6.80 0.10
Chiefs 5.22 2.68 2.50
Waratahs 3.78 4.88 -1.10
Brumbies 2.75 3.15 -0.40
Stormers 1.62 -0.62 2.20
Sharks 1.29 -1.64 2.90
Lions 0.00 -1.80 1.80
Bulls -0.10 -0.74 0.60
Blues -3.68 -5.51 1.80
Rebels -5.29 -6.33 1.00
Cheetahs -7.08 -9.27 2.20
Jaguares -7.24 -10.00 2.80
Reds -9.61 -9.81 0.20
Force -10.87 -8.43 -2.40
Sunwolves -17.32 -10.00 -7.30
Kings -20.75 -13.66 -7.10

 

Performance So Far

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

Game Date Score Prediction Correct
1 Crusaders vs. Reds May 06 38 – 5 22.40 TRUE
2 Brumbies vs. Bulls May 06 23 – 6 5.50 TRUE
3 Sunwolves vs. Force May 07 22 – 40 -0.30 TRUE
4 Chiefs vs. Highlanders May 07 13 – 26 3.90 FALSE
5 Waratahs vs. Cheetahs May 07 21 – 6 14.80 TRUE
6 Sharks vs. Hurricanes May 07 32 – 15 -4.40 FALSE
7 Kings vs. Blues May 07 18 – 34 -12.70 TRUE

 

Predictions for Round 12

Here are the predictions for Round 12. 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. Crusaders May 13 Highlanders 0.30
2 Rebels vs. Brumbies May 13 Brumbies -4.50
3 Hurricanes vs. Reds May 14 Hurricanes 20.70
4 Waratahs vs. Bulls May 14 Waratahs 7.90
5 Sunwolves vs. Stormers May 14 Stormers -14.90
6 Cheetahs vs. Kings May 14 Cheetahs 17.20
7 Lions vs. Blues May 14 Lions 7.70
8 Jaguares vs. Sharks May 14 Sharks -4.50

 

May 10, 2016

Foreign real-estate investment

The first data under the new real-estate ownership reporting scheme is out. The Herald has a story and also includes a full copy of the report.

So, what proportion of Auckland property sales were reported as being to China?

In Auckland, the level of foreign investment was slightly higher than the national level, at 4 per cent, or 474 properties. Nearly 60 per cent of these properties went to Chinese tax residents.

That’s 60% of 4%, or a bit under 2.5%.  Auckland is different; in the rest of New Zealand the majority of foreign (tax-residency) investors are Australians.

The LINZ report does a good job explaining the real limitations of `tax residence’ as a criterion, but it’s a lot better than any previous data we’ve had.

There were also questions about actual residency and intention to occupy a home, but these were harder to interpret because of property bought by companies or trusts, where the questions didn’t have a good answer.

I’d suggest starting with the report rather than the news coverage.

 

May 9, 2016

What’s wrong with science news

“Coffee today is like God in the Old Testament”, says John Oliver, reviewing the positive and negative headlines over the past year or so.  It’s excellent, if a little overblown in places.

On a related note, another site has fallen for the ‘cheese addiction/casomorphin’ hoax that we’ve seen before a few times. This time it’s Pharmacy Times.

May 4, 2016

Briefly

  • A historical list of data visualisations, starting in 5500BCE Mesopotamia
  • Selection bias: @_OneRandomTweet retweets one random tweet every few hours, “to remind you that people don’t use Twitter like you do
  • Richard Clark: “The boundaries of New Zealand suburbs and localities is held by the New Zealand Fire Service. For years, the NZFS has refused to provide this data under any terms except a restrictive license, and it has to stop.
  • Outsourcing: Andrew Gelman is disappointed in the NZ Herald, so I don’t have to be.
  • Survivor bias:

Super 18 Predictions for Round 11

Team Ratings for Round 11

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
Hurricanes 8.37 7.26 1.10
Chiefs 6.23 2.68 3.60
Highlanders 5.85 6.80 -0.90
Waratahs 3.77 4.88 -1.10
Brumbies 2.05 3.15 -1.10
Stormers 1.62 -0.62 2.20
Bulls 0.59 -0.74 1.30
Sharks 0.00 -1.64 1.60
Lions 0.00 -1.80 1.80
Blues -3.88 -5.51 1.60
Rebels -5.29 -6.33 1.00
Cheetahs -7.07 -9.27 2.20
Jaguares -7.24 -10.00 2.80
Reds -8.98 -9.81 0.80
Force -11.93 -8.43 -3.50
Sunwolves -16.26 -10.00 -6.30
Kings -20.55 -13.66 -6.90

 

Performance So Far

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

Game Date Score Prediction Correct
1 Chiefs vs. Sharks Apr 29 24 – 22 11.40 TRUE
2 Force vs. Bulls Apr 29 20 – 42 -6.70 TRUE
3 Highlanders vs. Brumbies Apr 30 23 – 10 7.10 TRUE
4 Blues vs. Rebels Apr 30 36 – 30 5.30 TRUE
5 Reds vs. Cheetahs Apr 30 30 – 17 0.60 TRUE
6 Lions vs. Hurricanes Apr 30 17 – 50 -0.50 TRUE
7 Stormers vs. Waratahs Apr 30 30 – 32 2.40 FALSE
8 Jaguares vs. Kings Apr 30 73 – 27 13.40 TRUE

 

Predictions for Round 11

Here are the predictions for Round 11. 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. Reds May 06 Crusaders 22.40
2 Brumbies vs. Bulls May 06 Brumbies 5.50
3 Sunwolves vs. Force May 07 Force -0.30
4 Chiefs vs. Highlanders May 07 Chiefs 3.90
5 Waratahs vs. Cheetahs May 07 Waratahs 14.80
6 Sharks vs. Hurricanes May 07 Hurricanes -4.40
7 Kings vs. Blues May 07 Blues -12.70

 

NRL 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
Cowboys 12.60 10.29 2.30
Broncos 11.43 9.81 1.60
Storm 6.13 4.41 1.70
Roosters 3.78 11.20 -7.40
Sharks 3.11 -1.06 4.20
Eels 1.45 -4.62 6.10
Bulldogs 0.71 1.50 -0.80
Sea Eagles 0.05 0.36 -0.30
Panthers -0.02 -3.06 3.00
Raiders -0.20 -0.55 0.40
Rabbitohs -1.46 -1.20 -0.30
Dragons -3.59 -0.10 -3.50
Warriors -5.57 -7.47 1.90
Titans -6.92 -8.39 1.50
Wests Tigers -7.13 -4.06 -3.10
Knights -12.68 -5.41 -7.30

 

Performance So Far

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

Game Date Score Prediction Correct
1 Rabbitohs vs. Wests Tigers Apr 28 22 – 30 7.90 FALSE
2 Eels vs. Bulldogs Apr 29 20 – 12 2.90 TRUE
3 Panthers vs. Raiders Apr 30 19 – 18 0.00 TRUE
4 Roosters vs. Knights Apr 30 38 – 0 16.50 TRUE
5 Sea Eagles vs. Cowboys Apr 30 28 – 34 -10.20 TRUE
6 Warriors vs. Dragons May 01 26 – 10 -0.20 FALSE
7 Titans vs. Storm May 01 0 – 38 -5.70 TRUE
8 Sharks vs. Broncos May 01 30 – 28 -6.50 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 Dragons vs. Raiders May 12 Raiders -0.40
2 Eels vs. Rabbitohs May 13 Eels 5.90
3 Panthers vs. Warriors May 14 Panthers 5.60
4 Storm vs. Cowboys May 14 Cowboys -6.50
5 Broncos vs. Sea Eagles May 14 Broncos 14.40
6 Knights vs. Sharks May 15 Sharks -12.80
7 Wests Tigers vs. Bulldogs May 15 Bulldogs -7.80
8 Titans vs. Roosters May 16 Roosters -7.70

 

May 3, 2016

Bright lights, big city

From NewsHub: “NZ’s most violent city spots revealed”

The approximately one square kilometre grid follows part of Queen St and includes the area around the Sky Tower and casino, as well as the eclectic entertainment strip of Karangahape Rd.

Last calendar year 550 people were the victims of assaults, sexual attacks and robberies in this area.

That’s a rate for these violent crimes more than six-and-a-half times the national average.

The other top locations included two more areas in central Auckland, and a chunk of central Wellington including Cuba St and Courtenay Place.  One thing these four (and quite possibly some of the other top locations) have in common is that a lot of people who don’t live there spend time there — and some of these people commit or suffer violent crimes.  Auckland Central West has a very high violent crime rate for its local population, but some of that is because the relevant population isn’t just the local residents, it’s workers by day and revellers by night.   The area is presumably more dangerous than the national average, but it’s not six and a half times more dangerous.

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