Code for Chapter 2 (Random Variable Generation):
- ex_2_2.R (random draws from a logistic/Cauchy)
- ex_2_3.R (Central Limit Theorem and Box-Muller to draw normal RV's)
- ex_2_8.R (accept-reject with double exponential)
- ex_2_10.R (the RANDU data set)
- ex_2_11.R (generating binomial RV's)
- ex_2_12.R (the inverse transformation method to generate beta RV's)
- ex_2_13.R (the inverse transformation method to generate Pareto RV's)
- ex_2_14.R (discrete RV's using the inverse transformation)
- ex_2_15.R (the Poisson distribution from the exponential)
- ex_2_16.R (another way to generate Beta RV's)
- ex_2_18.R (computing the p.d.f. normalization from the accept-reject algorithm)
- ex_2_20.R (examples using the accept-reject algorithm)
- ex_2_22.R (the truncated normal distribution with the accept-reject algorithm)
- ex_2_23.R (the accept-reject algorithm to get samples from the posterior)
John Weatherwax
Last modified: Sun May 15 03:46:24 EDT 2005