Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.


1From Discrete to Continuous: The Conceptual Leap

1.1Why the Discrete Approach Breaks Down

In Chapter 4, we defined a discrete random variable YY by assigning probabilities p(y)p(y) to each possible value, subject to two rules: p(y)0p(y) \geq 0 for all yy, and all yp(y)=1\sum_{\text{all } y} p(y) = 1. This works beautifully when YY can take only finitely many or countably many values.

Now imagine trying to do the same for the daily rainfall YY at a weather station, where YY can take any value between 0 and, say, 6 inches. Suppose we try to assign a positive probability p(y)=c>0p(y) = c > 0 to every point in the interval [0,6][0, 6]. How many points are in that interval? Uncountably many — more than can be listed, more than the integers, more than all the rational numbers combined. And if each point gets probability c>0c > 0, the “sum” over uncountably many terms would be \infty, not 1. The axioms of probability are violated.

The inescapable conclusion:

This might feel strange. If P(Y=1.73)=0P(Y = 1.73) = 0, does that mean a rainfall of 1.73 inches is impossible? No. It means that 1.73 is possible but has probability zero — just as a single point has length zero, yet a collection of points makes up the entire real line.

The practical consequence is profound: for continuous random variables, only intervals have positive probability. We ask P(1.5Y2.0)P(1.5 \leq Y \leq 2.0), not P(Y=1.73)P(Y = 1.73).

1.2The Distribution Function: Our Starting Point

The key to defining continuous random variables is a function you’ve already met briefly in Chapter 4.

Every random variable — discrete or continuous — has a CDF. What distinguishes discrete from continuous is the shape of F(y)F(y):

This leads us to the formal definition of a continuous random variable:

Because F(y)F(y) is continuous (no jumps), there are no single points with positive probability — confirming the zero-probability fact above.

1.3See It First: Histograms Converging to a Curve

Before we go further into the theory, let’s watch the discrete-to-continuous transition happen. In Chapter 1, we saw that as the number of observations grows, a relative frequency histogram gets smoother. Let’s see this with exponential data:

# Watch the discrete-to-continuous transition
par(mfrow = c(2, 2))

for (n_obs in c(50, 500, 5000, 50000)) {
  sim_data <- rexp(n_obs, rate = 0.5)
  hist(sim_data, breaks = 40, freq = FALSE,
       main = paste("n =", format(n_obs, big.mark = ",")),
       xlab = "y", ylab = "Density",
       col = "steelblue", border = "white",
       xlim = c(0, 15))
  curve(dexp(x, rate = 0.5), add = TRUE, col = "red", lwd = 2)
}

Run this code. As nn increases from 50 to 50,000, the histogram bars melt into the smooth red curve. That red curve — f(y)=0.5e0.5yf(y) = 0.5 e^{-0.5y} for y0y \geq 0 — is the probability density function (PDF). The histogram is its discrete approximation; the PDF is the continuous truth.

This is the “See It” step of our pipeline. Now we formalize.


2Probability Density Functions and CDFs

2.1The Probability Density Function

The CDF F(y)F(y) tells us accumulated probability: “How much probability sits to the left of yy?” The PDF tells us the rate at which probability accumulates at the point yy.

Because F(y)F(y) is the integral of f(y)f(y), we can write:

F(y)=yf(t)dtF(y) = \int_{-\infty}^{y} f(t) \, dt

This is just the Fundamental Theorem of Calculus. The CDF at any point yy is the total area under the PDF from -\infty to yy.

2.2Properties of a PDF

Since the CDF has properties (Theorem 5.1), the PDF inherits corresponding properties:

2.3Computing Probabilities: Integration

The reason we care about PDFs is that they let us compute probabilities:

This probability is the area under the PDF between aa and bb. Notice a beautiful consequence: because P(Y=a)=0P(Y = a) = 0 and P(Y=b)=0P(Y = b) = 0 for continuous random variables, it doesn’t matter whether we use strict or non-strict inequalities:

P(a<Y<b)=P(aY<b)=P(a<Yb)=P(aYb)=abf(y)dyP(a < Y < b) = P(a \leq Y < b) = P(a < Y \leq b) = P(a \leq Y \leq b) = \int_a^b f(y) \, dy

This is not true for discrete random variables — and it simplifies our life enormously.

2.4Worked Examples

2.5Quantiles and Percentiles

2.6Conditional Probability with Continuous Random Variables

Conditional probabilities work the same way as in the discrete case, but with integrals instead of sums:

P(Y>1.5Y<3)=P(Y>1.5 and Y<3)P(Y<3)=P(1.5<Y<3)P(Y<3)P(Y > 1.5 \mid Y < 3) = \frac{P(Y > 1.5 \text{ and } Y < 3)}{P(Y < 3)} = \frac{P(1.5 < Y < 3)}{P(Y < 3)}

2.7Section 5.2 Exercises

5.2.1. A continuous random variable YY has the density function:

