1. Home
  2. Explore
  3. Mathematics
  4. Integration in Probability

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Integration in Probability

Application of Integration to Probability

Introduction to Probability Concepts

A continuous random variable measures quantities that can take any value within a range — for example, time, length, or temperature. Unlike a discrete random variable (such as the outcome of a die roll, which can only be 1 through 6), a continuous random variable can assume infinitely many possible values. The variable xxx represents the quantity being measured.

A probability density function (PDF) is a function p(x)p(x)p(x) that describes the relative likelihood of different outcomes for a continuous random variable. The PDF itself does not give probabilities directly; instead, probabilities are found by calculating the area under the curve of p(x)p(x)p(x) over an interval.

Key definition: For a continuous random variable XXX with PDF p(x)p(x)p(x), the probability that XXX lies between aaa and bbb is given by the integral:

P(a≤X≤b)=∫abp(x) dxP(a \leq X \leq b) = \int_a^b p(x) \, dxP(a≤X≤b)=∫ab​p(x)dx

This area represents how likely it is that the variable falls within that interval.

An essential property of any PDF is that the total area over its entire domain equals 1, because the variable must take some value within the domain:

∫domainp(x) dx=1\int_{\text{domain}} p(x) \, dx = 1∫domain​p(x)dx=1

Example: Light Bulb Burnout (Exponential Distribution)

A light bulb's burnout time (in hours) is modeled by a continuous random variable XXX with PDF:

p(x)=1100e−x/100,x>0p(x) = \frac{1}{100} e^{-x/100}, \quad x > 0p(x)=1001​e−x/100,x>0

This is an exponential distribution with rate parameter 1100\frac{1}{100}1001​.

Probability that burnout occurs between 50 and 150 hours

P(50≤X≤150)=∫501501100e−x/100 dxP(50 \leq X \leq 150) = \int_{50}^{150} \frac{1}{100} e^{-x/100} \, dxP(50≤X≤150)=∫50150​1001​e−x/100dx

Using uuu-substitution with u=−x100u = -\frac{x}{100}u=−100x​, du=−1100dxdu = -\frac{1}{100}dxdu=−1001​dx:

=−∫x=50150eu du=−e−x/100∣50150= -\int_{x=50}^{150} e^u \, du = -e^{-x/100} \Big|_{50}^{150}=−∫x=50150​eudu=−e−x/100​50150​
=−(e−150/100−e−50/100)=e−0.5−e−1.5= -\left( e^{-150/100} - e^{-50/100} \right) = e^{-0.5} - e^{-1.5}=−(e−150/100−e−50/100)=e−0.5−e−1.5

Numerically, this evaluates to approximately 0.38340.38340.3834, meaning there is about a 38.34% probability that the bulb burns out between 50 and 150 hours.

Probability that the bulb burns more than 300 hours

This requires an improper integral extending to infinity:

P(X≥300)=∫300∞1100e−x/100 dx=lim⁡R→∞∫300R1100e−x/100 dxP(X \geq 300) = \int_{300}^{\infty} \frac{1}{100} e^{-x/100} \, dx = \lim_{R \to \infty} \int_{300}^{R} \frac{1}{100} e^{-x/100} \, dxP(X≥300)=∫300∞​1001​e−x/100dx=limR→∞​∫300R​1001​e−x/100dx

Evaluating the integral yields:

=lim⁡R→∞(−e−R/100+e−3)=e−3≈0.04978= \lim_{R \to \infty} \left( -e^{-R/100} + e^{-3} \right) = e^{-3} \approx 0.04978=limR→∞​(−e−R/100+e−3)=e−3≈0.04978

Thus, only about 5% of bulbs last more than 300 hours.

Verification of total area property

Check that the PDF integrates to 1 over its domain:

∫0∞1100e−x/100 dx=lim⁡R→∞(−e−R/100+e0)=1\int_0^{\infty} \frac{1}{100} e^{-x/100} \, dx = \lim_{R \to \infty} \left( -e^{-R/100} + e^0 \right) = 1∫0∞​1001​e−x/100dx=limR→∞​(−e−R/100+e0)=1

This confirms that the PDF is valid.


Expected Value (Mean) of a Continuous Random Variable

The expected value (also called the mean) of a continuous random variable XXX with PDF p(x)p(x)p(x) is denoted by μ\muμ and given by:

μ=∫−∞∞x p(x) dx\mu = \int_{-\infty}^{\infty} x \, p(x) \, dxμ=∫−∞∞​xp(x)dx

This represents the average value of the random variable over many trials.

For the light bulb example, the domain starts at 0, so:

μ=∫0∞x⋅1100e−x/100 dx\mu = \int_0^{\infty} x \cdot \frac{1}{100} e^{-x/100} \, dxμ=∫0∞​x⋅1001​e−x/100dx

Evaluating via integration by parts

