Practical 6 7

You might also like

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

Calculation:

Predicted
X Y X^2 X^3 X^4 XY X^2Y Value of Y
1 2.18 1 1 1 2.18 2.18 2.184
2 2.44 4 8 16 4.88 9.76 2.43
3 2.78 9 27 81 8.34 25.02 2.786
4 3.25 16 64 256 13 52 3.252
5 3.83 25 125 625 19.15 95.75 3.828
SUM 15 14.48 55 225 979 47.55 184.71

We get the three equations:


14.48=5a+15b+55c
47.55=15a+55b+225c
184.71=55a+225b+979c

To solve these 3 equations, we will use the concept of matrices.

5 15 55 a 14.48
15 55 225 b equals 47.55
55 225 979 c 184.71

a 2.048 Hence, the curve of best


b equals 0.081 Y=0.055X2+0.081X+2.048
c 0.055
Predicted Chart
4.5
4
3.5
3
2.5
2
1.5
1
0.5
0
1 2 3 4 5

Hence, the curve of best fit or the curve of regression is found to be


Y=0.055X2+0.081X+2.048
Calculation:

Predicted
X Y U = logY V = logX UV V^2 Value of Y
4 8 2.079442 1.386294 2.882718 1.921812 8.000012
5 12.5 2.525729 1.609438 4.065003 2.59029 12.49999
6 18 2.890372 1.791759 5.178851 3.210402 17.99996
7 24.5 3.198673 1.94591 6.22433 3.786566 24.49991
8 32 3.465736 2.079442 7.206795 4.324077 31.99985
SUM 30 95 14.15995 8.812843 25.5577 15.83315

We get the two equations


14.15995=5A+8.812843b
25.5577=8.8122843A+15.83315b

To solve these two equations, we use the concept of matrices


5 8.812843 A equals 14.15995
8.812843 15.83315 b 25.5577
A equals -0.693132
b 1.999991
a 0.500007
b 1.999991

So, the curve of regression is found to be Y=0.500007X 1.999991


Predicted Chart
35

30

25

20

15

10

0
4 5 6 7 8

You might also like