Math for Causal Inference
All simulators

Distribution Explorer & DGP Sampler

Seven distributions, their exact shape, moments, and a histogram of simulated draws.

Day 4: Common Distributions & the Data-Generating Process
00.10.20.30246810xprobability
simulated drawsexact distribution
Mean: theory / simulated
3.00 / 3.03
Variance: theory / simulated
2.10 / 2.22

Bars are 3,000 simulated draws; the line or dots are the exact distribution. Compare the theoretical and simulated moments.