banner



Slope Of Best Fit Line

Line of Best Fit (Least Square Method)

A line of all-time fit is a straight line that is the best approximation of the given set of data.

It is used to study the nature of the relation between two variables. (We're just considering the 2-dimensional example, here.)

A line of best fit tin can be roughly adamant using an eyeball method by drawing a straight line on a besprinkle plot and so that the number of points above the line and below the line is about equal (and the line passes through every bit many points every bit possible).

A more authentic way of finding the line of all-time fit is the least square method .

Apply the following steps to find the equation of line of best fit for a set of ordered pairs ( ten 1 , y 1 ) , ( 10 2 , y 2 ) , ... ( x n , y n ) .

Step ane: Summate the hateful of the x -values and the mean of the y -values.

Ten ¯ = i = 1 due north ten i n Y ¯ = i = ane n y i n

Footstep two: The following formula gives the slope of the line of best fit:

m = i = ane n ( 10 i Ten ¯ ) ( y i Y ¯ ) i = i north ( x i X ¯ ) 2

Pace 3: Compute the y -intercept of the line by using the formula:

b = Y ¯ m 10 ¯

Pace 4: Use the slope m and the y -intercept b to grade the equation of the line.

Example:

Use the least square method to determine the equation of line of all-time fit for the data. And then plot the line.

ten 8 2 eleven six v 4 12 9 6 one
y 3 ten iii 6 viii 12 1 4 9 14

Solution:

Plot the points on a coordinate plane .

Calculate the means of the ten -values and the y -values.

Ten ¯ = 8 + 2 + 11 + half dozen + 5 + four + 12 + 9 + 6 + 1 x = six.4 Y ¯ = 3 + x + 3 + half dozen + 8 + 12 + ane + 4 + 9 + 14 10 = vii

Now calculate x i 10 ¯ , y i Y ¯ , ( x i X ¯ ) ( y i Y ¯ ) , and ( x i Ten ¯ ) 2 for each i .

i ten i y i x i 10 ¯ y i Y ¯ ( x i X ¯ ) ( y i Y ¯ ) ( 10 i X ¯ ) ii
1 8 three i.6 4 6.4 two.56
two two 10 iv.four 3 thirteen.2 xix.36
3 11 3 4.6 4 18.iv 21.sixteen
4 6 6 0.4 one 0.iv 0.xvi
5 v 8 1.iv 1 1.four 1.96
6 4 12 two.4 5 12 5.76
vii 12 ane 5.6 6 33.half dozen 31.36
8 9 four ii.6 3 7.viii vi.76
ix 6 9 0.4 2 0.eight 0.16
10 i 14 five.4 7 37.8 29.16
i = 1 n ( x i Ten ¯ ) ( y i Y ¯ ) = 131 i = one due north ( x i 10 ¯ ) two = 118.4

Summate the slope.

m = i = one due north ( x i Ten ¯ ) ( y i Y ¯ ) i = one n ( 10 i 10 ¯ ) ii = 131 118.four 1.one

Summate the y -intercept.

Utilise the formula to compute the y -intercept.

b = Y ¯ one thousand X ¯ = 7 ( ane.1 × 6.four ) = vii + 7.04 14.0

Use the gradient and y -intercept to course the equation of the line of best fit.

The slope of the line is one.1 and the y -intercept is 14.0 .

Therefore, the equation is y = 1.ane 10 + 14.0 .

Draw the line on the scatter plot.

Slope Of Best Fit Line,

Source: https://www.varsitytutors.com/hotmath/hotmath_help/topics/line-of-best-fit

Posted by: matneyfror1958.blogspot.com

0 Response to "Slope Of Best Fit Line"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel