11.07.2015 Views

statisticalrethinkin..

statisticalrethinkin..

statisticalrethinkin..

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

62 3. SAMPLING THE IMAGINARYDensity0.0 0.5 1.0 1.5 2.0 2.50.0 0.2 0.4 0.6 0.8 1.0proportion water (p)FIGURE 3.1. Sampling parameter values from the posterior distribution.Le: 10-thousand samples from the posterior implied by the globe tossingdata and model. Right: e density of samples (vertical) at each parametervalue (horizontal).3.1. Sampling from a grid-approximate posteriorBefore beginning to work with samples, we need to generate them. Here’s a reminderfor how to compute the posterior for the globe tossing model, using grid approximation:R code3.2p_grid

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!