by devit · 7y ago · 0 comments
E.g. for the mammogram:
P(cancer) = 0.8%
P(~cancer) = 1 - P(cancer) = 99.2%
P(positive_mammogram | cancer) = 90%
P(positive_mammogram | ~cancer) = 7%
P(cancer | positive_mammogram) = P(positive_mammogram | cancer) P(cancer) / (P(positive_mammogram | cancer) P(cancer) + P(positive_mammogram | ~cancer) (1 - P(cancer))) = 90% * 0.8% / (90% * 0.8% + 7% * 99.2%) = 9.39457%
I have a hunch that determining a correct model is like a science all on its own. Are there any good books/blog posts/etc on that?
the book explains it with prose: Imagine 1,000 randomly selected women who choose to get mammograms. Eight of them (0.8%) have breast cancer. The mammogram correctly detects 90% of breast cancer cases, so about seven of the eight women will have their cancer discovered. However, there are 992 women without breast cancer, and 7% will get a false positive reading on their mammograms, giving us 70 women incorrectly told they have cancer. In total, we have 77 women with positive mammograms, 7 of whom actually have breast cancer. Only 9% of women with positive mammograms have breast cancer.
That's the biggest issue. It's very unlikely that your model family actually contains the data-generating distribution.
In particular, the issue raised here[1] is about comparing estimates when the sample sizes are very different. Hierarchical partial pooling, can be used to accurately compare groups when the samples sizes vary widely, even when some groups have zero observations. Here is an example talking about baseball batting averages[2].
[1] https://www.statisticsdonewrong.com/regression.html#little-e... [2] https://docs.pymc.io/notebooks/hierarchical_partial_pooling....
Sorry if I've got this wrong, but does this line say that we're assuming the probability of someone having cancer if they've got a positive mammogram, is the same as the probability of them having a positive mammogram if they've got cancer?
As far as I know, the first one would be the Positive Predictive Value (PPV) of the mammogram, the second one would be the Sensitivity of the mammogram.
They're related but not usually the same. The PPV would change depending on the prevalence of the disease (go up as the prevalence goes up), but the sensitivity would remain the same.
Basically, most of them boil down to:
- mistakes that can be tackled if you write it down explicitly
- hidden assumptions that can be discovered (and made explicit or modified)
While there is some philosophical difference between frequentist and Bayesian probability (and for some reason, I know people moving only one way).
"Frequentist probability is Bayesian probability, where priors are flat, hidden, and considered taboo".
BTW: Frequentists vs. Bayesians https://xkcd.com/1132/ (there is never too much of xkcd!)
The Bayesian is correct to offer the bet.
Who is correct about the sun exploding actually is irrelevant to that; only the conditional probability of the bet being collectable if the sun has exploded vs. that of it has not exploded is needed here. You would care about the probability that the sun actually had exploded if one of those weren't zero, but it is, so it doesn't matter.
Hearing it from the side of probability (measure spaces etc.) to me it sounds very much like "tomato" vs "tomato"?
In the comic, the frequentist is asking: "the machine said yes, what is the probability of that if the Sun hasn't exploded?" Since that probability (the p-value) is less than 0.05, the frequentist concludes the Sun has exploded, which illustrates a common error: mistaking statistical significance for truth.
Bayesians, in contrast, interpret probabilities as beliefs about the world and use experiments to update those beliefs, in accordance with Bayes rule.
In the comic, the Bayesian has presumably started with a strong belief that the Sun has not exploded, and the evidence that the machine says "Yes" one time slightly reduces their certainty but isn't strong enough to convert that belief to "the Sun has (probably) exploded".
Most people (even frequentist statisticians) actually interpret statistics that way, but Bayesian statistics formalizes it mathematically.
So the difference is only philosophical and that frequentists, according to Bayesians, tend to make errors more often in setting up their models?