News for hackers. Stuff that matters.
Re:Statisticians want to abandon science’s standard measure ... by kerkeslager on Friday September 06, 2019 @09:31AM (#20895433)
If you're looking for a replacement you don't understand the problem.

The problem isn't that P=.05 is an arbitrary measure of significance. The problem is that only publishing significant results is a bias against the null hypothesis.

Let's say you're doing a study of flipping coins. The null hypothesis is that the coin is evenly weighted. If the null hypothesis is true, when you flip a coin once, it will come up heads with P=.5. If you flip the coin twice, the null hypothesis is that both flips come up heads with P=.25. The probability of all coins coming up heads is P=0.125 for 3 flips, P=0.0625 for 4 flips, and P=.03125 for 5 flips. So if we flip a coin 5 times, and get heads all 5 times, we can conclude that the coin is weighted in some way with P=0.03125.

Let's say all the major journals of coin flipping only publish results with the high significance of P<0.05. Alice flips a quarter 5 times and gets 3 heads and 2 tails, and nobody will publish her study because it has P=.3125 (see [1] for an intuitive explanation of how this was calculated). Bob flips a quarter 5 times and gets 2 heads and 3 tails--again, no journal will publish him. Catherine, David, Ellen, Frank, and Geri all perform the same experiment, most of them getting groupings 3:2 result ratios, some getting 4:1 result ratios, but nobody getting all heads or all tails, just as one would expect given the null hypothesis. And the journal editors tirelessly send out rejection letters to all their studies.

Now somewhere down the line, Robert flips a coin 5 times and gets 5 heads. This result has P=.03125, which meets the requirement of P<.05! He sends it to the American Journal of Coin Flipping Studies (AJCFS), and they are very excited to publish his results! Nature and Science magazines do front page pieces with headlines "Quarters Found Heavy-headed" and "Washington Shows His Face" respectively. A casino hires Robert as a consultant for the design of their coin-flipping games. His quarter-flipping study is cited in the abstracts of two dime-flipping studies and a half-dollar flipping study. During the trial of a murderer who placed quarters tails-side up on his victims, Robert is called as an expert witness to say that the coins were placed there, not flipped there.

A week later Sally flips a quarter 5 times and gets 2 heads and 3 tails. She sends the results of her study to the AJCFS noting a failure to reproduce Robert's result, but her study is rejected because it has P=.3125.

Now, if you survey the AJCFS and all the other academic journals on coin flipping, you'd conclude that quarters are significantly weighted towards heads. But in fact, the null hypothesis is true: quarters are pretty evenly weighted. Robert's low-P result is exactly what you'd expect to happen eventually if you have enough people perform the 5-quarter-flip experiment--in fact, if a lot of people are studying coin flips, the P of getting a low-P result approaches P=1. But because the AJCFS has a P=.05 requirement, they've created a bias against the null hypothesis, which deceives the public into thinking that flipped quarters are more likely to come up heads than tails.

This is likely the reason why so many fields, most notably psychology[2], are having a replication crisis[3] and a similar effect can be used in P-hacking[4] to bolster results that are essentially fake.

Unlike coin-flipping, fields with replication crises like psychology and medicine have real affects on real people's lives. It's irresponsible and unethical for journals to publish with a bias against the null hypothesis, and adjusting the P-value requirements to another significance requirement, even a less arbitrary one, doesn't fix the issue.

The solution, I think, is for journals to commit to publish studies before the study has been performed, based on the methodology, previous studies on the subject, and qualifications of the researcher. This would mean that many, many studies would be published with null results, and that would be a good thing.

[1] There are 32 possible outcomes for flipping a coin 5 times. If we group them by how many heads and tails, we can calculate a probability for each outcome:

    HHHHH 1 result of 5 heads       ->      P  = 1/32 = .03125

    HHHHT
    HHHTH
    HHTHH 5 results of 4 heads, 1 tails  -> P  = 5/32 = .15625
    HTHHH
    THHHH

    HHHTT
    HHTHT
    HHTTH
    HTHHT
    HTHTH
    HTTHH 10 results of 3 heads, 2 tails -> P = 10/32 = .3125
    THHHT
    THHTH
    THTHH
    TTHHH

    HHTTT
    HTHTT
    HTTHT
    HTTTH
    THHTT 10 results of 2 heads, 3 tails -> P = 10/32 = .3125
    THTHT
    THTTH
    TTHHT
    TTHTH
    TTTHH

    HTTTT
    THTTT
    TTHTT 5 results of 1 heads, 4 tails  -> P  = 5/32 = .15625
    TTTHT
    TTTTH

    TTTTT 1 result of 5 tails       ->      P  = 1/32 = .03125
[2] https://thepsychologist.bps.org.uk/what-crisis-reproducibili...

[3] https://en.wikipedia.org/wiki/Replication_crisis

[4] https://journals.plos.org/plosbiology/article?id=10.1371/jou...

EDIT: Also see roenxi's excellent post on how "significant" means different things in statistics and colloquial English: https://news.ycombinator.com/item?id=20895893

Re:Statisticians want to abandon science’s standard measure ... by omarhaneef on Friday September 06, 2019 @10:27AM (#20895909)
This is actually a much better explanation of the problem than the main article.

The main article kept saying that p values were not meant to be definitive, but without explaining what was wrong with them. At least, not very clearly.

This comment is a much clearer explanation -- imho -- as to what goes wrong in the industry. I also think it is right to focus the attention away from a particular statistical measure.

Re:Statisticians want to abandon science’s standard measure ... by kerkeslager on Friday September 06, 2019 @11:07AM (#20896296)
It seems clear to me that the author just didn't understand the problem with P values. It's part of a larger problem of science journalism being done by journalists without scientific backgrounds. It's not their fault--even if you have natural ability and interest in both communication and discovery, it's hard to get an education in both.

I have the opposite problem: my abilities lie more in the statistics/science than the communication--I suspect the only reason that this explanation is being received so well is that I happened across an effective example by pure luck. The probability of me communicating effectively is probably P < .5. ;)

Re:Statisticians want to abandon science’s standard measure ... by kqr on Saturday September 07, 2019 @03:25AM (#20902344)
Let me check if I get it right: can this be said to be a case of incorrectly aggregating experiments? We're in a sense taking min(p) over all p-values, or any(significant) over all results, when we should use an aggregation method that takes into account the total number of studies aggregated?
Re:Statisticians want to abandon science’s standard measure ... by kerkeslager on Saturday September 07, 2019 @08:44PM (#20907755)
Yes.

For example, if you dig, you'll find that a lot of the evidence for a correlation between telomere shortening (associated with aging) and processed meat consumption comes from a 2008 study in the American Journal of Clinical Nutrition[1]. They found a P=.006 correlation between processed meat consumption and telomere shortening. But when you look into the study further, they collected data on 47 different food groups.

Let's calculate how unlikely a P=.006 event is if you try 47 times to find it:

A. If you have a probability of something happening once P_1, then the probability of that happening x times in a row, P_x, is P_x = P_1^x. For example, the probability of flipping a coin once and getting heads is P_1=.5, so the probability of that happening twice in a row is P_2=.5^2=.25, which you can verify by enumerating the possibilities (1 in 4 of the following combinations is 2 heads in a row: HH, HT, TH, TT). The probability of flipping 3 heads in a row is P_3=.5^3=.125 (only 1 of these 8 possibilities is all heads: HHH, HHT, HTH, HTT, THH, THT, TTH, TTT).[2]

B. The chances of a P=.006 event NOT happening P' are P'=1-P=.994 (the rule of 1).

C. Combining facts A and B, the chances of a P_1=.006 event NOT happening (P'_1) 47 times in a row P'_47' is P'_47=.994^47=.754 (this is rounded to the 3 significant digits).

D. Applying the rule of 1 again, the probability of finding a P=.006 result if you try 47 times is P'_47' = 1-P'_47 = .246.

So basically, the actual confidence value on that study is P=.246: there's about a 1 in 4 chance they would find a P=.006 result for one of the 47 food groups tested if the null hypothesis is true. The null hypothesis in this case being "diet doesn't affect telomere length".

The paper doesn't seem to list their hypothesis, but they say things like "all others were P>.05", which indicates that they were hypothesizing a P<.05 result. Doing the same math again for the probability of a P=.05 result occurring if you try 47 times, P'_47' = 1 - (1 - .05)^47 = 0.91025516807. That's over a 90% chance! In other words, by doing the test on 47 food groups, they nearly guaranteed that they would find a result within their definition of significance. This is very bad science, and a study with this bad of a statistical design never should have been funded in the first place.

This study has not been replicated as far as I know, but is often cited in pop science[3][4][5].

[1] https://academic.oup.com/ajcn/article/88/5/1405/4649028

[2] Note that this rule only applies to independent probabilities; the result of coin flip does not affect the result of the next coin flip, and the result of telomere correlation to one food group does not affect the result of telomere correlation to another food group. This rule won't work when applied to dependent probabilities, where the earlier tries affects later tries. For example if you draw an ace from a deck of cards (P=4/52) and don't place the ace back in the deck, the probability of drawing another ace is lower (P=3/51).

[3] https://www.livestrong.com/article/506649-foods-that-boost-t...

[4] https://resources.teloyears.com/diet-and-telomeres/processed...

[5] https://siimland.com/how-to-increase-telomere-length/

Re:Statisticians want to abandon science’s standard measure ... by jackcosgrove on Friday September 06, 2019 @03:42PM (#20899172)
Is there a compendium somewhere of null hypotheses as well as observed p values (or whatever statistic) for experiments with both "significant" and "insignificant" results? Depending on the phenomenon and the hypothesis, an event could have a different probability of occurring and require a different threshold.

It seems like we are wasting a lot of effort when any experiment is unpublished, when we could at the least be associating a data point with a particular hypothesis.

This would require some standardization of hypotheses, so that a researcher could select a hypothesis from a list, conduct an experiment to test it, and report those findings to some aggregator. Others would also test the hypothesis and report their findings. Eventually you have some distribution of findings that allow you to examine the experimental methods of outliers as well as modal experiments. In this way every scientific result is the product of some meta-analysis, rather than allowing a single custom experiment to produce a result.

The current approach also ties the experimental method to the result, requiring potentially fallible oversight of the experimental design. The hypothesis-testing aggregator reduces this reliance, which is perhaps more honest about our ability to design good experiments, would allow for a greater diversity of approaches, and could also be more efficient when evaluating results.

The most interesting aspect of this is if you could somehow create relationships between standardized hypotheses found on the hypothesis menu such that you could infer other hypotheses in a more systematic way.

Re:Statisticians want to abandon science’s standard measure ... by kerkeslager on Friday September 06, 2019 @05:35PM (#20900130)
> It seems like we are wasting a lot of effort when any experiment is unpublished, when we could at the least be associating a data point with a particular hypothesis.

You're absolutely right, but journals don't see it that way. Journals want to make money, and the articles which make the most money are the ones that prove an alternative hypothesis. This is one of the ways where for-profit publishing is harmful for science.

> This would require some standardization of hypotheses, so that a researcher could select a hypothesis from a list, conduct an experiment to test it, and report those findings to some aggregator. Others would also test the hypothesis and report their findings. Eventually you have some distribution of findings that allow you to examine the experimental methods of outliers as well as modal experiments. In this way every scientific result is the product of some meta-analysis, rather than allowing a single custom experiment to produce a result.

"Standardization of hypotheses" gets a bit tricky and I suspect the standardization process would be stifling. Part of the goal of replication is to improve on methodology, and part of that is finding ways in which your hypothesis wasn't clearly defined, or doesn't contribute to a larger theory. There needs to be some flexibility in which hypotheses scientists pursue.

A more organic way might be for journals to categorize articles as testing new hypotheses or attempting to reproduce old results, and strive for some ratio between the two (1:4 or somesuch).

Re:Statisticians want to abandon science’s standard measure ... by bjourne on Saturday September 07, 2019 @07:05AM (#20903056)
> A week later Sally flips a quarter 5 times and gets 2 heads and 3 tails. She sends the results of her study to the AJCFS noting a failure to reproduce Robert's result, but her study is rejected because it has P=.3125.

Sally must be working using the wrong null hypothesis. If she attempts to reproduce Robert's results her null hypothesis should be whatever is the one he formulated. Perhaps that the probability of tails is at most 15%. Her p-value would be 2.66% (prob of seeing <= 2 heads) and if the world was fair, AJCFS would publish her study. But the world isn't and if Robert is a renowned scientist, significant+ is enough for him but failed replications of his work requires significant+++.

Re:Statisticians want to abandon science’s standard measure ... by kerkeslager on Wednesday September 11, 2019 @10:12AM (#20940411)
I had to think about this for a while to come up with a reasonable response. What you're saying seems a bit problematic to me.

The most obvious criticism that stands out to me is that when a control group is possible, that's where your null hypothesis should come from. But in the contrived coin-flipping example, there isn't a natural control, and in practice, many times control groups aren't available. So I don't know if that criticism actually applies to this situation.

The next thought I have is that if your goal is to determine significance (which should be the goal), rather than to find a significant result (which should not be the goal), using the same alternative and null hypotheses makes the math for aggregating the results easier. The power of replication is that it's multiplicative: you can get an aggregate P by multiplying the P values of aggregate studies. This means a P=.2 study can become significant if it's replicated (P=.2.2=.04), while a P=.03125 study can become lose significance with just one failure to reproduce (aggregating Robert and Sally's results, P=.03125.3125^-1=.1). I guess swapping the null and alternative hypotheses is a viable strategy for bringing attention to failures to replicate and it's not mathematically invalid, but that seems like changing your hypothesis to fix a problem with the academic publisher, and it complicates aggregating the P-values of replication studies.

Finally, it feels weird to me to use Robert's hypothesis as your null hypothesis. When Robert performed his experiment, his hypothesis was a stab in the dark due to a lack of pre-existing data (since he ostensibly didn't know about the other coin flipping experiments). But when attempting to reproduce a result, you have data, so it makes more sense to base your null hypothesis off the results of the previous experiment, not off the hypothesis of the previous experiment. As such, since Robert had 5 heads, the hypothesis would be that the probability of getting tails on a single coin flip is P=0, which gives Sally a VERY significant result. The numbers are weird because the experiment is contrived, but I think the general concept holds.

Re:Statisticians want to abandon science’s standard measure ... by xenocyon on Friday September 06, 2019 @12:58PM (#20897367)
This is correct, and also illustrates why merely replacing frequentist methods with Bayesian methods is not sufficient to fix the scientific reproducibility crisis.
Re:Statisticians want to abandon science’s standard measure ... by CreRecombinase on Friday September 06, 2019 @05:22PM (#20900032)
> we can conclude that the coin is weighted in some way with P=0.03125

No we can't. There are 2 (related) reasons for this. The first is that to say "after experiment X, we can conclude thing Y is happening with probability ..." you need to know something about how often thing Y happens on its own. This is also known as a prior. The other reason is that in this specific case, the prior for Y (that the coin is weighted) can be concisely summarized as P(Y)=0, because it's physically impossible to construct a coin that's biased to one side or the other (independent of what side it starts on). Some people think the coin flipping examples are bad because biased coins are impossible, but they're actually good for exactly this reason. We have a really good prior (from math/physics/geometry) that biased coins can't exist, so you're going to have to not only flip a lot of them to convince me otherwise, but also give me an explanation of how that's possible (i.e justify your prior)

Re:Statisticians want to abandon science’s standard measure ... by dekimir on Friday September 13, 2019 @09:29AM (#20961925)
This explanation is so brilliant that I created a short URL pointing to it: https://cutit.org/AJCFS
Re:Statisticians want to abandon science’s standard measure ... by archi42 on Friday September 06, 2019 @07:53PM (#20900886)
This is an excellent write-up! Some friends of mine worked at one of the psychology departments as programmers/IT-guys while studying CS, lesson learned: Real knowledge of statistical methods is rare among psychology researchers; one (of my friends) even got fired because he pointed out that they asked him to fake results (the experiment basically assumed the Halting Problem to be solvable).
Re:Statisticians want to abandon science’s standard measure ... by mkl on Friday September 06, 2019 @09:49AM (#20895593)
Good explanation! A typo: "requirement of P<.5" → "requirement of P<.05".
Re:Statisticians want to abandon science’s standard measure ... by kerkeslager on Friday September 06, 2019 @09:52AM (#20895621)
Thanks! I've corrected it.
Re:Statisticians want to abandon science’s standard measure ... by naavis on Friday September 06, 2019 @09:58AM (#20895669)
What a super good explanation! Thanks!