The Cumulative Distribution Function (CDF) gives the probability that a random variable X takes a value less than or equal to a certain value x. It is a cumulative measure of probability and is defined for both discrete and continuous random variables.
For a random variable X, the CDF is denoted as FX(x), and it is defined as:
FX(x) = P(X ≤ x)
If X is the outcome of a fair six-sided die, then:
FX(x) = { 0, x < 1
1/6, 1 ≤ x < 2
2/6, 2 ≤ x < 3
3/6, 3 ≤ x < 4
4/6, 4 ≤ x < 5
5/6, 5 ≤ x < 6
1, x ≥ 6 }
For a uniform random variable X over the interval [0,1], the CDF is:
FX(x) = { 0, x < 0
x, 0 ≤ x ≤ 1
1, x > 1 }
The Probability Density Function (PDF) describes the likelihood of a continuous random variable X taking on a particular value. Unlike the CDF, the PDF does not give probabilities directly but instead represents the density of the probability at a point.
For a continuous random variable X, the PDF fX(x) is the derivative of the CDF:
fX(x) = d/dx FX(x)
For a uniform random variable X over the interval [0,1], the PDF is:
fX(x) = { 1, 0 ≤ x ≤ 1
0, otherwise }
For a standard normal random variable Z with mean 0 and variance 1, the PDF is:
fZ(z) = 1/√(2π) e−z²/2
The PDF is the derivative of the CDF: fX(x) = d/dx FX(x)
The CDF is the integral of the PDF: FX(x) = ∫−∞x fX(t) dt
| Aspect | CDF | |
|---|---|---|
| Definition | FX(x) = P(X ≤ x) | fX(x) = d/dx FX(x) |
| Value | Cumulative probability | Probability density |
| Range | [0,1] | [0,∞) |
| Graph | S-shaped curve (for continuous random variables) | Bell-shaped or other curves depending on the distribution |
Click the button below to explore examples:
View Examples