Shreya was doing an experiment to find out the relationship between voltage (X) and current (Y). The values obtained by Shreya are tabulated below.
Voltage (X)Current (Y)23.535.54859.5612714.5816
Find the line of best fit for this data.
y = 2.125x - 0.765
xyx−¯x(x−¯x)2(y−¯y)(x−¯x)(y−¯y)23.5−39−6.3619.0835.5−24−4.368.7248−11−1.861.8659.500−0.360612112.142.14714.5244.649.28816396.1418.42∑=28∑=59.5
¯x=∑xn=357=5
¯y=∑yn=697=9.86
M=∑ni=1(xi−¯x)(yi−¯y)∑ni=1(xi−¯x)2=59.528=2.125
B=¯y−M¯x=9.86−2.125×5=−0.765
The equation of the line is y = 2.125x - 0.765