June 18, 2023

Smartphone blood pressure

At Ars Technica there’s an interesting story about a smartphone addon being developed to provide rapid, inexpensive blood pressure measurement.   Home blood pressure machines aren’t all that cheap and they’re a bit tricky to use reliably on your  own. Smartphones, obviously, are more expensive than the blood pressure machines, but people might already own them because they are multi-use devices — you can read StatsChat on them as well.  Blood pressure measurement is important because high blood pressure not only presents a risk of heart and brain and kidney damage but is something we can actually treat, safely and effectively, at very low cost.

The gadget uses a smartphone torch and camera to shine light into your finger, and also measures how hard you’re pressing on it. Taking a range of readings at different pressures over a few minutes lets it estimate your blood pressure.  If you heard about problems with oxygen perfusion measurements during the early pandemic, you might worry that this isn’t going to work well in people with dark skin.  The researchers tried to look at this, but it’s not clear whether they had any particularly dark-skinned people in the study (they divided their participants up into Asian, Hispanic, and White, and this was in San Diego).  The other question is accuracy. The story says

 The current version of BPClip produces measurements that may differ from cuff readings by as much as 8 mmHg.

The linked research paper, on the other hand, says 8 mmHg is the mean absolute error — the average difference between the new gadget and a traditional reading. You’d expect about 40% of readings to differ by more than that, and maybe 10% to differ by twice as much.  In fact, the research paper has this picture where the vertical axis is the difference between the new gadget and traditional BP measurements (and the horizontal axis is the average of the two)

It’s clear that the gadget produces measurements that may differ from cuff readings by as much as 20 mmHg — and that’s after dropping  out 5 of the 29 study participants because they couldn’t get good measurements.  When researchers do carefully report their accuracy it’s a pity to get it wrong in translation

June 13, 2023

NRL Predictions for Round 16

Team Ratings for Round 16

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
Panthers 13.20 12.99 0.20
Rabbitohs 8.13 9.35 -1.20
Storm 6.39 11.21 -4.80
Eels 5.28 6.78 -1.50
Broncos 1.04 -5.92 7.00
Sharks 0.53 4.50 -4.00
Cowboys -0.12 6.23 -6.30
Roosters -0.68 7.64 -8.30
Raiders -1.46 1.98 -3.40
Dragons -1.87 -2.73 0.90
Sea Eagles -2.62 -5.26 2.60
Warriors -3.00 -11.12 8.10
Titans -5.91 -6.32 0.40
Dolphins -6.87 -10.00 3.10
Wests Tigers -7.29 -13.52 6.20
Knights -7.83 -9.53 1.70
Bulldogs -8.91 -8.29 -0.60

 

Performance So Far

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

Game Date Score Prediction Correct
1 Titans vs. Wests Tigers Jun 08 28 – 12 2.60 TRUE
2 Raiders vs. Warriors Jun 09 14 – 36 11.20 FALSE
3 Sea Eagles vs. Dolphins Jun 09 58 – 18 3.30 TRUE
4 Dragons vs. Rabbitohs Jun 10 36 – 30 -8.90 FALSE
5 Broncos vs. Knights Jun 10 24 – 20 13.20 TRUE
6 Roosters vs. Panthers Jun 10 6 – 30 -9.00 TRUE
7 Storm vs. Sharks Jun 11 54 – 10 4.70 TRUE
8 Bulldogs vs. Eels Jun 12 12 – 34 -9.50 TRUE

 

Predictions for Round 16

Here are the predictions for Round 16. 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. Panthers Jun 16 Panthers -10.30
2 Knights vs. Roosters Jun 17 Roosters -4.20
3 Eels vs. Sea Eagles Jun 17 Eels 10.90
4 Wests Tigers vs. Storm Jun 17 Storm -10.70
5 Sharks vs. Bulldogs Jun 18 Sharks 12.40

 

Top 14 Predictions for the Final

