Description Usage Arguments Value Examples
Update the mean and sd of nromal kernel with normal prior on mean.
1 | normal_standard_update_mean(x_bar, sigma, n, mu_0, sigma_0)
|
x_bar: |
the mean of data sample |
sigma: |
the sd of sampling distribution, should be known |
n: |
number of data points |
mu_0: |
the mean of the normal prior |
sigma_0: |
the sd of the normal prior |
: a random draw from the posterior normal distribution.
1 | normal_standard_update(1, 1, n, 1, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.