Description Usage Arguments Value Examples
Given a sample of data from a normal distribution with known variance / standard deviation, and a normal prior for the expectation of the data, compute the parameters of the posterior for the expectation.
1 | post.conj.norm.norm(z, known.sd, prior.mean, prior.sd)
|
z |
A numeric vector (assumed to be drawn from a normal distribution with known variance / standard deviation) |
known.sd |
The known standard deviation of the data distribution. |
prior.mean |
The expectation of the normal prior. |
prior.sd |
The standard devation of the normal prior. |
A list containing the mean and standard deviation of the conjugate posterior distribution.
1 | post.conj.norm.norm(rnorm(100), 1, 2, 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.