
Section 07: Probability & Statistics
Test your understanding of Descriptive Statistics
Find the mean and median of: \(8, 12, 15, 9, 16, 12, 11\)
If the variance of a dataset is 16, what is the standard deviation?
A frequency table shows 15 out of 50 items are defective. What is the relative frequency of defective items?
What is the interquartile range if \(Q1 = 25\) and \(Q3 = 45\)?
Focus on interpretation, not only computation.
These concepts are fundamental for all probability calculations on the exam!
A random experiment is a process with uncertain outcomes.
Examples:
Question: Do you know any other examples?
Definition: Sample Space (Ergebnismenge)
The sample space \(S\) (or \(\Omega\)) is the set of all possible outcomes of a random experiment.
Examples:
| Experiment | Sample Space |
|---|---|
| Coin flip | \(S = \{H, T\}\) |
| Die roll | \(S = \{1, 2, 3, 4, 5, 6\}\) |
| Two coin flips | \(S = \{HH, HT, TH, TT\}\) |
So far ok, right?
Definition: Event (Ereignis)
An event \(A\) is a subset of the sample space \(S\).
Example: Die roll with \(S = \{1, 2, 3, 4, 5, 6\}\)
Remember, \(\emptyset\) just means “nothing” while \(S\) means “everything”.
Remember these from the start of the course?
| Operation | Notation | Meaning |
|---|---|---|
| Union | \(A \cup B\) | A or B (or both) |
| Intersection | \(A \cap B\) | A and B |
| Complement | \(A'\) or \(\bar{A}\) | Not A |
| Set difference | \(A \setminus B\) | A but not B (= \(A \cap B'\)) |
\(A \setminus B\) means outcomes that are in \(A\) but excluded from \(B\). In probability, this is often easier to compute as \(P(A) - P(A \cap B)\).

If visualized, this is not too bad, isn’t it?
Kolmogorov Axioms, for any event \(A\):
\(P(A) \geq 0\) (non-negativity)
\(P(S) = 1\) (certainty)
For mutually exclusive events: \(P(A \cup B) = P(A) + P(B)\)
Consequence: \(0 \leq P(A) \leq 1\) for all events \(A\)
For equally likely outcomes:
\[P(A) = \frac{\text{Number of favorable outcomes}}{\text{Total number of outcomes}} = \frac{|A|}{|S|}\]
Example: Rolling a fair die
\[P(\text{even}) = \frac{|\{2, 4, 6\}|}{|\{1,2,3,4,5,6\}|} = \frac{3}{6} = \frac{1}{2}\]
This is rather intuitive, just imagine playing board games.
Complement Rule (Gegenwahrscheinlichkeit):
\[P(A') = 1 - P(A)\]
Example: If probability of rain is 0.3, what is the probability of no rain?
\[P(\text{no rain}) = 1 - P(\text{rain}) = 1 - 0.3 = 0.7\]
The complement rule is often useful when it’s easier to calculate what you don’t want!
A company knows that 5% of its products are defective.
Question: Probability that a random product is NOT defective?
Solution:
Question: In sample of 3 products, what’s the probability that at least one is defective?
Solution: Use complement! \[P(\text{at least one}) = 1 - P(\text{none defective}) = 1 - (0.95)^3 \approx 0.143\]
General Addition Rule (Additionssatz)
\[P(A \cup B) = P(A) + P(B) - P(A \cap B)\]
Why subtract \(P(A \cap B)\)?

In a class of 100 students:
Question: What is the probability that a randomly selected student studies mathematics OR economics?
Solution:
Mutually Exclusive (Disjoint) Events:
Events A and B are mutually exclusive if they cannot occur together:
\[A \cap B = \emptyset \quad \Rightarrow \quad P(A \cap B) = 0\]
Examples:
For mutually exclusive events:
\[P(A \cup B) = P(A) + P(B)\]
Example: Rolling a die, find \(P(\text{1 or 6})\)
Since rolling 1 and rolling 6 are mutually exclusive:
\[P(1 \cup 6) = P(1) + P(6) = \frac{1}{6} + \frac{1}{6} = \frac{2}{6} = \frac{1}{3}\]
That’s something we already intuitively knew!
Work individually
Definition: Independent Events
Events A and B are independent if the occurrence of one does not affect the probability of the other:
\[P(A \cap B) = P(A) \cdot P(B)\]
Don’t confuse:
Two machines work independently. Machine A has 95% reliability, Machine B has 90% reliability.
Question: What is the probability both machines work?
\[P(A \cap B) = P(A) \cdot P(B) = 0.95 \times 0.90 = 0.855\]
Question: What is the probability at least one machine fails?
\[P(\text{at least one fails}) = 1 - P(\text{both work}) = 1 - 0.855 = 0.145\]
| Property | Mutually Exclusive | Independent |
|---|---|---|
| \(P(A \cap B)\) | \(= 0\) | \(= P(A) \cdot P(B)\) |
| Occur together? | No | Yes |
| A occurred… | …tells B didn’t | …tells nothing about B |
| Example | “Pass” vs “Fail” | Two separate coin flips |
If \(P(A) > 0\) and \(P(B) > 0\), then mutually exclusive events cannot be independent!
Work individually
Classify each pair as mutually exclusive, independent, both, or neither.
A factory produces items with:
Find the probability that an item has:
In a survey of 500 consumers:
Question: Are “preferring Brand A” and “preferring organic” independent?
Definition: A random variable \(X\) assigns a numerical value to each outcome in the sample space.
Formally: \(X:S\to\mathbb{R}\).
Think of it like a function that takes an outcome and returns a number.
Definition: Probability Mass Function:
Example: Let \(X\) = number of heads in two fair coin flips.
| \(x\) | 0 | 1 | 2 |
|---|---|---|---|
| \(P(X=x)\) | \(\frac14\) | \(\frac12\) | \(\frac14\) |
Definition: Cumulative Distribution Function:
Using the same example:
| Question | Use | Example result |
|---|---|---|
| “Exactly 1 head” | PMF | \(P(X=1)=\frac12\) |
| “At most 1 head” | CDF | \(P(X\le1)=\frac34\) |
Common exam error: confusing \(P(X=1)\) with \(P(X\le 1)\). Always check whether the wording is “exactly” or “at most”.
Work individually
Given the PMF:
| \(x\) | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| \(P(X=x)\) | 0.10 | 0.35 | 0.40 | 0.15 |
Work in pairs
Problem 1: A card is drawn from a standard 52-card deck.
Problem 2: In a company, 40% of employees are in sales, 30% are in engineering, and 10% are in both. Find:
Work in pairs
Problem 3 (Notation Translation):
In a survey, let:
Work in pairs
Problem 4 (Complements + Wording):
In a support center, 18% of customers submit at least one complaint in a quarter.
Work individually, then compare
For events \(A\) and \(B\), suppose \(P(A)=0.55\), \(P(B)=0.40\), \(P(A\cap B)=0.18\).
Think individually then work in groups of 3-4
In a customer base:
Work in pairs
An online shop classifies returns by reason: Defective (D), Wrong Size (S), Changed Mind (M), or Other (O).
Work individually
A logistics company tracks two events for its deliveries:
Work in pairs
A factory has two machines, A and B, that operate independently.
Work individually, then compare
Let \(X\) be the number of items in a random online order. The PMF is:
| \(x\) | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| \(P(X=x)\) | 0.30 | 0.25 | 0.20 | 0.15 | 0.10 |
Work in groups
A marketing team surveys 200 customers. Let \(E\) = “opened the email” and \(C\) = “clicked the link”.
Work individually, then compare
Homework
Complete Tasks 07-02:
Session 07-02 - Basic Probability Concepts | Dr. Nikolai Heinrichs & Dr. Tobias Vlćek | Home