# Normal distribution (normal_distribution)

The normal distribution with mean mu and standard deviation sigma.

## How to write it

### normal_distribution(mu, sigma)

**mu**

The mean. Takes an expression.

**sigma**

The standard deviation, above 0. Takes an expression.

## Examples

- $\displaystyle \operatorname{normal\_distribution}(0, 1)$

  `normal_distribution(0, 1)`[Open in the solver](https://hilberon.com/?q=normal_distribution%280%2C%201%29)
- $\displaystyle P(x > 1),\ x \sim \mathcal{N}(0, 1) = \frac{1-\operatorname{erf}\left(\frac{\sqrt{2}}{2}\right)}{2}$

  `probability(x > 1, distributed(x, normal_distribution(0, 1)))`

  In the solver, `probability(x > 1, distributed(x, normal_distribution(0, 1)))` gives `(1 - erf(sqrt(2)/2))/2`.

  [Open in the solver](https://hilberon.com/?q=probability%28x%20%3E%201%2C%20distributed%28x%2C%20normal_distribution%280%2C%201%29%29%29)

## Functions its examples use

- [probability](https://hilberon.com/library/probability)

  The probability that a condition holds for a variable with a distribution.
- [distributed](https://hilberon.com/library/distributed)

  A variable and the distribution it follows, as probability and expectation read it.

## Related functions

- [poisson_distribution](https://hilberon.com/library/poisson_distribution)

  The number of events in a period when they come at an average rate lambda.
- [stationary_distribution](https://hilberon.com/library/stationary_distribution)

  The law a process settles into over time, when it has one.
- [uniform_distribution](https://hilberon.com/library/uniform_distribution)

  The continuous distribution that is equally likely anywhere between a and b.
- [weibull_distribution](https://hilberon.com/library/weibull_distribution)

  The lifetime of a unit whose chance of surviving to time x is e^(-(x/scale)^shape).
- [exponential_distribution](https://hilberon.com/library/exponential_distribution)

  The waiting time for events that come at rate lambda.
- [binomial_distribution](https://hilberon.com/library/binomial_distribution)

  The number of successes in n independent trials that each succeed with chance p.

---
Source: https://hilberon.com/library/normal_distribution
