Statistics Calculator: 1-Variable, 2-Variable and Regression
One-variable statistics, two-variable statistics, and six regression models (linear, quadratic, cubic, exponential, power, logarithmic) with R² and prediction.
How to use it
For one variable, paste a list. For two variables, enter x, y pairs one per line and pick a model. The tool reports the equation, R², correlation and a prediction, and ranks all six models by R².
What it can do
- n, sum, mean, median, mode, min, max, Q1, Q3, IQR
- Sample and population variance and standard deviation, standard error
- Tukey outlier fences (1.5 × IQR)
- Linear, quadratic, cubic, exponential, power and logarithmic regression
- R², Pearson r, covariance inputs and best-model ranking
- Histogram and scatter plot with the fitted curve
Common questions
How are quartiles defined?
Q1 and Q3 are the medians of the lower and upper halves, excluding the median when n is odd.
How are exponential and power fits computed?
By least squares on the logarithms (ln y against x, or ln y against ln x), which is the standard linearization.
Is R² comparable across models?
R² here is measured on the original y values, so models can be compared directly.
What is the minimum data?
Two pairs for a line, three for a quadratic and four for a cubic.