Course contentsShow
← Data Science
Lesson 158 of 2,1455. Continuous Probability DistributionsFree lesson

Computing Probabilities Using Integration

Practice calculating P(a < X < b) by integrating the PDF over an interval.

Computing Probabilities Using Integration

You'll learn how to find the probability that a continuous random variable falls within a specific range by integrating its PDF.

Core Idea

For continuous random variables, the probability of landing in an exact single value is zero (the area of a line is zero). Instead, we calculate probabilities over intervals using integration.

To find P(a < X < b) — the probability that X falls between a and b — you integrate the probability density function (PDF) from a to b:

P(a < X < b) = ∫[from a to b] f(x) dx

Think of it like measuring the shaded area under a curve between two points on a graph. The PDF tells you the "density" at each point, and integration adds up all those infinitesimal slices to give you the total probability.

Why Integration?

Remember that a valid PDF must have total area = 1 under its entire curve. When you integrate over just a portion of that curve (from a to b), you're finding what fraction of that total probability lies in your interval of interest.

Plain English Example

Suppose you have a continuous variable X representing someone's arrival time (in minutes after 2:00 PM), with a certain PDF. To find the probability they arrive between 10 and 20 minutes after 2:00:

P(10 < X < 20) = ∫[from 10 to 20] f(x) dx

You'd evaluate this integral using calculus (or numerical methods) to get a probability like 0.35, meaning 35% chance.

Key Takeaway: For continuous random variables, probabilities over intervals are computed by integrating the PDF between the interval's endpoints, giving you the area under the density curve.