---
title: "Continuous Random Variables and Density Functions"
description: "For a continuous variable, probability is area under a density, so any single value has probability zero. The cumulative function and the density are linked by calculus in both directions."
canonical: https://lightmysky.com/learn/mathematics/continuous-random-variables-and-density-functions-mt_jlf4zDTeNm
source: https://lightmysky.com/learn/mathematics/continuous-random-variables-and-density-functions-mt_jlf4zDTeNm.md
retrieved: 2026-09-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Continuous Random Variables and Density Functions

For a continuous variable, probability is area under a density, so any single value has probability zero. The cumulative function and the density are linked by calculus in both directions.

Subject: Mathematics · Area: Probability · Ages 19 to 20
Page: https://lightmysky.com/learn/mathematics/continuous-random-variables-and-density-functions-mt_jlf4zDTeNm

## Ready when they can

- Verify that a function is a valid density and find a probability from it
- Differentiate a cumulative function to recover the density
- Explain why P(X = a) is zero and what that does not mean

## Lesson: Chance as area under a curve

A continuous variable can land anywhere in an interval, so you never ask for the chance of one exact value: P(X = a) = 0. Instead you draw a density curve and read chances as areas under it. A valid density never dips below zero and encloses total area exactly 1. Check X uniform on [0, 4] with height 1/4: positive everywhere, with width 4 times height 1/4 = 1. Both rules pass.

**Example.** Uniform chances are rectangle areas. P(1 < X < 3) on [0, 4] is width 2 times height 1/4 = 0.5. Shaped curves work the same way: f(x) = x over 8 on [0, 4] is valid, and P(X < 2) is the triangle with base 2 and height 2 over 8, so half times 2 times 0.25 = 0.25. Buses spread evenly over 0 to 20 minutes give P(wait between 5 and 10) = 5 times 1 over 20 = 0.25.

Height is not chance. Mia reads f(2) = 1/4 as P(X = 2) = 1/4, but the chance at a single point is zero. Zero does not mean impossible: the bus can arrive at exactly 5 minutes, yet that instant has zero width and zero area. Only intervals carry chance, which is what the zero does and does not mean.

**Tip.** The CDF and the density link both ways: differentiate F to recover f, since F = x over 4 on [0, 4] gives f = 1 over 4. Integrate f over an interval for its chance. Whenever a story says values spread evenly, draw the rectangle first.

**Recap.** Densities turn chance into area: nonnegative curve, total area one, points zero.

## Practice

14 questions on this page, each with its working shown.

## Needs first

- [Discrete Models Beyond the Binomial](https://lightmysky.com/learn/mathematics/discrete-models-beyond-the-binomial-mt_9zc5xYjDg_)
- [The Normal Distribution and Standardised Scores](https://lightmysky.com/learn/mathematics/the-normal-distribution-and-standardised-scores-mt_Cs32DT9KnA)
- [The Fundamental Theorem of Calculus](https://lightmysky.com/learn/mathematics/the-fundamental-theorem-of-calculus-mt_EsS_ovdz2A)

## Opens up

- [Normalisation and Expectation Values](https://lightmysky.com/learn/science/normalisation-and-expectation-values-mt_6Y3DZ8P1qm)
- [Expectation and Variance by Integration](https://lightmysky.com/learn/mathematics/expectation-and-variance-by-integration-mt_kRSaKgp3bs)
