Posts tonen met het label statistics. Alle posts tonen
Posts tonen met het label statistics. Alle posts tonen

zondag 4 maart 2012

Promotional regressions

A mathematical equation for holiday happiness, or banal tautology?

Expedia hired a couple of researchers to analyze a survey about Kiwis' recent holiday experiences. It looks like they set up a regression with "how happy did your last holiday make you" on the left hand side and a bunch of stuff on the right hand side like "the weather was good", "there were plenty of activities", "it was value for money", "plenty of partying", and that "it made my neighbours envious"*. Then they put out a press release presenting the regression equation and coefficients as being the mathematical formula for holiday happiness.

And it's gotten press. Radio New Zealand called me for comment on it last night;** I told them that if I understood the method correctly, it doesn't exactly provide would-be travellers with useful advice for happier travels. Who doesn't look for good weather when on holiday? Worse, most of what's on the right hand side seems to be just alternative ways of expressing what's on the left hand side; it would be surprising to find somebody who reported having had a bad time on holiday but that it was good value for money. Value-for-money kinda has happiness as the numerator.

And there's reverse causality all over the place: are people flying more than seven hours away happier because of the more remote destination, because they're richer and can afford long-haul travel, or because people are more willing to spend more on stuff once they've travelled that distance than when they've driven out to the bach? Are couples travelling together happier because they're travelling in pairs, or because single people travelling alone tend to be unhappier people in general?

Here's the funniest part of the press release:

A group of experts including a psychologist, a mathematician and travel experts from
Expedia.co.nz set out to find just that, and have created the formula for holiday happiness.

With Kiwis taking over two million holidays a year, the formula proves there is a science that every holiday‐maker can apply to their next escape to guarantee themselves a top trip.

What are those sciency looking things? I'm pretty sure it's the following: HH is Holiday Happiness. It's a function of some constant {b}, "Good Weather" {GW}, "Plenty of Activities" {PA}, "returning home relaxed and de-stressed" {RD}, going to a Great Destination {GD}, finding Value for Money {VM}, engaging in Plenty of Partying {PP}, and inducing "Holiday Envy" {HE}. So update your vacation plans accordingly. Never mind that without units on any of the regressors, you've no clue whether the relative coefficient magnitudes signify anything, so you don't really know the tradeoffs on the happiness production frontier between "Plenty of Partying" and "Great Destination". Or that pervasive potential endogeneity problems mean you really can't use it as a guide for action.

At least Radio NZ looked for folks to comment on it - the reporter there noted having talked also with a statistician. Stuff.co.nz seems mostly to have copied the press release.
Psychologist Meredith Fuller, who worked on the equation, said people could use the factors when planning their next break.

"It's essentially taking the guesswork out of a holiday that could be an expensive disaster."

Choosing a top destination, getting value for money and lots of partying also feature highly.

The most satisfied people spent at least five nights away, took a long-haul flight to their destination, and travelled with between two and five friends. Fuller says five was the ideal number.

"There is less chance of individual conflict, more mental stimulation, and enough variety in interests to broaden our experiences."

A partner is fine, but including in-laws or family decreases the chance of holiday joy. "The worst people to go away with are your relatives," she said.

Lording it over your mates – more politely called "creating holiday envy" – also increases the prospect of a good result. About half of those surveyed used social media while away to post snaps to make friends jealous.

"It seems it's no longer a case of `wish you were here', but `I'm here and you're not'," Fuller said.
So, a lesson for the kiddies out there. Take your intro to econometrics course. You too can easily produce the mathematical formula for anything, at least as far as some of the media is concerned. All you need is r-e-g.***

And kudos to Expedia for getting press mileage on this one.

* Weird Al said it best, and without running a regression, in his ode to the world's greatest tourist destination:****
Then we went to the gift shop and stood in line
Bought a souvenir miniature ball of twine
Some window decals, and anything else they'd sell us.
And we bought a couple post cards, "Greetings from the twine ball, wish you were here!"
Won't the folks back home be jealous.
Note that I'm not at all disputing that people enjoy vacations. I just can't really see how the survey and regressions really provide any kind of useful guide to action.

** I have no clue whether anything aired. UPDATE: here. But they left out all the "these econometrics are crap" bits. Ah well.

*** Maybe they used ordered probit. I haven't the full paper.

**** I regret, but Susan does not, that we drove within an hour of the place but I didn't realize we were anywhere near it. Had I realized, we'd have gone. Missed opportunities.

donderdag 16 februari 2012

Trusting econometrics

One of my profs at Mason told the story of how he'd been offered a new boat if he could get the coefficient in a regression to be below two - which would have allowed a merger to proceed. He turned it down, but not everybody does. Unfortunately, in a whole pile of empirical work, you either have to really trust the guy doing the study, or make sure that his data's available for anybody to run robustness checks, or check that a bunch of people have found kinda the same thing. Degrees of freedom available in setting the specifications can sometimes let you pick your conclusion, like getting a coefficient that hits the right parameter value or the right t-stat.

David Levy and Susan Feigenbaum worried a lot about this in "The technological obsolescence of Scientific Fraud". Where investigators have preferences over outcomes, it's possible to achieve those outcomes through appropriate use of identifying restrictions or method - especially since there are lots of line calls in which techniques to use in different cases. They note that outright fraud makes results non-replicable while biased research winds up instead being fragile - the relationships break down when people change the set of covariates, or the time period, or the technique.

Note that none of this has to come through financial corruption either: simple publish-or-perish incentives are enough where journals are more interested in findings of significant than of insignificant results; DeLong and Lang jumped up and down about this twenty years ago. Ed Leamer made similar points even earlier (recent podcast). And then there's all the work by McCloskey.

Thomas Lumley today points to a nice piece in Psychological Science demonstrating the point.
In this article, we accomplish two things. First, we show that despite empirical psychologists’ nominal endorsement of a low rate of false-positive findings ( ≤ .05), flexibility in data collection, analysis, and reporting dramatically increases actual false-positive rates. In many cases, a researcher is more likely to falsely find evidence that an effect exists than to correctly find evidence that it does not. We present computer simulations and a pair of actual experiments that demonstrate how unacceptably easy it is to accumulate (and report) statistically significant evidence for a false hypothesis. Second, we suggest a simple, low-cost, and straightforwardly effective disclosure-based solution to this problem. The solution involves six concrete requirements for authors and four guidelines for reviewers, all of which impose a minimal burden on the publication process.
Degrees of freedom available to the researcher make it "unacceptably easy to publish "statistically significant" evidence consistent with any hypothesis." They demonstrate it by proving statistically that hearing "When I'm Sixty-Four" rather than a control song made people a year-and-a-half younger.

The lesson isn't radical skepticism of all statistical results, but rather a caution against overreliance on any one finding and an argument for discounting findings coming from folks whose work proves to be fragile.

dinsdag 31 januari 2012

Bogus polls

Web polls are worse than useless, says Thomas Lumley. Why? Anchoring bias.
Seeing the results is likely to make your beliefs less accurate, even if you know the information content is effectively zero.
It might not be immediately obvious how bogus web polls cause harm. But if anchoring bias feeds into conformity or bandwagon effects, and that cycles into voter policy demands, we can move from bogus poll to "most people think X" to "Policy should be X" to "How can you oppose X, most people agree...". I think similar mechanisms work in bogus "cost of X" studies, eroding some voters' default liberalism by convincing them that they're bearing, through the tax system, costs actually borne by those engaging in the activity.

StatsChat continues in its Sisyphean quest to beat the stupid out of journalistic use of stats in New Zealand. Check the link above for fun and game in margins of error across three web polls. Forfty percent of Kiwis know these stats are bogus; shame it isn't eighnty.

woensdag 11 januari 2012

Memory in journalism

Keith Ng thoroughly documents one instance of a broader phenomenon in New Zealand journalism: very poor apparent institutional memory.

Keith notes that ACR, the Association of Community Retailers, which lobbies against regulations that impose costs on small tobacco retailers like dairies, gets PR support from Imperial Tobacco. Keith calls it astroturfing. That's possible, but I don't think it rules out that the group of represented small retailers genuinely supports the policies promoted by ACR and simply shares interests with Imperial on those issues. 

