Skip to content

Probability Foundations

This session establishes the language used throughout the course: experiments, sample spaces, events, combinatorics, probability measures, conditioning, total probability, Bayes' theorem, and independence.

We represent a random experiment with a sample space and events, use the multiplication principle, permutations, and combinations to count outcomes, then apply probability rules, conditional probability, the law of total probability, and Bayes' theorem. Independence is distinguished carefully from mutually exclusive events. Tables, trees, and event notation are used as complementary representations of the same probability model.

Key Concepts

  • Experiments, sample spaces, and events
  • Combinatorics: the multiplication principle, permutations, and combinations, with and without replacement
  • Probability rules, conditional probability, and Bayes' theorem
  • The law of total probability
  • Independence versus mutually exclusive events

Learning Objectives

  • Represent a random experiment using a sample space and events.
  • Count outcomes using the multiplication principle, permutations, and combinations, distinguishing whether order matters and replacement is allowed.
  • Apply probability rules, conditional probability, total probability, and Bayes' theorem.
  • Distinguish independence from mutually exclusive events.

Session Preparation:

There are no exercises due before the first class. Review the prerequisites, especially sets, combinatorics, and basic probability.

Syllabus and input

Chapter 1 — Basic Concepts:

Chapter 2 — Combinatorics: Counting Methods (sections 2.1.0–2.1.4):

Existing course material


Exercises

Exercise 1 — Probability tree

Heart failures are due to natural occurrences (87%) or outside factors (13%). Outside factors are related to induced substances (73%) or foreign objects (27%). Natural occurrences are caused by arterial blockage (56%), disease (27%), or infection (17%).

  1. Find the probability that a failure is due to an induced substance.
  2. Find the probability that a failure is due to disease or infection.
Answer
  1. \(0.13\cdot0.73=0.0949\).
  2. \(0.87(0.27+0.17)=0.3828\).

Exercise 2 — Event algebra

Let \(P(A)=0.4\), \(P(B)=0.7\), and \(P(A\cup B)=0.9\).

  1. Find \(P(A\cap B)\).
  2. Find \(P(A^c\cap B)\).
  3. Find \(P(A-B)\).
  4. Find \(P(A^c\cup B)\).
Answer
  1. \(0.4+0.7-0.9=0.2\).
  2. \(0.7-0.2=0.5\).
  3. \(0.4-0.2=0.2\).
  4. \(1-P(A-B)=0.8\).

Exercise 3 — Conditional probability

For a scheduled flight, \(P(D)=0.83\) is the probability of departing on time, \(P(A)=0.82\) is the probability of arriving on time, and \(P(D\cap A)=0.78\).

  1. Find \(P(A\mid D)\).
  2. Find \(P(D\mid A)\).
  3. Find \(P(A\mid D^c)\).
Answer
  1. \(0.78/0.83\approx0.9398\).
  2. \(0.78/0.82\approx0.9512\).
  3. \((0.82-0.78)/(1-0.83)\approx0.2353\).

Exercise 4 — Three suppliers, total probability, and Bayes' theorem

A batch contains 50% Western Digital, 30% Toshiba, and 20% Seagate hard drives. The defect rates for Toshiba and Seagate are both 2%, while 3% of the entire batch is defective.

  1. Find the defect rate for Western Digital drives.
  2. Construct a supplier-by-quality contingency table for a batch of 1,000 drives.
  3. Given that a drive is defective, find the probability that it came from Seagate.
  4. Given that a drive is not defective, find the probability that it came from Western Digital.
Answer

Total probability gives \(0.03=0.5p+0.3(0.02)+0.2(0.02)\), so \(p=0.04\). There are 20, 6, and 4 defective drives from Western Digital, Toshiba, and Seagate. Thus \(P(S\mid D)=4/30\) and \(P(W\mid D^c)=480/970\).

Exercise 5 — Independence versus mutual exclusivity

A fair six-sided die is rolled once. Let \(A=\{2,4,6\}\), \(B=\{1,2,3,4\}\), and \(C=\{1,3,5\}\).

  1. Find \(P(A)\), \(P(B)\), \(P(C)\), \(P(A\cap B)\), and \(P(A\cap C)\).
  2. Determine whether \(A\) and \(B\) are independent.
  3. Determine whether \(A\) and \(C\) are mutually exclusive.
  4. Explain why mutually exclusive events with positive probability cannot be independent.
Answer

\(P(A)=P(C)=1/2\), \(P(B)=2/3\), \(P(A\cap B)=1/3\), and \(P(A\cap C)=0\). Since \(P(A\cap B)=P(A)P(B)=1/3\), \(A\) and \(B\) are independent. Events \(A\) and \(C\) are mutually exclusive, but \(0=P(A\cap C)\ne P(A)P(C)=1/4\), so they are not independent.

Exercise 6 — A simpler Bayes calculation

An IT company receives 40% of its circuit boards from supplier 1 and 60% from supplier 2. The defect rates are 5% and 3%, respectively.

  1. Find the probability that a randomly chosen board is defective.
  2. Given that a board is defective, find the probability that it came from supplier 1.
Answer
  1. \(P(D)=0.4(0.05)+0.6(0.03)=0.038\).
  2. \(P(S_1\mid D)=0.4(0.05)/0.038\approx0.5263\).

Exercise 7 — Keyboard failures

Computer keyboard failures are caused by faulty electrical connections (12%) or mechanical defects (88%). Mechanical defects are loose keys (27%) or improper assembly (73%). Electrical defects are defective wires (35%), improper connections (13%), or poorly welded wires (52%).

  1. Draw a probability tree.
  2. Find the probability that a failure is caused by loose keys.
  3. Find the probability that a failure is caused by an improper connection or a poorly welded wire.
  4. Given that the failure is electrical, find the probability that it is caused by a defective wire.
Answer

The answers are \(0.88(0.27)=0.2376\), \(0.12(0.13+0.52)=0.078\), and \(0.35\), respectively.

Exercise 8 — Sample space and complements

Two teams play a football match. Let \(a\), \(b\), and \(d\) denote that team A wins, team B wins, or the match is drawn. Suppose \(P(a)=0.50\) and \(P(d)=0.25\).

  1. Write the sample space and its power set.
  2. Find \(P(b)\).
  3. Find the probability that team A does not win.
  4. Define two non-trivial events and determine whether they are mutually exclusive.
Answer

\(S=\{a,b,d\}\), \(P(b)=0.25\), and \(P(A\text{ does not win})=P(\{b,d\})=0.50\). Mutual exclusivity depends on the events chosen and requires an empty intersection.