An experiment or process for which the outcome cannot be predicted with certainty, but all possible outcomes are known.
A single possible outcome of a random experiment.
The set of all possible outcomes (sample points) of a random experiment.
A subset of the sample space. It is a collection of one or more sample points.
Events can be combined using set operations.
How we define and calculate probability.
This definition assumes all outcomes are equally likely.
If a random experiment has 'n' mutually exclusive, exhaustive, and equally likely outcomes, and 'm' of these outcomes are favorable to an event A:
This definition is based on relative frequency from actual experiments.
If an experiment is repeated 'n' times and event A occurs 'f' times, the probability of A is the limit of this relative frequency as 'n' becomes infinitely large.
This is the modern, mathematical definition. It states the *rules* (axioms) that probability must follow, without saying how to calculate it.
Axiom 1 (Non-negativity): For any event A, P(A) ≥ 0.
Axiom 2 (Certainty): The probability of the entire sample space is 1. P(S) = 1.
Axiom 3 (Additivity): If A and B are mutually exclusive events, then P(A ∪ B) = P(A) + P(B).
Used to find the probability of (A or B).
(We subtract P(A ∩ B) because it was counted twice).
Since P(A ∩ B) = 0, the formula simplifies to:
Used to find the probability of (A and B). It is derived from the definition of conditional probability.
Conditional Probability, P(A | B): The probability of event A occurring, given that event B has already occurred.
It "updates" the probability of A based on new information. We are restricting our sample space from S down to just B.
Roll a die. S = {1, 2, 3, 4, 5, 6}.
            
            Event A = "Get a 4". P(A) = 1/6.
            
            Event B = "Get an even number" = {2, 4, 6}. P(B) = 3/6.
            
            Event (A ∩ B) = "Get a 4 AND an even number" = {4}. P(A ∩ B) = 1/6.
            
            P(A | B) = P(A ∩ B) / P(B) = (1/6) / (3/6) = 1/3.
            
Independent Events: Two events A and B are independent if the occurrence of one event does not affect the probability of the other event occurring.
A and B are independent if and only if:
This also means:
Bayes' Theorem allows us to "reverse" the conditional probability. If we know P(B | A), Bayes' Theorem helps us find P(A | B).
It is used to update our belief about a "cause" (A) given a new "effect" (B).
For two events A and B:
More generally, if the sample space is partitioned by events A1, A2, ..., Ak:
Bayes' Theorem (Full Form):
P(Ai | B) = [ P(B | Ai)P(Ai) ] / [ Σ P(B | Aj)P(Aj) ]
The denominator is just P(B), calculated using the Law of Total Probability.
A factory has two machines, A1 and A2.
            
- A1 produces 60% of items (P(A1) = 0.6).
            
- A2 produces 40% of items (P(A2) = 0.4).
            
- 2% of items from A1 are defective (P(D | A1) = 0.02).
            
- 1% of items from A2 are defective (P(D | A2) = 0.01).
            
Question: An item is selected at random and found to be defective (D). What is the probability it came from machine A1?
We want to find P(A1 | D).
Step 1: Numerator: P(D | A1) * P(A1)
            
            (0.02) * (0.6) = 0.012
            
Step 2: Denominator (Total Probability of D):
            
            P(D) = P(D | A1)P(A1) + P(D | A2)P(A2)
            
            P(D) = (0.02)(0.6) + (0.01)(0.4)
            
            P(D) = 0.012 + 0.004 = 0.016
            
Step 3: Divide.
            
            P(A1 | D) = 0.012 / 0.016 = 12 / 16 = 0.75
            
Result: There is a 75% chance the defective item came from machine A1.