Step-by-step math solver
Mean, variance and standard deviation
Enter a data set to get the mean, median, mode, variance and standard deviation, both the population versions (divide by n) and the sample versions (divide by n − 1).
Free, no sign-in. The solver runs in your browser and does not send your problem to the server.
Part of the course: Probability and statistics
Method
- Mean: x̄ = (sum of all values) ÷ (number of values n).
- Median: sort the data and take the middle value; if n is even, average the two middle values. Mode: the value that appears most often.
- Population variance σ² is the sum of (xᵢ − x̄)² divided by n; sample variance s² divides by n − 1.
- The standard deviation is the square root of the variance.
- Start with words such as mean, median, variance or standard deviation, then of and the data separated by commas.
Worked examples
variance of 2, 4, 4, 4, 5, 5, 7, 9
Sort the 8 values in increasing order
2; 4; 4; 4; 5; 5; 7; 9
n = 8
Mean: the sum of the values divided by how many there are
x̄ = (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9)/8 = 40/8 = 5
Median: the mean of the two middle values (positions 4 and 5)
Me = (4 + 5)/2 = 9/2
Mode: the value that occurs most often (3 times)
Mo = 4
Sum of squared deviations from the mean
Σ(xi − x̄)² = (2 − 5)² + (4 − 5)² + (4 − 5)² + (4 − 5)² + (5 − 5)² + (5 − 5)² + (7 − 5)² + (9 − 5)² = 32
Variance
Divide by n (variance of the data set):
σ² = 32/8 = 4
Divide by n − 1 (corrected sample variance):
s² = 32/7 = 32/7
Standard deviation: the square root of the variance
σ = √4 = 2
s = √(32/7) ≈ 2.13809
Result
x̄ = 5
Me = 9/2
Mo = 4
σ² = 4
s² = 32/7
σ = √4 = 2
s = √(32/7) ≈ 2.13809
Open in the solver
mean, median of 6, 8, 10, 12, 15
Sort the 5 values in increasing order
6; 8; 10; 12; 15
n = 5
Mean: the sum of the values divided by how many there are
x̄ = (6 + 8 + 10 + 12 + 15)/5 = 51/5
Median: the middle value (position 3)
Me = 10
Mode: the value that occurs most often (1 times)
Every value occurs once, so the data set has no mode.
Sum of squared deviations from the mean
Σ(xi − x̄)² = (6 − 51/5)² + (8 − 51/5)² + (10 − 51/5)² + (12 − 51/5)² + (15 − 51/5)² = 244/5
Variance
Divide by n (variance of the data set):
σ² = (244/5)/5 = 244/25
Divide by n − 1 (corrected sample variance):
s² = (244/5)/4 = 61/5
Standard deviation: the square root of the variance
σ = √(244/25) ≈ 3.1241
s = √(61/5) ≈ 3.49285
Result
x̄ = 51/5
Me = 10
σ² = 244/25
s² = 61/5
σ = √(244/25) ≈ 3.1241
s = √(61/5) ≈ 3.49285
Open in the solver
Practice problems
Work it out on paper first, then tap to see the step-by-step solution.
- standard deviation of 3, 7, 9, 3, 10, 7See solution
- mean, variance of 6, 8, 8, 11, 9See solution
- mean, variance of 14, 11, 11, 14, 8, 6, 8See solution
Not supported yet
- Frequency tables (values with frequencies) are not accepted yet; list every value instead (up to 60 values).
For these, open Chat with the Tutor skill from the solver (sign-in required, uses credit like a normal chat).