Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

Linear regression calculator

MEMBERS

The line of least squares through pairs of numbers, with the correlation, r squared and the points on a graph.

Free to use Files need an account Privacy protection

Data

Statistics

Export

Saved work and templates

On this device

Nothing has been saved yet.

    Templates

    Found a bug or missing something? Write to us

    How it works

    A line through the points

    Pairs of numbers are pasted from a spreadsheet. The line of least squares is the one for which the sum of squared vertical distances is smallest.

    The correlation r tells how closely the points follow a line, from -1 to 1, and r squared which part of the variation the line explains.

    The line can be plotted in the graphing mode as a function, to read values or to compare it with another curve. A value far outside the data is a guess.

    Help

    FAQ

    What does r close to zero mean?

    That the points do not follow a line. They may still follow a curve, which the graph shows.

    Does a high correlation mean a cause?

    No. Two things can change together because of a third one, or by chance. The number describes the data only.

    How many pairs are needed?

    Two pairs give a line that fits exactly, which says nothing about the fit. From three pairs on, r and r squared begin to mean something.

    Opening files needs an account

    Typing and pasting work without an account. To open or drop a file, sign in to your POLPROG account or create one in under a minute. Files are still processed only in this browser.

    • Secure access
    • Account in under a minute