The Normal distribution is a continuous probability distribution with two parameters:
- the mean ("average"), usually written \(\mu\) (
mu
) - the standard deviation ("variability"), usually written \({\sigma}\) (
sigma
). (Note: standard deviation is \(\sigma\), variance is \({\sigma}^2\)).
The standard normal distribution is the normal distribution with a mean of zero and a variance of one.
Stan provides the function normal_rng
which takes two real-values arguments mu
and sigma
, (note: sigma
must be positive). This function may only be used in generated quantities block.