cboettig / nonparametric-bayes

:notebook: Non-parametric Bayesian Inference for Conservation Decisions
http://carlboettiger.info/projects/nonparametric-bayes.html
Creative Commons Zero v1.0 Universal
43 stars 12 forks source link

Add example of replicate draws from the posterior? #25

Open cboettig opened 11 years ago

cboettig commented 11 years ago

To illustrate the point that the GP posterior contains a family of possible curves, might be useful to include a few example draws from the posterior rather than just the mean path and variance.

Need to reconstruct the covariance kernel from bgp first...

cboettig commented 11 years ago

set zcov=TRUE, and the *.s2 and, instead of being vectors, the outputs will be matrices containing the posterior mean covariance matrices at the X and XX locations respectively. It is, unfortunately, not possible to obtain samples from the posterior covariance matrix directly from tgp

cboettig commented 11 years ago

This is now done for Figure 1b, the "goodness-of-fit", e.g.:

Could be done on Figure 1a (state-space) but less interesting, and already cluttered.