Team Ratings for the Final

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
Stade Toulousain 8.12 6.34 1.80
La Rochelle 7.40 6.88 0.50
Bordeaux Begles 4.76 5.27 -0.50
Racing 92 4.26 4.86 -0.60
Toulon 3.84 4.09 -0.30
Lyon 3.44 3.10 0.30
Stade Francais 2.76 -1.05 3.80
Montpellier 2.67 4.18 -1.50
Clermont 2.03 4.05 -2.00
Castres Olympique 0.04 2.87 -2.80
Section Paloise -0.21 -2.12 1.90
Aviron Bayonnais -1.41 -4.26 2.80
USA Perpignan -3.60 -2.75 -0.90
Brive -6.85 -4.20 -2.70

 

Performance So Far

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

Game Date Score Prediction Correct
1 Stade Toulousain vs. Racing 92 Jun 10 41 – 14 2.30 TRUE
2 La Rochelle vs. Bordeaux Begles Jun 11 24 – 13 1.70 TRUE

 

Predictions for the Final

Here are the predictions for the Final. 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 La Rochelle vs. Stade Toulousain Jun 18 Stade Toulousain -0.70

 

Super Rugby Predictions for the Semi-finals

Team Ratings for the Semi-finals

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 17.44 17.95 -0.50
Blues 13.22 12.34 0.90
Chiefs 13.03 8.81 4.20
Hurricanes 10.03 9.59 0.40
Brumbies 6.51 6.64 -0.10
Highlanders 1.30 5.04 -3.70
Reds -0.05 1.89 -1.90
Waratahs -2.08 -2.50 0.40
Rebels -4.61 -6.19 1.60
Western Force -6.15 -5.54 -0.60
Fijian Drua -9.21 -10.50 1.30
Moana Pasifika -10.80 -8.91 -1.90

 

Performance So Far

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

Game Date Score Prediction Correct
1 Blues vs. Waratahs Jun 09 41 – 12 20.00 TRUE
2 Chiefs vs. Reds Jun 10 29 – 20 19.50 TRUE
3 Crusaders vs. Fijian Drua Jun 10 49 – 8 31.30 TRUE
4 Brumbies vs. Hurricanes Jun 10 37 – 33 1.70 TRUE

 

Predictions for the Semi-finals

Here are the predictions for the Semi-finals. 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. Blues Jun 16 Crusaders 7.70
2 Chiefs vs. Brumbies Jun 17 Chiefs 12.00

 

Currie Cup Predictions for the Semi Finals

Team Ratings for the Semi Finals

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 4.78 4.67 0.10
Pumas 3.94 2.84 1.10
Sharks 1.51 -1.30 2.80
Bulls 0.92 3.43 -2.50
Western Province 0.59 -3.24 3.80
Griquas -2.59 1.39 -4.00
Lions -4.44 -7.79 3.40
Griffons -14.70 -10.00 -4.70

 

Performance So Far

So far there have been 56 matches played, 32 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 Griquas vs. Pumas Jun 09 22 – 39 -0.30 TRUE
2 Lions vs. Griffons Jun 10 17 – 27 17.90 FALSE
3 Bulls vs. Cheetahs Jun 11 27 – 31 0.90 FALSE
4 Western Province vs. Sharks Jun 11 44 – 5 -2.00 FALSE

 

Predictions for the Semi Finals

Here are the predictions for the Semi Finals. 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 Cheetahs vs. Bulls Jun 18 Cheetahs 7.90
2 Sharks vs. Pumas Jun 18 Sharks 1.60

 

June 11, 2023

72% of landlords?

Chris Luxon, via Q+A:

“72% of all landlords are Mum & Dad investors… they are not evil property speculators”

This is attracting a lot of comment, because it can be interpreted as two quite different claims: either that the landlord of a randomly chosen rental has a 72% chance of being a “Mum & Dad investor” or that a randomly chosen person or corporation who is a landlord has a 72% chance of being a “Mum & Dad investor”.  Mr Luxon presumably means the latter, which is the more natural statistical interpretation, though (and this is a frequent Statschat theme) not necessarily the most relevant number to the policy question at hand.

