Use this page to derive and draw the line of best fit from a set of bivariate data.
This page allows you to compute the equation for the line of best fit from a set of bivariate data:
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.
This calculator uses the following formula to derive the equation for the line of best fit:

where
and 