f(y)={cy(2y),0y20,elsewheref(y) = \begin{cases} cy(2 - y), & 0 \leq y \leq 2 \\ 0, & \text{elsewhere} \end{cases}

(a) Find the value of cc. (b) Find F(y)F(y). (c) Find P(0.5Y1.5)P(0.5 \leq Y \leq 1.5). (d) Find P(Y>1Y<1.5)P(Y > 1 \mid Y < 1.5).

5.2.2. The distribution function of a continuous random variable YY is:

F(y)={0,y<111y2,y1F(y) = \begin{cases} 0, & y < 1 \\ 1 - \frac{1}{y^2}, & y \geq 1 \end{cases}

(a) Show that F(y)F(y) has all the properties of a valid CDF. (b) Find the PDF f(y)f(y). (c) Find P(Y>3)P(Y > 3). (d) Find the median of YY. (e) Find P(Y>4Y>2)P(Y > 4 \mid Y > 2).

5.2.3. A continuous random variable YY has the density function:

f(y)={0.3,1<y00.3+ky,0<y10,elsewheref(y) = \begin{cases} 0.3, & -1 < y \leq 0 \\ 0.3 + ky, & 0 < y \leq 1 \\ 0, & \text{elsewhere} \end{cases}

(a) Find kk. (b) Find F(y)F(y). (c) Find P(Y>0.5)P(Y > 0.5).

5.2.4. A supermarket receives a delivery of a perishable product. The proportion of the delivery that is still usable after yy days follows the density function:

f(y)={38(2y)2,0y20,elsewheref(y) = \begin{cases} \frac{3}{8}(2 - y)^2, & 0 \leq y \leq 2 \\ 0, & \text{elsewhere} \end{cases}

(a) Verify that this is a valid PDF. (b) What fraction of the delivery is still usable after 1 day? (That is, find P(Y>1)P(Y > 1).) (c) Find the median shelf life.

5.2.5. (Proof) Let f(y)f(y) be a PDF that is symmetric about 0, meaning f(y)=f(y)f(y) = f(-y) for all yy. Show that P(Y>0)=1/2P(Y > 0) = 1/2. (Hint: Use the substitution u=yu = -y in the integral 0f(y)dy\int_{0}^{\infty} f(y) \, dy.)


3Expected Values for Continuous Random Variables

3.1The Expected Value

Compare this to the discrete case: E(Y)=yp(y)E(Y) = \sum y \cdot p(y). The integral replaces the sum, f(y)dyf(y) \, dy replaces p(y)p(y), and everything else is the same.

3.2Expected Value of a Function of YY

Just as in the discrete case, we often need the expected value of some function g(Y)g(Y) rather than YY itself:

3.3Variance and Standard Deviation

The shortcut formula from Chapter 4 still works:

3.4Properties of Expected Value

The linearity results from Chapter 4 carry over unchanged:

3.5Worked Examples

3.6Section 5.3 Exercises

5.3.1. If YY has the density function from Guided Practice 5.1 — f(y)=29(3y)f(y) = \frac{2}{9}(3 - y) for 0y30 \leq y \leq 3 — find E(Y)E(Y) and V(Y)V(Y).

5.3.2. A continuous random variable YY has the density function:

f(y)={32y2+y,0y10,elsewheref(y) = \begin{cases} \frac{3}{2}y^2 + y, & 0 \leq y \leq 1 \\ 0, & \text{elsewhere} \end{cases}

(a) Verify that this is a valid PDF. (b) Find E(Y)E(Y) and V(Y)V(Y).

5.3.3. The weekly repair cost YY for a machine (in hundreds of dollars) has density function f(y)=4y3f(y) = 4y^3 for 0y10 \leq y \leq 1, and 0 elsewhere.

(a) Find E(Y)E(Y) and V(Y)V(Y). (b) If the machine generates a weekly revenue of R=32YR = 3 - 2Y (in hundreds), find E(R)E(R) and V(R)V(R). (c) What is the probability that the repair cost exceeds the expected repair cost?

5.3.4. (Proof) Prove Theorem 5.6, property 2: E[cg(Y)]=cE[g(Y)]E[cg(Y)] = cE[g(Y)] for a continuous random variable YY with PDF f(y)f(y). (Hint: Pull the constant cc out of the integral.)

5.3.5. If YY has the CDF from Exercise 5.2.2 — F(y)=11/y2F(y) = 1 - 1/y^2 for y1y \geq 1 — find E(Y)E(Y). Does E(Y2)E(Y^2) exist? (Hint: Check whether the improper integral converges.)


4The Uniform Distribution

4.1Definition and Density Function

The density is a constant 1θ2θ1\frac{1}{\theta_2 - \theta_1} — a flat line. The height is chosen so the area of the rectangle equals 1:

Area=base×height=(θ2θ1)×1θ2θ1=1\text{Area} = \text{base} \times \text{height} = (\theta_2 - \theta_1) \times \frac{1}{\theta_2 - \theta_1} = 1 \checkmark

This is the “equally likely” distribution: any subinterval of a given length has the same probability, regardless of where it sits within (θ1,θ2)(\theta_1, \theta_2).

4.2CDF of the Uniform Distribution

For θ1yθ2\theta_1 \leq y \leq \theta_2:

F(y)=θ1y1θ2θ1dt=yθ1θ2θ1F(y) = \int_{\theta_1}^{y} \frac{1}{\theta_2 - \theta_1} \, dt = \frac{y - \theta_1}{\theta_2 - \theta_1}

The complete CDF:

F(y)={0,y<θ1yθ1θ2θ1,θ1yθ21,y>θ2F(y) = \begin{cases} 0, & y < \theta_1 \\ \dfrac{y - \theta_1}{\theta_2 - \theta_1}, & \theta_1 \leq y \leq \theta_2 \\[6pt] 1, & y > \theta_2 \end{cases}

4.3Mean and Variance

4.4Worked Examples

4.5The Uniform Distribution and Random Number Generation

Every computer’s random number generator fundamentally produces values from a Uniform(0,1)\text{Uniform}(0, 1) distribution. In R, the function runif(n) generates nn such values. To transform these into any other continuous distribution, we use a technique called the probability integral transform (which you’ll explore in Chapter 7):

If UUniform(0,1)U \sim \text{Uniform}(0, 1) and FF is any continuous CDF, then Y=F1(U)Y = F^{-1}(U) has CDF FF.

This is how R internally generates exponential, normal, gamma, and all other continuous random variables — starting from the humble Uniform.

# Generate Uniform(0,1) and transform to Exponential(rate = 2)
set.seed(123)
U <- runif(10000)          # Uniform(0, 1)
Y <- -log(1 - U) / 2      # Transform: F_inv for Exponential(2)

# Verify: compare to direct exponential generation
par(mfrow = c(1, 2))
hist(Y, breaks = 50, freq = FALSE, main = "Transformed from Uniform",
     col = "steelblue", border = "white")
curve(dexp(x, rate = 2), add = TRUE, col = "red", lwd = 2)

hist(rexp(10000, rate = 2), breaks = 50, freq = FALSE,
     main = "Direct rexp()",
     col = "steelblue", border = "white")
curve(dexp(x, rate = 2), add = TRUE, col = "red", lwd = 2)

4.6Section 5.4 Exercises

5.4.1. A parachutist lands at a random point on a line between markers A and B that are 100 meters apart. The landing point YY (measured from A) is uniformly distributed on (0,100)(0, 100).

(a) Find the probability that the parachutist lands within 15 meters of marker A. (b) Find the probability that the parachutist is closer to A than to B. (c) Find the probability that the distance from A is more than three times the distance from B.

5.4.2. The amount of daily rainfall (in inches) at a monitoring station during the rainy season can be modeled as Uniform(0,0.5)\text{Uniform}(0, 0.5) on days when it rains.

(a) Find the mean and standard deviation of daily rainfall on rainy days. (b) Find the probability that rainfall exceeds 0.3 inches on a rainy day. (c) Given that rainfall exceeded 0.2 inches, find the conditional probability it exceeded 0.4 inches.

5.4.3. A circular wheel of circumference 2 feet is spun. The distance YY (in feet) traveled by a mark on the wheel’s rim before stopping is Uniform(0,2)\text{Uniform}(0, 2). The area AA of the circular sector swept out is A=Y2/(4π)A = Y^2 / (4\pi).

(a) Find E(A)E(A) and V(A)V(A). (b) Find the probability that A>0.1A > 0.1 square feet.

5.4.4. (Proof) Show that the median of a Uniform(θ1,θ2)\text{Uniform}(\theta_1, \theta_2) distribution equals its mean. Then show that for any Uniform distribution, P(Yμ)=P(Yμ)=0.5P(Y \leq \mu) = P(Y \geq \mu) = 0.5. Is this property true for all continuous distributions? Explain.

5.4.5. Three independent measurements are made by a precision instrument whose error is Uniform(0.05,0.05)\text{Uniform}(-0.05, 0.05). What is the probability that exactly one of the three errors exceeds 0.03 in absolute value? (Hint: First find p=P(Y>0.03)p = P(|Y| > 0.03), then use a result from Chapter 4.)


5The Normal Distribution

5.1Definition and Shape

This formula looks intimidating, but each piece has a clear purpose:

5.2Key Properties of the Normal Distribution

  1. Symmetric about μ\mu. The density satisfies f(μ+a)=f(μa)f(\mu + a) = f(\mu - a) for all aa. The bell curve is a mirror image around the vertical line y=μy = \mu.

  2. The mean, median, and mode are all equal to μ\mu. This is a consequence of symmetry.

  3. The inflection points are at y=μ±σy = \mu \pm \sigma. The curve changes from “curving downward” to “curving upward” exactly one standard deviation from the mean.

  4. The total area under the curve is 1. This is guaranteed by the normalizing constant. Proving ex2/2dx=2π\int_{-\infty}^{\infty} e^{-x^2/2} \, dx = \sqrt{2\pi} requires a clever double-integral trick (switching to polar coordinates). We accept this result.

  5. The empirical rule (68-95-99.7):

    • P(μσ<Y<μ+σ)0.6827P(\mu - \sigma < Y < \mu + \sigma) \approx 0.6827 — about 68% of values within 1 SD

    • P(μ2σ<Y<μ+2σ)0.9545P(\mu - 2\sigma < Y < \mu + 2\sigma) \approx 0.9545 — about 95% within 2 SDs

    • P(μ3σ<Y<μ+3σ)0.9973P(\mu - 3\sigma < Y < \mu + 3\sigma) \approx 0.9973 — about 99.7% within 3 SDs

# See the empirical rule in action
par(mfrow = c(1, 1))
curve(dnorm(x, 0, 1), from = -4, to = 4, lwd = 2,
      main = "Standard Normal: The 68-95-99.7 Rule",
      xlab = "z (standard deviations from the mean)", ylab = "f(z)")

# Shade the 68% region
x_fill <- seq(-1, 1, length = 200)
polygon(c(-1, x_fill, 1), c(0, dnorm(x_fill), 0),
        col = rgb(0, 0.5, 1, 0.3), border = NA)
text(0, 0.15, "68.27%", col = "blue", font = 2)

# Mark ±1, ±2, ±3
abline(v = c(-3, -2, -1, 1, 2, 3), lty = 2, col = "gray50")

5.3Standardization: The ZZ-Transformation

There are infinitely many Normal distributions — one for every pair (μ,σ)(\mu, \sigma). Yet we need only one table. The trick is standardization:

The key result:

The ZZ-value tells you how many standard deviations a value is from the mean. A ZZ-value of 2 means “2 standard deviations above the mean.” A ZZ-value of -1.5 means “1.5 standard deviations below the mean.”

5.4Using the Standard Normal Table

Table 4 in the Appendix gives P(Z>z)P(Z > z) — the right-tail area — for nonnegative values of zz. We denote this area A(z)=P(Z>z)=1Φ(z)A(z) = P(Z > z) = 1 - \Phi(z).

To handle all cases:

You WantHow to Get It
P(Z>z)P(Z > z) for z>0z > 0Read A(z)A(z) directly from the table
P(Z<z)P(Z < z) for z>0z > 01A(z)1 - A(z)
P(Z>z)P(Z > z) for z<0z < 0$1 - A(
P(Z<z)P(Z < z) for z<0z < 0$A(
P(a<Z<b)P(a < Z < b)Φ(b)Φ(a)\Phi(b) - \Phi(a), or combine AA-values

5.5Worked Examples

5.6The Standard Normal as a Reference

Notice the pattern in every example:

  1. Standardize: Convert YY-values to ZZ-values using z=(yμ)/σz = (y - \mu)/\sigma.

  2. Look up: Find the probability using the ZZ-table or R’s pnorm().

  3. Unstandardize (if needed): Convert ZZ-values back to YY-values using y=μ+zσy = \mu + z\sigma.

This three-step pattern works for every Normal probability problem. The key R functions:

FunctionWhat It Computes
pnorm(y, mu, sigma)P(Yy)P(Y \leq y) — CDF
pnorm(y, mu, sigma, lower.tail = FALSE)P(Y>y)P(Y > y) — right tail
qnorm(p, mu, sigma)ϕp\phi_p — the ppth quantile
dnorm(y, mu, sigma)f(y)f(y) — the density (not a probability!)
rnorm(n, mu, sigma)Generate nn random Normal values
# Simulate: verify the 68-95-99.7 rule
set.seed(2026)
Y <- rnorm(1000000, mean = 50, sd = 10)
mean(abs(Y - 50) < 10)   # ≈ 0.6827 (within 1 SD)
mean(abs(Y - 50) < 20)   # ≈ 0.9545 (within 2 SDs)
mean(abs(Y - 50) < 30)   # ≈ 0.9973 (within 3 SDs)

5.7Section 5.5 Exercises

5.5.1. Let ZN(0,1)Z \sim N(0, 1). Find:

(a) P(Z>1.96)P(Z > 1.96) (b) P(1.5<Z<0.5)P(-1.5 < Z < 0.5) (c) P(Z>2.33)P(|Z| > 2.33) (d) The value cc such that P(c<Z<c)=0.90P(-c < Z < c) = 0.90

5.5.2. The diastolic blood pressure of adult males is Normally distributed with mean 82 mmHg and standard deviation 10 mmHg.

(a) What proportion of men have blood pressure above 100 mmHg? (b) A man is classified as having “high blood pressure” if his reading exceeds 90 mmHg. What proportion of men fall in this category? (c) A health study recruits men with blood pressure between 70 and 90 mmHg. What proportion of the male population is eligible? (d) What blood pressure value marks the 95th percentile?

5.5.3. A machine fills cereal boxes. The weight of cereal per box is N(368,16)N(368, 16) grams. The label says 360 grams.

(a) What proportion of boxes are underweight (less than 360 g)? (b) The company wants at most 2% of boxes to be underweight. If μ\mu cannot be changed, what is the maximum allowable σ\sigma? (c) Alternatively, if σ=4\sigma = 4 is fixed, what mean μ\mu would ensure at most 2% underweight?

5.5.4. Two lightbulbs are installed in a fixture. Bulb A has a lifetime that is N(900,10000)N(900, 10000) hours and Bulb B has a lifetime that is N(1100,22500)N(1100, 22500) hours. The lifetimes are independent.

(a) Find the probability that Bulb A lasts more than 1000 hours. (b) Let D=BAD = B - A be the difference in lifetimes. What is the distribution of DD? (Hint: A linear combination of independent Normals is Normal. What are E(D)E(D) and V(D)V(D)?) (c) Find the probability that Bulb B outlasts Bulb A by more than 300 hours.

5.5.5. (Proof) Show that if YN(μ,σ2)Y \sim N(\mu, \sigma^2), then P(Yμ)=0.5P(Y \leq \mu) = 0.5. (Hint: Use the substitution u=2μyu = 2\mu - y to show that μf(y)dy=μf(y)dy\int_{-\infty}^{\mu} f(y) \, dy = \int_{\mu}^{\infty} f(y) \, dy.)


6The Gamma Distribution Family

6.1The Gamma Function

Before defining the Gamma distribution, we need a mathematical tool: the Gamma function.

The Gamma function is an extension of the factorial to all positive real numbers (not just integers). Its key properties:

# Verify Gamma function properties
gamma(1)      # 1  (= 0!)
gamma(2)      # 1  (= 1!)
gamma(5)      # 24 (= 4!)
gamma(0.5)    # 1.7724539 (= sqrt(pi))
sqrt(pi)      # 1.7724539 ✓
gamma(10)     # 362880 (= 9!)
factorial(9)  # 362880 ✓

6.2The Gamma Distribution

The density is zero for y0y \leq 0 (the Gamma distribution lives on the positive real line), and the denominator βαΓ(α)\beta^{\alpha}\Gamma(\alpha) is the normalizing constant that makes the total area 1.

Verification that 0f(y)dy=1\int_0^{\infty} f(y) \, dy = 1:

We need to show 0yα1ey/ββαΓ(α)dy=1\int_0^{\infty} \frac{y^{\alpha-1}e^{-y/\beta}}{\beta^{\alpha}\Gamma(\alpha)} \, dy = 1. Substitute u=y/βu = y/\beta:

Substituting piece by piece:

0yα1ey/ββαΓ(α)dy=1βαΓ(α)0(uβ)α1yα1euey/ββdudy\int_0^{\infty} \frac{y^{\alpha-1} e^{-y/\beta}}{\beta^{\alpha}\Gamma(\alpha)} \, dy = \frac{1}{\beta^{\alpha}\Gamma(\alpha)} \int_0^{\infty} \underbrace{(u\beta)^{\alpha-1}}_{y^{\alpha-1}} \cdot \underbrace{e^{-u}}_{e^{-y/\beta}} \cdot \underbrace{\beta \, du}_{dy}

Now expand (uβ)α1=uα1βα1(u\beta)^{\alpha-1} = u^{\alpha-1} \cdot \beta^{\alpha-1}, and combine with the extra β\beta from dydy:

=1βαΓ(α)βα1β0uα1eudu=βαβαΓ(α)0uα1eudu= \frac{1}{\beta^{\alpha}\Gamma(\alpha)} \cdot \beta^{\alpha-1} \cdot \beta \int_0^{\infty} u^{\alpha-1}e^{-u} \, du = \frac{\beta^{\alpha}}{\beta^{\alpha}\Gamma(\alpha)} \int_0^{\infty} u^{\alpha-1}e^{-u} \, du

The remaining integral is exactly Γ(α)\Gamma(\alpha) by definition:

=βαβαΓ(α)Γ(α)=1= \frac{\cancel{\beta^{\alpha}}}{\cancel{\beta^{\alpha}}} \cdot \frac{\cancel{\Gamma(\alpha)}}{\cancel{\Gamma(\alpha)}} = 1 \qquad \checkmark

This substitution trick — replacing y/βy/\beta with uu to convert a Gamma integral into the definition of Γ(α)\Gamma(\alpha) — will appear repeatedly throughout this chapter and in Section 5.8.

# See how the Gamma shape changes with alpha
par(mfrow = c(2, 2))
for (a in c(1, 2, 5, 10)) {
  curve(dgamma(x, shape = a, scale = 2), from = 0, to = 40, lwd = 2,
        main = bquote(alpha == .(a) ~ ", " ~ beta == 2),
        xlab = "y", ylab = "f(y)", col = "steelblue")
  abline(v = a * 2, lty = 2, col = "red")  # mean
}

Run this code and notice: when α=1\alpha = 1, the density is a decreasing exponential. As α\alpha increases, the density becomes more bell-shaped and shifts to the right. The red dashed line marks the mean αβ\alpha\beta. The Gamma distribution is remarkably flexible.

6.3Special Case 1: The Exponential Distribution

The CDF has a closed form (unusual for the Gamma family). Let’s derive it step by step:

F(y)=0y1βet/βdtF(y) = \int_0^y \frac{1}{\beta}e^{-t/\beta} \, dt
F(y)=1β(βet/β)0y=et/β0y=ey/β(e0)=1ey/βF(y) = \frac{1}{\beta} \cdot \left(-\beta \, e^{-t/\beta}\right)\bigg|_0^y = -e^{-t/\beta}\bigg|_0^y = -e^{-y/\beta} - (-e^{0}) = 1 - e^{-y/\beta}

So the Exponential CDF is:

F(y)=1ey/β,y>0F(y) = 1 - e^{-y/\beta}, \qquad y > 0

This is one of the few distributions where the CDF has a clean closed form — no tables or software needed.

6.3.1The Memoryless Property

The Exponential distribution is the only continuous distribution with this remarkable property:

Why this matters: The memoryless property is why the Exponential distribution models the waiting time between Poisson events. If calls arrive at a switchboard according to a Poisson process, the time until the next call is Exponential — and no matter how long you’ve been waiting, the distribution of your remaining wait is the same.

6.3.2The Poisson–Exponential Connection

There is a deep link between two distributions from different chapters:

6.4Special Case 2: The Chi-Square Distribution

Why does the Chi-Square matter? If Z1,Z2,,ZνZ_1, Z_2, \ldots, Z_\nu are independent standard Normal random variables, then:

Z12+Z22++Zν2χ2(ν)Z_1^2 + Z_2^2 + \cdots + Z_\nu^2 \sim \chi^2(\nu)

This is the bridge between the Normal distribution and statistical inference. In mathematical statistics, the Chi-Square distribution is used for testing hypotheses about variances, goodness-of-fit tests, and constructing confidence intervals.

# Visualize the Gamma family tree
par(mfrow = c(1, 3))

# Exponential: Gamma(1, 2)
curve(dgamma(x, 1, scale = 2), 0, 15, lwd = 2, col = "steelblue",
      main = "Exponential(β=2)\n= Gamma(1, 2)", ylab = "f(y)")

# Chi-Square(6): Gamma(3, 2)
curve(dgamma(x, 3, scale = 2), 0, 25, lwd = 2, col = "darkorange",
      main = "Chi-Square(ν=6)\n= Gamma(3, 2)", ylab = "f(y)")

# General Gamma(5, 3)
curve(dgamma(x, 5, scale = 3), 0, 40, lwd = 2, col = "purple",
      main = "Gamma(α=5, β=3)", ylab = "f(y)")

6.5The Gamma Family Tree

The relationships are worth seeing in one place:

6.6Section 5.6 Exercises

5.6.1. The time (in hours) until a server crashes follows an Exponential distribution with mean 200 hours.

(a) Find the probability that the server runs for at least 300 hours without crashing. (b) Given that it has run for 150 hours, find the probability it runs at least 100 more hours. (c) What is the median time to failure? (d) Find the probability that the server crashes within the first 50 hours.

5.6.2. Calls arrive at a helpline at a Poisson rate of 4 per hour. Let TT be the time (in hours) between consecutive calls.

(a) What is the distribution of TT? State its mean and variance. (b) Find P(T>0.5)P(T > 0.5). (c) Find P(T<0.1)P(T < 0.1). (d) A new operator is told “on average, you’ll wait 15 minutes between calls.” Verify this claim.

5.6.3. A random variable YY has the density:

f(y)={16yey/3,y>00,elsewheref(y) = \begin{cases} \frac{1}{6}y \, e^{-y/3}, & y > 0 \\ 0, & \text{elsewhere} \end{cases}

(a) Identify the Gamma parameters α\alpha and β\beta. (b) Find E(Y)E(Y) and σ\sigma. (c) Find P(Y>10)P(Y > 10) using R.

5.6.4. A Chi-Square random variable has 12 degrees of freedom.

(a) State the mean and variance. (b) Express this as a Gamma distribution. (c) Use R to find P(χ122>21.026)P(\chi^2_{12} > 21.026). What significance does this value have?

5.6.5. (Proof) Prove the memoryless property of the Exponential distribution: if YExp(β)Y \sim \text{Exp}(\beta), then P(Y>s+tY>s)=P(Y>t)P(Y > s + t \mid Y > s) = P(Y > t) for all s,t>0s, t > 0. Then show that if YY has a non-Exponential continuous distribution supported on (0,)(0, \infty), the memoryless property fails. (Hint: For the second part, consider a specific counterexample such as the Gamma(2, 1) distribution.)

5.6.6. Show that Γ(1/2)=π\Gamma(1/2) = \sqrt{\pi}. (Hint: Write Γ(1/2)=0t1/2etdt\Gamma(1/2) = \int_0^{\infty} t^{-1/2}e^{-t} \, dt, make the substitution t=u2/2t = u^2/2, and recognize the resulting integral as related to the standard Normal density.)


7The Beta Distribution

7.1Definition

The Beta function B(α,β)B(\alpha, \beta) serves as the normalizing constant — it ensures 01f(y)dy=1\int_0^1 f(y) \, dy = 1. The relationship B(α,β)=Γ(α)Γ(β)/Γ(α+β)B(\alpha, \beta) = \Gamma(\alpha)\Gamma(\beta)/\Gamma(\alpha + \beta) connects the Beta function to the Gamma function, and allows us to evaluate it using factorials when α\alpha and β\beta are integers.

7.2Mean and Variance

7.3Special Cases and Shape

The Beta distribution is a shape-shifter:

# Visualize the Beta family's flexibility
par(mfrow = c(2, 2))
curve(dbeta(x, 1, 1), 0, 1, lwd = 2, col = "steelblue", ylim = c(0, 3),
      main = "Beta(1,1) = Uniform", ylab = "f(y)")
curve(dbeta(x, 5, 5), 0, 1, lwd = 2, col = "darkorange",
      main = "Beta(5,5): Symmetric bell", ylab = "f(y)")
curve(dbeta(x, 2, 8), 0, 1, lwd = 2, col = "purple",
      main = "Beta(2,8): Right-skewed", ylab = "f(y)")
curve(dbeta(x, 0.5, 0.5), 0, 1, lwd = 2, col = "red",
      main = "Beta(0.5,0.5): U-shaped", ylab = "f(y)")

7.4Section 5.7 Exercises

5.7.1. A random variable YY has density f(y)=12y2(1y)f(y) = 12y^2(1 - y) for 0y10 \leq y \leq 1.

(a) Identify the Beta parameters α\alpha and β\beta. (b) Find E(Y)E(Y) and V(Y)V(Y) using the Beta formulas. (c) Verify E(Y)E(Y) by direct integration.

5.7.2. The proportion of impurities in ore samples follows a Beta(3,5)\text{Beta}(3, 5) distribution. Each sample is worth W=50.5YW = 5 - 0.5Y dollars.

(a) Find E(Y)E(Y), V(Y)V(Y). (b) Find E(W)E(W) and V(W)V(W). (c) Find P(Y<0.5)P(Y < 0.5) using R.

5.7.3. Show that the Beta(1,1)\text{Beta}(1, 1) distribution is the Uniform(0,1)\text{Uniform}(0, 1) distribution by verifying that the Beta density with α=β=1\alpha = \beta = 1 reduces to f(y)=1f(y) = 1 for 0y10 \leq y \leq 1.

5.7.4. A random variable YBeta(α,β)Y \sim \text{Beta}(\alpha, \beta) with α=β\alpha = \beta has mean 1/21/2. Show this algebraically. Then argue from symmetry that the PDF satisfies f(y)=f(1y)f(y) = f(1-y), and explain why this implies the mean must be 1/21/2.

5.7.5. (Proof) Derive V(Y)V(Y) for YBeta(α,β)Y \sim \text{Beta}(\alpha, \beta). (Hint: Find E(Y2)E(Y^2) using the same Beta-function ratio technique from the E(Y)E(Y) proof: E(Y2)=B(α+2,β)/B(α,β)E(Y^2) = B(\alpha+2, \beta)/B(\alpha, \beta). Then apply the shortcut formula.)


8Moments and Moment-Generating Functions

8.1Definition and Basic Properties

Before the MGF, let us formally define moments — a concept also covered in the reference textbook (Definition 4.13).

8.2The Gamma MGF — Full Derivation

This is the most important MGF derivation in this chapter, because it also gives us the Exponential and Chi-Square MGFs as special cases.

8.3Deriving E(Y)E(Y) and V(Y)V(Y) for the Gamma from the MGF

Now we can finally prove Theorem 5.11:

M(t)=(1βt)αM(t) = (1 - \beta t)^{-\alpha}

First derivative (using the chain rule: ddt(1βt)α=α(1βt)α1(β)=αβ(1βt)α1\frac{d}{dt}(1 - \beta t)^{-\alpha} = -\alpha(1 - \beta t)^{-\alpha - 1} \cdot (-\beta) = \alpha\beta(1 - \beta t)^{-\alpha - 1}):

M(t)=αβ(1βt)α1M'(t) = \alpha\beta(1 - \beta t)^{-\alpha-1}
E(Y)=M(0)=αβ(1)α1=αβE(Y) = M'(0) = \alpha\beta(1)^{-\alpha-1} = \alpha\beta \qquad \checkmark

Second derivative (chain rule again):

M(t)=αβ(α1)(1βt)α2(β)=α(α+1)β2(1βt)α2M''(t) = \alpha\beta \cdot (-\alpha-1)(1-\beta t)^{-\alpha-2} \cdot (-\beta) = \alpha(\alpha+1)\beta^2(1-\beta t)^{-\alpha-2}
E(Y2)=M(0)=α(α+1)β2E(Y^2) = M''(0) = \alpha(\alpha+1)\beta^2

Variance:

V(Y)=E(Y2)[E(Y)]2=α(α+1)β2(αβ)2=α2β2+αβ2α2β2=αβ2V(Y) = E(Y^2) - [E(Y)]^2 = \alpha(\alpha+1)\beta^2 - (\alpha\beta)^2 = \alpha^2\beta^2 + \alpha\beta^2 - \alpha^2\beta^2 = \alpha\beta^2 \qquad \checkmark

8.4MGFs for Special Cases

Setting α=1\alpha = 1 (Exponential): M(t)=(1βt)1M(t) = (1 - \beta t)^{-1} for t<1/βt < 1/\beta.

Setting α=ν/2\alpha = \nu/2, β=2\beta = 2 (Chi-Square): M(t)=(12t)ν/2M(t) = (1 - 2t)^{-\nu/2} for t<1/2t < 1/2.

8.5The Normal MGF

Deriving E(Y)E(Y) and V(Y)V(Y) from the Normal MGF:

M(t)=(μ+σ2t)eμt+σ2t2/2    E(Y)=M(0)=μ1=μM'(t) = (\mu + \sigma^2 t) \cdot e^{\mu t + \sigma^2 t^2/2} \implies E(Y) = M'(0) = \mu \cdot 1 = \mu \qquad \checkmark
M(t)=[σ2+(μ+σ2t)2]eμt+σ2t2/2    E(Y2)=M(0)=σ2+μ2M''(t) = [\sigma^2 + (\mu + \sigma^2 t)^2] \cdot e^{\mu t + \sigma^2 t^2/2} \implies E(Y^2) = M''(0) = \sigma^2 + \mu^2
V(Y)=(σ2+μ2)μ2=σ2V(Y) = (\sigma^2 + \mu^2) - \mu^2 = \sigma^2 \qquad \checkmark

8.6Section 5.8 Exercises

5.8.1. Find the MGF of the Uniform(θ1,θ2)\text{Uniform}(\theta_1, \theta_2) distribution. (Hint: Integrate ety/(θ2θ1)e^{ty}/(\theta_2 - \theta_1) from θ1\theta_1 to θ2\theta_2. The result is M(t)=eθ2teθ1t(θ2θ1)tM(t) = \frac{e^{\theta_2 t} - e^{\theta_1 t}}{(\theta_2 - \theta_1)t} for t0t \neq 0.) Verify that M(0)=(θ1+θ2)/2M'(0) = (\theta_1 + \theta_2)/2.

5.8.2. A random variable has MGF M(t)=(14t)3M(t) = (1 - 4t)^{-3}. Identify the distribution, and state its mean and variance.

5.8.3. A random variable has MGF M(t)=e5t+8t2M(t) = e^{5t + 8t^2}. Identify the distribution, and state its mean and variance.

5.8.4. (Proof) Using the Gamma MGF, prove that the sum of ν\nu independent Exponential(β)(\beta) random variables has a Gamma(ν,β)\text{Gamma}(\nu, \beta) distribution. (Hint: The MGF of a sum of independent RVs is the product of their individual MGFs. What is [(1βt)1]ν[(1-\beta t)^{-1}]^{\nu}?)


9Tchebysheff’s Theorem

Standard values:

kkAt most 1/k21/k^2 outside μ±kσ\mu \pm k\sigmaAt least 11/k21 - 1/k^2 inside
225%\leq 25\%75%\geq 75\%
311.1%\leq 11.1\%88.9%\geq 88.9\%
46.25%\leq 6.25\%93.75%\geq 93.75\%

Compare these to the Normal: for k=2k=2, the Normal has 4.56% outside (not 25%), and for k=3k=3, only 0.27% (not 11.1%). Tchebysheff is conservative — but it works for every distribution, not just the Normal.

9.1Section 5.9 Exercises

5.9.1. A random variable YY has E(Y)=50E(Y) = 50 and V(Y)=25V(Y) = 25. Using Tchebysheff’s theorem, find a lower bound on P(40<Y<60)P(40 < Y < 60).

5.9.2. A distribution has mean 100 and standard deviation 15. What is the minimum probability that a randomly selected value lies between 55 and 145? What does the bound become if the distribution is known to be Normal? Compare.

5.9.3. (Proof) Use Tchebysheff’s theorem to prove the following: if V(Y)=0V(Y) = 0, then P(Y=μ)=1P(Y = \mu) = 1. (Hint: For any ϵ>0\epsilon > 0, set kσ=ϵk\sigma = \epsilon and take σ0\sigma \to 0.)


10Which Distribution Should I Use? (Optional — Can Be Skipped)

Choosing a distribution is a modeling decision, not a mathematical derivation. No real-world data follows any theoretical distribution exactly — the question is whether the model is useful enough for the inferences you need to make.

Here is a practical guide:

10.1Step 1: What is the support?

SupportCandidate Distributions
(,)(-\infty, \infty) — any real numberNormal
(0,)(0, \infty) — positive values onlyExponential, Gamma, Chi-Square
[0,1][0, 1] — proportions/fractionsBeta, Uniform(0,1)
(a,b)(a, b) — bounded intervalUniform(a,b), Beta (rescaled)

10.2Step 2: What is the shape?

ShapeDistribution
Symmetric, bell-shapedNormal
Right-skewed, one modeGamma (with α>1\alpha > 1)
Decreasing from zeroExponential (or Gamma with α1\alpha \leq 1)
Flat (all values equally likely)Uniform
Flexible on [0,1][0, 1]Beta

10.3Step 3: What is the context?

Some distributions are linked to specific physical processes:

10.4The Key Insight

As the reference textbook emphasizes: a good model is not one that perfectly matches reality — it is one that yields good inferences about the population of interest. A Normal approximation that’s slightly off in the tails might still produce excellent confidence intervals and hypothesis tests.


11The Weibull Distribution (Optional — Can Be Skipped)

11.1Definition

Connection to the Exponential: When α=1\alpha = 1, the Weibull density becomes f(y)=1βey/βf(y) = \frac{1}{\beta}e^{-y/\beta} — exactly the Exponential(β)(\beta) density. So the Exponential is a special case of both the Gamma and the Weibull families.

The CDF has a closed form (just like the Exponential):

F(y)=1e(y/β)α,y>0F(y) = 1 - e^{-(y/\beta)^{\alpha}}, \qquad y > 0

11.2Mean and Variance

11.3The Hazard Function: Why Weibull Matters

The hazard function (or failure rate) of a distribution is h(y)=f(y)/[1F(y)]h(y) = f(y) / [1 - F(y)] — the instantaneous risk of failure at time yy, given survival to yy.

For the Weibull:

h(y)=αβαyα1h(y) = \frac{\alpha}{\beta^{\alpha}} y^{\alpha - 1}

This is precisely why the Weibull is the workhorse of reliability engineering.

# Weibull shapes and hazard functions
par(mfrow = c(1, 3))
for (a in c(0.5, 1, 3)) {
  curve(dweibull(x, shape = a, scale = 2), 0, 5, lwd = 2,
        main = bquote(alpha == .(a)),
        xlab = "y", ylab = "f(y)", col = "steelblue")
}

11.4Section 5.11 Exercises

5.11.1. The time to failure (in years) of a semiconductor device follows a Weibull distribution with α=0.5\alpha = 0.5 and β=3\beta = 3.

(a) Is the failure rate increasing or decreasing? What does this mean physically? (b) Find P(Y>2)P(Y > 2). (c) Find the mean time to failure.

5.11.2. Show that when α=1\alpha = 1, the Weibull CDF F(y)=1e(y/β)αF(y) = 1 - e^{-(y/\beta)^{\alpha}} reduces to the Exponential CDF F(y)=1ey/βF(y) = 1 - e^{-y/\beta}.


12Normal Approximation to the Binomial (Optional — Can Be Skipped)

12.1The Approximation

12.2The Continuity Correction

Because the Binomial takes integer values but the Normal is continuous, we adjust by ±0.5\pm 0.5:

The continuity correction improves accuracy, especially when nn is moderate (20–100).

12.3Section 5.12 Exercises

5.12.1. A manufacturer knows that 8% of parts are defective. In a batch of 200 parts, use the Normal approximation (with continuity correction) to find P(Y20)P(Y \geq 20), where YY is the number of defective parts. Verify with R’s pbinom.

5.12.2. A polling firm surveys 1,500 voters. If the true proportion is p=0.48p = 0.48, find the probability the poll shows a majority (Y/n>0.50Y/n > 0.50, i.e., Y>750Y > 750) using the Normal approximation.


13The Distribution Family Tree (Optional — Encouraged Reading)

13.1The Connections

                    BERNOULLI(p)
                         │
                    sum of n trials
                         │
                    BINOMIAL(n, p)
                       /    \
              n→∞, p→0     n large
              np = λ         │
                 /     NORMAL(np, npq)  ←── Central Limit Theorem
            POISSON(λ)       │
                │        Z = (Y-μ)/σ
           count events      │
           in time      STANDARD NORMAL
                │            │
           time between    Z² summed
           events            │
                │        CHI-SQUARE(ν)
          EXPONENTIAL(β)     │
                │        = Gamma(ν/2, 2)
           = Gamma(1, β)     │
                │            │
           wait for α    ────┘
           events            
                │            
           GAMMA(α, β)       
                             
           UNIFORM(a, b)     
                │            
           = Beta(1,1)       
           when a=0, b=1     
                │            
           BETA(α, β)        

           WEIBULL(α, β)
                │
           = Exponential(β)
           when α = 1

13.2Master Reference Table

13.3Key Relationships Summary

  1. Exponential = Gamma(1,β1, \beta) = Weibull(1,β1, \beta)

  2. Chi-Square(ν\nu) = Gamma(ν/2,2\nu/2, 2)

  3. Uniform(0,1) = Beta(1,11, 1)

  4. Poisson count ↔ Exponential gap (same process, different views)

  5. BinomialNormal (when nn large) and BinomialPoisson (when nn large, pp small)

  6. Sum of ν\nu independent Exponential(β)(\beta) = Gamma(ν,β)(\nu, \beta)

  7. Sum of ν\nu independent χ2(1)\chi^2(1) = χ2(ν)\chi^2(\nu)

  8. Z2χ2(1)Z^2 \sim \chi^2(1) where ZN(0,1)Z \sim N(0,1)


14Solving Buffon’s Needle

We now have all the tools to solve the problem from the chapter opening.

Setup: A needle of length \ell is dropped onto a floor with parallel lines spaced dd apart (d\ell \leq d). Two random variables describe the needle’s position:

We assume Θ\Theta and DD are independent (the angle and position of a randomly dropped needle are unrelated).

When does the needle cross a line? The needle crosses if and only if the vertical projection of its half-length exceeds DD:

D2sin(Θ)D \leq \frac{\ell}{2}\sin(\Theta)

The probability: Since Θ\Theta and DD are independent Uniforms, the joint density is constant over the rectangle [0,π/2]×[0,d/2][0, \pi/2] \times [0, d/2]. The probability of crossing is the ratio of the area where D(/2)sinθD \leq (\ell/2)\sin\theta to the total rectangle area:

P(cross)=0π/22sinθdθπ2d2P(\text{cross}) = \frac{\int_0^{\pi/2} \frac{\ell}{2}\sin\theta \, d\theta}{\frac{\pi}{2} \cdot \frac{d}{2}}
P(cross)=(/2)1πd/4=/2πd/4=42πd=2πdP(\text{cross}) = \frac{(\ell/2) \cdot 1}{\pi d / 4} = \frac{\ell/2}{\pi d/4} = \frac{4\ell}{2\pi d} = \frac{2\ell}{\pi d}

And there it is — π\pi emerges from the integral of sinθ\sin\theta over [0,π/2][0, \pi/2]. The circle was hiding in the rotation of the needle.

# Buffon's Needle simulation
set.seed(42)
n_drops <- 100000
ell <- 1; d <- 2  # needle length 1, line spacing 2

theta <- runif(n_drops, 0, pi/2)
D <- runif(n_drops, 0, d/2)
crosses <- sum(D <= (ell/2) * sin(theta))

pi_estimate <- (2 * ell * n_drops) / (crosses * d)
cat("Estimated pi:", pi_estimate, "\n")
cat("Actual pi:   ", pi, "\n")
# Estimated pi: 3.143... (close!)



15Chapter Refresh Exercises

5.R.1. A continuous random variable YY has the density function:

f(y)={c(4y2y2),0y20,elsewheref(y) = \begin{cases} c(4y - 2y^2), & 0 \leq y \leq 2 \\ 0, & \text{elsewhere} \end{cases}

(a) Find cc. (b) Find F(y)F(y). (c) Find E(Y)E(Y) and V(Y)V(Y). (d) Find the median.

5.R.2. The lifetime (in thousands of hours) of a type of electronic component follows an Exponential distribution with mean 4.

(a) Find P(Y>5)P(Y > 5). (b) Find P(Y>8Y>3)P(Y > 8 \mid Y > 3). (c) Find the 90th percentile of the lifetime distribution. (d) What is the probability the component lasts between 2 and 6 thousand hours?

5.R.3. Scores on a standardized test follow N(520,10000)N(520, 10000).

(a) What proportion of scores are above 700? (b) What score separates the bottom 15% from the top 85%? (c) Two students take the test independently. What is the probability that both score above 600?

5.R.4. A random variable YY has the density f(y)=14yey/2f(y) = \frac{1}{4}y e^{-y/2} for y>0y > 0.

(a) Identify the Gamma parameters and verify the density is valid. (b) Find E(Y)E(Y) and V(Y)V(Y). (c) Is this a Chi-Square distribution? If so, what are the degrees of freedom?

5.R.5. The fraction of a company’s daily output that meets quality standards follows a Beta(4,2)\text{Beta}(4, 2) distribution.

(a) Find the average fraction meeting standards. (b) Find the probability that more than 80% of the output meets standards on a given day. (c) If the revenue is R=1000Y200R = 1000Y - 200, find E(R)E(R).

5.R.6. A random variable YY has E(Y)=30E(Y) = 30 and σ=4\sigma = 4. The distribution is unknown.

(a) Use Tchebysheff to bound P(22<Y<38)P(22 < Y < 38). (b) If YY is actually N(30,16)N(30, 16), find the exact probability and compare.

5.R.7. (Proof) Show that if f(y)f(y) is a valid PDF on [a,b][a, b], then E(Y)[a,b]E(Y) \in [a, b]. (Hint: Use the fact that ayba \leq y \leq b implies af(y)yf(y)bf(y)a \cdot f(y) \leq y \cdot f(y) \leq b \cdot f(y), and integrate.)

5.R.8. Using the result from Buffon’s Needle (P=2/(πd)P = 2\ell/(\pi d)), suppose you drop a needle with =1\ell = 1 cm on a floor with lines d=2d = 2 cm apart. You drop it n=2000n = 2000 times, and it crosses a line c=637c = 637 times.

(a) Estimate π\pi using the formula π^=2n/(cd)\hat{\pi} = 2\ell n / (cd). (b) How close is your estimate to the true value? (c) How many drops would you need for an estimate accurate to 2 decimal places (in expectation)?

5.R.9. A random variable has MGF M(t)=e3t+2t2M(t) = e^{3t + 2t^2}.

(a) Identify the distribution. (b) Find P(Y>7)P(Y > 7). (c) Find the interquartile range (IQR).

5.R.10. (Comprehensive) A hospital models emergency room wait times (in hours) with the density:

f(y)={14yey/2,y>00,y0f(y) = \begin{cases} \frac{1}{4}ye^{-y/2}, & y > 0 \\ 0, & y \leq 0 \end{cases}

(a) Identify the distribution family and parameters. (b) Find E(Y)E(Y), V(Y)V(Y), and σ\sigma. (c) Find the probability a patient waits more than 6 hours. (d) Find the median wait time using R. (e) A patient has already waited 3 hours. Is the memoryless property applicable here? Why or why not? (f) Use Tchebysheff to find a guaranteed upper bound on the probability of waiting more than 12 hours, and compare to the exact value.


16Chapter 5 Quiz

Test your understanding with this self-assessment quiz. 15 questions are randomly selected from a bank of 100. You need 80% (12/15) to earn the badge.