Skip to content
Probability, Statistics and Financial Data / Continuous Random Variables

Continuous Random Variables and Probability Density Functions

A stock's overnight return can be 2.3147…%2.3147\ldots\% — a value from a continuum, not a countable list. The Discrete Random Variables topic's PMF, which assigns positive probability to individual values, cannot describe this kind of randomness: for a genuinely continuous quantity, every single point has probability zero, yet the variable is clearly not deterministic. The probability density function (PDF) resolves this: it is not a probability itself, but a "probability per unit length" whose integral over a range gives the probability of landing there. This note builds the PDF from scratch, restates expectation and variance as integrals in place of sums, and introduces the two simplest named continuous distributions — Uniform and Exponential — as the continuous counterparts of the discrete toolkit's Bernoulli-family members.
Learning objectives. By the end of this note you should be able to:
  • state the defining properties of a PDF and verify a candidate function is legitimate;
  • compute event probabilities, expectation, and variance from a PDF, including via the expected value rule;
  • state the PDF, mean, and variance of the Uniform and Exponential distributions;
  • explain precisely why P(X=a)=0\mathbb{P}(X=a)=0 for any single point under a continuous distribution, without this implying X=aX=a is "impossible."

In this lesson

  1. The probability density function
  2. Expectation and variance for continuous random variables
  3. The Uniform distribution
  4. The Exponential distribution

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Probability, Statistics and Financial Data syllabus.