The probability calculator allows you to calculate probabilities using the simple script language. Built-in functions:
Event(a) - random variable with values 1 (with probability = a) and 0 (with probability = (1-a)). For example: coin = Event(0.5)
Uniform(a, b) - random variable with integer values: a, a+1, a+2, ... b (with the same probability = 1/(b-a+1)). For example: dice = Uniform(1, 6)
Sum(N, r) - sum of N random variables r. Note: you can easily add few random values using symbol "+" (for example, r1 = r + r) or using function Sum but you can't multiply random values to get the same result, because (r+r) is not equal to (2*r) if r is random value.
Use + - * / as usual
Use < > = <> to calculate probabilities
As result you will get all non-random values. For example, you have a dice: dice = Uniform(1, 6)
What is the probability to throw dice and get a value more than 3? Let's calculate it:
res = (dice > 3)
where res is the constant value (0.5)