PROB 101 · Midterm 1 · L1–L3 · demo

Midterm review: from counting to expectation

A demo page built by the study-guide Agent Skill. PROB 101 is a fictional course; nothing here comes from a real class.

Organized by lecture. Every claim carries a slide reference such as L2 p.4, so you can check it against the deck. Each lecture opens with a short glossary; learn the words first, then read on.

When
Week 6, in class, 30 minutes
Format
True/false, multiple choice, fill-in, two short answers
Allowed
One handwritten note sheet
Not allowed
Calculator, phone, AI. Keep the numbers easy to work by hand
Scope
L1–L3
Weight
20% of the course grade

How to use this page

  • Tags: core on the practice sheet or worked on the slides; likely covered in class and easy to turn into a true/false; background read once.
  • Each topic: read the one-line lead after the green bar, then the figure, then the details and the red Trap boxes. Dashed In plain words boxes explain the idea without notation.
  • Practice: every lecture ends with a practice box, so you can test yourself right after reading. At the bottom: the full practice bank, step-by-step short answers, timed mock exams drawn from their own pool, and a mistake notebook that fills itself.
  • Option text can be selected with the mouse; a drag that selects text does not count as a click.

Part 1 · L1

Counting and probability basics

Slides L1 p.1–24 · reading: notes ch. 1

Glossary

sample space Ω
the list of every possible outcome of the experiment
event
a set of outcomes, e.g. “the sum is 7”
complement Ac
everything in Ω that is not in A
union / intersection
A ∪ B: A or B (or both). A ∩ B: both at once
permutation
an ordered arrangement: first, second, third…
combination
an unordered selection: who is in, not in what order

1.1 Equally likely outcomes

core

L1 p.6–9

In one lineWhen every outcome is equally likely, a probability is a count: favorable outcomes divided by all outcomes.

P(A) = |A| / |Ω|only when every outcome in Ω is equally likely
die 1 die 2 123456 123456 Sum = 7: 6 of 36 cells P = 6/36 = 1/6 Sum = 2: only (1, 1) P = 1/36 The 36 ordered pairs are equally likely; the 11 sums are not.
Two fair dice. Count cells, not sums: a sum of 7 has six cells, a sum of 2 has one (L1 p.8).
In plain wordsWrite out every outcome so that each one is equally likely, then count. For two dice the right list is the 36 ordered pairs (die 1, die 2), not the 11 sums.
Trap“There are 11 possible sums, so P(sum = 7) = 1/11” is wrong: the sums are not equally likely. Always check that your outcomes are.

1.2 Complement and inclusion–exclusion

core

L1 p.12–16

In one line“At least one” is easiest as one minus “none”; for “A or B”, add both and subtract the overlap once.

P(Aᶜ) = 1 − P(A)
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)the overlap was counted twice
ExampleRoll a fair die 4 times. P(at least one six) = 1 − P(no six) = 1 − (5/6)4 = 1 − 625/1296 ≈ 0.518 (L1 p.14).
TrapP(A ∪ B) = P(A) + P(B) only when A and B cannot happen together. Otherwise you count the overlap twice and can even get a “probability” above 1.

1.3 Permutations and combinations

likely

L1 p.18–24

In one lineAsk “does order matter?” If yes, multiply the choices; if no, divide out the orderings.

QuestionOrder?Count from 8 people
President, VP, treasureryes8 · 7 · 6 = 336
A 3-person committeenoC(8, 3) = 336 / 3! = 56
In plain wordsEvery committee of 3 can be turned into 3! = 6 different officer lists by handing out the titles. So officer lists are 6 times as many as committees.
TrapRepeated letters: BOOK has 4!/2! = 12 arrangements, not 24, because swapping the two O’s changes nothing.

Part 2 · L2

Conditional probability and Bayes’ rule

Slides L2 p.1–30 · reading: notes ch. 2

If this lecture feels abstract, the exam only needs these three moves

  1. Condition = shrink the world to what you know, then measure inside it.
  2. Independent means knowing one event does not change the other’s probability.
  3. Bayes: work out both branches that lead to the evidence, then take the share of the branch you care about.

Glossary

conditional probability
P(A | B): probability of A once you know B happened
independent
P(A ∩ B) = P(A) P(B); equivalently P(A | B) = P(A)
law of total probability
split by cases, weight each case by how common it is, add
prior / posterior
belief before / after seeing the evidence
base rate
how common the condition is in the population (the prior)

Everyday analogies

TermThink of it as
Conditioning on BOnly looking at the rows of a spreadsheet where column B says “yes”
Base rateHow many needles there are in the haystack before you start searching
False positiveA smoke alarm going off for toast

2.1 Conditional probability

core

L2 p.4–8

In one lineKnowing B happened shrinks the sample space to B; P(A | B) is the share of B that is also A.

P(A | B) = P(A ∩ B) / P(B), with P(B) > 0
ExampleOne fair die. Given the roll is even, the world is {2, 4, 6}; one of those is a 6, so P(6 | even) = 1/3 (L2 p.5).
In plain wordsFilter first, then count. Out of the even rolls, what fraction are sixes?

2.2 Independence

likely

L2 p.10–14

In one lineA and B are independent when learning one tells you nothing about the other.

TrapDisjoint is not independent. If A and B cannot both happen and each has positive probability, learning A tells you B did not happen: P(B | A) = 0 ≠ P(B). That is strong dependence.
Check it with numbersTwo fair coin flips. A = “first is H”, M = “the two flips match”. P(M) = 1/2 and P(M | A) = P(second is H) = 1/2, so A and M are independent even though both mention the first flip (L2 p.13).

