Compute expected outcomes and update probabilities with new evidence.
Expected value E(X) is the long-run average outcome of a random variable โ the probability-weighted average of all possible values. Bayes' Theorem provides a framework to update the probability of a hypothesis given new evidence.
For a fair six-sided die: E(X) = 1ยท(1/6) + 2ยท(1/6) + 3ยท(1/6) + 4ยท(1/6) + 5ยท(1/6) + 6ยท(1/6) = 21/6 = 3.5.
Disease prevalence: 1%. Test sensitivity: 90%. Specificity: 95%. P(disease|positive) = (0.9ยท0.01)/[(0.9ยท0.01)+(0.05ยท0.99)] = 0.009/0.0585 โ 15.4%. Even a positive test may not mean disease!
Remember This!
A game is "fair" if E(X) = 0 (you expect to neither gain nor lose in the long run). If E(X) < 0, the house has the advantage. Always compute expected value before gambling!
A game pays $5 with probability 0.3 and costs $2 with probability 0.7. What is the expected value?