Simulation I: Generating Random Variables (Introduction to Statistical Computing)

October 25, 2012
By

(This article was originally published at Three-Toed Sloth , and syndicated at StatsBlogs.)

Lecture 15: Why simulate? Generating random variables as first step. The built-in R commands: rnorm, runif, etc.; sample. Transforming uniformly-distributed random variables into other distributions: the quantile trick; the rejection method; illustration of the rejection method. Understanding pseudo-random number generators: irrational rotations; the Arnold cat map as a toy example of an unstable dynamical system; illustrations of the Arnold cat map. Controlling the random number seed.

Readings: Matloff, chapter 8; The R Cookbook, chapter 8

Introduction to Statistical Computing



Please comment on the article here: Three-Toed Sloth

Subscribe

Email:

  Subscribe