You are on page 1of 6

CLASS CODE: 3067 SCHEDULE: 1:30-4:30 T

ID NUMBER: 2195582
NAME: RABANAL, RAYNIE MAE R.
1. From the following data, perform the required fitting.
I 1 2 3 4 5 6
X 3 5 7 9 12 14
Y 9 15 21 27 36 42
A. Determine the equation of a line that fits the following data.
B. Set a 2nd order polynomial to the given data.

X Y
3 9
5 15
7 21
9 27
12 36
14 42
Y = 3x

x y x2 x3 x4 xy x2y
3 9 9 27 81 27 81
5 15 25 125 625 75 375
7 21 49 343 2401 147 1029
9 27 81 729 6561 243 2187
12 36 144 1728 20736 432 5184
14 42 196 2744 38416 588 8232
∑x∑x = 50 ∑y∑y = ∑x2∑x2 = ∑x3∑x3= ∑x4∑x4 = ∑xy∑xy = ∑x2y∑x2y
150 504 5696 68820 1512 = 17088

a1n+a2∑x+a3∑x2 = ∑ya1n+a2∑x+a3∑x2 = ∑y

a1∑x+a2∑x2+a3∑x3 = ∑xya1∑x+a2∑x2+a3∑x3 = ∑xy

a1∑x2+a2∑x3+a3∑x4 = ∑x2y

6a1+50a2+ 504a3 = 150

50a1+504a2+5696a3 = 1512

504a1+5696a2+68820a3 = 17088
a1 = 0, a2 = 3 and a3 = 0
y = 3x

2. Find the best fitting straight line to the following data.


(i)
X 1 2 3 4 5
Y 4 3 6 7 11
(ii)
X 5 10 15 20 25
Y 15 19 23 26 30
(iii)
X 1 2 3 4 5
Y 14 27 40 55 68
(iv)
X 1 2 3 4 5 6
120
Y 900 600 200 110 50
0

(i)
x y x x2 xy
1 4 -2 4 -8
2 3 -1 1 -3
3 6 0 0 0
4 7 1 1 7
5 11 2 4 22
Σ 31 0 10 18

𝑦c = 𝑎 + 𝑏𝑥

Σy 31
𝑎= = = 6.2
𝑁 5
Σ 𝑋𝑦 18
𝑏= 2
= = 1.8
Σ𝑋 10
𝒚𝐜 = 𝟔. 𝟐 + 𝟏. 𝟖𝒙

(ii)
x y x X2 xy
5 15 -10 100 -150
10 19 -5 25 -95
15 23 0 0 0
20 26 5 25 130
25 30 10 100 300
Σ 113 0 250 185

𝑦c = 𝑎 + 𝑏𝑥

Σy 113
𝑎= = = 22.6
𝑁 5
Σ 𝑋𝑦 185
𝑏= = = 0.74
Σ 𝑋2 250

𝒚𝐜 = 𝟐𝟐. 𝟔 + 𝟎. 𝟕𝟒𝒙
(iii)
x y x^2 x⋅y
1 14 1 14
2 27 4 54
3 40 9 120
4 55 16 220
5 68 25 340
∑x=15 ∑y=204 ∑x^2=55 ∑x⋅y=748
5𝑎 + 15𝑏 = 204
15𝑎 + 55𝑏 = 748

(3) → 5𝑎 + 15𝑏 = 204


15𝑎 + 55𝑏 = 748
-10 b = -136
b = 13.6

5a + 15(13.6) = 204
5a=204-204
a=0

a=0
b = 13.6

y=0+13.6x
(iv)
x y x^2 x⋅y
1 1200 1 1200
2 900 4 1800
3 600 9 1800
4 200 16 800
5 110 25 550
6 50 36 300
∑x=21 ∑y=3060 ∑x^2=91 ∑x⋅y=6450
6a+21b=3060
21a+91b=6450

6a+21b=3060
3(2a+7b) =3⋅1020
2a+7b=1020
21a+91b=6450

21⇒42a+147b=21420
2⇒42a+182b=12900
-35b=8520
b = -243.4286

2a+7b=1020
2a+7(-243.4286) =1020
a=1362
a=1362 and b=-243.4286
y=1362-243.4286x

