Skip to content
Calculus I / Applications of Integration

Probability via Integration: PDFs, CDFs, and Expected Value

Asset returns, waiting times, volatility estimates, and default probabilities are all continuous random variables: they take values in an interval rather than a finite set. The probability that such a variable XX falls in [a,b][a, b] is the integral P(a≤X≤b)=∫abfX(x) dx\mathbb{P}(a \le X \le b) = \int_a^b f_X(x)\,dx, where fXf_X is the probability density function (PDF). The Fundamental Theorem of Calculus connects the PDF to the cumulative distribution function (CDF): FX(x)=∫−∞xfX(t) dtF_X(x) = \int_{-\infty}^x f_X(t)\,dt, so FX′(x)=fX(x)F_X'(x) = f_X(x). Expected value and variance follow as weighted-average integrals. The normal distribution — the most important distribution in finance — is the first example where the density integrates to 1 via an improper integral that cannot be evaluated in closed form using the tools of this course.
Learning objectives. By the end of this note you should be able to:
  • verify that a function is a valid PDF using f≥0f \ge 0 and ∫−∞∞f dx=1\int_{-\infty}^\infty f\,dx = 1;
  • compute probabilities P(a≤X≤b)\mathbb{P}(a \le X \le b) as definite integrals;
  • relate the CDF FXF_X to the PDF fXf_X via FX′=fXF_X' = f_X;
  • compute the expected value E[X]=∫−∞∞xfX(x) dx\mathbb{E}[X] = \int_{-\infty}^\infty x f_X(x)\,dx;
  • compute the variance and standard deviation;
  • describe the normal and exponential distributions.

In this lesson

  1. Probability density functions
  2. The Cumulative Distribution Function
  3. The Exponential Distribution
  4. Expected Value and Variance
  5. The Normal 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 explore the curriculum.