# distributed function

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

## How to write it

### distributed(x, dist)

**x**

The random variable. Takes a variable.

**dist**

Its distribution, such as normal_distribution(0, 1). Takes an expression.

## Examples

- $\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.
- [normal_distribution](https://hilberon.com/library/normal_distribution)

  The normal distribution with mean mu and standard deviation sigma.

## Related functions

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

  The expected value of an expression of a variable with a distribution or a process.
- [cvar](https://hilberon.com/library/cvar)

  The conditional value at risk of a loss: its expected value over the worst share 1 - level.
- [exponential_distribution](https://hilberon.com/library/exponential_distribution)

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

  The sample covariance of two lists of the same length.
- [fit](https://hilberon.com/library/fit)

  The least-squares fit of a combination of functions through points.
- [correlation](https://hilberon.com/library/correlation)

  The correlation coefficient of two lists of the same length.

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