3. Fit a parabola or the 2nd Order Polynomial that will fit to the following data.
(i) and hence
find y (2.4)
X 1 2 3 4

Y 1.7 1.8 2.3 3.2

(ii)
X 1 2 3 4 5
Y 2 3 5 8 10
(iii)
X 0 1 2 3 4

Y 1 1.8 1.3 2.5 6.3


(iv)
X 1.0 1.5 2.0 2.5 3.0 3.5 4.0
Y 1 1.8 1.3 2.6 2.7 3.4 4.1

(i)
x y x2 x3 x4 xy x2y
1 1.7 1 1 1 1.7 1.7
2 1.8 4 8 16 3.6 7.2
3 2.3 9 27 81 6.9 20.7
4 3.2 16 64 256 12.8 51.2
∑x = 10 ∑y = 9 ∑x = 30
2 ∑x = 100
3 ∑x = 354
4 ∑xy = 25 ∑x y = 80.8
2

4𝑎 + 10𝑏 + 30𝑐 = 9
10𝑎 + 30𝑏 + 100𝑐 = 25
30𝑎 + 100𝑏 + 354𝑐 = 80.8
a=2
b = - 0.5
c = 0.2

𝒚 = 𝟐 − 𝟎. 𝟓𝒙 + 𝟎. 𝟐𝒙𝟐
(ii)
x y x2 x3 x4 xy x2y
1 2 1 1 1 2 2
2 3 4 8 16 6 12
3 5 9 27 81 15 45
4 8 16 64 256 32 128
5 10 25 125 625 50 250
∑x=15 ∑y=28 ∑x2=55 ∑x3=225 ∑x4=979 ∑xy=105 ∑x2y=437

5𝑎 + 15𝑏 + 55𝑐 = 28
15𝑎 + 55𝑏 + 225𝑐 = 105
55𝑎 + 225𝑏 + 979𝑐 = 437
a = 0.8
b = 0.8143
c = 0.2143

𝒚 = 𝟎. 𝟖 + 𝟎. 𝟖𝟏𝟒𝟑𝒙 + 𝟎. 𝟐𝟏𝟒𝟑𝒙𝟐

(iii)
x y x2 x3 x4 xy x2y
0 1 0 0 0 0 0
1 1.8 1 1 1 1.8 1.8
2 1.3 4 8 16 2.6 5.2
3 2.5 9 27 81 7.5 22.5
4 6.3 16 64 256 25.2 100.8
∑x=10 ∑y=12.9 ∑x2=30 ∑x =100
3 ∑x4=354 ∑xy=37.1 ∑x y=130.3
2

5𝑎 + 10𝑏 + 30𝑐 = 12.9


10𝑎 + 30𝑏 + 100𝑐 = 37.1
30𝑎 + 100𝑏 + 354𝑐 = 130.3
a = 1.42
b = -1.07
c = 0.55
𝒚 = 𝟏. 𝟒𝟐 − 𝟏. 𝟎𝟕𝒙 + 𝟎. 𝟓𝟓𝒙𝟐
(iv)
x y x2 x3 x4 xy x2y
1 1.1 1 1 1 1.1 1.1
1.5 1.3 2.25 3.375 5.0625 1.95 2.925
2 1.6 4 8 16 3.2 6.4
2.5 2.6 6.25 15.625 39.0625 6.5 16.25
3 2.7 9 27 81 8.1 24.3
3.5 3.4 12.25 42.875 150.0625 11.9 41.65
4 4.1 16 64 256 16.4 65.6
∑x=17.5 ∑y=16.8 ∑x =50.75
2 ∑x =161.875
3 ∑x =548.1875
4 ∑xy=49.15 ∑x y=158.225
2

7𝑎 + 17.5𝑏 + 50.75𝑐 = 16.8


17.5𝑎 + 50.75𝑏 + 161.875𝑐 = 49.15
50.75𝑎 + 161.875𝑏 + 548.1875𝑐 = 158.225
a = 0.5214
b = 0.3786
c = 0.1286

𝒚 = 𝟎. 𝟓𝟐𝟏𝟒 + 𝟎. 𝟑𝟕𝟖𝟔𝒙 + 𝟎. 𝟏𝟐𝟖𝟔𝒙𝟐

I, pledge on my honor, that I have not given or received any assistance on this
assignment

Student’s Signature

You might also like