
Random Variables III: Continuous Distributions & CLT
Megan Ayers
Math 141 | Spring 2026
Friday, Week 10
Suppose you believe 40% of Portlanders think the city should install more bike lanes. You will take a simple random survey of 50 Portlanders to test your belief.
Assume your belief is true. Let \(X\) be the number of survey respondents who think the city should install more bike lanes. Does \(X\) follow a Binomial distribution? If so, what are \(n\) and \(p\)?
Calculate the expected value and standard deviation of \(X\) (still assuming your belief is true)
Suppose you conducted the survey and found 30 respondents wanted more bike lanes. What’s the probability that \(X\geq 30\)? (use R!)
Draw the connection between the probability you calculated and a hypothesis test.
Suppose you believe 40% of Portlanders think the city should install more bike lanes. You will take a simple random survey of 50 Portlanders to test your belief.
\[E[X] = (50)(.4) = 20\] \[SD[X] = \sqrt{(50)(.4)(1-.4)} = 3.46\]
If \(X\) is a continuous random variable, it can take on any value in an interval.
Recall: For discrete random variables, we could list the probability of each possible outcome.
Instead, we represent relative chances of different possible outcomes using a density function \(f(x)\)
Suppose \(X\) is a random variable representing the time (in seconds) it takes for a particle to experience radioactive decay, where \[ f(x) = e^{-x} \qquad \textrm{for } x\geq 0 \]

Suppose \(X\) is a random variable representing the time (in seconds) it takes for a particle to experience radioactive decay, where \[ f(x) = e^{-x} \qquad \textrm{for } x\geq 0 \]

Let \(X\) be a continuous random variable with the density function,

Calculate:
\(P(X \leq 1)\)
\(P(X \leq 2)\)
\(P(2 \leq X \leq 3)\)
Let \(X\) be a continuous random variable with the density function,

Calculate:
\(P(X \leq 1) = 1 * 0.4 = \boxed{0.4}\)
\(P(X \leq 2)\)
\(P(2 \leq X \leq 3)\)
Let \(X\) be a continuous random variable with the density function,

Calculate:
\(P(X \leq 1) = 1 * 0.4 = \boxed{0.4}\)
\(P(X \leq 2) = 2 * 0.4 = \boxed{0.8}\)
\(P(2 \leq X \leq 3)\)
Let \(X\) be a continuous random variable with the density function,

Calculate:
\(P(X \leq 1) = 1 * 0.4 = \boxed{0.4}\)
\(P(X \leq 2) = 2 * 0.4 = \boxed{0.8}\)
\(P(2 \leq X \leq 3) = \frac{1}{2} * 1 * 0.4 = \boxed{0.2}\)
Continuous variables have a mean, variance, and standard deviation too!
Instead, we have to use calculus to define mean and variance: \[ \begin{align} E[X] &= \int x f(x) \, dx\\ \mathrm{Var}(X) &= \int (x - \mu)^2 f(x) \, dx \end{align} \]
\[ \begin{align} E[X] &= \int x f(x) \, dx\\ \mathrm{Var}(X) &= \int (x - \mu)^2 f(x) \, dx\\ \mathrm{SD}(X) &=\sqrt{\mathrm{Var}(X)} \end{align} \]
As always…
The Normal distribution is defined by two parameters:
Suppose \(X\) follows a Normal(\(\mu\),\(\sigma\)) distribution. The density function is
\[f(x) = \frac{1}{\sqrt{2 \pi \sigma^2}} \cdot\exp \left(\frac{-(x-\mu)^2}{2\sigma^2}\right)\]
(Don’t memorize this!)

This is the official name for “bell curves”!
R has built-in functions for calculating probabilities from a normal distribution.
Suppose \(X\sim \text{Normal}(\mu=75, \sigma=5)\). Then:
R has built-in functions for calculating probabilities from a normal distribution.
Suppose \(X\sim \text{Normal}(\mu=75, \sigma=5)\). Then:

