Basic Prerequisites: 02 · Probability Spaces & Filtrations.
1. Intuition & Practical Objective
A random variable is a function on outcomes, and its distribution is the probability it puts on each value range - two random variables can share a law while being different functions, and one variable can have two laws under two measures (Shreve II Def 1.2.3). "" is just the probability-weighted average of over the law of , computed by the standard machine (indicator simple nonnegative general) or, when a density exists, as .
The practical objective: understand the three linked faces of a distribution - (1) the law and its density; (2) expectation as an integral against the law, computable by inverse transform for simulation; (3) independence and the crucial fact that uncorrelated independent outside joint normality. This is the vocabulary every simulation (Glasserman Ch 2) and every moment/risk computation uses.
2. Mathematical Ground Truth & Derivations
2.1 Random variables, laws, densities (Shreve II Def 1.2.3; Shreve I Ch 11)
is a random variable if for every Borel . Its law (distribution measure) is
has a density iff , i.e. iff (absolutely continuous w.r.t. Lebesgue); is the Radon–Nikodym derivative (Shreve I Ch 11). Two random variables sharing a law are different objects - “the RV and its distribution are distinct” (Shreve II Def 1.2.3).
2.2 Expectation via the standard machine (Shreve II §1.4; Shreve I Thm 3.32)
The construction is inductive: indicator simple nonnegative general (monotone convergence for the nonnegative step), and the limit theorems (MCT, Fatou, DCT) make passing limits through expectations legal.
2.3 Inverse-transform sampling (Glasserman §2.2, eq. 2.13–2.14)
This needs exactly one uniform per sample (minimal dimension - key for QMC) and gives for the exponential, for the arcsine, etc. (Glasserman eqs. 2.13–2.14, p-070).
2.4 Independence: sets, -algebras, variables (Shreve II §2.2)
Independent sets: ; random variables independent if are. Criterion (Shreve II Thm 2.2.7(vi)): joint cdf / joint MGF factors. Uncorrelated independent: with standard normal and equally, is standard normal, (uncorrelated), yet are dependent and have no joint density (Shreve II §2.2 Example). Only jointly normal variables make zero covariance imply independence (components independent iff covariance matrix diagonal, Shreve I §11.8).
3. Computational Implementation - inverse transform, expectation, and the independence trap
Simulate an exponential by inverse transform and check its mean and survival function; then exhibit the classic uncorrelated-but-dependent pair . Stdlib only.
4. Failure Modes & First-Principles Breakdowns
- Confusing the random variable with its distribution. Two RVs can share a law (e.g. and for symmetric ) yet be different functions; one RV can have two laws under two measures. “Is normal?” is a statement about its law, never about the underlying map (Shreve II Def 1.2.3).
- Uncorrelated independent (the Gaussian-only shortcut). It holds for jointly normal variables and fails almost everywhere else - the example has zero covariance yet no joint density and clear dependence (Shreve II §2.2). This silently breaks factor/portfolio independence assumptions.
- Sampling a distribution without a valid generator. Acceptance–rejection consumes an unbounded number of uniforms per sample, is not monotone in its inputs, and is incompatible with quasi-Monte Carlo; inverse transform is one-uniform-per-sample and monotone (Glasserman §2.2). Using an -unstable sampler quietly invalidates the downstream estimator.
- Dividing by when . The elementary conditional formula collapses on zero-probability conditioning; that is the road into the measure-theoretic conditional expectation (04 · Conditional Expectation).
5. References
- Shreve, Stochastic Calculus for Finance II
- Shreve, Stochastic Calculus for Finance I
- Glasserman, Monte Carlo Methods in Financial Engineering
- Casella & Berger, Statistical Inference
6. Connected Graph Bridges
- Back: 02 · Probability Spaces & Filtrations · Index Hub
- Forward: 04 · Conditional Expectation · 05 · Martingales
- Applications: VaR & Expected Shortfall (tail distributions) · Stochastic Calculus (normal increments, lognormal prices)