Either way, it didn't take long after Keith broke the story for the NZ media to forget that ACR enjoyed industry support. Writes Keith:
It seemed like quite a problem, the idea that so much of our news comes from groups which could be hiding all kinds of interests and agendas.
Turns out, the problem isn’t “what are they hiding?”, but “does anyone give a shit?”.
What this has shown is that even when the agenda is Big Tobacco’s, even when the connection is the second result on a Google search, even when their own organisation has reported on it, even when it’s stated plainly on their website, even then, the PR industry can get their stories printed with no scrutiny.
It’s a complete and utter rout.
You know, some of my best friends are journalists. And I like to think that they are the better ones. They always complain that they’re under pressure and under-resourced, and that this sort of shit slips through the cracks.
I’m sure it’s true, but here we are, at the point where our biggest news organisations run stories without spending 10 seconds on a Google search, or asking if something makes any goddamn sense. [Emphasis added]
If Richard Green says new laws will cost him $10k for shelves, they run it. If Richard Green says new laws will cost him $27k for shelves, they run it (RNZ newswire, 14 July 2011).
SHELVES.
How many of the facts reported in our media are this dodgy? And if there is so much that we can’t trust – and we can’t distinguish between what can and cannot be trusted – at what point should we simply give up?
You could chalk it all up to that it takes time to build up experience on a file and that erosion of profits in journalism have knocked out the senior folks who remembered what happened a year ago. But that can't be it when a 10-second Google search, or simply "asking if something makes any goddamn sense" would be enough to shoot something down. But when Radio New Zealand happily reports that each smoker costs the economy three times per capita GDP, folks aren't running the simple checks.

It has to come down to demand. If your audience take stats as infotainment, why worry too much if the stats are right? In fact, you can't afford to worry about it too much. And if the customers don't care whether the stats are right, then supply will arise to fill demand for the kinds of stats for which somebody's willing to pay (BERL on alcohol, PWC on Adult and Continuing Ed, many others in the back pages of the blog, the whole InfoGraphics problem cited by Megan McArdle...).