R has built-in functions for calculating probabilities from a normal distribution.
Suppose \(X\sim \text{Normal}(\mu=75, \sigma=5)\). Then:

We can also use R to find quantiles of a Normal distribution.
Suppose \(X\sim \text{Normal}(\mu=75, \sigma=5)\). Then:
Suppose \(X\sim\text{Normal}(\mu=0,\sigma=1)\) and \(Y\sim\text{Normal}(\mu=2,\sigma=0.25)\).

\(X\) and \(Y\) have different means, heights, and widths…
Suppose \(X\sim\text{Normal}(\mu=0,\sigma=1)\) and \(Y\sim\text{Normal}(\mu=2,\sigma=0.25)\).

\(X\) and \(Y\) have different means, heights, and widths…
Suppose \(X\sim\text{Normal}(\mu=0,\sigma=1)\) and \(Y\sim\text{Normal}(\mu=2,\sigma=0.25)\).

\(X\) and \(Y\) have different means, heights, and widths…
Theorem: Standardization
Suppose \(X\sim\text{Normal}(\mu,\sigma)\). Then, \(Z = \frac{X - \mu}{\sigma}\) is a Normal random variable with mean 0 and standard deviation 1.
Standard Normal: a Normal random variable with mean \(0\) and standard deviation \(1\).
\[P\Big[X < 90\Big] = P\Big[X<\text{ 1 SD below }\mu\Big] = P\Big[Z<-1\Big]\]
More Generally: If \(X\sim\text{Normal}(\mu,\sigma)\) and \(Z\sim\text{Normal}(0,1)\), then \[ P(X \leq x) = P\left(Z \leq \frac{x-\mu}{\sigma}\right) \]
More Generally: If \(X\sim\text{Normal}(\mu,\sigma)\) and \(Z\sim\text{Normal}(0,1)\), then
\[ P(X \leq x) = P\left(Z \leq \frac{x-\mu}{\sigma}\right) \]
Practice: For each of the following, rewrite \(P(X \leq x)\) as \(P(Z \leq z)\) for some \(z\).
\(P(X \leq 10)\) where \(X\sim\text{Normal}(\mu=5,\sigma=5)\)
\(P(X \leq 15)\) where \(X\sim\text{Normal}(\mu=20,\sigma=10)\)
More Generally: If \(X\sim\text{Normal}(\mu,\sigma)\) and \(Z\sim\text{Normal}(0,1)\), then
\[ P(X \leq x) = P\left(Z \leq \frac{x-\mu}{\sigma}\right) \]
Practice: For each of the following, rewrite \(P(X \leq x)\) as \(P(Z \leq z)\) for some \(z\).
Suppose we’re astronomers studying four far away planets: Naboo, Tatooine, Coruscant, and Dagobah. We have the daily temperature on each of these planets over 200 days:

Suppose we repeatedly take samples of 10 days from each planet, and compute the average temperature \(\bar{x}\) for each sample (these are sampling distributions):

Suppose we repeatedly take samples of 50 days from each planet, and compute the average temperature \(\bar{x}\) for each sample (these are sampling distributions):

Q: What does the distribution of sample means look like?
The sampling distribution for each planet appeared approximately Normal with \(n=50\), regardless of the shape of the population distribution.


The sampling distribution for each planet appeared approximately Normal with \(n=50\), regardless of the shape of the population distribution.

We’ve seen this before! As \(n\) increases,
Theorem: Central Limit Theorem
Suppose a simple random sample of size \(n\) is drawn from a population with finite mean \(\mu\) and finite standard deviation \(\sigma\). Let \(\bar{x}\) be the sample mean. When \(n\) is large, then approximately \[\bar{x} \sim Normal\Big(\mu, \frac{\sigma}{\sqrt{n}}\Big)\]
A proof of the CLT requires more advanced techniques in probability (See Math 391).
We have gained intuition already for the CLT by examining sampling distributions!
We will use the CLT to conduct hypothesis tests/confidence intervals without simulation.