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 dollar. In general it is written (E of X, the mean of X, sums each value times its probability). It is the balance point of the probability distribution.
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 . For example, in a 200-person table a cell whose row totals 80 and column totals 50 has . Every expected count should be at least 5 for the chi-square approximation to be trustworthy.