Probability and statistics (source code)

= Probability and statistics
{wiki}

<Probability theory> starts with a model of uncertainty and derives predictions about observations. <Statistics> works in the reverse direction: it uses observations to estimate, compare or check models. For example, a fair-coin model predicts the <binomial distribution> of heads in repeated <Bernoulli trials>; observing an unusual number of heads raises a statistical question about whether that model fits. The distinction connects <random variables> and <probability distributions> to <estimation>, <hypothesis tests> and <experimental design>.