Statistics Calculator: Linear Regression

This page allows you to compute the equation for the line of best fit from a set of bivariate data:

    Enter the bivariate x,y data in the text box. x is the independent variable and y is the dependent variable. Data can be entered in two ways:

x values in the first line and y values in the second line, or .
individual x,y values on separate lines.

What is simple linear regression

Simple linear regression is a way to describe a relationship between two variables through an equation of a straight line, called line of best fit, that most closely models this relationship.

Linear Regression Formula

This calculator uses the following formula to derive the equation for the line of best fit:

$ y = a+bx $

$ b = \frac^n x_i y_i - n \bar \bar>^n x_i^2 - n \bar^2> $ and $ a = \bar- b \bar$