Expected Value vs Expected Count

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.

Expected value

Random variables and distributions

The expected value of a random variable is its long-run average, found by multiplying each value by its probability and adding the products.

The expected value is the mean you would see over many repetitions of the random process, and it need not be a value the variable can actually take. For example, a game that pays 2 dollars with probability 0.5 and nothing with probability 0.5 has expected value 2(0.5)+0(0.5)=12(0.5) + 0(0.5) = 1 dollar. In general it is written E(X)=μX=xipiE(X) = \mu_X = \sum x_i \, p_i (E of X, the mean of X, sums each value times its probability). It is the balance point of the probability distribution.

Full entry for expected value

Expected count

Hypothesis testing

An expected count is how many observations a category would get if the null hypothesis were exactly true; it is the baseline in a chi-square test.

Expected counts are the tallies a chi-square model predicts for each cell when the null hypothesis holds, and the test measures how far the observed counts drift from them. For a two-way table, each cell's expected count is E=(row total)×(column total)grand totalE = \frac{(\text{row total}) \times (\text{column total})}{\text{grand total}}. For example, in a 200-person table a cell whose row totals 80 and column totals 50 has E=80×50200=20E = \frac{80 \times 50}{200} = 20. Every expected count should be at least 5 for the chi-square approximation to be trustworthy.

Full entry for expected count

Where each one fits in the course