Analyzer · Natural Sciences, Mathematics & Scientific Literacy, Research, Knowledge, Thinking & Analytics, Society & Social Sciences

Descriptive Statistics and Confidence Interval Calculator

Paste a list of numbers to get count, mean, median, quartiles, standard deviation, standard error, coefficient of variation and the t-based confidence interval of the mean.

Inputs

The calculation runs only in your browser; your figures are not sent to our servers or stored.

The page shows the result for the example values; turn on JavaScript to calculate with your own figures.

Result

Mean
5
Confidence interval, low
3.2125
Confidence interval, high
6.7875
Count
8
Median
4.5
First quartile
4
Third quartile
5.5
Minimum
2
Maximum
9
Sample standard deviation
2.1381
Standard error of the mean
0.7559
Coefficient of variation
42.76%
Critical t value
2.3646

The result updates with every change.

The result is a standard formula; interpreting it and deciding on it need professional judgment in your context.

How the tool works: formula and worked example

Before any advanced analysis, a researcher or data analyst needs a first picture of the numbers: where most of them sit, how widely they spread, whether there are outliers, and how precise a mean from a limited sample really is. Many reports stop at the mean and present a figure that says nothing about the uncertainty around it. This tool gives the full descriptive summary from a pasted list, including the confidence interval that belongs next to every reported mean.

The calculations follow the NIST/SEMATECH e-Handbook, section 1.3.5.2. The sample standard deviation divides by the number of values minus one, not by the count itself, and the standard error of the mean is that deviation divided by the square root of the count. The confidence interval is the mean plus or minus the critical t value times the standard error, with degrees of freedom equal to the count minus one. Median and quartiles use linear interpolation, Hyndman and Fan type 7, which is the spreadsheet default, so your results match what a spreadsheet shows.

The default data is eight values: 2, 4, 4, 4, 5, 5, 7 and 9. The mean is 5 and the median 4.5; the first quartile is 4 and the third 5.5; the minimum is 2 and the maximum 9. The sample standard deviation is 2.1381, the standard error 0.7559 and the coefficient of variation 42.76%. At 95% confidence the critical t value with seven degrees of freedom is 2.3646, so the interval for the mean runs from 3.2125 to 6.7875.

A 95% interval means that if the same procedure were repeated on many samples, 95% of the resulting intervals would contain the true mean; it does not mean there is a 95% probability that this particular interval does. The interval here is wide because there are only eight values, and quadrupling the sample roughly halves its width. A median close to the mean suggests the distribution is not strongly skewed.

The t interval assumes independent values that are roughly normal or a sample large enough to compensate, so do not lean on it for a small, heavily skewed sample or for autocorrelated time series. The coefficient of variation is meaningless on scales with an arbitrary zero, such as temperatures in Celsius. Before pasting, remove blank cells and currency symbols; Arabic digits are accepted.

Standard and formula

Sample standard deviation divides by n − 1; confidence interval = mean ± t(α/2, n − 1) × s ÷ √n (NIST e-Handbook 1.3.5.2). Quartiles by linear interpolation (Hyndman and Fan type 7, the spreadsheet default).

Sources

How to use it

  1. Paste the values from a spreadsheet, one per line (Arabic digits are accepted).
  2. Choose the confidence level.
  3. Report the mean with its confidence interval, not the mean alone.

Frequently asked questions

How do I calculate the sample standard deviation?

Subtract the mean from each value, square the differences, sum them, divide by the count minus one and take the square root. For the default data the result is 2.1381.

How is a confidence interval for the mean calculated?

Confidence interval = mean ± critical t × standard deviation ÷ √n. The t value comes from the confidence level and the degrees of freedom, n minus one.

What is the difference between standard deviation and standard error?

Standard deviation describes how individual values scatter around the mean, while standard error describes how precise the mean is as an estimate, and it shrinks as the sample grows.

Why do quartiles differ between software packages?

There are several accepted quartile methods. The tool uses linear interpolation (type 7), the spreadsheet default, so other packages may give slightly different values.

When should I use the t distribution instead of the normal?

When the population standard deviation is unknown and estimated from the sample, which is the usual case. As the sample grows, t values approach normal-distribution values.

Domains

Careers this tool serves

Programs that build this skill

Related tools

All tools · Professional encyclopedia