SLIDE 12 One-parameter models
Monte Carlo sampling
Let θ be the parameter of interest. Suppose we generate S independent, random values of θ from the posterior distribution f(θ |Y), then the empirical distribution of the samples {θ(1), θ(2), . . . , θ(S)} would approximate f(θ |Y), with the approximation improving with increasing S. Example For the beta-binomial model, the rbeta function in R can generate samples, e.g., > post <- rbeta(10000, 6, 4)
11
Beta-Binomial model Last edited September 5, 2017 by Earvin Balderama <ebalderama@luc.edu>