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
probability(x > 1, distributed(x, normal_distribution(0, 1)))In the solver,
Open in the solverprobability(x > 1, distributed(x, normal_distribution(0, 1)))gives(1 - erf(sqrt(2)/2))/2.
Functions its examples use
- probability
The probability that a condition holds for a variable with a distribution.
- normal_distribution
The normal distribution with mean mu and standard deviation sigma.
Related functions
- expectation
The expected value of an expression of a variable with a distribution or a process.
- cvar
The conditional value at risk of a loss: its expected value over the worst share 1 - level.
- exponential_distribution
The waiting time for events that come at rate lambda.
- covariance
The sample covariance of two lists of the same length.
- fit
The least-squares fit of a combination of functions through points.
- correlation
The correlation coefficient of two lists of the same length.