Calculates the likelihood of \(X\) following a normal distribution.

normL(mu, sigma, x)

Arguments

mu

Numeric. Location parameter mean \(\mu\).

sigma

Numeric. Positive number. Scale parameter standard deviation \(\sigma = \sqrt{\sigma^2}\).

x

Numeric vector. Values of the random variable \(X\).

Details

The likelihood function for the normal (or Gaussian or Gauss or Laplace–Gauss) distribution is given by $$ \mathcal{L} \left( \mu, \sigma^2 \mid x \right) = \prod_{i = 1}^{n} \left\{ \frac{1}{\sigma \sqrt{2 \pi}} \exp \left[ - \frac{1}{2} \left( \frac{x_i - \mu}{\sigma} \right)^2 \right] \right\} %(\#eq:dist-normL-1) $$ or $$ \mathcal{L} \left( \mu, \sigma^2 \mid x \right) = \prod_{i = 1}^{n} \left\{ \frac{1}{\sqrt{2 \pi \sigma^2}} \exp \left[ - \frac{ \left( x_i - \mu \right)^2} {2 \sigma^2} \right] \right\} \\ = \left( \frac{1}{\sqrt{2 \pi \sigma^2}} \right)^n \exp \left[ - \frac{1}{2 \sigma^2} \sum_{i = 1}^{n} \left( x_i - \mu \right)^2 \right] %(\#eq:dist-normL-2) $$ with independent and identically distributed sample data \(x \in \mathbf{R}\), \(\mu\) is the location parameter mean being estimated \(\left( \mu \in \mathbf{R} \right)\), and \(\sigma^2\) is the scale parameter variance being estimated \(\left( \sigma^2 > 0 \right)\).

References

Wikipedia: Normal Distribution

Wikipedia: IID

Wikipedia: Likelihood Function

See also

Other normal likelihood functions: norm2ll(), normll(), normobj(), normpdf()