Statistics Calculator: Mean, Median, Standard Deviation, Regression

Free statistics calculator: paste a list of numbers to get the mean, median, mode, standard deviation, variance, quartiles, box plot, histogram and z-scores, with the working shown; linear regression and correlation for x-y data, and normal, binomial and Poisson probabilities.

Examples:
Options

A statistics calculator that shows the working

Paste a list of numbers and get every common statistic at once: the mean, median and mode, the range and quartiles, the variance and standard deviation, the standard error, skewness, outliers, a box plot and a histogram. Paste x and y pairs to fit a line and see the correlation. Look up normal, t, chi-square, binomial and Poisson probabilities, run the usual hypothesis tests and work out how big a survey needs to be. Everything is worked out in your browser; your numbers are not sent anywhere.

Typing or pasting your numbers

Separate the numbers with commas, spaces, semicolons or new lines, or paste a column (or several) straight from Excel, Google Sheets or Numbers. A header such as "Score" is skipped and the page says what it skipped. Decimal commas (3,5; 4,25) are understood, and so are thousands separators (1,250), dollar signs and percent signs. If you have counts rather than a list, switch to Value, count table and type each value with how many times it occurs.

Sample or population?

If your numbers are all of the group you care about (every student in the class), they are a population: the variance divides by n. If they are a sample from a bigger group (50 people out of a city), the variance divides by n − 1 instead, which makes it a fair estimate of the bigger group's spread. Both are always shown; the one you choose is highlighted and used for the z-scores and the coefficient of variation.

Questions

How do I calculate the standard deviation by hand?
Find the mean, subtract it from every value, square each difference, add the squares, divide by n − 1 (a sample) or n (a population), and take the square root. Open Show the working under the results to see this table for your own numbers. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the squares add up to 32, and the population standard deviation is √(32 / 8) = 2.
Why do calculators give different quartiles?
There is no single agreed rule for Q1 and Q3. This page uses the method in most school textbooks and on the TI-84 by default: split the sorted data into a lower and an upper half (leaving out the median when n is odd) and take the median of each half. Excel's QUARTILE.INC (also Google Sheets and R), QUARTILE.EXC (Minitab, SPSS) and Tukey's hinges are under Options. They differ most for small data sets and agree as n grows.
What counts as an outlier?
The usual 1.5 × IQR rule: a value more than 1.5 interquartile ranges below Q1 or above Q3. These are drawn as separate dots on the box plot, and the whiskers stop at the most extreme values that are not outliers.
What is the standard error?
The standard error of the mean, s / √n, says how much the mean of a sample of this size would usually vary from sample to sample. It shrinks as the sample gets bigger, while the standard deviation (the spread of the individual values) does not.
What do r and r² mean in regression?
r, the correlation, runs from −1 to 1 and says how closely the points follow a straight line and in which direction. r² is the share of the variation in y that the line explains: r² = 0.81 means 81%. A high r² does not prove that x causes y. The p-value for the slope tests whether the slope could really be 0.
How are the curve fits compared?
The exponential, power and logarithmic fits are found the usual way, by fitting a straight line to the logarithms, the same as a TI-84 or Excel trendline. Their r² values in the comparison table are worked out on your original y values, so all five models are compared fairly; the r² of the transformed line (what a TI-84 shows) is listed too.
What is a p-value?
The p-value is the chance of getting a result at least as extreme as yours if the null hypothesis (no difference, no effect) were true. A small p-value, below your significance level α (often 0.05), means the data would be surprising under the null hypothesis, so you reject it. It is not the probability that the null hypothesis is true.
Welch or pooled two-sample t-test?
Welch's t-test does not assume the two groups have the same spread, and is the safer default (it is what R uses). The pooled test assumes equal variances and gives a whole-number degrees of freedom, as in many older textbooks.
How accurate are the probabilities?
The normal, t, chi-square, F, binomial and Poisson probabilities use the regularized incomplete gamma and beta functions (continued fractions) and are accurate to about 10 decimal places, far into the tails. They are checked against published tables, for example P(Z < 1.96) = 0.9750021 and the t value 2.2281 for 10 degrees of freedom.
How big a sample do I need for a survey?
For a margin of error of ±5% at 95% confidence you need 385 people (assuming 50%, the worst case); for ±3% you need 1,068. If the whole population is small, the finite population correction lowers this: for a population of 1,000 people, ±5% needs 278. The Sample size tab works these out for any margin and confidence.
Comments
Advertisement