Statistics calculator
Paste a list of numbers to get the summary statistics, or enter x and y pairs to fit a regression. Choose the quartile method and see the formula behind each result.
Statistics calculator calculates in your browser: the numbers you enter are never sent to a server. It is free and needs no sign-up.
How to use it
- Choose a tab and enter data Open Describe data, Regression or Distributions. In Describe data, type numbers such as 2, 4, 4, 4, 5, 5, 7, 9, then read the summary tiles and table.
- Read the summary and quartiles For that set the mean is 5, the median is 4.5 and the population standard deviation is 2. The default inclusive method gives Q1 = 4 and Q3 = 5.5.
- Try the regression fit In Regression, enter at least three pairs such as (1,1), (2,2) and (3,2). The page fits y = 2/3 + 0.5x and shows R² = 0.75 for that data.
Questions
Why do quartiles differ from my textbook or Excel?
The page offers three methods. Inclusive matches Excel QUARTILE.INC and R type 7, and it is the default. Tukey hinges, and the exclusive method, which needs at least 3 values, can give other answers on the same data.
Why can R² be negative?
The exponential and power models are fitted on ln y, but R² is always measured on the original y. A poor fit can therefore fall below 0, which means the model does worse than simply using the mean of y.
Why do the sample and population standard deviations differ?
The population version divides the squared deviations by n, and the sample version divides by n − 1. For the example set above, the population standard deviation is 2 and the sample variance is 32/7.