Toolvito

Processed online by Toolvito

Regression & Correlation Calculator

Paste x and y values (or upload a CSV file) to get the regression equation, R², standard errors, p-values, predictions and a graph, or the Pearson, Spearman and Kendall correlation with tests. The assumptions of each method are stated with the result.

Choose what to do

Task
Regression

One row per line. For multiple regression put y in the last column. Leave empty if you choose a file.

Optional: x values, separated by commas.

Or drop the file here. CSV, TSV or TXT, 8 MB each at most.

    More options

    For the intervals, such as 0.95 for 95 %.

    2 to 15.

    When you run a task here, Toolvito receives the information you submit for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to use it

    1. Paste the data with one row per line, x first and y second, such as 1, 2.1; tabs, spaces or semicolons work too, and a header row with the names is allowed. Two lines such as x: 1 2 3 and y: 2 4 7 also work. Or choose a CSV file.
    2. Choose Regression or Correlation, and the model or the coefficient.
    3. Optional: type x values under Predict at to get predicted values with intervals.
    4. Select Calculate. Read the equation, the coefficient table and the checks; download the report, the residuals as CSV and the graph.

    Regression models

    • Linear: y = a + b·x by least squares, with the textbook sums (Σx, Σy, Σxy, Sxx, Sxy) as steps, R², r, standard errors, t tests, the F test and intervals. Tick Through the origin for y = b·x.
    • Polynomial of degree 2 to 6 (quadratic, cubic, quartic regression).
    • Exponential y = a·e^(bx), power y = a·x^b and logarithmic y = a + b·ln x are fitted by least squares on the logarithms, as most calculators do (TI ExpReg, PwrReg, LnReg). The page says so, because this is not the same as least squares on the original values.
    • Multiple linear regression: several predictor columns and y in the last column, with variance inflation factors for collinearity.
    • Logistic regression: y is 0 or 1. The coefficients, odds ratios with intervals, the pseudo R² and how many cases the model gets right.

    Correlation

    • Pearson r measures a straight-line relation (−1 to 1), with a t test and a Fisher-z confidence interval.
    • Spearman ρ and Kendall τ-b measure a monotonic relation (always rising or always falling) and are less affected by outliers.
    • A correlation does not show that one thing causes the other.

    Assumptions and checks

    • The tests and intervals of a linear model assume a straight-line relation, independent errors with the same spread and roughly normal errors; the residuals are tested with Shapiro–Wilk. Pearson’s test assumes roughly normal data.
    • Every set of coefficients is computed a second, independent way (numpy.polyfit, NumPy least squares, scikit-learn for logistic regression), and the slope of a line is also worked out exactly from the typed decimals. Up to 20,000 rows.

    Related tools