What a distribution table is
A discrete random variable X takes separate values x₁, x₂, …, xₙ with probabilities p₁, p₂, …, pₙ. The two-row table of values and probabilities is the distribution table. All probabilities are non-negative and add up to one: Σpᵢ = 1. This condition gives a single missing probability: pₖ = 1 − Σ(the others).
Main characteristics
- Expected value M(X) = Σxᵢ·pᵢ — the average value over many trials.
- Variance D(X) = Σ(xᵢ − M)²·pᵢ — the spread around the mean. A handy formula: D(X) = M(X²) − (M(X))², where M(X²) = Σxᵢ²·pᵢ. The calculator uses both ways and they agree.
- Standard deviation σ(X) = √D(X) — the spread in the units of the variable itself.
- Mode Mo(X) — the value with the highest probability (there can be several).
- Median Me(X) — the first xᵢ where the cumulative probability reaches 0.5.
Cumulative distribution function
In Russian textbooks F(x) = P(X < x). For a discrete variable it is a step function: 0 for x ≤ x₁, then a jump of pᵢ at every xᵢ, and 1 for x > xₙ. On the graph the filled dot is the value at xᵢ itself (below the jump), the open circle is the level right after the jump. The probability of an interval: P(a ≤ X < b) = F(b) − F(a).
Standard laws
Binomial: successes in n independent trials, M = np, D = npq. Poisson: rare events, M = D = λ. Geometric: the number of the first success, M = 1/p, D = q/p². The “Table from parameters” buttons build such a series in the table, ready to edit.
Example
X takes the values 0, 1, 2, 3 with probabilities 0.1, 0.3, p₃, 0.2. From Σp = 1: p₃ = 1 − 0.6 = 0.4. M(X) = 0·0.1 + 1·0.3 + 2·0.4 + 3·0.2 = 1.7. M(X²) = 0.3 + 1.6 + 1.8 = 3.7, D(X) = 3.7 − 1.7² = 0.81, σ = 0.9. The mode is 2, the median is 2. P(1 ≤ X < 3) = 0.3 + 0.4 = 0.7.