1. Fundamental Theorem of Calculus (FTC)
The Fundamental Theorem of Calculus connects differentiation and integration. It has two parts:
- Part 1: If
F(x)is the antiderivative off(x), then: - Part 2: The definite integral of
f(x)fromatobis given by:
F'(x) = f(x)
∫[a to b] f(x) dx = F(b) − F(a)
These relationships show that integration and differentiation are inverse operations.
2. Relationship Between FTC and CDFs
The Fundamental Theorem of Calculus directly applies to cumulative distribution functions (CDFs) and probability density functions (PDFs). Here's how:
- The Cumulative Distribution Function (CDF),
F(x), describes the probability that a random variableXis less than or equal tox: - The Probability Density Function (PDF),
f(x), represents the rate of change of the CDF:
F(x) = P(X ≤ x) = ∫[-∞ to x] f(t) dt
f(x) = F'(x)
3. Intuition: Connecting Area and Probability
The CDF accumulates probability up to a certain value x, analogous to finding the area under a curve. The PDF, being the derivative of the CDF, tells us how "fast" the probability is accumulating at x.
For example:
- If the PDF
f(x)is high at a point, the CDFF(x)increases rapidly around that point. - If the PDF is low, the CDF grows more slowly.
4. Example: Standard Normal Distribution
Consider the standard normal distribution:
- PDF:
f(x) = (1 / √(2π)) e^(-x² / 2) - CDF:
F(x) = ∫[-∞ to x] f(t) dt
The CDF at x = 0 gives the probability that X is less than or equal to 0, which is 0.5. The PDF at x = 0 is the maximum value of the density, reflecting the peak of the normal curve.
5. Applications of the Relationship
The connection between CDFs and PDFs has many applications:
- Statistics: Computing probabilities, quantiles, and expectations.
- Machine Learning: Likelihood estimation and generative models.
- Finance: Modeling asset prices and risk measures.
6. Key Insights
- The CDF
F(x)represents cumulative probability, and the PDFf(x)represents the density of the random variable. - By the Fundamental Theorem of Calculus, the PDF is the derivative of the CDF, and the CDF is the integral of the PDF.
- This duality underpins much of probability theory and its practical applications.
Exercise
Assignment:
Exercise: Generate realizations from a discrete univariate probability distribution with arbitrary probabilities. Graphically show the convergence of the empirical distribution to the theoretical distribution as the sample size increases. Compute also, during the generation, the mean and variance using recursive methods (e.g., Knuth's/Welford's algorithms) and compare these results with the theoretical mean and variance, discussing the relationship.
You can find the code for this exercise here, and the online result can be accessed here.