Fit a line of best fit to paired data and find its slope, intercept, and correlation. Enter the x and y values as two lists.
Usage Tip
An r near plus or minus 1 means points hug the line; near 0 means little linear relationship. Correlation is not causation.
intercept = mean y − slope × mean x
The correlation coefficient r, from −1 to 1, measures how strong and in which direction the relationship is.
The slope, intercept, and correlation r are reported.
r squared is the share of variation in y explained by x.
