Skip to content
BIASED

Confidence intervals and the bootstrap

Block 1 of 8~2 min

How much to trust 0.86

The topic Bayesian inference ended with a credible interval. A prior and the data give a posterior, and the posterior says that θ\theta lies in [a,b][a, b] with probability 0.95. That statement needs a prior. This topic gives the other answer, which needs none.

Take a running example. A classifier answers 430 of 500 test examples correctly, so its accuracy on the test set is

θ^=430500=0.86.\hat\theta = \frac{430}{500} = 0.86 .

Its true accuracy θ\theta is the probability of a correct answer on a new example from the same distribution. A different test set of 500 examples would give a different θ^\hat\theta: 0.85, perhaps, or 0.87. How far from θ\theta can 0.86 be?

The frequentist view treats θ\theta as a fixed, unknown number. It does not put a distribution on θ\theta. Randomness lives in the data: the test set is a random sample, so θ^\hat\theta and everything else computed from it are random variables. Any statement about uncertainty must therefore be a statement about what a procedure does across repeated samples. A confidence interval is such a procedure: two statistics LL and UU, computed from the data.

Answers are saved on the server and tied to this browser until you sign in.