normal_standard_update_mean: Update the mean and sd of nromal kernel with normal prior on...

Description Usage Arguments Value Examples

Description

Update the mean and sd of nromal kernel with normal prior on mean.

Usage

1
normal_standard_update_mean(x_bar, sigma, n, mu_0, sigma_0)

Arguments

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

Value

: a random draw from the posterior normal distribution.

Examples

1
normal_standard_update(1, 1, n, 1, 1)

jesscyzhao/cyrutil documentation built on May 17, 2019, 2:15 a.m.