Week 12: Continuous Random Variables & PDFs
3187 words
16 min read
2026-09-12T00:00:00.000Z
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
Continuous RVs, Probability Density Functions (PDF), area interpretation, Uniform distribution, Exponential distribution, and memoryless property. # Statistics for Data Science I — Week 12: Continuous Random Variables & PDFs IITM’s Week 12 introduces **continuous random variables, area under the curve, properties of...

Statistics for Data Science I — Week 12: Continuous Random Variables & PDFs
IITM’s Week 12 introduces continuous random variables, area under the curve, properties of a probability density function, the uniform distribution, and the exponential distribution.
TL;DR
For a discrete random variable:
can be positive.
For a continuous random variable:
for every exact value x.
Probability is obtained from area under a density curve:
where:
is the probability density function (PDF).
The two named distributions in Week 12 are:
Uniform
X∼U(a,b)with:
for:
Exponential
X∼Exp(λ)with:
and:
1. Continuous random variable recap
A continuous random variable can take values throughout an interval.
Examples:
- height
- waiting time
- lifetime
- distance
- temperature
- time between arrivals
Unlike discrete variables, the possible values are not just isolated points.
2. Example
Suppose:
Possible values may include:
and every real value in some interval.
That is continuous behavior.
3. Discrete vs continuous
Discrete
Probability is assigned directly to points:
Example:
Continuous
Probability comes from intervals:
For an exact point:
4. Why is point probability zero?
A continuous distribution spreads probability across infinitely many possible values.
A single point has zero width.
Geometrically:
So:
5. Zero probability does not mean impossible
This distinction matters.
If:
is continuous, then:
but X=2 can still occur as an observed value.
Probability zero in continuous models means:
an individual point has zero probability mass.
Not:
the value is logically impossible.
6. Probability density function
A continuous random variable is often described by a probability density function, or PDF.
Notation:
or simply:
7. PDF is not itself probability
This is crucial.
For continuous X:
is a density, not:
Indeed:
even if:
Probability comes from area under f.
8. Probability as area
For:
So the integral converts density into probability.
This directly connects to Maths 1 Week 9 integration.
9. PDF conditions
A valid PDF must satisfy:
for all x.
And total area must equal:
These are the continuous analogues of PMF conditions.
10. PMF vs PDF
PMF
For discrete variables:
and:
For continuous variables:
and:
11. Discrete sum vs continuous integral
The parallel is:
versus:
This is one of the cleanest conceptual links in the course.
12. Endpoints do not matter
For continuous X:
and:
Therefore:
All are equal.
13. Example
If:
then:
as well.
The endpoints contribute zero probability.
14. CDF recap
The cumulative distribution function works for both discrete and continuous RVs:
For a continuous RV with PDF f:
15. CDF from PDF
The CDF accumulates density from the far left up to x.
So:
16. Probability from CDF
For:
For continuous variables, endpoint choices do not matter.
17. PDF from CDF
If the CDF is differentiable:
So:
and:
This is another direct calculus connection.
18. Example PDF
Suppose:
Check total area:
So this is a valid PDF.
19. Probability from that PDF
Find:
Then:
So:
20. Another probability
Find:
Then:
Thus:
21. Finding an unknown constant
Suppose:
For a valid PDF:
22. Solve for k
k[2x2]02=1.Thus:
So:
This is the continuous version of normalizing an unknown PMF.
23. PDF height can exceed 1
Another common trap:
A PDF value itself can be greater than 1.
Only probability must lie between:
and:
A density can exceed 1 if its support is narrow enough that total area remains 1.
24. Example
Suppose:
for:
Total area:
Perfectly valid PDF, even though:
25. Uniform distribution
A continuous uniform distribution assigns constant density across an interval.
Notation:
where:
26. Uniform PDF
f(x)=⎩⎨⎧b−a1,0,a≤x≤botherwiseThe density is constant.
27. Why the height is b−a1
The PDF is a rectangle.
Width:
Height:
Total area must equal:
Therefore:
So:
28. Uniform probability
For:
Thus:
29. Example
Suppose:
Find:
Desired interval length:
Total length:
Therefore:
30. Uniform CDF
For:
Inside the support, the CDF grows linearly.
31. Uniform expectation
A useful result:
The mean is simply the midpoint.
32. Uniform variance
For:
If this exact formula is not emphasized in the lectures, treat it as a useful result rather than the core PDF idea.
33. Uniform standard deviation
SD(X)=12b−a34. Uniform intuition
Uniform means:
equal-length intervals inside the support have equal probability.
For:
interval:
has the same probability as:
Both have length:
35. But individual points are still probability zero
Even for uniform:
"Uniform" does not mean every point has some equal positive probability.
Instead, equal interval lengths have equal probability.
36. Exponential distribution
The exponential distribution is commonly used to model waiting times between events.
Notation:
with:
37. Exponential PDF
f(x)={λe−λx,0,x≥0x<0Support:
38. Why only nonnegative values?
Waiting time cannot normally be negative.
So:
The exponential model is naturally suited to nonnegative durations.
39. Check exponential PDF
Total area:
Antiderivative:
Thus:
So it is properly normalized.
40. Exponential CDF
For:
Therefore:
for:
41. Exponential survival function
The probability of waiting longer than x is:
So:
This is one of the most useful exponential formulas.
42. Example
Suppose:
Find probability waiting time exceeds 4 units.
43. Probability between two times
For:
Using exponential CDF:
Therefore:
44. Exponential expectation
For:
So larger rate:
means shorter average waiting time.
45. Exponential variance
Var(X)=λ21Standard deviation:
Interestingly, mean and standard deviation are equal for the exponential distribution.
46. Rate vs waiting time
This relationship is important.
If events occur at rate:
per hour, average waiting time is:
That equals:
So:
47. Poisson ↔ exponential connection
Week 11:
Poisson models:
number of events in an interval.
Week 12:
Exponential models:
waiting time until the next event.
Under the standard Poisson-process model, these are two sides of the same process.
Conceptually:
textPoisson: How many arrivals in 10 minutes? Exponential: How long until the next arrival?
48. Example connection
Suppose calls arrive according to a Poisson process with rate:
per hour.
Then:
Number of calls in one hour
N∼Pois(3).Waiting time until next call
T∼Exp(3)when time is measured in hours.
Mean waiting time:
49. Memoryless property
The exponential distribution has a special memoryless property:
Meaning:
If you have already waited s units, the remaining waiting-time distribution behaves as though the clock restarted.
50. Example intuition
Suppose:
is exponential waiting time.
You have already waited:
minutes.
Memorylessness says that this past wait does not make the model think the event is "due."
The remaining waiting behavior is unchanged.
51. Algebraic verification
Using:
Thus:
But:
So memorylessness holds.
52. Uniform vs exponential
| Feature | Uniform | Exponential |
|---|---|---|
| Support | finite interval [a,b] | [0,∞) |
| PDF shape | constant | decreasing |
| Parameter(s) | a,b | λ |
| Typical use | equally dense interval | waiting time |
| Mean | (a+b)/2 | 1/λ |
53. Discrete vs continuous distribution summary
| Feature | Discrete | Continuous |
|---|---|
| Values | countable | continuum |
| Point probability | can be positive | 0 |
| Main function | PMF | PDF |
| Total probability | sum | integral |
| CDF | yes | yes |
54. PMF / PDF / CDF comparison
PMF
p(x)=P(X=x)Discrete only.
Continuous density.
Probability:
CDF
F(x)=P(X≤x)Works for both.
This distinction should be completely clear by the end of Week 12.
Common mistake: PDF value = probability
Wrong:
For continuous X:
f(2) is density height.
Common mistake: PDF must be at most 1
Wrong.
Probability must be:
Density itself may exceed 1.
The relevant requirement is:
Common mistake: integrating outside support
Suppose:
Then:
outside:
Probability calculations should intersect the requested interval with the support.
58. Example
For:
find:
Only:
lies inside the support.
So:
Common mistake: continuous endpoint obsession
For continuous X:
Do not waste time distinguishing endpoint inclusion unless the variable has discrete mass.
Common mistake: exponential
λ as mean
For Poisson:
For exponential:
This is a very common mix-up.
Common mistake: wrong exponential tail
CDF:
Tail:
Do not reverse them.
Common mistake: wrong units for
λ
If λ is:
and x is measured in minutes, convert units before using:
The product:
must be dimensionless.
63. Unit conversion example
Rate:
That is:
per minute.
For a 10-minute waiting time:
64. Full PDF-normalization example
Suppose:
Find k.
Use:
65. Solve
k[x+2x2]01=1.So:
Thus:
Therefore:
66. Then compute probability
Find:
Inside:
Thus:
67. Continuous probability workflow
When given a PDF:
text1. Identify support 2. Check/solve normalization 3. Translate event to an interval 4. Integrate PDF over that interval 5. Use complement/CDF if easier 6. Check answer lies in [0,1]
68. Uniform workflow
For:
you usually do not need integration manually.
Use:
after intersecting with the support.
69. Exponential workflow
For:
remember:
and:
Then use:
Less than
P(X<x)=1−e−λxGreater than
P(X>x)=e−λxBetween
P(a<X<b)=e−λa−e−λb70. Full Stats 1 probability progression
textWeeks 5–6 Counting ↓ Week 7 Probability ↓ Week 8 Conditional probability + Bayes ↓ Week 9 Random variables + PMF/CDF ↓ Week 10 Expectation + variance ↓ Week 11 Bernoulli / Binomial / Poisson ↓ Week 12 Continuous RVs / PDF ├── Uniform └── Exponential
71. Discrete–continuous bridge
Week 11:
matters because discrete variables have point masses.
Week 12:
and intervals matter:
That is the central conceptual transition.
72. Formula sheet — continuous RVs
PDF conditions
f(x)≥0 ∫−∞∞f(x)dx=1Interval probability
P(a<X<b)=∫abf(x)dxCDF
F(x)=∫−∞xf(t)dtDensity from CDF
f(x)=F′(x)when differentiable.
73. Formula sheet — uniform
If:
for a≤x≤b.
74. Formula sheet — exponential
If:
75. What you should actually master
By the end of Stats 1 Week 12, you should be able to:
- Distinguish discrete and continuous random variables.
- Explain why: P(X=x)=0 for continuous X.
- Define a PDF.
- Know that a PDF is a density, not a point probability.
- Check: f(x)≥0.
- Check: ∫f(x)dx=1.
- Normalize a PDF with an unknown constant.
- Compute interval probabilities using integration.
- Use a CDF for continuous variables.
- Relate: F′(x)=f(x).
- Recognize a uniform distribution.
- Compute uniform interval probabilities quickly.
- Recognize an exponential waiting-time problem.
- Use: P(X>x)=e−λx.
- Know: E[X]=1/λ for exponential.
- Understand the Poisson-count / exponential-waiting-time connection.
- Understand the memoryless property conceptually.
If those are comfortable, Stats 1 Week 12 is under control.
Stats 1 is now complete
We have gone through the full IITM Statistics for Data Science I sequence from Week 1 through Week 12, ending with the continuous distributions listed in the official syllabus.
The full course arc is essentially:
The natural next subject in the sequence is Computational Thinking — Week 1.
Quick Recall & Flashcards
Test your active recall before proceeding to practice problems. Format:
Question :: Answer.- Week 12 Diagnostic: For a continuous random variable X with PDF f(x), what is P(X = 5)? :: Answer: 0 — For any continuous random variable, the probability of taking any exact single point value is strictly 0: P(X = c) = 0.
- Week 12 Diagnostic: If X is uniformly distributed on [2, 6], what is the value of the PDF f(x) for x in [2, 6]? :: Answer: 0.25 — For X ~ U(a, b), f(x) = 1 / (b - a). Here b = 6, a = 2, so f(x) = 1 / (6 - 2) = 1/4 = 0.25.
Practice & Self-Check
Attempt these diagnostic questions to verify your operational understanding.
1
Question 1
For a continuous random variable X with PDF f(x), what is P(X = 5)?
NAT
3 Unit Assessment
2
Question 2
If X is uniformly distributed on [2, 6], what is the value of the PDF f(x) for x in [2, 6]?
NAT
3 Unit Assessment