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 is the number of heads in two coin flips, then 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 of X, each value times its probability, summed).
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-hat, the estimate of the population proportion). Common statistics include the sample mean (x-bar) and the sample standard deviation . Its value changes with each new sample, which is what sampling distributions describe.