On bad stats, at least we have StatsChat. The University of Auckland's stats department now gives a prize for picking the week's (or month's) worst stat that's appeared in NZ press outlets. I recently nominated Radio NZ's exaggeration of the costs of smoking. Hopefully, shaming news outlets and the producers of bad stats will eventually have some effect. But it's harder to think of useful interventions that fix the kind of sloppiness Keith's citing.

Keith's interview on Radio NZ's interesting; it'll likely here be archived soon.

maandag 12 september 2011

Lies and statistics

Here's the presentation I gave for reporters and others at the Christchurch Press a fortnight ago.


You'll probably need to put that on full screen for the small print to be legible.

Turnout wasn't huge, but did include reporters on the health and crime beats.

I recommended that the journalists start following StatChat. Here's hoping it all has done some good.

donderdag 8 september 2011

This week's nomination

I'm a fan of Auckland's Stats Department's "Bad Stat of the week" contest. I won their inaugural one by nominating John Pagani. I would have won another one but for lack of competition; alas.

Today's entry? Jennie Connor's trashing of a rather nicely conducted study on the health benefits of moderate drinking. Let's start with the study.

Qi Sun and a team including Eric Rimm found that moderate alcohol consumption correlates with good aging and health outcomes in middle-aged nurses in the US: the Nurses' Health Study. They follow a set of over a hundred thousand female registered nurses, starting in 1976 and surveyed every two years subsequently. It was set up to look at the long-term effects of oral contraceptive use but has been used in lots of other studies since.

They averaged reported alcohol intake in the 1980 and 1984 follow-up studies to get a measure of mid-life alcohol consumption, then checked to see whether alcohol consumption at mid-life increased the likelihood of successful aging, defined as being free of major chronic diseases and having no major cognitive or physical impairment and no mental illness.

To avoid the "sick quitter" confound, they dropped from the sample any participants who had:

  • Chronic diseases at baseline
  • Those diagnosed with alcohol dependence or chronic liver cirrhosis
  • Those reporting a significant reduction in alcohol use within 10 years before baseline
So, we shouldn't have former drinkers who quit because of poor health included in the reference group.

Next, they worried about confounding through other health behaviours. They controlled for a wide range of dietary, health, physical activity variables and life history of smoking. When you have observations every two years on a large group of women over a thirty year period, you can do a lot. But, you still can't completely correct for things you can't observe.

What can you do? You can check to see how much of the effect is reduced when you add in all the health behaviours for which you can control. If the effect drops substantially, it's likely there are other things for which you can't control that are correlated with the things for which you can control and might further reduce things. If the effect doesn't move much, it's not likely that other health behaviours are driving things.

Table 2, above, gives the relevant comparisons. Compared to non-drinkers, the odds ratio for those consuming 1.5-3 standard drinks per day was 1.26 in a model adjusting only for age and 1.28 in a model adjusting for all the health and activity correlates. It's exceedingly unlikely that unobserved health behaviours would attenuate the effect if correcting for observed health behaviours accentuates the effect.

They also run things within a cohort restricted to never-smokers. The pattern remains, though statistical significance is lost (you don't get a lot of never-smokers among nurses in a cohort that starts in 1976).

Ok. so what does Connor bang on about then?

The idea that moderate drinking may be good for health is well entrenched, but has been increasingly questioned, including by New Zealand epidemiologists Professors Jennie Connor and Rod Jackson, who challenged the theory in Britain's Lancet journal in 2005.
Professor Connor, of Otago University, told the Science Media Centre the Harvard study added nothing to the many similar studies that were "unreliable for answering questions about the health effects of drinking because of their design".
The supposed health benefit might be due to differences in lifestyle - other than drinking - that were associated with being a low-risk drinker.
"It may be true that women who drink one drink a day are healthier than others, but we do not know if it has anything to do with the alcohol, as these women are not the same as others in a variety of ways."
There was no scientific justification for the promotion of alcohol as health-enhancing for any sub-group of the population.
"The potential for harm is great, and the potential for good is unknown."

What had Connor and Jackson warned about in the Lancet? Two things that Sun, Rimm et al do a pretty good job in ruling out: confounding of never-drinkers with former drinkers, and unobserved health behaviours.

Jennie: if it's unobserved health correlates that are doing the job, why the heck does the relationship get stronger once they corrected for other health behaviours? If some underlying "healthy type" is driving things, that'll correlate with the other health behaviours that we can observe and will reduce the effect of alcohol on successful aging, not increase it. In other specifications, there are small reductions in the odds ratio in the multivariate model as compared to the bivariate one. But the reduction is small, like from 1.43 to 1.35. If throwing in a kitchen sink of health behaviours that are likely to correlate with the unobserved health behaviours reduces the effect by less than twenty percent, it's pretty unlikely that full controls would reduce the odds ratio to 1 or less.

And so I'm nominating Jennie Connor for the bad stat of the week contest for her trashing of what seems a pretty solid study.

maandag 22 augustus 2011

Sports and science journalism

Thomas Lumley's fed up with lazy reporting in the sciences:
if a press release or a wire service story told you that the Wallabies had a new training regimen that would improve their game without making them fitter, faster, tougher in the scrum, more accurate with kicking, or better at putting in the elbow, you’d ask questions. We’d like to see science journalism eventually get up to the standard of sports journalism.
He points the finger at journos who gulped down the claim that an hour of TV watching costs 22 minutes of life expectancy [which I'd critiqued here]. And, because his stats-fu is better than mine (and probably because he read the studies a bit more closely than I did), he notes:
The journal, in its blog, says that the real story was about sedentary lifestyles vs exercise.  They are shocked — shocked — to find that there might be sensational news coverage of the article. However, they do note:“The blast of news coverage also suggests that creative research angles on behavioral health impacts are useful in grabbing the public imagination.” Indeed.
The really strange thing about the paper, though, is the 22 minutes of life lost per hour of TV.  Looking at the confidence intervals shows that there is huge uncertainty (the range is from 20 seconds to 45 minutes), but it still doesn’t really make sense.  Some of this is just correlation vs causation — in reality, not everyone who spends the evening in front of the TV would spend the time jogging, or even playing golf, if their Sky subscription were cut off.   The other component is the model used for years-of-life lost.  The researchers didn’t actually do anything with individual participant data from the AusDiab study. They took the results of a previous analysis (which didn’t get nearly as much coverage) and added in the assumption that the effect of TV weakened with age.  Under that assumption, the effect must be a lot larger for younger people than it appears, and since younger people have more minutes of life to lose, that increases the average cost of TV.  The assumption was described  by the authors as if it was a universal fact, and it’s true that several important risk factors follow this pattern — one reason is that there are more things to die of at older ages, which applies here, but another is that, eg, low blood pressure in older people happens for bad reasons as well as good, and that doesn’t apply here.  In any case the attenuation assumption is doing a lot of the work, and it is only weakly connected to any actual data.
I'm very pleased that there's somebody else out there who cares about this stuff. It's really a bit pointless though. Papers exist to sell eyeballs to advertisers. Most of those eyeballs are in front of squishy grey stuff that doesn't care a whole lot about scientific accuracy but rather about group affiliation and sensationalism. The real problem is on the demand side. We get the journalism we deserve. Just like we get the politics we deserve.

vrijdag 19 augustus 2011

This Hour costs 22 minutes

Another result I don't believe:
The amount of TV viewed in Australia in 2008 reduced life expectancy at birth by 1.8 years (95% uncertainty interval (UI): 8.4 days to 3.7 years) for men and 1.5 years (95% UI: 6.8 days to 3.1 years) for women. Compared with persons who watch no TV, those who spend a lifetime average of 6 h/day watching TV can expect to live 4.8 years (95% UI: 11 days to 10.4 years) less. On average, every single hour of TV viewed after the age of 25 reduces the viewer's life expectancy by 21.8 (95% UI: 0.3–44.7) min. This study is limited by the low precision with which the relationship between TV viewing time and mortality is currently known.
If people who watch six hours of daily television differ from other folks on margins other than TV-viewing, results here just might be overstated.

The paper just extrapolates to some actuarial tables the results of a prior article in Circulation. A couple things there to note:

  • There are no significant reported effects, after correcting for some health-related behaviours, for those watching less than four hours of television per day. And, saying that an hour costs 22 minutes is a bit nuts when the reference category is folks watching 2 hours of TV per day or less. Maybe there are effects for the "more than 6 hours per day" group. But that's hardly the same as saying that an hour of TV costs the moderate viewer 22 minutes.
  • The all-cause mortality relative risk even for folks in the >4 hour per day group has a confidence interval running from 1.04-2.05 after adjusting for those health behaviours that could be observed. That's almost touching the 1.0 mark; when the CI spans 1.0, results are insignificant. I wonder what would happen to those CIs on adjusting for more health behaviours.

HT: Alex Robson, who points to this journalistic account...

woensdag 10 augustus 2011

Bad stats

Bad journalistic use of stats has been a recurring theme here on Offsetting. Apparently folks in the Stats department up at Auckland are annoyed too. They've started a contest.

Each week, we would like to invite readers of Stats Chat to submit nominations for ourStat 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 August 12 2011.
  • Statistics can be bad, exemplary or fascinating.
  • The statistic must be in the NZ media during the period of August 6-12 2011 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.
The fine print:
  • Judging will be conducted by the blog moderator in liaison with staff at the Department of Statistics, The University of Auckland.
  • The judges’ decision will be final.
  • The judges can decide not to award a prize if they do not believe a suitable statistic has been posted in the preceeding week.
  • Only the first nomination of any individual example of a statistic used in the NZ media will qualify for the competition.
  • Employees (other than student employees) of the Statistics department at the University of Auckland are not eligible to win.
  • The person posting the winning entry will receive a $20 iTunes voucher.
  • The blog moderator will contact the winner via their notified email address and advise the details of the $20 iTunes voucher to that same email address.
  • The competition will commence Monday 8 August 2011 and continue until cancellation is notified on the blog.
I suppose I just have to watch to see if anybody cites one of my favourite bogus stats so I can submit it!

HT: Ed Directions; Peter McCaffrey