Random Variable vs Statistic

Both terms below come up in the same part of the course, and students mix them up. Here is each one defined on its own, side by side, so you can see where they part company.

Random variable

Random variables and distributions

A random variable assigns a numerical value to each outcome of a chance process, so its value is determined by the result of a random event.

A random variable turns the outcomes of a random process into numbers you can average and analyze. For example, if XX is the number of heads in two coin flips, then XX can equal 0, 1, or 2, each with its own probability. Random variables are discrete when their values are countable and continuous when they can take any value in an interval. Its long-run average is the expected value E(X)=xipiE(X) = \sum x_i \, p_i (E of X, each value times its probability, summed).

Full entry for random variable

Statistic

Collecting data and study design

A statistic is a numerical value computed from sample data, used to estimate a corresponding population parameter.

A statistic varies from sample to sample because it depends on which individuals you happen to select. For example, if 52 out of 100 sampled voters favor a measure, the sample proportion is p^=0.52\hat{p} = 0.52 (p-hat, the estimate of the population proportion). Common statistics include the sample mean xˉ\bar{x} (x-bar) and the sample standard deviation ss. Its value changes with each new sample, which is what sampling distributions describe.

Full entry for statistic

Where each one fits in the course