Integration in Probability


Integration in Probability

Hope
Today we're talking about how integration applies to probability. Seriously useful stuff. Imagine you have a light bulb, and you want to know how likely it is to burn out within a certain time range.

Corey
So time is a continuous random variable, right? Unlike a dice roll which has discrete outcomes, time can be any number. That's where the 'continuous' part comes in.

Hope
Exactly. And we describe its behavior using a probability density function. For our light bulb, the PDF is p(x) = (1/100) e^(-x/100) for x > 0. That function tells us how likely different burnout times are.

Corey
So how do we get actual probabilities from that function?

Hope
We integrate. The probability that the time falls between two values a and b is the area under the curve from a to b. So P(a < X < b) = ∫ from a to b of p(x) dx. Simple idea: probability equals area.

Corey
Let's test it. What's the chance the bulb lasts between 50 and 150 hours?

Hope
We integrate from 50 to 150: ∫ (1/100) e^(-x/100) dx. Use u-substitution with u = -x/100. The result is -e^(-x/100) evaluated from 50 to 150. That gives e^(-0.5) - e^(-1.5), which is about 0.3834. So a 38.34% chance.

Corey
Nice! Now what about the chance it lasts more than 300 hours? That's an infinite upper limit.

Hope
Right, we use an improper integral: ∫ from 300 to ∞. Take the limit as R→∞ of the integral from 300 to R. Same antiderivative, evaluate at R and 300. As R→∞, -e^(-R/100) goes to 0, so we get e^(-3) ≈ 0.0498. Only about a 5% chance it lasts that long.

Corey
That makes sense. And I imagine the total area under the PDF from 0 to ∞ must be 1, since the bulb will definitely burn out eventually.

Hope
Exactly. That's a key property: for any PDF, the integral over its entire domain equals 1. It's a fundamental check.

Corey
Now what about the average lifespan? That's the expected value, right?

Hope
Yes. The mean μ = ∫ from -∞ to ∞ x * p(x) dx. For our light bulb, it's ∫ from 0 to ∞ x * (1/100) e^(-x/100) dx. We pull out 1/100 and use integration by parts.

Corey
Integration by parts—classic. Set u = x and dv = e^(-x/100) dx, then du = dx and v = -100 e^(-x/100).

Hope
Right. The standard formula gives uv - ∫ v du. After simplifying and evaluating the improper integral, we get μ = 100 hours. So on average, that's how long the bulb lasts.

Corey
And that 100 matches the parameter in the PDF. So the exponential model is defined by its mean. It's often used for wait times—like how long until a train arrives.

Hope
Exactly. But there's another famous PDF: the normal distribution, or bell curve. It's symmetric and defined by its mean μ and standard deviation σ.

Corey
The formula looks intimidating: p(x) = (1/(σ√(2π))) e^{-(x-μ)^2/(2σ^2)}. But the key is that the mean is the center, and σ controls how spread out the curve is.

Hope
Right. For a standard normal with μ=0 and σ=1, the curve is centered at zero. But let's do an example: exam scores with μ=500 and σ=100. What's the probability of scoring above 500?

Corey
Since it's symmetric and 500 is the mean, it should be 50%, right?

Hope
Exactly. But if we actually set up the integral from 500 to ∞, we can't find a simple antiderivative. It's a famous function with no closed form. So we rely on calculators or computer algebra systems.

Corey
So you can use a TI-89 or WolframAlpha to get 0.5. That's a nice check: the total area is 1, so half is above the mean.

Hope
Exactly. And that's the power of integration—it lets us compute probabilities for any PDF, even when the integrals get tricky.

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