Sample Spaces and Events
Probability Foundations and Counting
Sample Spaces and Events
A probability model begins with an experiment, a process that produces an outcome.
The sample space, denoted by S, is the collection of all possible outcomes of an experiment.
An event is any collection, or subset, of outcomes in the sample space. Events are usually denoted by capital letters such as A, B, and C.
An event can contain:
A single outcome
Several outcomes
Every outcome in the sample space
No outcomes, represented by the empty or null set, ∅
An event occurs when the actual outcome of the experiment belongs to that event.
For example, when rolling a die:
The sample space is S={1,2,3,4,5,6}.
The event A={2,4,6} represents rolling an even number.
The event occurs if the die actually shows 2, 4, or 6.
Because events are sets, probability uses many ideas and rules from set theory, including associativity, commutativity, and distributivity.
Set Notation and Operations
Containment
The notation A⊆B means that event A is contained in event B. Every outcome in A is also an outcome in B.
If A⊆B, then:
A is a subset of B.
Occurrence of A guarantees occurrence of B.
The union of A and B is simply B:
If both A⊆B and B⊆A, then the events contain exactly the same outcomes and are equal:
Union
The union of A and B, written A∪B, contains every outcome that belongs to A, to B, or to both.
In probability notation, the union symbol is ∪.
Intersection
The intersection of A and B contains outcomes that belong to both events.
Set theory often denotes an intersection with ∩, but probability notation frequently omits the symbol and writes the intersection as AB or, more explicitly, A∩B.
Thus:
If A⊆B, then every outcome in A is already in B, so:
Complement
The complement of A, written Ac, consists of all outcomes in the sample space that are not in A.
An event and its complement together make up the entire sample space:
The event A and its complement cannot occur simultaneously.
Mutually Exclusive, Exhaustive, and Partitioned Events
Mutually Exclusive Events
Events A and B are mutually exclusive if they have no outcomes in common. They are also called disjoint.
If two events are mutually exclusive, they cannot both occur in the same trial.
For example, when rolling one die:
A={1,2}
B={5,6}
The events are mutually exclusive because no die outcome belongs to both.
Exhaustive Events
Events are exhaustive if their union is the entire sample space:
In set theory, events with this property may be called complementary or collectively exhaustive. Probability commonly uses the term exhaustive.
Partitions
A collection of events forms a partition of the sample space when the events are both:
Mutually exclusive
Exhaustive
For events A1,A2,…,Ak to form a partition:
and
A partition divides the sample space into nonoverlapping pieces. Partitions are especially useful when calculating probabilities by conditioning on different possible cases.
Probability and Its Axioms
Definition of Probability
A probability assigns a real number P(A) to every event A in a sample space.
The assignment is a valid probability function if it satisfies three axioms.
A probability function is any function defined on the events of a sample space that satisfies nonnegativity, normalization, and countable additivity.
Axiom 1: Nonnegativity
The probability of every event is nonnegative:
No event can have a negative probability.
Axiom 2: Normalization
The probability of the entire sample space is 1:
Because the sample space contains every possible outcome, one of its outcomes must occur.
Axiom 3: Additivity for Disjoint Events
For any finite or countably infinite sequence of mutually exclusive events A1,A2,…:
For a finite collection, this becomes:
This rule applies directly only when the events are disjoint. If events overlap, their intersection must be accounted for.
A probability function does not have to be unique. A given sample space may support multiple probability functions, depending on how likely its outcomes are assumed to be.
Different texts may use terms such as probability distribution, probability function, or probability measure for related objects. The essential requirement is that the function satisfies the three probability axioms.
Fundamental Probability Rules
Probability of a Complement
The probability that A does not occur is:
This is useful when computing P(Ac) directly would be difficult but computing P(A) is easy.
Probability of the Empty Set
The empty event has probability zero:
Monotonicity
If A⊆B, then:
An event contained within another event cannot be more probable than the larger event.
Probability Bounds
Every event has probability between zero and one:
Addition Rule
For any two events, including events that overlap:
The intersection is subtracted because outcomes in AB are counted once in P(A) and again in P(B).
If A and B are mutually exclusive, then P(AB)=0, so the rule simplifies to:
Difference Rule
The event ABc consists of outcomes that are in A but not in B. Its probability is:
Simple Sample Spaces
Definition
Suppose the sample space S is finite and every outcome is equally likely. This is called a simple sample space.
Let n(A) represent the number of outcomes in event A. Then the probability of A is:
In a simple sample space, probability is calculated by counting:
The denominator counts all possible outcomes.
The numerator counts the outcomes satisfying the event.
The ratio gives the probability.
Why the Formula Is a Probability
The counting formula satisfies the three probability axioms:
Nonnegativity: Counts cannot be negative, so P(A)≥0.
Normalization:
Additivity: If A and B are mutually exclusive, then:
Therefore:
The power of a simple sample space is that probability calculations reduce to counting when all outcomes are equally likely.
Example: Rolling Two Fair Dice
Two fair dice are rolled, and the probability that their sum equals 4 is required.
The ordered outcome is written as an ordered pair:
Each die has six possible values, so the sample space contains:
equally likely outcomes.
The outcomes producing a sum of 4 are:
There are three favorable outcomes. Therefore:
The order matters because (1,3) and (3,1) are distinct outcomes when the dice are identified by position.
Example: License Plates With Replacement
A license plate contains six characters. Each character can be one of:
26 letters
10 digits
Thus, there are:
possibilities for each character.
If characters may be reused, the total number of plates is:
For an all-digit plate, each of the six positions has 10 choices, so the number of favorable plates is:
Therefore:
This is an example of sampling with replacement, because a character selected for one position remains available for later positions.
Example: License Plates Without Replacement
Suppose characters cannot be reused.
The first character has 36 choices.
The second has 35 choices.
The third has 34 choices.
This continues until six positions are filled.
The total number of plates is:
Using factorial notation, this is:
For an all-digit plate:
The first position has 10 choices.
The second has 9 choices.
This continues through six positions.
The number of all-digit plates is:
Thus:
This is sampling without replacement, because each selected character is removed from future consideration.
Factorial Notation
For a nonnegative integer n:
By convention:
Factorials are useful for counting ordered arrangements.
Counting Rules and Combinatorics
Combinatorics is the study of counting possible arrangements and selections.
Multiplication Rule
If an experiment has two stages:
The first stage has m possible outcomes.
For each first-stage outcome, the second stage has n possible outcomes.
Then the complete experiment has:
possible outcomes.
For more stages, the same logic extends:
The multiplication rule applies whenever a complete outcome is formed by making several choices in sequence.
Permutations
A permutation is an ordered arrangement of objects.
Arranging All Objects
The number of permutations of n distinct objects is:
For example, n people can be arranged in a line in n! ways.
Selecting and Arranging Some Objects
The number of ordered arrangements of n objects selected from N objects is:
Order matters in a permutation. Selecting A followed by B is different from selecting B followed by A.
Combinations
A combination is an unordered selection of objects.
The number of combinations of n objects selected from N objects is:
This is read as “N choose n.”
The factor n! in the denominator removes the repeated counting caused by different orderings of the same selected objects.
Permutations Versus Combinations
Permutation: Order matters.
Combination: Order does not matter.
For example:
A license plate uses permutations because ABC123 differs from BCA231.
A handshake uses combinations because person A shaking person B’s hand is the same handshake as person B shaking person A’s hand.
Example: Handshakes
Suppose nine candidates all shake hands with each other exactly once.
Each handshake involves selecting two people from nine, and order does not matter. Therefore, the number of handshakes is:
The combination rule is appropriate because each pair produces one handshake.
Example: Two Faculty Members Adjacent in a Line
Suppose 40 faculty members are randomly assigned to 40 offices arranged in one continuous line. The probability that two particular faculty members are next to each other is required.
Total Arrangements
The 40 faculty members can be arranged in:
ways.
Arrangements With the Two Faculty Members Together
Treat the two specified faculty members as one combined unit. This produces:
One combined unit
The remaining 38 individual faculty members
Thus, there are 39 units to arrange, which can be done in:
ways.
The two faculty members can be ordered within their combined unit in two ways:
First person on the left and second person on the right
Second person on the left and first person on the right
Therefore, the number of favorable arrangements is:
The probability is:
This “tie objects together as one unit” method is useful whenever particular objects must appear consecutively.
Example: Selecting Pizza Toppings
Suppose a pizza shop offers:
6 vegetarian toppings
5 nonvegetarian toppings
Two toppings are selected without regard to order. The probability of selecting one topping from each category is required.
Total Number of Selections
There are 11 total toppings, and two are selected:
Favorable Selections
One vegetarian topping can be selected in (16) ways, and one nonvegetarian topping can be selected in (15) ways:
Therefore:
An equivalent sequential approach is:
The combination method is often simpler because the selection is naturally unordered.
Generalization
Suppose n toppings are selected, with n1 vegetarian toppings and n2 nonvegetarian toppings, where:
The number of favorable selections is:
The total number of selections is:
Therefore:
This structure forms the basis of the hypergeometric distribution, which describes sampling without replacement from categories.
Independence
Definition
Events A and B are independent if the occurrence of one does not change the probability of the other.
The formal definition is:
Equivalently:
Independence is a probabilistic relationship, not simply a statement that two events come from physically separate experiments.
The proper intuition for independence is that knowing whether one event occurred provides no information about whether the other occurred.
Example: Events From a Single Die Roll
A die is rolled once.
A: rolling a number less than 5
B: rolling an even number
The probabilities are:
The intersection consists of the even numbers less than 5:
Thus:
The product of the individual probabilities is:
Since:
the events are independent, even though both are based on the same die roll.
Independence and Mutual Exclusivity
Independence and mutual exclusivity are different concepts.
Mutually exclusive events cannot occur together.
Independent events do not affect each other’s probabilities.
If two events have positive probability and are mutually exclusive, then:
But independence would require:
Therefore, two positive-probability events cannot be both mutually exclusive and independent.
Complements and Independence
If A and B are independent, then A and Bc are also independent:
Similarly, the corresponding combinations involving complements are independent as well.
For more than two events, a collection is mutually independent when the probability of every relevant intersection equals the product of the corresponding individual probabilities. For three events, this requires, among other relationships:
The multi-event definition is stronger than merely requiring each pair of events to be independent.
Example: Independent Basketball Shots
Suppose a basketball player makes a three-point shot with probability 0.44 and misses with probability:
Assume:
Every shot has the same make probability.
The outcomes of different shots are independent.
A Specific Sequence
The probability of missing the next three shots and making the following three is:
This equals approximately:
The multiplication arises from independence.
Any particular sequence containing exactly three misses and three makes has the same probability, regardless of order.
Exactly Three Makes in Six Shots
The probability of obtaining exactly three makes in six shots requires two components:
The probability of any one particular sequence of three makes and three misses.
The number of distinct sequences with three makes.
The three makes can occupy any three of the six shot positions:
Therefore:
This is approximately:
This structure forms the basis of the binomial distribution.
At Least One Make
“At least one make” is most easily computed using the complement.
The complement of making at least one shot is missing all six shots:
Therefore:
Using the complement avoids separately adding the probabilities of one make, two makes, three makes, and so forth.
The assumptions of constant shot probability and independence are simplifying assumptions. In reality, shot difficulty, fatigue, strategy, game context, and temporary variation in performance can change the probability from shot to shot.
Conditional Probability
Definition
Conditional probability describes the probability of one event after information about another event is known.
The probability of A conditional on B is written P(A∣B) and defined by:
This definition requires:
Conditional probability is not defined in this form when the conditioning event has probability zero.
Interpreting Conditional Probability
Knowing that B occurred changes the relevant sample space.
The relevant portion of event A is the intersection AB.
The relevant portion of the sample space is now B itself.
Thus:
Conditional probability can be understood as an update based on new information.
Relationship Between Independence and Conditional Probability
If A and B are independent and P(B)>0, then:
Therefore:
The converse also holds when P(B)>0:
In words, B does not change the probability of A precisely when A and B are independent.
The Law of Total Probability
Suppose A1,A2,…,Ak form a partition of the sample space. For any event W:
Using distributivity and the fact that the partition events are mutually exclusive:
Applying the definition of conditional probability gives:
This is the law of total probability.
For two complementary events, A and Ac, it becomes:
The law is useful when an event can occur through several mutually exclusive cases and the probabilities of those cases are known.
Example: Nomination and General Election Outcomes
Suppose four candidates have mutually exclusive and exhaustive events:
A1: candidate 1 wins the nomination
A2: candidate 2 wins the nomination
A3: candidate 3 wins the nomination
A4: candidate 4 wins the nomination
Suppose W is the event that the party wins the general election.
The probability of a party win is:
Each term represents one possible route to a general-election victory:
Candidate 1 wins the nomination and then the party wins.
Candidate 2 wins the nomination and then the party wins.
Candidate 3 wins the nomination and then the party wins.
Candidate 4 wins the nomination and then the party wins.
The overall probability is a weighted average of the conditional general-election probabilities, with the nomination probabilities serving as weights.
A candidate who is most likely to win the nomination need not be the candidate with the highest conditional probability of winning the general election.
Bayes’ Theorem
Derivation
The definition of conditional probability gives:
It also gives:
Equating these expressions:
Therefore:
This is the basic form of Bayes’ theorem.
The terms have common interpretations:
P(A): the prior probability of A
P(B∣A): the probability of observing evidence B if A is true
P(B): the overall probability of the evidence
P(A∣B): the updated or posterior probability of A after observing B
Using the law of total probability with A and Ac:
Substitution produces the two-case form of Bayes’ theorem:
More generally, if A1,…,Ak form a partition:
Bayes’ theorem can therefore update probabilities using any partition of the sample space, not only an event and its complement.
Example: Medical Testing and the Zika Virus
Suppose:
The prior probability that a person has the virus is:
Therefore, the probability of not having it is:
The probability of a positive test given that the person has the virus is:
The probability of a positive test given that the person does not have the virus is:
The goal is to calculate the probability that a person has the virus given a positive test:
Applying Bayes’ theorem:
Substituting:
This gives approximately:
Thus, even after a positive test, the probability of actually having the virus is less than 2%.
Why the Posterior Probability Remains Low
The result is driven by the base rate, or prior probability.
The virus is initially very rare: only 1 person in 1,000 has it.
The test is useful but imperfect.
The false-positive rate is 5%.
Because the virus is rare, false positives among people without the virus can outnumber true positives among people with the virus.
For every 1,000 people:
Approximately 1 person has the virus, and about 0.99 of those people test positive.
Approximately 999 people do not have the virus, and about 49.95 of those people test positive falsely.
Therefore, among all positive tests, true positives make up only a small proportion.
The example illustrates that a positive test result cannot be interpreted without considering both:
The reliability of the test.
The prior prevalence of the condition.
Updating With Multiple Pieces of Information
Bayesian updating can incorporate several observations, such as:
A positive test
A fever
Other symptoms
Additional test results
The information can be incorporated:
Sequentially, updating the probability after each new observation
Simultaneously, using a conditional-probability expression involving all observations
Both approaches produce the same result when the probabilities are specified consistently. Bayes’ theorem provides the mathematical basis for updating beliefs or probabilities in response to evidence.

Ask anything
We've read this whole study set, so questions about it get the best answers.