213 points · by Tomte · 2y ago · 135 comments
- When sample size grows, frequentist and bayesian (if the prior is not too restrictive) point estimates seem to converge to each other anyway
- The distribution of your point estimate (frequentist) vs. the estimated distribution (bayesian) also don't seem to differ too much either
- When the sample size is small the Bayesian prior dominates
- Interestingly, when I see Bayesians simulate random data (to introduce the concepts on this data) they usually assume a true parameter value. E.g. when sampling from Y = a + b * X + e, they'll assume fixed, true values of a and b and not random variables - which is a frequentist assumption! So far I've never seen e.g. b being sampled from Normal(mu=2, sigma=1) instead of just setting b=2.
- The frequentist assumption of a true population value which we try to estimate just makes sense to me. For example there is a true mean income over the working population. It's not a random variable but a fixed value which can be computed if we just asked every single working person for their income and then compute the mean over all values.
I tried getting into Bayesian stats but honestly it just seems overkill for most cases. For a simple regression computing b_hat = inv(XX')Y is just faster and easier than numerically sampling traces. Bayesian forces you to think about the data generating process - I appreciate that, but you need to the same when it comes to frequentist stats, it's just a little less obvious.
Yes. And so? Bayesians would argue (and I quote) that "the interesting limit in statistics is when the number of samples tends to one. The limit when the number of samples tends to infinity is completely useless."
> I tried getting into Bayesian stats but honestly it just seems overkill for most cases.
There are 3 black balls and 7 white balls in an opaque bag. How likely is it to pick a black ball? Bayesian statistics gives a straightforward answer (you just assume an uninformative prior and perform a computation). But frequentist statistics starts to argue about an infinite number of replicas of your own universe and other nonsensical constructions. Not sure that the Bayesian approach is overkill in that case...
The "and so?" is answered right after that. The prior dominates, which is a bad thing.
Multilevel models are fantastic to address a problem that is often ignored by frequentist approaches, the need for shrinkage and information sharing. This pops up all the time in modern statistics. For example, if you test 1000 hypotheses, calculating p-values and adjusting these with some multiplicity correction scheme is not sufficient.
You should borrow information across random variables with a multilevel model to avoid estimating exaggerated effects in tests whose outcome is deemed to be significant. Andrew Gelman's post is concerned with this topic.
Another point is that Gelman et al. use weakly informative hyperpriors. These are not really subjective. If anything, they usually regularize solutions by pushing effects towards zero. Plus, on multilevel models, priors are only needed on hyperparameters.
However it seems that you are suggesting another use. If I have 10 cognitive measures each measured once in my subjectd, the default has been to do a multiple comparison correction, either FDR or FWER on 10 tests. We know that the 10 tests are not truly independent, so Bonferroni is probably too conservative.
It seems here you suggest running this with test being a random effect. I've seen this approach with item level data in a task, but I didn't really think to do it when the tests are not from the same battery, construct. And more to the point, this fixed effect model would be of no particular interest, while random effect CIs are difficult to estimate. So I am left a bit confused.
Yes frequentist statistics work very well in practice, but it's a bit adhoc and suffers from various problems like say if you estimate velocity and estimate kinetic energy, you get values that are incompatible which is kinda ugly and non-intuitive and makes you want to dig deeper into how such a thing happened.
Bayesianism has the answers.
Also sometimes it really does matter like in medicine, where some conditions have a very low prior probability.
That's how many people feel about Bayesian methods when trying to pick an initial prior.
Ideally one should use the whole posterior distribution of your model parameters which is not the case for point estimates.
>So far I've never seen
Because people are lazy.
Bayesian works great if you have great knowledge in your field and you can fine tune everything. Frequentist stats just works and easily interpretable but easy to make mistakes esp. when starting out.
This is a historical issue because of some hard-headed frequentist founders, but in modern days the frequentist concept of confidence distribution is gaining acceptance, which is the proper frequentist equivalent of the posterior, so this distinction between Bayesian and Frequentist is disappearing.
Rather than giving specific point estimates or interval estimates, calculating a frequentist confidence distribution allows you to compute confidence intervals for all possible confidence levels, just like the posterior does. See this excellent review paper for more info on this: https://statweb.rutgers.edu/mxie/RCPapers/insr.12000.pdf
The key insights is that a confidence distribution is an estimator for the parameter of interest, instead of an inherent distribution of the parameter.
The major distinction remains: Frequentist confidence intervals are something quite different from Bayesian credible intervals. I don't think that having a distribution that can be used to calculate any desired confidence interval - like the posterior distribution can be used to calculate different credible intervals - changes much.
The Bayesian philosophy of "random parameters" does not mean that Bayesian methods cannot be assessed for frequentist properties or compared against frequentist procedures.
http://www.stat.columbia.edu/~gelman/research/published/pval...
Not everyone wants to admit - or even understands - that the % confidence is about how frequently such intervals will contain the true value when the procedure is applied to other populations / datasets.
https://www.redjournal.org/article/S0360-3016(21)03256-9/ful...
I didn't understand much from the part where they use Markov chains to calculate probability of something that is hard to know but the rest illustrates differences really well.
It’s like how you wouldn’t hear people in the US promote imperial measurements for home baking. When you dominate, you don’t have to advocate.
My college offered stats in two tracks: There was a one-semester course for science majors, which was mostly plugging numbers into formulas. The course was utterly baffling for most of the students who took it.
There was also a two-semester course for math majors. It was mainly about proofs, but also had time to go into more depth. You have to know the assumptions underlying a formula, if you're expected to prove it. ;-) But it was only taken by the math majors.
You can squish it into Bayes by considering it a uniform prior on the real number line that you never update, but you’re not really doing things “in the spirit” of Bayes, then.
P-values are fundamentally Frequentist because this framework see that observed data as random, whereas Bayesian statistics believe our observations are the only thing that is actually known, and all the other parameters are what is random in our experiments. That is: the data is the only part of an experiment that is real, everything else that we can't directly observe is something we must hypothesize about.
Of course the winners don't rant about anything. But any time we probe the consequences of Frequentist statistics they turn out to be horrific for science, our health, and our planet.
Bayesian statistics is sound but I suspect it's often just used to justify biases. It is technically valid to use a prior and de facto never update it, because you know I'll get around to updating my prior next week, or... eventually, cough cough let's be honest, never
It's the frequentist one that gets your biases implicitly, on the form of corrections and hypothesis formulation, so that people don't notice them.
I will do it:
1. Computationally easier
2. often analytical theory available for most use cases so interpretability is high
3. more literature available so you can get unstuck faster if you mess up
4. no accusations of subjective bias in your prior (the con is clear, no ability to leverage subjective expertise)
5. In the asymptotic regime, MLE and bayesian MAP often converge anyways
6. king of hypothesis testing
For most people, it doesn't matter. It matters when you are doing treatment for small sample sizes or other situations that would cause low power.
This advantage can't be understated. Researchers, at least in psychology, almost never seem to care about the magnitude of an effect. It's simply enough to show that some effect happens in some direction. For this (generally acceptable) purpose, frequentist stats are great.
That's not an advantage, that's one of the primary reasons psychology is among the worst subjects hit by the replication crisis.
At least in my undergrad education, I took two dedicated statistics classes and many more domain science classes that used statistics, all of which were so steeped in the frequentist paradigm that frequentist vs Bayesian wasn't even mentioned. Frequentist statistics simply was statistics for me, until grad school.
The controversial part is the methodology for statistical analysis built on top of it (e.g., you need a prior but where did that come from?)
I would love to embrace (or at least try to) such a new approach, but it feels like without a PhD in stats it's hard to get it started.
For Bayesian ML see https://probml.github.io/pml-book/book1.html and https://www.bishopbook.com/
For Bayesian statistics see http://www.stat.columbia.edu/~gelman/book/
There are some caveats though - and I mention these from the experience of running such solutions on a large scale in production. First, BB-MAB can't adapt to context by design. They only look at click/no-click behavior across the population. So, if your population has two distinct segments - youth and elderly - who behave very differently wrt purchases, the BB-MAB won't pick a different winning advt. per group; its blind to these groups.
The solution is to use something like a contextual MAB - which assimilates user features (or whatever you might throw at it) into the MAB. There are simple ways to adapt simple MABs to the contextual setup [2] (in my experience, these can also be effective) but, of course, the literature in this area is wide and deep.
A second caveat is that if the ratio of the size of the pool of advts. to the number of impressions is high, the BB-MAB won't converge or converge to a good optima; the search space is simply too large relative to the data. In cases like this it becomes important to begin with the right Beta priors, instead of the standard recipe of starting with a Beta that looks like a uniform distribution.
But I wanted to say that when I looked A/B testing few years ago I started off with this book.
https://github.com/CamDavidsonPilon/Probabilistic-Programmin...
And somehere down the line he will introduce the Beta/Binomial method for A/B testing.
In my (again humble) understanding the benefit of doing this in the Bayesian way is both that you can actually get an understandable answer, but also that the answer does not have to be the final result you can continue by adding a loss function for example.
Some very basic Bayesian models can go a long way towards making informed decisions for a/b tests
One of the strengths of Bayesian methods is that you can use a less informative prior to model your skepticism of prior work.
[1]: https://www.sciencedirect.com/topics/medicine-and-dentistry/....
I wouldn't be surprised if many people using frequentist methods have no idea what assumptions need to be true for the methods to be valid. In a Bayesian framework you can't avoid the assumptions