TOPIC 1 / 3
Random Variables, PMFs, PDFs & CDFs
For a long equation, swipe sideways inside its formula box to see every term.
Meaning & notation
A random variable turns an uncertain outcome into a number. Its distribution assigns probabilities to sets of possible numbers. For isolated outcomes we add masses; for a variable with a density we integrate area. The cumulative distribution function unifies both descriptions by asking how much probability has accumulated at or below a chosen threshold.
- Probability mass function
- For a discrete random variable X, . Its values are nonnegative and sum to one over the possible values.
- Probability density function
- A density f is nonnegative and integrates to one. Integrating f over an interval gives its probability; f(x) itself is not the probability of one point.
- Cumulative distribution function
- (X at most x) is nondecreasing and right-continuous, approaching zero and one at the two infinite ends. It exists for every real-valued random variable.
Conditions before calculation
- A proposed mass or density must be nonnegative everywhere on its support and have total probability one. State the support and give zero mass or density outside it.
- A binomial count requires a fixed number n of independent trials, each with the same success probability p and two possible classifications. Sampling without replacement generally violates independence.
- For a variable with a density, each single point has probability zero. For any distribution, P( at most b)=; changing endpoint inclusion can matter for discrete distributions.
Why the method works
1. Choose the correct model
Countable outcome values suggest a mass function. Measurements modeled continuously may use a density. Mixed distributions can have both jumps and continuous portions, so do not force every distribution into one pure type.
2. Normalize before calculating
The total area or sum must equal one. A density may exceed one if its support is narrow enough; only integrated probabilities must remain between zero and one.
3. Use the CDF to subtract sets
Removing outcomes at or below a from outcomes at or below b leaves precisely the half-open interval.
Worked examples
EXAMPLE 1
Three independent sensors each signal with probability 0.2. Find the probability that exactly one signals.
Let X count signals. The fixed trial count, independence, and common probability give a binomial model.
There are three choices for the successful sensor. Each specific pattern has the same probability.
Multiply to get the mass; the four masses for counts zero through three also sum to one.
Conclusion: The probability is 0.384, provided the independence assumption is appropriate.
EXAMPLE 2
Let on [0,2] and zero elsewhere. Find c and P( at most 2).
Normalize the density by integrating over its entire support.
Integrate from zero to a threshold inside the support to get the CDF there.
Subtract the CDF values; the endpoints carry no mass.
Conclusion: The probability is . Complete the CDF with zero for and one for .
Pitfalls & counterexamples
Tempting claim: A probability density cannot exceed one.
Correction: Density is probability per unit length, so only its area is bounded by one.
Test the claim: The uniform density on [0,0.2] equals 5 but has total area 5 times .
Check your understanding
If X has a density, what is ?
Write a reason before opening the explanation. This reflection is not graded or saved.
Compare your reasoning
Zero.
A single point has zero interval length; a positive density value does not create a point mass.
Connect this idea
Distributions supply the weights for expectation and variance. Their CDFs support quantiles, simulation, and probability calculations used in statistical inference.
Reference reading
Use these texts to study the underlying definitions and theorems in greater depth. The explanations and examples above are written for Numerive.