Probability and Statistics Practice
Probability and Statistics: Exam-Style Study Notes
1. Probability Laws and Venn Diagrams
A Venn diagram represents events as regions inside the sample space. It is especially useful when a problem gives information about unions, intersections, and complements, because each region corresponds to a specific event.
For two events A and B, the four regions are:
A only: A∩Bc
B only: B∩Ac
Both events: A∩B
Neither event: (A∪B)c
The regions are mutually exclusive and together fill the sample space, so their probabilities add to 1.
Worked example
Suppose:
The probability of the A-only region is already known:
Let x=P(A∩B), y=P(B∩Ac), and z=P((A∪B)c). Then:
The union contains the A-only, B-only, and intersection regions:
0.3+x+y=0.6,so x+y=0.3.
The complement of A contains the B-only and neither regions:
y+z=0.6.All regions together have probability 1:
0.3+x+y+z=1,so x+y+z=0.7.
Using y+z=0.6 in the last equation gives:
and therefore:
The other regions are y=0.2 and z=0.4, which verifies that all four probabilities add to 1.
A Venn diagram helps translate probability statements into sums of specific regions. It is often the quickest way to organize information before doing algebra.
2. Combinations and Random Selection
A combination counts selections when the order of the selected items does not matter. A permutation counts arrangements when order matters.
The number of ways to choose r objects from n distinct objects is:
Here, n! means the product of all positive integers up to n, and 0!=1.
Selecting suppliers to bid
A contractor selects 4 of 9 suppliers. Since only the chosen group matters—not the order in which suppliers are selected—the number of possible groups is:
If one particular supplier wants to know the probability of being selected, there are two useful methods.
Direct favorable-outcomes method
Assume every group of four suppliers is equally likely.
If the particular supplier is included, the other 3 suppliers must be chosen from the remaining 8. The number of favorable groups is therefore:
The probability that the supplier is selected is:
Complement and sequential method
The supplier is not selected if the supplier is missed on all four selections. In order, the conditional probabilities of being missed are:
By the multiplication rule for sequential conditional probabilities:
Thus:
The result also equals the proportion of suppliers selected, 4/9. That shortcut is useful in this symmetric situation, but the counting or sequential reasoning explains why it works.
Selecting from two categories
Suppose a group has 6 soccer players and 5 football players, and a selection must contain exactly 3 soccer players and 2 football players.
First choose the soccer players, then choose the football players. By the fundamental counting rule, the numbers of choices multiply:
To find the probability of this exact composition when 5 people are selected at random from all 11, use all possible groups of five as the denominator:
Therefore:
The denominator includes every possible group of five, regardless of its composition. The numerator counts only groups with the requested composition.
3. The Binomial Distribution
A binomial random variable counts the number of successes in a fixed number of independent trials when each trial has the same probability of success.
The binomial model applies when:
There is a fixed number n of trials.
Each trial has two relevant outcomes, treated as success or failure.
The probability of success p is the same on every trial.
The trials are independent.
If X is the number of successes, then:
The factor (xn) counts the ways the x successes can occur among the n trials.
Example: hits in six at-bats
Suppose a batter has probability p=0.3 of getting a hit on each at-bat. For 6 independent at-bats, let X be the number of hits. Then X is binomial, and the probability of exactly 2 hits is:
Since (26)=15:
The mean, or expected number of successes, is:
Here:
An expected value need not be a possible individual outcome. Although the batter cannot get 1.8 hits in one set of at-bats, the average number of hits over many comparable sets would approach 1.8.
4. Conditional Probability and Bayes’ Theorem
A test’s accuracy among people known to have or not have a condition does not, by itself, determine the probability that a person has the condition after receiving a positive result. That probability also depends on how common the condition is.
The conditional probability of event A given event B is:
Bayes’ theorem follows from this definition and allows a conditional probability to be reversed:
For a positive test result, the denominator includes positive results from both people who have the condition and people who do not.
Example: interpreting a positive test
Suppose:
The proportion of the population with the virus is 0.012.
The test is positive for someone with the virus with probability 0.98.
The test is negative for someone without the virus with probability 0.99.
Let V mean that the person has the virus, and let + mean a positive test. Then:
The last probability is 0.01 because the false-positive rate is the complement of the 0.99 true-negative rate.
The probability of both having the virus and testing positive is:
The probability of testing positive without having the virus is:
Thus the total probability of a positive test is:
Bayes’ theorem gives:
So the probability of actually having the virus after a positive result is about 54.34%, not 98% or 99%. The prevalence of the condition matters because positive results can include false positives.
Sensitivity is the probability of a positive result given that the condition is present. Specificity is the probability of a negative result given that the condition is absent. Neither is the same as the probability of having the condition given a positive result.
5. The Geometric Distribution
A geometric random variable counts the number of independent trials required to obtain the first success. It differs from a binomial random variable: a binomial variable counts successes in a fixed number of trials, while a geometric variable counts trials until the first success.
If the probability of success on each trial is p, then:
For the first success to occur on trial x, the first x−1 trials must be failures, followed by one success.
Example: throws until the first bullseye
Suppose the probability of a bullseye on each throw is p=0.0625=1/16. The probability that the first bullseye occurs on throw 10 is:
The expected number of trials until the first success is:
For this example:
Thus, over many repetitions, the average waiting time in throws until the first bullseye would approach 16 throws.
6. Discrete Probability Distributions, CDFs, and Expected Values
A probability mass function (PMF) assigns a probability to each possible value of a discrete random variable. For a discrete random variable X, the probability at x is P(X=x).
A valid PMF must satisfy:
Every probability is nonnegative.
The probabilities over all possible values add to 1.
Example PMF
Suppose X can take the values 1,2,3,4, with:
The final probability must make the total equal 1:
The cumulative distribution function (CDF) is defined by:
For this distribution:
The CDF accumulates probability from the smallest values upward.
Expected value of a discrete random variable
The expected value, or mean, of a discrete random variable is the probability-weighted average of its possible values:
For the example:
The mean does not have to be one of the values that X can actually take. It represents the long-run average across repeated observations.
Moment-generating function
The moment-generating function (MGF) of X is:
For a discrete random variable with finite support:
For the example:
The MGF generates moments by differentiation. In particular:
Differentiating gives:
Evaluating at t=0, where each exponential term equals 1, gives:
which agrees with the direct calculation of the mean. Higher derivatives at 0 yield higher moments, such as E[X2].
7. Linearity of Expectation and Variance
The expectation operator is linear. For random variables X and Y and constants a and b:
This property holds even when X and Y are not independent.
The variance measures the expected squared distance from the mean. If μ=E[X], then:
Expanding the square and applying linearity:
Since μ is a constant, E[μ2]=μ2. Also, E[X]=μ. Therefore:
This computational formula is often easier to use than the original definition.
8. The Poisson Distribution
A Poisson random variable counts the number of occurrences of an event in a fixed interval, such as a period of time. The model is appropriate when occurrences happen at a stable average rate and are treated as independent.
If the expected number of occurrences in the interval is λ, then:
The Poisson mean is:
The value of λ must correspond to the interval being studied. A mean of 3 accidents over five years means λ=3 for a five-year interval.
Example: at least three accidents in five years
Suppose the number of accidents in the next five years has a Poisson distribution with λ=3. An insurer drops coverage if there are at least three accidents.
It is easiest to use the complement:
The first three probabilities are:
Therefore:
There is approximately a 57.68% probability of three or more accidents in the five-year period.
9. The Exponential Distribution and Waiting Times
The exponential distribution models a continuous waiting time until an event occurs. It is commonly paired with the Poisson distribution: the Poisson distribution counts events over an interval, while the exponential distribution describes the waiting time until the next event.
If the event rate is λ per unit of time, the exponential waiting time W has density:
Its mean waiting time is:
The probability of waiting no longer than time t is:
Applying the model with careful units
Suppose the average number of accidents is 3 per five-year period. The rate per year is therefore:
accidents per year. For the first accident to occur within one year:
Equivalently, time can be measured in five-year intervals. In those units the event rate is 3 per interval, and one year is 1/5 of an interval:
Both calculations agree. Keeping the time unit consistent with the rate is essential.
10. Continuous Probability Distributions
For a continuous random variable, probabilities are found from the probability density function (PDF) by integrating over an interval. A valid PDF must be nonnegative, and its total area over the real line must equal 1.
For a continuous random variable X with density f(x):
The cumulative distribution function is:
Where the density is continuous, the CDF is an antiderivative of the PDF. For continuous random variables, the probability at any single point is 0, so including or excluding an interval endpoint does not change the probability.
Example PDF and CDF
Suppose:
and f(x)=0 otherwise.
The CDF must account for the fact that the density is zero below 2 and that total accumulated probability reaches 1 at 6:
The formula is consistent at the endpoints:
At x=2, F(2)=0.
At x=6, F(6)=1.
The probability that X lies between 2 and 3 can be found from the CDF:
It can also be found directly by integrating the density:
Expected value of a continuous random variable
For a continuous random variable, the expected value is found by integrating x times the density over the region where the density is positive:
For this PDF:
The mean is approximately 4.333. It is the distribution’s long-run average value and, in the density’s area interpretation, represents the balance point of the distribution.

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