Code and Results for Chapter 4:

Introduction:
These are results and code for the problems and examples found in Chapter 4 of this famous book.

Various Figures and Problems:
  1. prob_4_2.m (random variables via discrete accpetance rejection)
  2. disc_acc_rej.m (implements discrete acceptance rejection)
  3. prob_4_3.m (random variables via inverse transformation)
  4. disc_inv_tranf.m (random variables via discrete inverse transformation)
  5. prob_4_7.m (run Rubinstein's acceptance rejection method)
  6. rubinstein_beta.m (Rubinstein's procedure for generating beta random variables)
  7. prob_4_8.m (acceptance rejection for beta random variables)
  8. prob_4_9.m (plot a histogram of beta random variables)

John Weatherwax
Last modified: Sun May 15 08:46:34 EDT 2005