musigma2 loads in five R objects:
par.sim is a data
frame and contains the parameter values of the simulated data sets,
stat is a data frame and contains the simulated summary
stat.obs is a data frame and contains the observed
post.sigma2 are data
frames and contain the true posterior distributions for the two
parameters of interest, μ and σ^2, respectively.
par.sim data frame contains the following columns:
The population mean.
The population variance.
stat.obs data frames contain the
The sample mean.
The logarithm of the sample variance.
post.sigma2 data frames contain the
the coordinates of the points where the density is estimated.
the posterior density values.
The prior of σ^2 is an inverse χ^2 distribution with one degree of freedom. The prior of μ is a normal distribution with variance of σ^2. For this simple example, the closed form of the posterior distribution is available.
The observed statistics are the mean and variance of the sepal of
Iris setosa, estimated from part of the
The data were collected by Anderson, Edgar.
Anderson, E. (1935). The irises of the Gaspe Peninsula, Bulletin of the American Iris Society, 59, 2-5.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.