Set u=xu = xu=x, dv=1100e−x/100dxdv = \frac{1}{100} e^{-x/100} dxdv=1001​e−x/100dx. Then du=dxdu = dxdu=dx, and v=−e−x/100v = -e^{-x/100}v=−e−x/100 (found by integrating dvdvdv).

μ=∫0∞x⋅1100e−x/100dx=[−xe−x/100]0∞+∫0∞e−x/100dx\mu = \int_0^{\infty} x \cdot \frac{1}{100} e^{-x/100} dx = \left[ -x e^{-x/100} \right]_0^{\infty} + \int_0^{\infty} e^{-x/100} dxμ=∫0∞​x⋅1001​e−x/100dx=[−xe−x/100]0∞​+∫0∞​e−x/100dx

The boundary term evaluates to:

  • Upper limit: lim⁡R→∞−Re−R/100=0\lim_{R \to \infty} -R e^{-R/100} = 0limR→∞​−Re−R/100=0 (exponential decay dominates)

  • Lower limit: −0⋅e0=0-0 \cdot e^0 = 0−0⋅e0=0

The remaining integral:

∫0∞e−x/100dx=[−100e−x/100]0∞=100\int_0^{\infty} e^{-x/100} dx = \left[ -100 e^{-x/100} \right]_0^{\infty} = 100∫0∞​e−x/100dx=[−100e−x/100]0∞​=100

Therefore, μ=100\mu = 100μ=100 hours. This is the expected lifespan of the bulb, matching the parameter in the PDF.

Note: For an exponential distribution p(t)=1re−t/rp(t) = \frac{1}{r} e^{-t/r}p(t)=r1​e−t/r, the mean is exactly rrr — the same value that appears in the exponent's denominator. This is not a coincidence; rrr is both the rate parameter and the mean.


Common Probability Density Functions

Exponential Distribution

  • Form: p(t)=1re−t/rp(t) = \frac{1}{r} e^{-t/r}p(t)=r1​e−t/r for t>0t > 0t>0, where rrr is the mean

  • Used to model waiting times: time until a light bulb burns out, time until a train arrives, or time between random events

  • Domain: [0,∞)[0, \infty)[0,∞)

Normal Distribution (Bell Curve)

The standard normal curve has mean μ=0\mu = 0μ=0 and standard deviation σ=1\sigma = 1σ=1:

p(x)=12πe−x2/2p(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2}p(x)=2π​1​e−x2/2

A general normal curve is shifted and stretched:

p(x)=1σ2πe−(x−μ)2/(2σ2)p(x) = \frac{1}{\sigma \sqrt{2\pi}} e^{-(x-\mu)^2 / (2\sigma^2)}p(x)=σ2π​1​e−(x−μ)2/(2σ2)
  • μ\muμ (mean) — locates the center of the bell; half the area lies on each side

  • σ\sigmaσ (standard deviation) — measures the spread; a small σ\sigmaσ gives a tall, narrow curve; a large σ\sigmaσ gives a short, wide curve

Normal distributions are commonly used to model naturally occurring phenomena such as test scores, heights, or measurement errors.


Example: Exam Scores (Normal Distribution)

Suppose exam scores are approximately normally distributed with mean μ=500\mu = 500μ=500 and standard deviation σ=100\sigma = 100σ=100. What is the probability of scoring 500 or above?

We need P(X≥500)P(X \geq 500)P(X≥500):

P(X≥500)=∫500∞11002πe−(x−500)2/(2⋅1002) dxP(X \geq 500) = \int_{500}^{\infty} \frac{1}{100 \sqrt{2\pi}} e^{-(x-500)^2 / (2 \cdot 100^2)} \, dxP(X≥500)=∫500∞​1002π​1​e−(x−500)2/(2⋅1002)dx

Difficulty of direct integration

This integral has no elementary antiderivative — it cannot be expressed as a simple combination of standard functions. The exponential contains x2x^2x2, making uuu-substitution or integration by parts ineffective. Such integrals must be evaluated numerically using:

  • A graphing calculator (e.g., TI-89 with integral command, or TI-84 with fnInt)

  • Computer algebra systems (CAS) like Wolfram|Alpha or GeoGebra

  • Statistical tables (e.g., standard normal cumulative distribution tables)

Symmetry property

Because the normal distribution is symmetric about its mean μ\muμ, exactly half of the total area lies above the mean. Since the total area is 1 (100%), the probability is:

P(X≥500)=0.5=50%P(X \geq 500) = 0.5 = 50\%P(X≥500)=0.5=50%

This intuitive result matches the numerical evaluation and illustrates the power of understanding properties of the PDF, even when an analytic integration is impossible.

Key insight: Many practical probability problems rely on symmetry, known properties of distributions, or numerical approximation rather than closed-form integration. Recognizing when to use these shortcuts is a valuable skill.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent