Probability Table
| # | Value (x) | Probability (p) | Remove |
|---|
Results
Example Data
Discrete distribution (PMF)
| x | p |
|---|---|
| 0 | 0.10 |
| 1 | 0.20 |
| 2 | 0.40 |
| 3 | 0.30 |
Raw data with weights
| x | w |
|---|---|
| 2 | 3 |
| 5 | 4 |
| 7 | 2 |
Formulas Used
For a discrete distribution with values $x_i$ and probabilities $p_i$: $$E[X] = \sum_i x_i p_i,\quad E[X^2] = \sum_i x_i^2 p_i,\quad \mathrm{Var}(X) = E[X^2] - (E[X])^2.$$
For raw data with values $x_i$ and weights $w_i$ (treated as frequencies): $$\mu = \frac{\sum_i w_i x_i}{\sum_i w_i},\quad E[X^2] = \frac{\sum_i w_i x_i^2}{\sum_i w_i}.$$ Population variance: $\sigma^2 = E[X^2] - \mu^2$. Sample variance (frequency-based): $$s^2 = \frac{\sum_i w_i (x_i-\mu)^2}{\sum_i w_i - 1}\quad \text{when } \sum_i w_i > 1.$$
All computations are performed in your browser using floating-point arithmetic. Small rounding differences can occur.
How to Use
- Select the mode: probability table or raw data with weights.
- Enter rows. Use “Add row” for more entries as needed.
- Toggle “percentages” if probabilities are given from 0–100.
- Keep “normalize” on to scale probabilities that don’t sum to 1.
- Choose population or sample variance for the variance calculation.
- Review results. Resolve warnings about invalid or inconsistent inputs.
- Export your inputs and results as CSV or PDF when finished.
- Optionally view coefficient of variation and a mean confidence interval.
FAQs
Reference: Means and Variances of Common Distributions
| Distribution | Parameters | E[X] | Var(X) |
|---|---|---|---|
| Bernoulli | p | p | p(1 − p) |
| Binomial | n, p | np | np(1 − p) |
| Geometric* | p | 1/p | (1 − p)/p² |
| Poisson | λ | λ | λ |
| Discrete Uniform | a..b (integers) | (a + b)/2 | ((b − a + 1)² − 1)/12 |
*Geometric assumes support {1, 2, 3, …}: trials until first success.
Worked Examples: Expected Value and Variance
Dataset A (PMF)
| x | p |
|---|---|
| 0 | 0.10 |
| 1 | 0.20 |
| 2 | 0.40 |
| 3 | 0.30 |
- E[X] = 1.9
- E[X²] = 4.5
- Var(X) = 0.89
- Std. Dev. ≈ 0.9434
Dataset B (Weighted)
| x | w |
|---|---|
| 2 | 3 |
| 5 | 4 |
| 7 | 2 |
- μ = 40/9 ≈ 4.444444
- E[X²] = 210/9 ≈ 23.333333
- Population Var ≈ 3.580247
- Sample Var ≈ 4.027778
- Population Std. Dev. ≈ 1.89112
Related Calculators
Markov Chain One-Step Transition Calculatorfind z given the sample proportion and sample size calculatorroulette probability calculatordiscrete probability calculatormean probability calculatorprediction probability calculatorweibull distribution probabilitygamma distribution probabilityhypothesis testing probabilitythree event probabilityImportant Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.