cdf function
The probability that a variable with a distribution is at most a value.
How to write it
cdf(distribution, x)
- distribution
- A distribution such as normal_distribution(0, 1). Takes an expression.
- x
- The value. Takes an expression.
Examples
cdf(normal_distribution(0, 1), x)In the solver,
Open in the solvercdf(normal_distribution(0, 1), x)gives(erf(sqrt(2)*x/2) + 1)/2.cdf(binomial_distribution(5, 1/3), 2)In the solver,
Open in the solvercdf(binomial_distribution(5, 1/3), 2)gives64/81.
Functions its examples use
- normal_distribution
The normal distribution with mean mu and standard deviation sigma.
- binomial_distribution
The number of successes in n independent trials that each succeed with chance p.
Related functions
- correlation
The correlation coefficient of two lists of the same length.
- covariance
The sample covariance of two lists of the same length.
- affine_sde_moments
The mean and variance at time t of dX = (a + b X) dt + sigma dW, started at x0.
- cvar
The conditional value at risk of a loss: its expected value over the worst share 1 - level.
- wiener_process
Brownian motion with drift mu and noise sigma, started at 0.
- distributed
A variable and the distribution it follows, as probability and expectation read it.