Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • FX(x), X∼N(0,1)=erf⁡(2x2)+12\displaystyle F_{X}(x),\ X \sim \mathcal{N}(0, 1) = \frac{\operatorname{erf}\left(\frac{\sqrt{2} x}{2}\right)+1}{2}
    cdf(normal_distribution(0, 1), x)

    In the solver, cdf(normal_distribution(0, 1), x) gives (erf(sqrt(2)*x/2) + 1)/2.

    Open in the solver
  • FX(2), X∼B(5,13)=6481\displaystyle F_{X}(2),\ X \sim \mathrm{B}\left(5, \frac{1}{3}\right) = \frac{64}{81}
    cdf(binomial_distribution(5, 1/3), 2)

    In the solver, cdf(binomial_distribution(5, 1/3), 2) gives 64/81.

    Open in the solver

Functions its examples use

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