Probability theory

Classical probability
P(A) = m / n

Opposite probability (complement rule)
P(Ā) = 1 - P(A)

Probability of sum of mutually exclusive events
P(A+B) =  P(A) + P(B)

Probability of product of mutually exclusive events
P(A * B) =  P(A) * P(B)

Conditional probability
P(A_NUO_B) = P(AB) / P(B)

Bernoulli binomial probability formula
P_n(k) = C(k, n) * p^k * q^(n-k)

Mathematical expectation
EX = x1*p1 + x2*p2 + x3*p3

Dispersion (variance)
DX = (x1 - EX)^2 * p1 +  (x2 - EX)^2 * p2 + (x3 - EX)^2 * p3

Dispersion (variance)
DX = (x1^2 * p1 + x2^2 * p2 + x3^2 * p3) - (EX)^2

Standard Deviation
σ = saknis(DX)