2.3 Total probability and Bayes’ rule

core

L2 p.18–30 · practice sheet Q4–Q5

In one lineTo reverse a conditional, count how often the evidence shows up on each branch, then take the share that comes from the branch you care about.

P(D | +) = P(+ | D) P(D) / [P(+ | D) P(D) + P(+ | Dᶜ) P(Dᶜ)]
1000 people 10 sick (1%) 990 healthy (99%) 9 test + 1 test − ≈50 test + 940 test −
Disease in 1% of people, test catches 90% of cases, 5% false positives. Positives: 9 + 50 = 59, and only 9 of them are sick, so P(sick | +) = 9/59 ≈ 15% (L2 p.24).
In plain wordsThe test is good, but healthy people outnumber sick people 99 to 1. Even a small false-alarm rate on that huge group produces more positives than the real cases do.
TrapP(+ | D) (how good the test is) is not P(D | + ) (what a positive means for you). Mixing them up is called base-rate neglect.

A positive test, one step at a time

1000 people 10 sick (1%) 990 healthy (99%) 9 test + 1 test − ≈50 test + 940 test − 9 + 50 = 59 test + P(sick | +) = 9/59 ≈ 15%
  1. Picture 1,000 people taking the test. Counting people is easier than multiplying probabilities.
  2. The disease is rare: 1% of 1,000 is 10 sick people. The other 990 are healthy.
  3. The test catches 90% of sick people, so 9 of the 10 test positive and 1 is missed.
  4. It also raises a false alarm for 5% of healthy people: about 50 of the 990.
  5. You tested positive, so you are one of the positives. There are 9 + 50 = 59 of them.
  6. Only 9 of those 59 are actually sick, so P(sick | +) = 9/59 ≈ 15%, not 90%.

Part 3 · L3

Random variables, expectation and variance

Slides L3 p.1–28 · reading: notes ch. 3

Glossary

random variable
a number determined by the outcome, e.g. the number of heads
PMF p(x)
probability mass function: P(X = x) for each value
expectation E[X]
probability-weighted average of the values; the long-run average
variance Var(X)
expected squared distance from the mean; how spread out X is
Bernoulli(p)
1 with probability p, 0 otherwise
Binomial(n, p)
number of successes in n independent Bernoulli(p) trials

3.1 Expectation

core

L3 p.5–9

In one lineMultiply each value by its probability and add.

E[X] = Σ x · p(x)
ExampleA fair die: (1 + 2 + 3 + 4 + 5 + 6) / 6 = 3.5 (L3 p.6). No roll ever shows 3.5; it is the average over many rolls.
TrapWeight by probability. A game that pays $10 with probability 0.2 and costs $3 otherwise is worth 0.2 · 10 − 0.8 · 3 = −$0.40 per play, not the plain average of $10 and −$3.

3.2 Linearity of expectation

core

L3 p.11–15

In one lineE[aX + bY + c] = aE[X] + bE[Y] + c, always, even when X and Y depend on each other.

ExampleFour people get their hats back in random order. Person i gets their own hat with probability 1/4, so the expected number of matches is 4 · 1/4 = 1, even though the matches are dependent (L3 p.14).
In plain wordsBreak a messy count into a sum of yes/no indicators, take the expectation of each, add. You never need the joint distribution.
TrapLinearity is about sums. E[XY] = E[X]E[Y] needs independence, and E[g(X)] ≠ g(E[X]) in general (e.g. E[X²] ≠ (E[X])²).

3.3 Variance and the binomial

likely

L3 p.18–28

In one lineCompute variance as E[X²] − (E[X])²; shifting X does not change it, scaling by a multiplies it by a².

Var(X) = E[X²] − (E[X])², Var(aX + b) = a² Var(X)
X ~ Bin(n, p): E[X] = np, Var(X) = np(1 − p)
P(X = k), X ~ Bin(10, 0.5) mean np = 5 012345678910
Ten fair coin flips. The bars for 3–7 heads (dark) hold about 89% of the probability; the spread is √(np(1 − p)) ≈ 1.58 (L3 p.24).
TrapVar(3X − 2) = 9 Var(X): square the 3, drop the −2. Writing 3 Var(X) or subtracting 2 are the two classic slips.
Why Var(X) = E[X²] − (E[X])² (not on the exam)

Let μ = E[X]. Expand (X − μ)² = X² − 2μX + μ² and take expectations with linearity: E[X²] − 2μ² + μ² = E[X²] − μ².

Last ten minutes

Traps at a glance

The one-word changes true/false questions love. Each item points back to its topic.

  1. The 11 sums of two dice are not equally likely; count the 36 ordered pairs (1.1).
  2. P(A ∪ B) = P(A) + P(B) only for disjoint events; otherwise subtract the overlap (1.2).
  3. “At least one” → 1 − P(none) (1.2).
  4. Officers (ordered) = committees (unordered) × k! (1.3).
  5. Disjoint events with positive probability are dependent (2.2).
  6. P(+ | D) ≠ P(D | +); a rare condition keeps P(D | +) low (2.3).
  7. E[X] need not be a possible value of X (3.1).
  8. Linearity of expectation holds without independence; E[XY] = E[X]E[Y] does not (3.2).
  9. Var(aX + b) = a² Var(X); the shift b disappears (3.3).
Demo course for the study-guide Agent Skill. PROB 101 is fictional; references such as “L2 p.4” show the citation format a real course page uses.