Simulations

Ha Khanh Nguyen (hknguyen)

1. Sampling from a Known Distribution

1.1 Binomial distribution

Why do we need this?

1.2 Geometric Distribution

1.3 Normal Distribution

NOTES: The output of the rvs() functions are random (actually pseudo-random), so each time you run the function call, you will get a different result UNLESS you set the random state (also called seed).


2. Law of Large Numbers


3. Central Limit Theorem

3.1 Binomial Distribution Example

3.2 Unnamed Discrete Distribution Example

X P(X)
0 0.1
1 0.25
2 0.05
3 0.2
4 0.35
5 0.05