Sampling inference, expected value and counting
Introduced
4:59
Sampling inference, expected value and counting
In 1657 the Dutch scientist Christiaan Huygens published De Ratiociniis in Ludo Aleae ("On Reasoning in Games of Chance"), the first printed book on…
English narration · English and 中文 subtitles you can switch
In this lesson
| English | Meaning |
|---|---|
| expected value/ekˈspektɪd ˈvæljuː/ | The probability-weighted mean of the possible values of a random variable. |
| permutation/ˌpɜːmjuːˈteɪʃn/ | An ordered arrangement of selected objects, in which changing the order gives a different arrangement. |
| combination/ˌkɒmbɪˈneɪʃn/ | A selection of items in which their order is not significant. |
| Independent events/ˌɪndɪˈpendənt ɪˈvents/ |
Is the game fair?
- A game costs 2 dollars to play. You win 10 dollars with probability 0.15, otherwise nothing. Should you expect to win or lose money in the long run?
- ACT tests expected value 期望值, conditional and compound probability, counting, and what a sample or simulation can show.
Expected value
- Expected value 期望值 $= \sum (\text{value} \times \text{probability})$. Winnings: $10 \times 0.15 = 1.50$; minus the 2-dollar cost: expected gain $= -0.50$ dollars per game.
- Over many games you lose about 50 cents each time on average.

A raffle ticket costs 5 dollars. The probability of winning 100 dollars is 0.02. What is the expected gain per ticket in dollars?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$100 \times 0.02 - 5 = 2 - 5 = -3$.
Counting
- Multiplication principle: 3 shirts and 4 trousers give $3 \times 4 = 12$ outfits.
- Permutations 排列 (order matters): $_nP_r = \dfrac{n!}{(n - r)!}$; combinations 组合 (order does not): $_nC_r = \dfrac{n!}{r!(n - r)!}$. Choosing 2 of 5 people for a committee: $_5C_2 = 10$.
President and vice-president from 5 people: order matters, $5 \times 4 = 20$. A two-person team from 5: order does not matter, $20 \div 2 = 10$.
Does order matter?
Choose between permutations and combinations.
How many different 3-person committees can be chosen from 6 people?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$_6C_3 = \dfrac{6!}{3!3!} = 20$.
In how many ways can first, second and third prizes be given to 3 of 8 runners?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$8 \times 7 \times 6 = 336$ (order matters).
Compound and conditional probability
- Independent events 独立事件: $P(A \text{ and } B) = P(A)P(B)$. Two fair coins both heads: $0.5 \times 0.5 = 0.25$.
- "Or" for disjoint events adds; otherwise $P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B)$. Conditional: divide by the restricted group.
A fair die is rolled twice. What is the probability of two sixes?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Independent rolls: $\tfrac{1}{6} \times \tfrac{1}{6}$.
Traps
- Permutation versus combination: ask whether swapping two choices gives a different outcome.
- Simulations prove nothing: a simulation gives evidence, not certainty; a larger number of trials gives more reliable estimates.
A computer simulation of 100 trials gives an estimate of a probability, not its exact value.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
True. Simulated results vary; more trials generally make the estimate more reliable, although the estimate can equal the exact probability by chance.
Recap
- Expected value 期望值 = sum of value × probability (include costs).
- Order matters → permutation; not → combination; multiply for independent "and", adjust for overlap in "or".
What went wrong? Only the site team sees this.