Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • P(x>1), x∼N(0,1)=1−erf⁡(22)2\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

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.

  • 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.