Discrete Random Variables (Part 1)
Last modified — 02 Oct 2026
By the end of this lecture, students are anticipated to be able to:
Identify discrete distributions
Use the Bernoulli and binomial distributions to solve for probabilities
We say that a random variable \(X\) is discrete if there exists a countable set \(K = \{x_1,x_2,\dots\}\) such that
\[\mathbb{P}(X \in K) = 1.\]
I can count the \(x\) that have positive probability.
Toss a fair coin 3 times, count the total number of Heads.
Roll a 6-sided die until you see 6, count the number of rolls.
Count the number of people that arrive at the bus stop in some amount of time.
Will it be rainy (\(-6\)), cloudy (2), or sunny (\(+10\)) on campus today?
For a discrete random variable, its probability (mass) function is the function \(p_X : {\mathbb{R}}\rightarrow [0,1]\) defined by \[p_X(x) = \mathbb{P}(X = x).\]
It is occasionally written \(f_X(x) = \mathbb{P}(X = x).\)
Suppose it rains 30% of the time, is cloudy but not raining 30% of the time, and sunny 40% of the time.
Your happiness is given by the random variable \(Z\) with \(Z=-6, 2,\) and 10 respectively.
What is the support of \(Z\)?
What is the PMF of \(Z\)?
Toss a fair coin 3 times. Let \(X\) be the number of heads.
The PMF can be used to find the probabilities of events.
We have that for some event \(A\) and a RV \(X\),
\[\mathbb{P}(X \in A) = \sum_{x \in A} p_X(x).\]
Recall: it rains 30% of the time, is cloudy but not raining 30% of the time, and sunny 40% of the time. Your happiness is given by the random variable \(Z\) with \(Z=-6, 2,\) and 10 respectively.
For a fixed number \(\theta \in [0, 1]\), define a discrete random variable \(X\) with PMF given by:
\[ p_X\left( x;\ \theta\right) =\begin{cases} \left( 1-\theta\right) ^{2} & x=0, \\ 2\theta\left( 1-\theta\right) & x=1, \\ \theta^{2} & x=2, \\ 0 & \mbox{else.} \end{cases} \]
\[ p_X\left( x;\ \theta = 0.1\right) =\begin{cases} 0.81 & x=0, \\ 0.18 & x=1, \\ 0.01 & x=2 \\ 0 & \mbox{else.} \end{cases} \]
By including a parameter \(\theta\), we are able to express many distributions (a family of distributions) with a single functional form.
An experiment with 2 outcomes (success/failure).
Suppose the probability of success is \(\theta \in (0,1)\). A RV \(X\) with PMF given by
\[p_X(x; \theta) = \theta^x(1-\theta)^{1-x}I_{\{0,1\}}(x),\]
is said to have the \({\mathrm{Bern}}(\theta)\) distribution.
If \(\theta = 0.5\), then we have our favourite fair-coin friend.
But we can let \(\theta\) be numbers other than 0.5.
Used to determine the number of “successes” (\(x\)) in a sequence of \(n\) independent Bernoulli trials, each with the same probability of success (\(\theta\)).
Suppose the probability of success is \(\theta \in (0,1)\). A RV \(X\) with PMF given by
\[p_X(x; n, \theta) = \binom{n}{x} \theta^x (1-\theta)^{n-x}I_{\{0,1,\dots,n\}}(x),\]
is said to have the \({\mathrm{Binom}}(n, \theta)\) distribution.
\[p_X(x; n, \theta) = \binom{n}{x} \theta^x (1-\theta)^{n-x}I_{\{0,1,\dots,n\}}(x)\]
You may have:
HANDWRITTEN Cheat Sheet
Non-graphing calculator
Writing materials
Phones and laptops put away, please! You can have 15 minutes.
Stat 302 - Winter 2025/26