Elementary Probability Theory Made Easy for Discrete Mathematics Exam
Welcome, my dear students! Today we are going to learn about Elementary Probability Theory. I know many of you feel worried when you hear the word “probability,” but I promise you, if you follow my steps, it will become one of the easiest topics in your Discrete Mathematics course. So, let us begin together!
1. Sample Space and Events
Before we can talk about probability, we need to understand what we are measuring. Every probability problem starts with an experiment — an action whose result we cannot predict with certainty.
An event \(E\) is a subset of the sample space. It is a collection of one or more outcomes that we are interested in.
Let me give you a clear example. Suppose our experiment is rolling one fair die. What are all the possible outcomes?
See how simple it is? The sample space is just a list of everything that CAN happen. An event is just picking the outcomes we care about from that list.
Types of Events You Must Know
Simple event (Elementary event): An event with only one outcome. For example, “rolling a 3” is \(\{3\}\).
Impossible event: An event with no outcomes. Written as \(\emptyset\) (empty set). For example, “rolling a 7 on a standard die” is impossible.
Certain event: An event that includes all outcomes. This is the sample space \(S\) itself. For example, “rolling a number between 1 and 6” is certain.
Complement of an event: The complement of event \(A\), written as \(\overline{A}\) or \(A^c\), is the set of all outcomes in \(S\) that are NOT in \(A\).
Union of events (\(A \cup B\)): All outcomes that are in \(A\) OR in \(B\) (or both).
Intersection of events (\(A \cap B\)): All outcomes that are in \(A\) AND in \(B\) at the same time.
Mutually exclusive (Disjoint) events: Two events \(A\) and \(B\) are mutually exclusive if \(A \cap B = \emptyset\). They cannot happen at the same time.
Worked Example 1: Working with Events
Problem: A fair die is rolled. Let \(A = \{1, 2, 3\}\) and \(B = \{3, 4, 5\}\). Find \(A \cup B\), \(A \cap B\), and \(A^c\).
Solution: The sample space is \(S = \{1, 2, 3, 4, 5, 6\}\).
- \(A \cup B = \{1, 2, 3, 4, 5\}\) (everything in A or B — note 3 appears only once)
- \(A \cap B = \{3\}\) (only 3 is in BOTH sets)
- \(A^c = \{4, 5, 6\}\) (everything in S that is NOT in A)
A) \(\{H, T\}\)
B) \(\{HH, HT, TT\}\)
C) \(\{HH, HT, TH, TT\}\)
D) \(\{0, 1, 2\}\)
2. Probability of an Event
Now that we know what events are, let us learn how to measure how likely they are to happen. That measurement is called probability.
\[ P(A) = \frac{|A|}{|S|} = \frac{\text{number of outcomes in } A}{\text{number of outcomes in } S} \]
This is the most basic and most frequently used formula in elementary probability. Let me show you how to use it.
Worked Example 2: Basic Probability
Problem: A fair die is rolled. Find the probability of getting an even number.
Solution: The sample space \(S = \{1, 2, 3, 4, 5, 6\}\), so \(|S| = 6\).
The event “even number” is \(A = \{2, 4, 6\}\), so \(|A| = 3\).
\[ P(A) = \frac{3}{6} = \frac{1}{2} \]
Worked Example 3: Card Problem
Problem: One card is drawn from a standard 52-card deck. Find the probability that it is a face card (Jack, Queen, or King).
Solution: \(|S| = 52\) (total cards).
Each suit (Hearts, Diamonds, Clubs, Spades) has 3 face cards (J, Q, K). With 4 suits, total face cards \(= 3 \times 4 = 12\).
\[ P(\text{Face card}) = \frac{12}{52} = \frac{3}{13} \]
Fundamental Rules of Probability
Now let me teach you the rules that apply to ALL probability problems, not just equally likely ones.
Rule 1 (Range): For any event \(A\): \(\mathbf{0 \leq P(A) \leq 1}\)
– \(P(A) = 0\) means \(A\) is impossible
– \(P(A) = 1\) means \(A\) is certain
Rule 2 (Certain event): \(\mathbf{P(S) = 1}\)
Rule 3 (Impossible event): \(\mathbf{P(\emptyset) = 0}\)
Rule 4 (Complement rule): \(\mathbf{P(A^c) = 1 – P(A)}\)
This is VERY useful when it is easier to find the probability of what you do NOT want.
Rule 5 (Addition rule): \(\mathbf{P(A \cup B) = P(A) + P(B) – P(A \cap B)}\)
Rule 6 (Mutually exclusive): If \(A\) and \(B\) are mutually exclusive: \(\mathbf{P(A \cup B) = P(A) + P(B)}\)
(Because \(P(A \cap B) = 0\))
Worked Example 4: Using the Complement Rule
Problem: A fair die is rolled 4 times. What is the probability of getting at least one 6?
Solution: “At least one 6” means 1 or 2 or 3 or 4 sixes. Calculating this directly would be long. Instead, let us use the complement rule!
The complement of “at least one 6” is “no sixes at all” (getting 6 is false every time).
Worked Example 5: Using the Addition Rule
Problem: A card is drawn from a standard deck. Find the probability of drawing a King OR a Heart.
Solution: Let \(A =\) “drawing a King” and \(B =\) “drawing a Heart.”
\(P(A) = \frac{4}{52}\) (4 Kings)
\(P(B) = \frac{13}{52}\) (13 Hearts)
\(P(A \cap B) = \frac{1}{52}\) (the King of Hearts — it is BOTH a King and a Heart)
Why subtract? Because the King of Hearts was counted in BOTH \(P(A)\) and \(P(B)\). If we just add, we count it twice. We must subtract the overlap once.
A) 0.7
B) 0.3
C) 1.7
D) -0.7
A) 0.9
B) 0.8
C) 0.2
D) 1.0
3. Conditional Probability
Now, let me ask you a question. Suppose I tell you that I drew a card and it is a Heart. Now, what is the probability that it is also a King? Notice that I gave you extra information — I told you the card is a Heart. This changes the problem! This is what conditional probability is all about.
\[ P(A \mid B) = \frac{P(A \cap B)}{P(B)} \]
Read this as “the probability of \(A\) given \(B\).”
In simple words: “Given that \(B\) has happened, what is the chance that \(A\) also happens?” We divide the probability of BOTH happening by the probability of \(B\).
Worked Example 6: Conditional Probability with Cards
Problem: A card is drawn from a standard deck. Given that the card is a Heart, find the probability that it is a King.
Solution: Let \(A =\) “card is a King” and \(B =\) “card is a Heart.”
We need \(P(A \mid B) = \frac{P(A \cap B)}{P(B)}\)
- \(P(A \cap B) = P(\text{King of Hearts}) = \frac{1}{52}\)
- \(P(B) = P(\text{Heart}) = \frac{13}{52}\)
Intuitive check: If we KNOW the card is a Heart, we are now choosing from only 13 cards (the Hearts). Among these 13 Hearts, only 1 is a King. So \(1/13\) makes perfect sense!
When you are told that event \(B\) has happened, shrink your sample space from \(S\) to just \(B\). Now count how many outcomes in \(B\) also satisfy \(A\).
\[ P(A \mid B) = \frac{|A \cap B|}{|B|} \]
This is often easier to use than the formula with probabilities!
Worked Example 7: Conditional Probability with Dice
Problem: Two fair dice are rolled. Given that the sum is 8, what is the probability that at least one die shows a 3?
Solution: First, let me list all outcomes where the sum is 8 (this is our new “sample space” given \(B\)):
Now, which of these have at least one 3?
Multiplication Rule
From the definition of conditional probability, we can derive a very useful formula:
\[ P(A \cap B) = P(A) \cdot P(B \mid A) = P(B) \cdot P(A \mid B) \]
This rule is used when you need to find the probability that TWO events BOTH happen.
Worked Example 8: Using the Multiplication Rule
Problem: A bag contains 5 red and 3 blue balls. Two balls are drawn WITHOUT replacement. Find the probability that both are red.
Solution: Let \(R_1 =\) “first ball is red” and \(R_2 =\) “second ball is red.”
A) 0.6
B) 0.4
C) 0.24
D) 0.96
4. Independent Events
Now let me ask you: if I flip a coin and get Heads, does that change the probability of getting Heads on the NEXT flip? No! The coin does not remember what happened before. This idea leads us to independent events.
\[ P(A \mid B) = P(A) \quad \text{or equivalently} \quad P(B \mid A) = P(B) \]
Most useful test for independence:
\[ P(A \cap B) = P(A) \cdot P(B) \]
If this equality holds, \(A\) and \(B\) are independent. If it does NOT hold, they are dependent.
– Mutually exclusive: \(A \cap B = \emptyset\) (they cannot happen together)
– Independent: \(P(A \cap B) = P(A) \cdot P(B)\) (one does not affect the other)
In fact, if \(A\) and \(B\) are both mutually exclusive AND both have positive probability, they are ALWAYS dependent (not independent)! Because if they are mutually exclusive, \(P(A \cap B) = 0\), but \(P(A) \cdot P(B) > 0\), so the equality fails.
Worked Example 9: Checking Independence
Problem: A fair die is rolled. Let \(A = \{1, 2, 3, 4\}\) (roll is at most 4) and \(B = \{2, 4, 6\}\) (roll is even). Are \(A\) and \(B\) independent?
Solution: Check if \(P(A \cap B) = P(A) \cdot P(B)\).
- \(A \cap B = \{2, 4\}\), so \(P(A \cap B) = \frac{2}{6} = \frac{1}{3}\)
- \(P(A) = \frac{4}{6} = \frac{2}{3}\)
- \(P(B) = \frac{3}{6} = \frac{1}{2}\)
- \(P(A) \cdot P(B) = \frac{2}{3} \cdot \frac{1}{2} = \frac{1}{3}\)
Since \(\frac{1}{3} = \frac{1}{3}\), YES, \(A\) and \(B\) are independent!
Worked Example 10: Independent vs Dependent
Problem: A card is drawn from a standard deck. Let \(A =\) “card is a King” and \(B =\) “card is a Heart.” Are they independent?
Solution: Check: \(P(A \cap B) = \frac{1}{52}\). And \(P(A) \cdot P(B) = \frac{4}{52} \cdot \frac{13}{52} = \frac{52}{2704} = \frac{1}{52}\).
Since \(\frac{1}{52} = \frac{1}{52}\), they ARE independent! This may surprise you, but it is true — knowing a card is a Heart does not change the probability of it being a King (it stays 1/13).
Worked Example 11: Using Independence to Find Joint Probability
Problem: A fair coin is flipped 3 times. What is the probability of getting Heads on all three flips?
Solution: Each flip is independent of the others. Let \(H_1, H_2, H_3\) be the events “Heads on flip 1, 2, 3.”
This is why we often say: for independent events, just multiply the probabilities!
– AND (both events happen, \(\cap\)): Multiply probabilities (use multiplication rule; if independent, just multiply directly)
– OR (at least one happens, \(\cup\)): Add probabilities (use addition rule, but remember to subtract the overlap)
A) 0.8
B) 0.15
C) 0.2
D) 0.05
A) Yes, because \(P(A) + P(B) < 1\)
B) No, because \(P(A) \cdot P(B) = 0.12 \neq 0.15\)
C) Yes, because \(P(A \cap B) > 0\)
D) Cannot be determined
5. Random Variables and Expectation
We have now reached the last major topic. A random variable is a way to turn the outcomes of an experiment into numbers. Instead of saying “we got Heads,” we assign a number to it.
We use capital letters like \(X, Y, Z\) for random variables, and lowercase letters like \(x, y, z\) for their specific values.
Discrete random variable: Takes a finite or countable number of values (like 0, 1, 2, 3, …).
Continuous random variable: Takes values in a continuous range (like any number between 0 and 1). In this course, we focus on discrete random variables.
Worked Example 12: Defining a Random Variable
Problem: Three coins are tossed. Let \(X\) = “number of Heads obtained.” Find the possible values of \(X\) and the probability of each value.
Solution: Sample space: \(\{HHH, HHT, HTH, THH, HTT, THT, TTH, TTT\}\) (8 outcomes, all equally likely).
| Value of \(X\) | Outcomes | Count | \(P(X = x)\) |
|---|---|---|---|
| 0 | \(TTT\) | 1 | \(1/8\) |
| 1 | \(HTT, THT, TTH\) | 3 | \(3/8\) |
| 2 | \(HHT, HTH, THH\) | 3 | \(3/8\) |
| 3 | \(HHH\) | 1 | \(1/8\) |
This table is called the probability distribution of \(X\). Notice that the probabilities add up to 1: \(\frac{1}{8} + \frac{3}{8} + \frac{3}{8} + \frac{1}{8} = 1\).
Expected Value (Expectation)
\[ E(X) = \sum x \cdot P(X = x) \]
You multiply each value by its probability and add up all the results.
Think of it as a weighted average — values with higher probability “weigh” more.
Worked Example 13: Calculating Expected Value
Problem: Find \(E(X)\) for the coin-tossing random variable from Example 12.
Solution:
So the expected number of Heads when flipping 3 fair coins is 1.5. This makes sense — on average, half the flips are Heads, and \(3/2 = 1.5\).
Worked Example 14: Expected Value of a Game
Problem: You pay $3 to play a game. A fair die is rolled. If you roll a 6, you win $10. Otherwise, you win nothing. What is your expected gain (or loss)?
Solution: Let \(X\) = net gain. We need to account for the $3 cost.
- Roll a 6 (probability \(1/6\)): you receive $10 but paid $3, so net gain = \(10 – 3 = 7\)
- Roll 1-5 (probability \(5/6\)): you receive $0 but paid $3, so net gain = \(0 – 3 = -3\)
Your expected gain is about -$1.33. This means on average, you lose about $1.33 per game. This is a fair game question — if the expected value is negative, the game favors the house!
Properties of Expected Value
1. \(E(c) = c\) for any constant \(c\)
2. \(E(cX) = c \cdot E(X)\) for any constant \(c\)
3. \(E(X + Y) = E(X) + E(Y)\) even if \(X\) and \(Y\) are NOT independent!
4. If \(X\) and \(Y\) are independent, then \(E(XY) = E(X) \cdot E(Y)\)
Property 3 is very powerful — you do NOT need independence to add expectations!
Worked Example 15: Linearity of Expectation
Problem: A fair die is rolled 10 times. Let \(X\) = total sum of all rolls. Find \(E(X)\).
Solution: Let \(X_i\) = value of the \(i\)-th roll. Then \(X = X_1 + X_2 + \cdots + X_{10}\).
For one fair die: \(E(X_i) = \frac{1+2+3+4+5+6}{6} = \frac{21}{6} = 3.5\)
By linearity (Property 3):
We did NOT need to find the distribution of the sum (which would be very complex). We just used linearity of expectation!
A) 1.0
B) 1.1
C) 1.5
D) 2.0
\(E(X) = 13 \cdot \frac{1}{13} + (-2) \cdot \frac{12}{13} = 1 – \frac{24}{13} = \frac{13 – 24}{13} = \frac{-11}{13} \approx -0.85\)
Since \(E(X) \neq 0\) (it is negative), the game is NOT fair. It favors the house — you lose about $0.85 per game on average.
6. Quick Summary of All Key Formulas
| Concept | Formula |
|---|---|
| Basic probability | \(P(A) = \frac{|A|}{|S|}\) |
| Complement rule | \(P(A^c) = 1 – P(A)\) |
| Addition rule | \(P(A \cup B) = P(A) + P(B) – P(A \cap B)\) |
| Mutually exclusive | \(P(A \cup B) = P(A) + P(B)\) |
| Conditional probability | \(P(A \mid B) = \frac{P(A \cap B)}{P(B)}\) |
| Multiplication rule | \(P(A \cap B) = P(A) \cdot P(B \mid A)\) |
| Independence test | \(P(A \cap B) = P(A) \cdot P(B)\) |
| Expected value | \(E(X) = \sum x \cdot P(X=x)\) |
| Linearity | \(E(X+Y) = E(X) + E(Y)\) |
1. Always define your events clearly with letters (like \(A, B\)) before starting.
2. For “at least one” problems, use the complement rule immediately.
3. For “without replacement” problems, use conditional probability.
4. To check independence, always multiply \(P(A) \cdot P(B)\) and compare with \(P(A \cap B)\).
5. For expected value, make a table of values and probabilities, then multiply and add.
6. Never forget: probability is always between 0 and 1, and all probabilities in a distribution must sum to 1.
Challenge Conceptual Exam Questions
These questions test your deep understanding. Take your time and think carefully!
Multiple Choice Questions
A) 0.3
B) 0.5
C) 0.6
D) 0.1
A) 0.12
B) 0.4
C) 0.7
D) 0.3
A) 15
B) 17
C) 21
D) 7
A) \(\frac{7}{12}\)
B) \(\frac{5}{12}\)
C) \(\frac{1}{2}\)
D) \(\frac{2}{3}\)
\(A = \{(1,6),(2,5),(3,4),(4,3),(5,2),(6,1)\}\), so \(P(A) = 6/36\).
\(B = \) all outcomes with at least one 6. There are \(6 + 6 – 1 = 11\) such outcomes, so \(P(B) = 11/36\).
\(A \cap B = \{(1,6),(6,1)\}\), so \(P(A \cap B) = 2/36\).
\(P(A \cup B) = 6/36 + 11/36 – 2/36 = 15/36 = 5/12\)… Wait, that gives option B. Let me recount \(B\): outcomes with a 6 are \((6,1),(6,2),(6,3),(6,4),(6,5),(6,6),(1,6),(2,6),(3,6),(4,6),(5,6) = 11\). So \(P(B) = 11/36\). Then \(P(A \cup B) = 6/36 + 11/36 – 2/36 = 15/36 = 5/12\).
Correction: Answer is B (\(5/12\)). I made an arithmetic error in my initial check. Always verify carefully!
True / False Questions
Fill in the Blank Questions
Short Answer / Workout Questions
\(P(\text{all red}) = \frac{4}{10} \cdot \frac{3}{9} \cdot \frac{2}{8} = \frac{24}{720} = \frac{1}{30}\)
\(P(\text{all green}) = \frac{6}{10} \cdot \frac{5}{9} \cdot \frac{4}{8} = \frac{120}{720} = \frac{1}{6}\)
\(P(\text{all same color}) = \frac{1}{30} + \frac{1}{6} = \frac{1}{30} + \frac{5}{30} = \frac{6}{30} = \frac{1}{5}\)
The key was recognizing “OR” and using the addition rule for mutually exclusive events, combined with the multiplication rule for each case.
\(P(X_i = 1) = P(\text{knows}) \cdot 1 + P(\text{doesn’t know}) \cdot 0.5 = 0.7 \times 1 + 0.3 \times 0.5 = 0.7 + 0.15 = 0.85\)
So \(E(X_i) = 0.85\) for each question.
Total correct \(X = X_1 + \cdots + X_{10}\), so \(E(X) = 10 \times 0.85 = 8.5\).
The expected number of correct answers is 8.5.
For independence, we would need \(P(A \cap B) = P(A) \cdot P(B)\). But \(P(A) \cdot P(B) > 0\) (since both probabilities are positive).
So \(0 = P(A \cap B) \neq P(A) \cdot P(B) > 0\). The independence condition fails.
Therefore, \(A\) and \(B\) are dependent. Intuitively: if \(A\) occurs, then \(B\) cannot occur (they are mutually exclusive), so knowing \(A\) happened changes \(P(B)\) to 0, which proves dependence.
Let me reconsider: \(X\) is the position of the first defective. It can be 1, 2, …, 8.
\(P(X=1) = \frac{3}{10}\) (first item is defective)
\(P(X=2) = \frac{7}{10} \cdot \frac{3}{9} = \frac{21}{90} = \frac{7}{30}\) (first good, then defective)
\(P(X=3) = \frac{7}{10} \cdot \frac{6}{9} \cdot \frac{3}{8} = \frac{126}{720} = \frac{7}{40}\)
\(P(X=4) = \frac{7}{10} \cdot \frac{6}{9} \cdot \frac{5}{8} \cdot \frac{3}{7} = \frac{630}{5040} = \frac{1}{8}\)
…and so on. The pattern is \(P(X=k) = \frac{\binom{7}{k-1}}{\binom{10}{k-1}} \cdot \frac{3}{10-(k-1)}\).
For \(E(X)\), we could compute: \(E(X) = 1 \cdot \frac{3}{10} + 2 \cdot \frac{7}{30} + 3 \cdot \frac{7}{40} + \cdots\) This requires computing all 8 terms. However, there is a clever shortcut: for sampling without replacement from \(N\) items with \(K\) defectives, \(E(X) = \frac{N+1}{K+1} = \frac{11}{4} = 2.75\). So \(E(X) = 2.75\).