MathClario
← All lessons
High school🎲Probability15 min read
🎲

Probability: complete lesson (sample space, events, conditional, independence)

Sample space, events, computing probability, conditional, independence, weighted tree. The full high-school lesson.

Prerequisites :

  • Fractions
  • Percentages

Basic vocabulary

  • Random experiment: an experiment whose outcome cannot be predicted.
  • Sample space Ω\Omega: set of all possible outcomes.
  • Event: subset of Ω\Omega.
  • Elementary event: {ω}\{ \omega \} (a single outcome).

Probability: 3 axioms

A probability PP satisfies:

  1. 0≤P(A)≤10 \leq P(A) \leq 1 for any event AA.
  2. P(Ω)=1P(\Omega) = 1.
  3. If AA and BB are incompatible (A∩B=∅A \cap B = \emptyset): P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B).

Equally likely outcomes (uniform)

If all outcomes are equally likely:

P(A)=number of favorable outcomesnumber of possible outcomes=∣A∣∣Ω∣P(A) = \dfrac{\text{number of favorable outcomes}}{\text{number of possible outcomes}} = \dfrac{|A|}{|\Omega|}

Key formulas

  • Complement: P(A‾)=1−P(A)P(\overline{A}) = 1 - P(A).
  • Union: P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B).

Conditional probability

P(A∣B)=P(A∩B)P(B)(if P(B)≠0)P(A | B) = \dfrac{P(A \cap B)}{P(B)} \quad (\text{if } P(B) \neq 0)

“Probability of AA given BB”. Careful: P(A∣B)≠P(B∣A)P(A | B) \neq P(B | A) in general.

Independent events

AA and BB are independent iff:

P(A∩B)=P(A)×P(B)P(A \cap B) = P(A) \times P(B)

Equivalently: P(A∣B)=P(A)P(A | B) = P(A) (if P(B)≠0P(B) \neq 0).

Tree diagram

On a weighted tree:

  • The sum of probabilities leaving a node equals 1.
  • The probability of a path = product of branch probabilities.
  • The probability of an event = sum of path probabilities leading to it.

Law of total probability

If (B1,B2,…,Bn)(B_1, B_2, \ldots, B_n) form a partition of Ω\Omega (all incompatible, union = Ω\Omega):

P(A)=∑i=1nP(A∩Bi)=∑i=1nP(A∣Bi)⋅P(Bi)P(A) = \sum_{i=1}^{n} P(A \cap B_i) = \sum_{i=1}^{n} P(A | B_i) \cdot P(B_i)

Bayes’ formula

P(B∣A)=P(A∣B)⋅P(B)P(A)P(B | A) = \dfrac{P(A | B) \cdot P(B)}{P(A)}

Lets you reverse the conditional. Often used with the law of total probability.

Random variable

A random variable XX maps each outcome in Ω\Omega to a number.

  • Distribution of XX: list of pairs (xi,P(X=xi))(x_i, P(X = x_i)).
  • Expectation: E(X)=∑xi⋅P(X=xi)E(X) = \sum x_i \cdot P(X = x_i).
  • Variance: V(X)=E(X2)−E(X)2V(X) = E(X^2) - E(X)^2.
  • Standard deviation: σ(X)=V(X)\sigma(X) = \sqrt{V(X)}.

Common mistakes

  1. Confusing P(A∣B)P(A | B) and P(B∣A)P(B | A).
  2. Summing P(A)+P(B)P(A) + P(B) for union without subtracting P(A∩B)P(A \cap B).
  3. Confusing independent with incompatible (different notions).
  4. Forgetting branch sums at a tree node equal 1.
#probability#sample space#conditional#independence#tree diagram#grade 12#lesson