Statistics Calculator
Compute mean, median, mode, variance, and standard deviation of a dataset.
About the Statistics Calculator
Calculates the key descriptive statistics for a dataset: count, sum, mean, median, mode, range, population variance and standard deviation.
$$ \sigma = \sqrt{\frac{\sum (x_i-\bar{x})^2}{n}} $$
How to use this calculator
- Enter your data values, usually separated by commas or spaces.
- Choose whether you want mean, median, mode, variance, or standard deviation.
- Click calculate to see the results instantly.
- Use the step-by-step output to check how each value was found.
The formula explained
The formula \( \sigma = \sqrt{\frac{\sum (x_i-\bar{x})^2}{n}} \) computes the population standard deviation, which measures the typical distance of the data values from the mean. A larger standard deviation means the data are more spread out.
- \(x_i\) = the i-th data value
- \(\bar{x}\) = the mean, or average, of the data set
- n = the number of values in the data set
- \(\sigma\) = the population standard deviation
Step by step method
- Find the mean by adding all values and dividing by the number of values.
- Subtract the mean from each value, square each difference, and add the squared differences.
- Divide by n for population variance, then take the square root to get standard deviation.
Worked example
Problem. Find the mean, median, mode, variance, and standard deviation of the data set 2, 4, 4, 6, 8.
- Mean: \( (2+4+4+6+8)/5 = 24/5 = 4.8 \). Median: the middle value is 4.
- Mode: 4 appears twice, more than any other value.
- Population variance: \( [(2-4.8)^2+(4-4.8)^2+(4-4.8)^2+(6-4.8)^2+(8-4.8)^2]/5 = (7.84+0.64+0.64+1.44+10.24)/5 = 20.8/5 = 4.16 \). Standard deviation: \( \sqrt{4.16} \approx 2.04 \).
Answer. Mean = 4.8, median = 4, mode = 4, variance = 4.16, standard deviation \( \approx 2.04 \).
Tips and common mistakes
- Check whether you need population variance and standard deviation, which divide by n, or sample versions, which divide by n-1.
- If your data have no repeated values, there may be no mode.
Frequently asked questions
Is this population or sample std dev?+
This reports the population standard deviation (divide by n).
What is the mode?+
The most frequently occurring value; there can be more than one.
More Mathematics Tools
Explore related calculators in this category
Absolute Value Calculator
Calculate the absolute value of any number. Use this free calculator for fast, accurate answers, complete with the formula and a worked example.
Absolute Value Equation Solver
Solve equations of the form |ax + b| = c.
Adding Fractions Calculator
Add two fractions with step-by-step simplification.
One-Way ANOVA Calculator
Perform one-way ANOVA on multiple groups.
You Might Also Like
Popular tools from other categories
AC to DC Converter Calculator
Convert AC voltage to DC voltage for different rectifier configurations. Free online calculator with instant, step-by-step results.
Acid-Base Titration Calculator
Calculate concentration from titration data. Get quick, accurate results with this free online calculator, including formulas and worked examples.
ABV Calculator
Calculate alcohol by volume from original and final gravity. Free calculator with instant calculations, the underlying formula, and an easy-to-follow example.
Amortization Schedule Calculator - Free Online
Free Generate a complete amortization schedule. Step-by-step solutions and formulas included. Free, accurate results with step-by-step explanations.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.