Strictly speaking, we don’t have data on the fraction of  landlords who are Mum & Dad investors or evil property speculators. No-one makes landlords report whether they have children, whether they own property for speculation or investment, or even whether they are evil.  Some landlords might be evil and have children and not be speculators!  However, if we follow Kirsty Johnston a few years ago in the Herald in dividing up landlords by the numbers of properties they own, it turns out that (a) most of the actual people who own homes don’t own a lot and (b) the occasional people who each own a lot of homes collectively own a lot of homes.

Proportion of properties owned by people who own

One property – 27.1 per cent
Two properties – 13.2 per cent
Three properties – 6.5 per cent
Four to six properties – 10.7 per cent
Seven to 20 properties – 9.7 per cent
More than 20 properties – 9.4 per cent

Of the people who own more than one property, 52% own only two and 70% own two or three.

The word ‘people’ is important here: homes are also owned by companies.  Companies are definitionally not Mum & Dad investors, but they also aren’t necessarily evil property speculators.  The largest in that Herald story was Housing New Zealand, as it then was, who had 60,000 rental properties, and the category would include some other non-profit providers.  At least some of the people who don’t like landlords feel differently about community housing providers.

And, finally homes are owned by trusts, which is a much more difficulty category to survey, since there isn’t a centralised registry of beneficiaries of trusts. The Herald didn’t even hazard a guess.

So, there’s plenty of room for Chris Luxon’s claim to be largely true. Most landlords are probably small-scale, but the small proportion who aren’t will still add up to a lot of rentals.  However, he almost certainly doesn’t have reliable population data about either the parental status or moral alignment of landlords. Nor is it clear that the typical portfolio size of landlords should be decisive in deciding how to tax and regulate them.  Mum & Dad takeaways still need to follow food safety rules.

June 10, 2023

Chocolate for the brain?

Q: Did you see that chocolate and wine really are good for the brain?

A: Not convinced

Q: A randomised trial, though. 16% improvement in memory!

A: A randomised trial, but not 16% improvement in memory

Q: It’s what the Herald says

A: Well, more precisely, it’s what the Daily Telegraph says

Q: What does the research say?

A: It’s a good trial. People were randomly allocated to either flavanols from cocoa or placebo, and they did tests that are supposed to evaluate memory. The scores of both groups improved about 15% over the trial period. The researchers think this is due to practice.

Q: You mean like how Donald Trump remembered the words he was asked in a cognitive function test?

A: Yes, like that.

Q: But the story says there was a benefit in people who had low-flavanol diets before the study.

A: Yes, there was borderline evidence of a difference between people with high and low levels of flavanols in their urine. But that’s a difference of 0.1 points in average score compared to an average change of about 1 point. Nearly all the change in the treated people also showed up in the placebo group, so only a tiny fraction of it could be an effect of treatment.

Q: Was this the planned analysis of the trial or just something they thought up afterwards?

A: It was one of the planned analyses. One of quite a lot of planned analyses.

Q: That’s ok, isn’t it?

A: It’s ok if you don’t get too excited about borderline results in one of the analyses, yes.

Q: So it doesn’t work?

A: It might work — this is relatively impressive as dietary micronutrient evidence goes.  But if it works, it only works for people with low intakes of tea and apples and cherries and citrus and peppers and chocolate and soy.

Q: <sigh> We don’t really qualify, do we?

A: Probably not.

Q: So if we were eating chocolate primarily for the health effects?

A: We’d still be doing it wrong.

June 7, 2023

