Skip to main content

Thomas’ Calculus · Chapter 08 · Section 8.9

By Muhammad Abdullah Athar · SymPy Verified

Probability

❦

Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.

Part One

Section Notes

❧

Section 8.9: Probability

Continuous probability models use definite and improper integrals to measure probabilities, expected values, and variances.


1. Core Properties of a PDF f(x)f(x)

  1. f(x)≥0f(x) \ge 0 for all xx.
  2. ∫−∞∞f(x)dx=1\int_{-\infty}^\infty f(x) dx = 1.
  3. P(a≤X≤b)=∫abf(x)dxP(a \le X \le b) = \int_a^b f(x) dx.

2. Exponential Distribution

f(t)={ce−ctt≥00t<0  ⟹  μ=1cf(t) = \begin{cases} c e^{-ct} & t \ge 0 \\ 0 & t < 0 \end{cases} \implies \mu = \frac{1}{c}

Part Two

Key Ideas to Remember

2 essential statements for this section, each with a plain-words explanation.

Definition #1Sec 8.9

Probability Density Function (PDF)

f(x)≥0∀x,∫−∞∞f(x)dx=1,P(a≤X≤b)=∫abf(x)dxf(x) \ge 0 \quad \forall x, \quad \int_{-\infty}^\infty f(x) dx = 1, \quad P(a \le X \le b) = \int_a^b f(x) dx

A probability density function f(x) models a continuous random variable X. The probability that X falls in [a, b] is the definite integral of f(x) over [a, b].

Conditions: f(x) is non-negative; Total integral over real line equals 1

In plain words: Continuous probability is represented by area under the curve rather than discrete point values.

Remember — Total area under any valid PDF must equal 1.

Formula #2Sec 8.9

Expected Value (Mean) of a Random Variable

μ=E[X]=∫−∞∞x f(x) dx\mu = E[X] = \int_{-\infty}^\infty x \, f(x) \, dx

The mean or expected value of a continuous random variable X is the first moment of the probability density function with respect to the origin.

Conditions: Integral converges absolutely

In plain words: Analogous to the center of mass x_bar of a wire with density f(x).

Remember — The expected value is the probability-weighted average of all possible outcomes.

Part Three

Worked Examples

5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.

Example 01(Section 8.9, Exercise 1)

Warm-up

Problem. Find the constant C such that f(x) = C x on [0, 4] (and 0 elsewhere) is a valid probability density function.

Step-by-Step Derivation (3 steps)

1

Set Total Probability Integral to 1

∫04Cx dx=1\int_0^4 C x \, dx = 1

The total area under any PDF must equal 1.

Why this works: PDF normalization condition.
2

Evaluate Definite Integral

C[x22]04=C(162)=8C=1C \left[ \frac{x^2}{2} \right]_0^4 = C \left( \frac{16}{2} \right) = 8C = 1

Compute antiderivative of x.

Why this works: Linear integration.
3

Solve for C

8C=1  ⟹  C=188C = 1 \implies C = \frac{1}{8}

Divide by 8.

Why this works: Determining constant.

Answer: C=18C = \frac{1}{8}

✓ Verified by SymPy CAS

Example 02(Section 8.9, Exercise 2)

Warm-up

Problem. Given PDF f(x) = (1/8) x on [0, 4], find the probability P(1 <= X <= 3).

Step-by-Step Derivation (2 steps)

1

Set Up Probability Integral

P(1≤X≤3)=∫1318x dxP(1 \le X \le 3) = \int_1^3 \frac{1}{8} x \, dx

Integrate PDF over interval [1, 3].

Why this works: Definition of continuous probability.
2

Evaluate Integral

18[x22]13=116(9−1)=816=12\frac{1}{8} \left[ \frac{x^2}{2} \right]_1^3 = \frac{1}{16} (9 - 1) = \frac{8}{16} = \frac{1}{2}

Evaluate power antiderivative at boundaries.

Why this works: Final exact probability.

Answer: P(1≤X≤3)=12=0.5P(1 \le X \le 3) = \frac{1}{2} = 0.5

✓ Verified by SymPy CAS

Example 03(Section 8.9, Exercise 3)

Warm-up

Problem. Find the mean (expected value) E[X] for f(x) = (1/8) x on [0, 4].

Step-by-Step Derivation (2 steps)

1

State Expected Value Integral

E[X]=∫04x⋅f(x) dx=∫04x(18x)dx=18∫04x2dxE[X] = \int_0^4 x \cdot f(x) \, dx = \int_0^4 x \left(\frac{1}{8} x\right) dx = \frac{1}{8} \int_0^4 x^2 dx

Multiply x by f(x) and integrate.

Why this works: First moment definition of expected value.
2

Evaluate Integral

18[x33]04=124(64−0)=6424=83\frac{1}{8} \left[ \frac{x^3}{3} \right]_0^4 = \frac{1}{24} (64 - 0) = \frac{64}{24} = \frac{8}{3}

Simplify the fraction 64/24 by dividing by 8.

Why this works: Final exact mean.

Answer: μ=E[X]=83\mu = E[X] = \frac{8}{3}

✓ Verified by SymPy CAS

Example 04(Section 8.9, Exercise 4)

Core practice

Problem. The waiting time T (in minutes) at a customer service line is exponentially distributed with PDF f(t) = 0.2 e^(-0.2t) for t >= 0. Find the probability that a customer waits more than 5 minutes.

Step-by-Step Derivation (3 steps)

1

Formulate Improper Probability Integral

P(T>5)=∫5∞0.2e−0.2tdtP(T > 5) = \int_5^\infty 0.2 e^{-0.2t} dt

Integrate from 5 to infinity.

Why this works: Tail probability.
2

Evaluate Antiderivative

∫0.2e−0.2tdt=−e−0.2t  ⟹  lim⁡M→∞[−e−0.2t]5M\int 0.2 e^{-0.2t} dt = -e^{-0.2t} \implies \lim_{M \to \infty} [-e^{-0.2t}]_5^M

Antiderivative of c e^(-ct) is -e^(-ct).

Why this works: Exponential integration.
3

Evaluate Limit

lim⁡M→∞(−e−0.2M+e−0.2(5))=0+e−1=e−1\lim_{M \to \infty} (-e^{-0.2M} + e^{-0.2(5)}) = 0 + e^{-1} = e^{-1}

e^(-0.2 * 5) = e^(-1).

Why this works: Final exact probability.

Answer: P(T>5)=e−1≈0.3679P(T > 5) = e^{-1} \approx 0.3679

✓ Verified by SymPy CAS

Example 05(Section 8.9, Exercise 5)

Core practice

Problem. Verify that the mean of the exponential distribution f(t) = c e^(-ct) on [0, oo) is 1/c.

Step-by-Step Derivation (3 steps)

1

Set Up Expected Value Integral

E[T]=∫0∞t(ce−ct)dtE[T] = \int_0^\infty t (c e^{-ct}) dt

Integrate t times PDF.

Why this works: Expected value formula.
2

Apply Integration by Parts

u=t  ⟹  du=dt;dv=ce−ctdt  ⟹  v=−e−ctu = t \implies du = dt; \quad dv = c e^{-ct} dt \implies v = -e^{-ct}

Parts setup.

Why this works: Integration by parts on t e^(-ct).
3

Evaluate Boundary Terms and Remaining Integral

lim⁡M→∞[−te−ct]0M+∫0∞e−ctdt=0+[−e−ctc]0∞=1c\lim_{M \to \infty} [-t e^{-ct}]_0^M + \int_0^\infty e^{-ct} dt = 0 + \left[ -\frac{e^{-ct}}{c} \right]_0^\infty = \frac{1}{c}

Boundary terms vanish; remaining integral yields 1/c.

Why this works: Mean of exponential distribution.

Answer: μ=E[T]=1c\mu = E[T] = \frac{1}{c}

✓ Verified by SymPy CAS