Probability Density And CDF
Scope Label
Conceptual support / Enrichment. This note explains the general continuous-probability language used by normal-distribution work. It is useful for understanding Special Continuous Random Variables, but the current 9758 scope reference names the normal distribution itself as the core continuous model.
What This Note Assumes
You should already know:
- probabilities are numbers between and ;
- total probability is ;
- discrete random variables attach probability to listed values;
- integration can represent accumulated area.
The new idea is that, for the absolutely continuous models considered here, probability is attached to intervals, not exact points. The density is taken to be outside its stated support.
From Discrete Values to Continuous Intervals
For a discrete random variable, we can write probabilities such as
The possible values are separated, so each value may have its own probability.
For a continuous random variable, the possible values vary across intervals. A measured height, time, or mass is not naturally listed value by value. Between two possible values, more possible values lie between them.
Therefore a continuous model does not assign probability directly to each exact value. It spreads probability across the number line using a density.
Probability Density Function
A probability density function, or pdf, is a function whose area gives probability.
For a continuous random variable ,
Read this as:
- is the height of the density curve;
- represents a tiny piece of probability near ;
- the integral accumulates those pieces over an interval;
- the resulting area is the probability.
How to read this figure. Density height alone is not probability. The shaded probability combines height and interval width as area; the non-normal curve prevents the area rule from being confused with a special property of normal distributions.
Valid Pdf Conditions
A valid pdf must satisfy two conditions.
First,
for all values in its domain. Negative density would lead to negative probability over small intervals, which is impossible.
Second,
This says the total area under the whole density curve is .
How to read this figure. Non-negativity and total area are simultaneous conditions over the entire support. The condition is on total area, not on every height being at most .
Do not check only whether the formula looks positive. Always check the intended domain. A function may be non-negative on one interval but invalid if the total area is not .
Density Is Not Probability
A density value such as is not the probability that .
The value is a height. It tells us how concentrated the distribution is near , but it has no interval width by itself. Probability needs area.
This is why a density value may be greater than without causing a contradiction. A tall, narrow density can still have total area .
How to read this figure. The rectangle has height but width , so its total area is . Density is measured per unit of ; only probability areas must lie between and .
The safe reading is:
Height is density. Area is probability.
Exact-Point Probability
For any continuous random variable,
This follows directly from the area interpretation:
A single point has zero width. Since probability is area, it contributes zero probability.
This does not mean the value is impossible in practical language. It means the model gives probability to intervals such as
not to the infinitely precise point .
How to read this figure. A zero-width point contributes zero area. Therefore open and closed versions of the same finite interval have equal probabilities in this model.
Endpoint Conventions
Because exact-point probabilities are zero, endpoint inclusion does not matter for continuous random variables.
For example,
and
This is different from discrete random variables. In a discrete model, adding or removing a possible value can change the probability. In a continuous model, adding or removing finitely many endpoints does not change area.
Cumulative Distribution Function
The cumulative distribution function, or cdf, is
It measures probability accumulated up to .
If the pdf is , then
If the random variable is defined only from a lower endpoint , this is often written as
for values of inside the domain.
The cdf has four universal properties for an absolutely continuous model:
- is non-decreasing;
- is continuous;
- ;
- as and as .
If the support has a finite lower endpoint, at and below the region before probability begins. If it has a finite upper endpoint , then for .
How to read this figure. Moving right accumulates more area, so cannot decrease. The displayed CDF is matched exactly to the displayed pdf; other pdfs produce other non-decreasing CDF shapes, not necessarily a sigmoid.
Using the CDF for Intervals
The cdf collects probability from the left. Therefore
The subtraction removes the area accumulated before , leaving only the area between and .
Common translations are:
| Wording | Probability form |
|---|---|
| less than | |
| at most | |
| more than | |
| at least | |
| between and | |
| outside |
For continuous variables, the endpoint versions are equivalent. The important work is identifying the correct interval.
Worked Example: Constant Density
Let
and otherwise.
First check that the total area is :
So is a valid pdf.
Now find
Using area,
This probability is the area of a rectangle of width and height . It is not the density height .
The cdf is
Then
which matches the area calculation.
Worked Example: Non-Uniform Density
Let
and otherwise.
This density is not constant. Values near have greater density than values near , but probability still comes from area, not from height alone.
First check that is a valid pdf:
To build the cdf, accumulate area from the left:
Now find
Using the cdf,
The same answer comes from the area integral:
Also,
even though . The number is a density height, not the probability of the exact point.
Where the CDF is differentiable,
Thus the pdf is the rate at which cumulative probability grows. In this example, on , exactly recovering the pdf.
Worked Example: Finding a Normalising Constant
Suppose
and otherwise. Since on the support, non-negativity will hold once . Use total area :
Hence . Therefore
The workflow is: state the support, impose total area , check non-negativity, and only then calculate probabilities.
Quantiles and Inverting the CDF
When the solution is unique, the -quantile satisfies
For example, a median satisfies . Inverse-normal calculator commands apply this same idea to the normal CDF; they return a boundary when a cumulative probability is given.
This example is a useful bridge to the normal distribution. For the normal curve, the pdf is more complicated, so most areas are found with a calculator, but the meaning is the same: interval probability is accumulated area.
Common Pitfalls
| Mistake | Correction |
|---|---|
| Reading as | is density, not probability. |
| Forgetting to check total area | A valid pdf must integrate to . |
| Worrying about open or closed endpoints | Endpoints do not affect continuous probabilities. |
| Using for an interval | Use . |
| Ignoring the domain | Outside the domain, the density may be and the cdf may be constant. |
Revision Checklist
- Can you explain why probability is area in a continuous model?
- Can you state the two validity conditions for a pdf?
- Can you explain why a density value may exceed ?
- Can you explain why ?
- Can you use endpoint equivalence correctly?
- Can you define ?
- Can you use to find an interval probability?
- Can you build a simple cdf by integrating a pdf over the correct domain?
- Can you interpret where the CDF is differentiable?
- Can you use total area to determine an unknown density constant?
- Can you interpret a quantile as a solution of ?
- Can you explain why calculator normal-cdf values are still accumulated areas?