These notes were taken during lectures of STAT410: Intro to Probability Theory in the fall 2026 semester
at the University of Maryland. The primary purpose of these notes is to act as a reference for material
covered in lecture for me and my fellow students.
I cannot promise that these notes do not contain errors, and on the contrary there may be various
problems ranging from small typos to (rarely) real mathematical flaws. Obviously, I am responsible for all
such errors, and not the lecturer. Using these notes as a reference outside of the context of this course
should be done cautiously.
Example 1.3. Roll a fair dice. This has the sample spaceΩ={1,…,6}, the event spaceF=ℙ(Ω). Note that F is too big
to succinctly write what the probability measure𝑃 does. More on this later.
Example 1.4. Pick a number uniformly at random from [0,1]. Here, Ω=[0,1]. We pretend that F=ℙ([0,1]), but in reality
F⊊ℙ(Ω). Again, we can’t explicitly write what 𝑃 does.
Definition1.5
We define the following axioms for the event spaceF:
(Countable additivity) If {𝐴𝑖} is a sequence of pairwise-disjoint events, then
𝑃(∞⋃𝑖=1𝐴𝑖)=∞∑𝑖=1𝑃(𝐴𝑖)
Example 1.9. Let Ω={1,…,6} be the sample space for rolling a fair dice, and F=ℙ(Ω). Recall that 𝑃(Ω)=1, and moreover
Ω={1}⊔{2}⊔⋯⊔{6}.
Thus,
1=𝑃(Ω)=6∑𝑖=1𝑃({𝑖}).
By the assumption that the dice is fair, we know 𝑃({𝑖})=𝑃({𝑗}), hence 𝑃({𝑖})=1/6 for all 𝑖∈{1,…,6}.
Example 1.10. Suppose Ω=[0,1], and for any subinterval 𝐼⊂[0,1], 𝑃(𝐼)= length of 𝐼. What is the probability you see
a rational number? An irrational number?
Note that for any 𝑥∈[0,1], 𝑃({𝑥})=0 since {𝑥} can be considered a closed interval with length 0. Thus, since ℚ is countable,
it follows that
𝑃(ℚ∩[0,1])=0,𝑃((ℝ∖ℚ)∩[0,1])=1
Proposition1.11
𝑃(𝐵𝑐)=1−𝑃(𝐵)
2 Continuity of Probability Measures
Let 𝐵1⊃𝐵2⊃⋯ be a decreasing sequence of sets. Then, we write
lim𝑛→∞𝐵𝑛=𝐵=∞⋂𝑖=1𝐵𝑖,
which is the greatest lower bound, or the infimum.
Theorem2.1
The probability measure𝑃 commutes with limits. That is, given an ascending sequence 𝐶1⊂𝐶2⊂⋯,
𝑃(∞⋃𝑛=1𝐶𝑛)=𝑃(lim𝑛→∞𝐶𝑛)=lim𝑛→∞𝑃(𝐶𝑛)
Proof.Let 𝐷1=𝐶1, 𝐷2=𝐶2−𝐶1, and generally 𝐷𝑖+1:=𝐶𝑖+1−𝐶𝑖. Then, observe
∞⋃𝑖=1𝐶𝑖=∞⋃𝑖=1𝐷𝑖,
hence
𝑃(⋃𝐶𝑖)=𝑃(⋃𝐷𝑖).
Moreover, since the 𝐷𝑖’s are pairwise disjoint, one shows that
A random variable is a (measurable) function 𝑋:Ω→ℝ.
Definition4.2
The cumulative distribution function, abbreviated cdf, is
𝐹𝑋(𝑎):=𝑃(𝑋≤𝑎)=𝑃(𝑋∈[−∞,𝑎]).
Now, suppose 𝑋 takes countably many values, i.e. {𝑋(𝜔)∣𝜔∈Ω} is countable. A probability mass function,
abbreviated pmt, is a function 𝑝𝑋 such that there’s sequence of real numbers {𝑥𝑛} with 𝑝𝑋(𝑥𝑛)=𝑃(𝑋=𝑥𝑛)>0 for all 𝑛, and 𝑝𝑋(𝑥)=𝑃(𝑋=𝑥)=0
for all other 𝑥.
Example 5.4. An experiment consists of tossing a fair coin, followed by rolling a fair D6 if you
see heads, and rolling a fair D4 if you see tails. What is the probability that you see heads and
two?
If 𝐴= coin is heads and 𝐵= dice is two, then our probability is
𝑃(𝐴∩𝐵)=𝑃(𝐴)⋅𝑃(𝐵|𝐴)=12⋅16=112.
Theorem5.5
𝑃′(𝑋):=𝑃(𝑋|𝐴) is a probability measure. However, 𝑃″(𝑋):=𝑃(𝐵|𝑋) is not a probability measure.
Law of Total Probability5.6
Let 𝐴1,…,𝐴𝑛 partition Ω. and 𝑃(𝐴𝑖)>0 for all 𝑖. Then,
𝑃(𝐵)=∑𝑖∈𝐼𝑃(𝐵|𝐴𝑖)𝑃(𝐴𝑖)
This also holds for countable partitions.
Bayes’ Theorem5.7
Suppose 𝐴1,…,𝐴𝑛 partition Ω, and 𝑃(𝐴𝑖)>0. Suppose further that 𝐵 is an event with 𝑃(𝐵)>0. Then, for any 𝑗∈{1,…,𝑛},
Example 5.8. The prevalence of a particular disease is 1%. A rapid test for this disease has a 2% false
positive rate, and a 3% false negative rate. If the test comes up positive, how likely is it that you have
the disease?
Solution. Let 𝐷 be the event that you have the disease, and 𝑇 be the event that you tested positive. Then,
Example 6.4. An experiment consists of tossing a fair coin until you see heads for the first time,
at which point the experiment terminates. Let 𝐴𝑖 be the event you see tails on the 𝑖’th toss. Are the
𝐴𝑖’s independent? What is the probability we see heads for the first time on the 𝑛’th toss?
No, the 𝐴𝑖’s are not independent. Next, let 𝐵𝑛 be the event that heads is seen on the 𝑛’th toss. Then,
𝑋 is called discrete if there is a countable 𝐴⊂ℝ such that 𝑃(𝑋∈𝐴)=1.
Then, the function 𝑎↦𝑃(𝑋=𝑎) is called the probability mass function (pmf), and the probabilites of interest
are computed by taking a suitable sum of the pmf.
Definition (Continuous Random Variables)7.5
𝑋 is called (absolutely) continuous if there is some function 𝑓𝑋(𝑥) such that 𝑓𝑋(𝑥)≥0, and for any interval 𝐼
with endpoints −∞≤𝑎≤𝑏≤∞,
𝑃(𝑋∈𝐼)=∫𝑏𝑎𝑓𝑋(𝑥)𝑑𝑥
Note that we then have
𝐹𝑋(𝑎)=∫𝑎−∞𝑓𝑋(𝑥)𝑑𝑥
Definition (Identical Distributions)7.6
Random variables𝑋,𝑌 are said to be identically distributed if 𝐷𝑋=𝐷𝑌, which holds if and only if 𝐹𝑋=𝐹𝑌.
A good way to think about identical distributions is with an example: how do you generate a random
integer in {0,1}?
One way to do it is flipping a coin, taking 0 if the coin is tails, and 1 if the coin is heads. Another way to do
it is generating a random real number in [0,1], taking 0 if it’s <1/2, and 1 if it’s ≥1/2.
Let 𝑋 be the coin method and 𝑌 be the real number method. Note that 𝑋 and 𝑌 have completely different
sample spaces:
If 𝐹𝑋 is differentiable with only finitely many exceptions, then 𝐹′𝑋(𝑥)=𝑓𝑋(𝑥) for all points where 𝐹𝑋 is
differentiable. At other points, we may define 𝑓𝑋 arbitrarily.
Note that this is the cdf of 𝑋2. Differentiating, we get
𝑓𝑋2(𝑎)=⎧{
{⎨{
{⎩0𝑎<012√𝑎0≤𝑎<10𝑎≥1.
Definition7.9
We say that a random variable𝑋 has a uniform distribution on [𝑎,𝑏], denoted 𝑋∼𝑢[𝑎,𝑏], if
𝑓𝑋(𝑥)=1𝑏−𝑎
for 𝑥∈𝑎,𝑏.
Example 7.10. Suppose 𝑋∼𝑢[0,1]. Find the pdf of 𝑌:=𝑒𝑋.
Solution. If 𝑎<1, then 𝑒𝑋 doesn’t attain 𝑎 on [0,1], so 𝐹𝑌(𝑎)=0 for 𝑎<1. Similarly, when 𝑎>𝑒, we know with certainty that 𝑒𝑋<𝑎, so 𝐹𝑌(𝑎)=1.
Finally, if 𝑎∈[1,𝑒], then
by LOTUS (Theorem 8.5), for any 𝑚. Let 𝐴 be the first term above when 𝑚=𝑘, and 𝐵 the
second term when 𝑚=𝑘. When 𝑥𝑛>1, then |𝑥𝑛|𝑓𝑋(𝑥)≤|𝑥𝑘|𝑓𝑋(𝑥). When |𝑥𝑚|≤1, then |𝑥𝑚|𝑓𝑋(𝑥)≤𝑓(𝑥). Thus,
𝐸[|𝑋𝑛|]≤∫|𝑥𝑛|>1|𝑥𝑘|𝑓𝑋(𝑥)𝑑𝑥+∫∞−∞𝑓𝑋(𝑥)≤𝐴+1<∞,
so 𝐸[𝑋𝑛] is finite.
9 Special Distributions
In this section, we study some important distributions to know.
Discrete Distributions
9.1 Bernoulli Distribution
Definition9.1
A Bernoulli trial is a random variable which has two outcomes: success (1) and failure (0).
To compute this sum, use the derivative trick. Remember the sums and derivatives commute
when we’re within the radius of convergence.
Question 9.4. The probability of an independentevent happening is 𝑝. What’s the expected
number of attempts does it take for the event to happen?
Solution. Let 𝑋 be the number of attempts to make the event happen, and we saw in the previous example
that 𝑋∼Geom(1/107). Then, 𝐸[𝑋]=107. ◻
9.2 Binomial Distribution
We repeat a Bernoulli trial, with success chance 𝑝, 𝑛 times, where 𝑛 is fixed. Let 𝑋 be the random variable
counting the number of successes.
Let’s compute 𝑃(𝑋=𝑘). This involves 𝑘 successes, which has probability 𝑝𝑘, and 𝑛−𝑘 failures, with probability (1−𝑝)𝑛−𝑘. Now, we
must count the number of ways in which we can achieve 𝑘 successes. This is (𝑛𝑘), and so
𝑃(𝑋=𝑘)=(𝑛𝑘)𝑝𝑘(1−𝑝)𝑛−𝑘
Moreover,
𝐸[𝑋]=𝑛∑𝑘=0𝑘(𝑛𝑘)𝑝𝑘(1−𝑝)𝑛−𝑘.
This sum
can be computed with some neat tricks. However, we will eventually see that 𝑋 can be written 𝑋=𝑋1+⋯+𝑋𝑛 as the sum
of 𝑛 Bernoulli random variables, which are independent and identically distributed (IID). Note that 𝐸[𝑋𝑖]=𝑝, so
𝐸[𝑋]=𝑛𝑝.
9.3 Hypergeometric Distributions
Say we want to sample a portion of a population for some property. Do we sample with or without
replacement? If we sample with replacement, we get a binomial distribution. However, it can be better to
sample without replacement, in which case we get a hypergeometric distribution.
Definition9.5
Let 𝑁,𝑁𝐴,𝑛 be integers with 0≤𝑛≤𝑁𝐴≤𝑁. A random variable𝑋 is said to follow a hypergeometric distribution with
respect to the parameters (𝑁,𝑁𝐴,𝑛) if 𝑋 takes values in {1,…,𝑛}, and
𝑃(𝑋=𝑘)=(𝑁𝐴𝑘)(𝑁−𝑁𝐴𝑛−𝑘)(𝑁𝑛).
This is interpreted as follows: there are (𝑁𝑛)
ways to select 𝑛 people out of your population of 𝑁. Then, if 𝑁𝐴 of those people have the condition,
there are (𝑁𝐴𝑘) ways to find 𝑘 of them, and (𝑁−𝑁𝐴𝑛−𝑘) for the rest of them to not have it.
Example 9.6. Suppose that a collection of 20 rare books contains 5 first editions, each costing $5000,
and 15 second editions, each costing $1000. Four books are picked at random to be sold. What is the
expected income?
Solution. Let 𝑋 be the number of first editions, so 4−𝑋 is the number of second editions. Then, the revenue is
𝑟(𝑋):=5000𝑋+1000(4−𝑋)=4000𝑋+4000.
By linearity of expectation,
𝐸[𝑟(𝑋)]=𝐸[4000𝑋+4000]=4000𝐸[𝑋]+4000.
We’re now left to compute 𝐸[𝑋]. Note that 𝑋 is sampling randomly from a
population without replacement, so it’s a hypergeometric distribution. The population size is 𝑁=20,
the number of first editions is 𝑁𝐴=5, and the sample size is 𝑛=4. Computing 𝐸[𝑋] is left as an exercise.
◻
Let 𝑋∼Bin(𝑛,𝑝) and 𝑌∼Poisson(𝑛𝑝). Then, for any 𝐴⊂{0,1,2,…}, we have
|𝑃(𝑋∈𝐴)−𝑃(𝑌∈𝐴)|≤𝑛𝑝2
Example 9.9. Assume that a random variable𝑋 counts the occurrence of rare events that are not
“strongly dependent”. Then, the distribution of 𝑋 can be approximated with a Poisson(𝐸[𝑋]) distribution.
Example 9.10. Suppose that a large factory experiences, on average, three accidents each month.
What is the probability that on a particular month there are two accidents?
Solution. Since the factory is large, we can assume that three accidents per month is very small, so we
may assume that the number of accidents is represented by 𝑋∼Poisson(3). Then,
𝑃(𝑋=2)=𝑒−3322!≈0.224
◻
Continuous Distributions
There are three types of continuous distributions: uniform, exponential, and normal.
Uniform distributions try to compute the idea that the regions with equal “length” have the same
probability of having something “drawn” from them.
9.5 Uniform Distribution
Definition9.11
A random variable𝑋 is said to have a uniform distribution, denoted 𝑋∼Unif[𝑎,𝑏] for 𝑎<𝑏 if
𝑓𝑋(𝑥)=1𝑏−𝑎,𝑥∈[𝑎,𝑏]
9.6 Exponential Distribution
Definition9.12
Let 0<𝜆<∞. The exponential distribution with rate 𝜆 is given by 𝑓𝑋(𝑥)=𝜆𝑒−𝜆𝑥, 𝑥≥0. If 𝑋 is a random variable with this
distribution, we write 𝑋∼exp(𝜆).
Example 9.15. A library has 5 computers for public use. The average lifetime of a computer is 6
years, and follows an exponential distribution. What is the probability that at least one computer
is working after 7 years? You may assume the lifetimes are independent.
Solution. Let 𝑇𝑖 be the lifetime of computer 𝑖∈{1,…,5}. Then, 𝑇𝑖∼exp(1/6), and
Example 9.18. The height of males in a particular island can be modeled by a normal distribution
with mean 170 and standard deviation 5. What is the probability that a randomly picked male has a
height that falls between 160 and 180?
Solution. Let 𝑋 be the height of a randomly picked male, so 𝑋∼𝑁(170,25). Then
𝑃(160<𝑋<180)=𝑃(160−1705<𝑋−𝜇𝜎<180−1705)=𝑃(−2<𝑍<2)
where 𝑍=(𝑋−𝜇)/𝜎. Note that 𝑍∼𝑁(0,1), and so we’ve
translated this problem into one about the standard normal.
Assume we have a table (called a 𝑍-table) which gives values of Φ(𝑧)=𝑃(𝑍≤𝑧)=𝐹𝑍(𝑧). Then
𝑃(𝑎<𝑍<𝑏)=Φ(𝑏)−Φ(𝑎).
(a) Z-table of negatives
(b) Z-table of positives
Figure 1: Z-table
Figure 1 is an example of a 𝑍-table. Using it, we get
Consider two jointly continuousrandom variables𝑋,𝑌 with joint density 𝑓𝑋,𝑌. Let 𝑈:=𝑔(𝑋,𝑌) and 𝑉:=ℎ(𝑋,𝑌), so (𝑈,𝑉) are themselves
jointly continuous random variables. We aim to compute 𝑓𝑈,𝑉.
Let 𝐾⊂ℝ2 be the support of 𝑓𝑋,𝑌. Let 𝐺(𝑥,𝑦)=(𝑔(𝑥,𝑦),ℎ(𝑥,𝑦)) be an injective function, and let 𝐿:=𝐺(𝐾). Hence 𝐺:𝐾→𝐿 is bijective. Denote 𝐺−1(𝑢,𝑣):=(𝑞(𝑢,𝑣),𝑟(𝑢,𝑣)). Then 𝑞,𝑟 are
functions from 𝐿→𝐾 such that
𝑢=𝑔(𝑞(𝑢,𝑣),𝑟(𝑢,𝑣))𝑣=ℎ(𝑞(𝑢,𝑣),𝑟(𝑢,𝑣)).
Now, assume that 𝑞 and 𝑟 satisfy the following conditions.
(i)
The partial derivatives 𝜕𝑞𝜕𝑢,𝜕𝑞𝜕𝑣,𝜕𝑟𝜕𝑢,𝜕𝑟𝜕𝑣exist and are continuous.
(ii)
The determinant of the matrix
𝐽(𝑢,𝑣):=(𝜕𝑞𝜕𝑢𝜕𝑞𝜕𝑣𝜕𝑟𝜕𝑢𝜕𝑟𝜕𝑣),
known as the Jacobian, does not vanish anywhere on 𝐿. The determinant is denoted
|𝑱(𝒖,𝒗)|.