How to calculate the slope of a line of best fit

The points in a scatter plot relate different quantities to determine the relationship between them . Sometimes, the points will not have a pattern, which indicates a correlation. But when the points show a correlation, a line of best fit is shown in the extent of the connection. The sharper the slope of the line that passes through the points, the greater the correlation between the points.

Steps to follow:

one

Select any of the two points of the line of best fit . These points may or may not be true points of dispersion in the graph.

two

Subtract the coordinates corresponding to the "Y" axis. If, for example, the two coordinates are (2, 5) and (4, 11): 5 - 11 = -6.

3

Subtract the coordinates corresponding to the "X" axis. Using the same two points and as an example: 2 - 4 = -2.

4

Divide the "Y" coordinate difference between the coordinate difference of "X". For our case: -6 / -2 = 3. The line has a slope of 3.

5

Let's check with other examples that this is true. In this case we use the points (1, 2) and (-1, -4).

  • We do the same as step 2: 2 - (-4) = 6
  • We calculate the same as step 3: 1 - (-1) = 2
  • The slope is equal to 6/2 = 3