Skip to content

Bayesian vs frequentist probability

7 min read

Short answer

Frequentists treat probability as the long-run frequency of an outcome and parameters as fixed unknown numbers. Bayesians treat probability as a degree of belief, so even a parameter gets a probability distribution that is updated with Bayes' theorem as data arrive. With plenty of data the two usually agree.

Frequentist compared with BayesianFrequentistProbability = long-runfrequencyParameter: fixed,unknownData: randomOutput: estimate +intervalBayesianProbability = degreeof beliefParameter: has adistributionData: observed, fixedOutput: posteriordistribution
The views disagree about what probability means and which things are random, not about the rules of probability itself.

Two meanings of probability

For a fair coin, a frequentist says "0.50.5" means that in many repeated flips about half land heads. This is awkward for one-off events ("the probability it rains tomorrow", "the probability this defendant did it"), since you cannot repeat them.

A Bayesian says "0.50.5" quantifies uncertainty given what you know. One-off events are fine, and different people with different information may assign different probabilities. Both views obey the same axioms, so the algebra, such as conditional probability and Bayes' theorem, is identical.

How each handles an unknown parameter

Suppose a coin has unknown heads-probability pp. The frequentist treats pp as fixed and judges a procedure by how it behaves over many hypothetical datasets, for example the estimate p^=heads/n\hat p=\text{heads}/n and a 95% confidence interval, the guarantee that the method captures the true pp in 95% of repeated experiments.

The Bayesian starts with a prior distribution for pp, multiplies by the likelihood of the data, and normalizes to a posterior: posterior∝prior×likelihood\text{posterior}\propto\text{prior}\times\text{likelihood}. A 95% credible interval is then a direct statement that pp lies in that range with probability 0.95, given the prior and data.

Trade-offs

Bayesian analysis can use prior knowledge naturally and gives direct probability statements, but results can depend on the prior, especially with little data. Frequentist methods avoid choosing a prior and have well-understood error guarantees, but their statements (p-values, confidence levels) are about procedures and are easy to misread.

In practice many statisticians use both, picking whichever fits the problem, and as data accumulate the prior's influence fades and the answers converge.

Worked example

A coin lands heads 7 times in 10 flips. Give the frequentist estimate of pp and the Bayesian posterior mean using a uniform Beta(1,1)\text{Beta}(1,1) prior.

Frequentist: p^=710=0.7\hat p=\tfrac{7}{10}=0.7 (the maximum likelihood estimate).

Bayesian: a Beta(1,1)\text{Beta}(1,1) prior updated with 7 heads and 3 tails gives the posterior Beta(1+7, 1+3)=Beta(8,4)\text{Beta}(1+7,\,1+3)=\text{Beta}(8,4), with mean 812≈0.667\tfrac{8}{12}\approx0.667.

The Bayesian answer is pulled slightly toward the prior's center of 0.50.5. With 10001000 flips and 700700 heads the two answers would be nearly identical.

Try it yourself

With a Beta(1,1)\text{Beta}(1,1) prior, you see 3 heads in 3 flips. What is the posterior mean of pp, and how does it compare with the frequentist estimate?

Show the answer

The posterior is Beta(4,1)\text{Beta}(4,1) with mean 45=0.8\tfrac45=0.8. The frequentist estimate is 33=1\tfrac33=1. The Bayesian answer is less extreme because the prior tempers conclusions from tiny samples.

Keep going with practice

Vidi's Bayes' theorem lessons give you the update rule that Bayesian statistics is built on.