Briefly

  • Michael Neilson and Chris Knox at the NZ$ Herald have an excellent look at crime statistics and what you can’t straightforwardly conclude from them
  • Outsourcing:  there was a story about garlic to stop Covid.  Here are responses from a blog at the University of Waikato, and from misinformation.wiki
  • Many French labour regulations start to apply when you have 50 employees, says the Economist, showing the graph on the right that has a big drop in the number of businesses reporting 50 or more employees

    The graph on the left shows the same self-reporting from a different source.  The graph in the middle shows actual numbers of employees estimated using payroll data, with nothing happening at 50 — an interesting difference (from)
June 6, 2023

NRL Predictions for Round 15

Team Ratings for Round 15

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
Panthers 12.24 12.99 -0.80
Rabbitohs 9.09 9.35 -0.30
Eels 4.45 6.78 -2.30
Storm 4.31 11.21 -6.90
Sharks 2.60 4.50 -1.90
Broncos 1.69 -5.92 7.60
Raiders 0.36 1.98 -1.60
Roosters 0.29 7.64 -7.40
Cowboys -0.12 6.23 -6.30
Dragons -2.82 -2.73 -0.10
Sea Eagles -4.59 -5.26 0.70
Warriors -4.81 -11.12 6.30
Dolphins -4.90 -10.00 5.10
Wests Tigers -6.42 -13.52 7.10
Titans -6.79 -6.32 -0.50
Bulldogs -8.08 -8.29 0.20
Knights -8.48 -9.53 1.00

 

Performance So Far

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

Game Date Score Prediction Correct
1 Wests Tigers vs. Raiders Jun 02 19 – 20 -4.60 TRUE
2 Warriors vs. Dolphins Jun 03 30 – 8 3.90 TRUE
3 Titans vs. Rabbitohs Jun 03 28 – 46 -11.90 TRUE
4 Sharks vs. Broncos Jun 03 12 – 20 5.70 FALSE
5 Roosters vs. Bulldogs Jun 04 25 – 24 13.00 TRUE
6 Cowboys vs. Storm Jun 04 45 – 20 -4.80 FALSE
7 Panthers vs. Dragons Jun 04 26 – 18 19.60 TRUE

 

Predictions for Round 15

Here are the predictions for Round 15. 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 Titans vs. Wests Tigers Jun 08 Titans 2.60
2 Raiders vs. Warriors Jun 09 Raiders 11.20
3 Sea Eagles vs. Dolphins Jun 09 Sea Eagles 3.30
4 Dragons vs. Rabbitohs Jun 10 Rabbitohs -8.90
5 Broncos vs. Knights Jun 10 Broncos 13.20
6 Roosters vs. Panthers Jun 10 Panthers -9.00
7 Storm vs. Sharks Jun 11 Storm 4.70
8 Bulldogs vs. Eels Jun 12 Eels -9.50

 

Top 14 Predictions for the Semi-finals

Team Ratings for the Semi-finals

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
Stade Toulousain 7.36 6.34 1.00
La Rochelle 6.93 6.88 0.10
Bordeaux Begles 5.23 5.27 -0.00
Racing 92 5.02 4.86 0.20
Toulon 3.84 4.09 -0.30
Lyon 3.44 3.10 0.30
Stade Francais 2.76 -1.05 3.80
Montpellier 2.67 4.18 -1.50
Clermont 2.03 4.05 -2.00
Castres Olympique 0.04 2.87 -2.80
Section Paloise -0.21 -2.12 1.90
Aviron Bayonnais -1.41 -4.26 2.80
USA Perpignan -3.60 -2.75 -0.90
Brive -6.85 -4.20 -2.70

 

Performance So Far

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

Game Date Score Prediction Correct
1 Stade Francais vs. Racing 92 Jun 03 20 – 33 5.40 FALSE
2 Lyon vs. Bordeaux Begles Jun 05 25 – 32 5.60 FALSE

 

Predictions for the Semi-finals

Here are the predictions for the Semi-finals. 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 Stade Toulousain vs. Racing 92 Jun 10 Stade Toulousain 2.30
2 La Rochelle vs. Bordeaux Begles Jun 11 La Rochelle 1.70