Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 3

Practical No.

1 Date-18-04-2022 Roll No:21-MT-0429

Aim: Fitting of straight line by the metho of least squares

Problem: Fit a straight line by the method of least squares to the following data.
Estimate value for each value of x and also represent by appropriate chart.

x 5 6 7 8 9 10 11
y 13 15 17 20 23 24 27

Calculation:
est y=
x y 1+2.357*x
5 13 12.785
6 15 15.142
7 17 17.499
8 20 19.856
9 23 22.213
10 24 24.57
11 27 26.927
Total 56 139 138.992

n= 7
sum of x= 56
sum of y= 139
average of x= 8
average of y= 19.85714286
sum of x^2= 476
sum of xy= 1178
b 2.357142857
a 1

Verification by excel function

b 2.357142857
a 1

Straight line est y=a+bx


est y=1+2.357*x

28
26
28
26
24
22
20
18
16
14
12
10
4 5 6 7 8 9 10 11 12
ate chart.

You might also like