Primary Tool
Expected Value Calculator
The expected value calculator takes the full probability table and reports , , and in one step. That makes it easy to check each formula and to try variations by changing a single weight.
Problem
Let be the number of heads in three fair coin flips. Compute , , and .
Three coin flips produce a binomial distribution with and . Every outcome has a known probability from the binomial formula, which makes this a clean worked example for the general definitions.
The distribution table
List each outcome and its probability before computing anything.
- •: all tails.
- •: one head, two tails.
- •: two heads, one tail.
- •: all heads.
Step-by-step walkthrough
Work through expected value first, then use a second weighted sum to reach variance.
- 1Compute .
- 2Compute .
- 3Apply the shortcut formula: .
- 4Take the square root to get the standard deviation: .
- 5Confirm with the binomial formula: and . Both match.
What variance is measuring
Variance says the outcomes are, on average, squared units away from the mean. Standard deviation puts that in the original units: a typical outcome lands less than one head away from the mean of .
For a three-flip experiment that matches intuition: most outcomes cluster around one or two heads, and exact zero or three heads each occur only of the time.
Common Pitfall
The formula is a computational shortcut for . Both definitions give the same number, but the shortcut avoids computing each squared deviation by hand.
Try a Variation
Change the coin to one that lands heads with probability instead of . Update the probability table and recompute and . Do the results still match and ?
Related Pages
Keep moving through the cluster
Perform a one-sample hypothesis test and interpret the -value
A one-sample hypothesis test compares an observed sample mean with a claimed population mean. The test statistic measures how far the sample sits from the null value after accounting for sample variability.
Open worked example →
What a -value means and what it does not mean
A -value is a measure of how surprising the observed test statistic would be if the null hypothesis were true. It is not the probability that the null hypothesis itself is true.
Open explanation →
Build and interpret a confidence interval for a population mean
A confidence interval turns a sample mean into a range of plausible values for the population mean. The width of that range depends on the sample size, the variability in the data, and the chosen confidence level.
Open worked example →