Descriptive Statistics Calculator
Paste your data to get the mean, spread, quartiles, outliers and a confidence interval in one place.
Separate with commas, spaces or new lines
What you can type:
- Lists:
4, 7 10; 12is four numbers. Commas, spaces, new lines, tabs and semicolons all separate numbers. - Pasted columns:
4 ↵ 7 ↵ 10pasted as a column from Excel, Google Sheets or a CSV file is three numbers. - Fractions:
7/10, 3/4is 0.7 and 0.75. Write a mixed number such as 1 1/2 as 3/2 or 1.5. - Decimal commas:
1,5; 2,5is 1.5 and 2.5. A comma is read as a decimal comma when the numbers are separated by spaces, semicolons or new lines and none uses a decimal point. - Thousands:
1,200, 1,500is 1200 and 1500. Commas before groups of three digits are thousands separators when the numbers are also separated some other way. - Percent and currency signs:
12%, $40, €3.50is 12, 40 and 3.5. - Exponents and minus signs:
1e3, −4is 1000 and -4. - Anything else:
Score: 4, 7reads 4 and 7 and names “Score:” as ignored. Words, a header row or a date are never dropped silently: the line under the field names everything that was ignored.
↵ is a new line and ⇥ a tab.
Values used: 12, 15, 11, 14, 13, 16, 12, 30, 14, 13
12, 15, 11, 14, 13, 16, 12, 30, 14, 13
Mean 15, 10 values.
Worked example for 12, 15, 11, 14, 13, 16, 12, 30, 14, 13.
Mean 15
- Count
- 10
- Sum
- 150
- Median
- 13.5
- Mode
- 12, 13, 14
- Minimum
- 11
- Maximum
- 30
- Range
- 19
The mean, 15, is a little above the median, 13.5: one large value pulls it up.
Spread
- Std. dev. (sample, s)
- 5.4772
- Std. dev. (population, σ)
- 5.1962
- Variance (sample, s²)
- 30
- Variance (population, σ²)
- 27
- Coefficient of variation
- 36.51%
Use the sample figures when your numbers are a sample from a larger group, and the population figures when they are the whole group. The coefficient of variation is the sample standard deviation divided by the mean, ignoring its sign.
Quartiles and outliers
- Q1 (lower quartile)
- 12
- Q3 (upper quartile)
- 15
- Interquartile range
- 3
- Lower fence
- 7.5
- Upper fence
- 19.5
- Outliers
- 30
Quartiles are the medians of the lower and upper halves of the sorted data, leaving out the middle value when the count is odd (the textbook and TI-84 method; Excel’s QUARTILE.INC interpolates and can differ, sometimes a lot for small data sets). Outliers lie more than 1.5 × IQR below Q1 or above Q3 (Tukey’s fences).
Percentiles
- P5 (5th percentile)
- 11.45
- P10 (10th percentile)
- 11.9
- P25 (25th percentile)
- 12.25
- P50 (50th percentile)
- 13.5
- P75 (75th percentile)
- 14.75
- P90 (90th percentile)
- 17.4
- P95 (95th percentile)
- 23.7
Percentiles are found by linear interpolation between the sorted values, the method of Excel’s PERCENTILE.INC and Google Sheets’ PERCENTILE: the pth percentile lies at position 1 + (n − 1) × p ÷ 100 in the sorted list. P50 is always the median. Q1 and Q3 above are found by halves instead, so they can differ from P25 and P75: here P25 is 12.25 and Q1 is 12, P75 is 14.75 and Q3 is 15. Both are accepted ways to find a quartile.
95% confidence interval for the mean
- 95% confidence interval
- 11.0818 to 18.9182
- Margin of error (95%)
- ± 3.9182
- Standard error of the mean
- 1.7321
- t critical value (95%, df 9)
- 2.2622
The interval is mean ± t × s ÷ √n, with t from Student’s t distribution for n − 1 degrees of freedom at the 95% level. 95% of intervals made this way contain the population mean and any one may miss it; it is not a 95% chance that this one does. Four times the values give about half the width. It assumes the values are a random sample and, for small samples, roughly normal.
Shape
- Skewness
- 2.7386highly skewed to the right
- Excess kurtosis
- 8.0474heavier tails than a normal distribution
Sample skewness and excess kurtosis, the same formulas as Excel’s SKEW and KURT. Skewness within ±0.5 reads as roughly symmetric, from 0.5 to 1 as moderately skewed and beyond 1 as highly skewed; excess kurtosis within ±0.5 reads as close to a normal distribution, above that as heavier tails and below as lighter tails. Both are rough guides for small samples.
Show the steps
- Sort the values: 11, 12, 12, 13, 13, 14, 14, 15, 16, 30
- Mean: 150 ÷ 10 = 15
- Median (middle of the sorted values): 13.5
- Quartiles: Q1 is the median of the lower half, 12; Q3 is the median of the upper half, 15; IQR = 15 − 12 = 3
- Fences: 12 − 1.5 × 3 = 7.5 and 15 + 1.5 × 3 = 19.5; outside them: 30
- Sum of squared deviations from the mean: 270
- Sample variance: 270 ÷ (10 − 1) = 30; standard deviation √30 ≈ 5.47723
- Population variance: 270 ÷ 10 = 27; standard deviation √27 ≈ 5.1962
- Standard error: 5.47723 ÷ √10 ≈ 1.73205
- 95% confidence interval: margin of error = t × standard error = 2.26216 × 1.73205 ≈ 3.9182 (t with 9 degrees of freedom); 15 − 3.9182 = 11.0818 to 15 + 3.9182 = 18.9182
What the figures tell you
- Centre: the mean, median and mode each describe a typical value. When outliers pull the mean away from the median, the median is usually the better summary.
- Spread: the standard deviation is roughly the typical distance of a value from the mean; the variance is its square. The coefficient of variation gives the standard deviation as a percentage of the mean, so you can compare spread between data on different scales.
- Quartiles: Q1, the median and Q3 split the sorted data into four parts with equal numbers of values. The interquartile range (Q3 − Q1) is the spread of the middle half and ignores extreme values.
- Percentiles: the value below which a given share of the data lies. P25, P50 and P75 are found by interpolation, as in Excel’s PERCENTILE.INC, so P25 and P75 can differ a little from Q1 and Q3, which are the medians of the two halves; the result says when they do.
- Confidence interval: how precisely the sample mean estimates the mean of the population the sample came from: mean ± t × s ÷ √n, where t depends on the level (90%, 95% or 99%) and the sample size. Larger samples give narrower intervals.
From 10 values, a sentence under the figures states how far the mean is from the median, measured in sample standard deviations (s): within 0.1 s they are close, beyond 0.3 s the mean is well above or below it, and the large or small values that pull it are named. Two or more modes count as separate peaks, and are named, when each holds at least 10% of the values (and at least 3 of them) and they lie more than 1 s apart. Remove the outliers takes the listed outliers out of the box and says which; Undo puts them back.
Sample or population standard deviation
Both versions of the variance and standard deviation are shown. They differ only in the divisor:
s² = Σ(x − x̄)² ÷ (n − 1) · σ² = Σ(x − μ)² ÷ n
Dividing by n − 1 corrects for the fact that a sample’s values sit closer to their own mean than to the population’s. For large data sets the two are almost the same. The standard deviation calculator shows the working for both as a table, value by value.
Example: quartiles of test scores
A class scores 65, 70, 72, 75, 76, 78, 79, 80, 82, 85, 88, 90, 91, 92 and 95.
- The median is the 8th of the 15 sorted scores: 80.
- Q1 is the median of the seven scores below it (65 to 79): 75. Q3 is the median of the seven above it (82 to 95): 90.
- The interquartile range is 90 − 75 = 15, so the fences are 75 − 22.5 = 52.5 and 90 + 22.5 = 112.5. No score lies outside them, so there are no outliers.
Open this example in the calculator.
Related
For the average alone, use the mean calculator; for the middle value with the sorted list, the median calculator. The statistics guide explains each measure in more depth.
Common questions
Should I use the sample or the population standard deviation?
Use the sample standard deviation (s, dividing by n − 1) when your numbers are a sample from a larger group, such as 30 customers out of thousands. Use the population standard deviation (σ, dividing by n) only when you have every member of the group. When unsure, use the sample figure; it is what Excel’s STDEV.S and most textbooks report.
Why are my quartiles different from Excel’s?
There are several accepted ways to calculate quartiles. This calculator takes the median of the lower and upper halves of the sorted data, the method most textbooks and the TI-84 use. Excel’s QUARTILE.INC interpolates between values, so its quartiles can differ, sometimes by a lot for small or skewed data sets.
How are outliers found?
With Tukey’s fences: any value more than 1.5 × the interquartile range below Q1 or above Q3 is listed as an outlier. An outlier is not necessarily a mistake, but it is worth checking.
What does the 95% confidence interval for the mean tell me?
It is a range of plausible values for the mean of the whole population your sample came from. If you took many random samples and built an interval from each, about 95% of those intervals would contain the true mean. It uses Student’s t distribution, which gives wider intervals for small samples.
How do I calculate these in Excel or Google Sheets?
With your data in A1:A20: =AVERAGE(A1:A20), =MEDIAN(A1:A20), =STDEV.S(A1:A20) for the sample standard deviation and =STDEV.P(A1:A20) for the population one, =VAR.S and =VAR.P for the variances, =SKEW and =KURT for the shape, and =PERCENTILE.INC(A1:A20, 0.9) for the 90th percentile, which uses the same method as the percentiles here. =CONFIDENCE.T(0.05, STDEV.S(A1:A20), COUNT(A1:A20)) gives the margin of error of the 95% interval. Google Sheets has the same functions. For quartiles, QUARTILE.INC interpolates and can differ from the quartiles here, which are the medians of the two halves.
What do skewness and kurtosis mean?
Skewness measures lopsidedness: above 0 the data has a longer tail to the right (a few large values), below 0 a longer tail to the left. Excess kurtosis measures how heavy the tails are compared with a normal distribution, which scores 0; within ±0.5 the calculator reads it as close to normal. Both are rough guides and unreliable for small samples.
Cite this page
Descriptive Statistics Calculator. https://meancalculator.com/statistical-overview.html