Discrete Distribution Calculator

Input

Output

QueryResult

Help

To create a random variable, use the ~ operator with a random distribution. Random variables MUST start with a capital letter.


X ~ Geometric(.4)
			

The available distributions are: Bernoulli, Binomial, Geometric, HyperGeometric, and Poisson.

To create a constant, use the = operator. Constants MUST start with a lowercase letter.


a = 2 + 2
			

Probilities may be calculated with the P function.


b = P(X > a)
			

To get the calculated data, you may use the query syntax. A query consists of an optional query tag followed by ? followed by the value to be queried.


example one? b
? E(X)
			

The output for these queries is:

QueryResult
example one0.12959999999999994
2.5