You are on page 1of 12

Resolver por mínimos cuadrados

Xi Yi
1 1
3 1.8 3
2 1.8
3 2.9
y=a0 +a1x n xi yi x2 x*y
1 1 1 1 1
2 1.8 3 3.24 5.4
3 2 1.8 4 3.6
4 3 2.9 9 8.7

sumatoria 7.8 8.7 16.5 18.7

a0 = Chart Title
3.5
f(x) = 7.2083333333x^3 - 43.1x^2 + 79.6416666667x - 42.75
R² = 1
3 f(x) = 0.854679803x + 0.5083743842
R² ==0.5436734952
f(x) - 0.5197693575x^2 + 2.9578253707x - 1.352553542
2.5 R² = 0.6384496789

1.5

0.5

0
0.5 1 1.5 2 2.5 3
33.74
4 7.8
x3 x4 x2*y A= 7.8 17.24
1 1 1 17.24 41.832
5.832 10.4976 9.72
8 16 7.2
27 81 26.1

41.832 108.4976 44.02 8.7 sum y


b= 18.7 sum xy
44.02 sum x2y

art Title a0= 0.5084


a1= 0.8547
x^2 + 79.6416666667x - 42.75
15.5197694 -16.100906 3.74176277
43842 matinv(a) -16.100906 17.6035832 -4.2287891
9578253707x - 1.352553542 3.74176277 -4.2287891 1.04509885

2 2.5 3 3.5
17.24
41.832
108.4976

-1.3525535 a0
2.95782537 a1
-0.5197694 a2
1. Determinar a0, a1,a2, para y =a0 + aix +a2x
2. hallar y para x = 5,5
X Y n xi
1 148 1 1
2 1487 2 2
3 3807 3 3
4 10498 4 4
5 17551 5 5
6 43057 6 6
7 48905 7 7
8 76987 8 8
9 109193 9 9
10 147413 10 10
sumatoria 55

10 55
A 55 385
385 3025

b 450046
3763730
32782600
yi x2 x*y x3 x4 x2*y
148 1 148 1 1 148
1487 4 2974 8 16 5948
3807 9 11421 27 81 34263
10498 16 41992 64 256 167968 160000

17551 25 87755 125 625 438775 140000 f(x)


f(x) == 141.269813519
2429.13257575

R² == 0.9994596286
34057 36 204342 216 1296 1226052 0.9968154652
120000
48905 49 342335 343 2401 2396345 f(x) = 156
100000 R² = 0.863
76987 64 615896 512 4096 4927168
109193 81 982737 729 6561 8844633 80000
147413 100 1474130 1000 10000 14741300 60000
450046 385 3763730 3025 25333 32782600
40000

20000
385 1.38333333 -0.525 0.04166667 0
3025 matinv (A) -0.525 0.24128788 -0.0208333 0 2 4
25333 0.04166667 -0.0208333 0.00189394

12547.05 a0
-11102.555 a1
2429.13258 a2

y= 24964.2563
Chart Title
0000

0000 f(x)
f(x) == 141.2698135198x^3
2429.1325757576x^2+-98.1806526806x^2 - 351.9224941725x
11102.5553030303x + 12547.05 + 426.1

R² == 0.9994596286
0.9968154652
0000
f(x) = 15617.903030303x - 40893.8666666666
0000 R² = 0.8631755753

0000

0000

0000

0000

0
0 2 4 6 8 10 12
1. Determinar a0, a1,a2, para y =a0 + aix +a2x
2. hallar y para x = 5,5
X Y n xi
1 148 1 4.5
2 1487 2 8
3 3807 3 5.5
4 10498 4 39
5 17551 5 19.5
6 43057 6 17.5
7 48905 7 21
sumatoria 115

7 115
A 115 2763
2763 82123.75

b 28.7
723
22173.85

x=15
yi x2 x*y x3 x4 x2*y
0.8 20.25 3.6 91.125 410.0625 16.2 Chart T
2 64 16 512 4096 128 12
1.2 30.25 6.6 166.375 915.0625 36.3
f(x) = 0.0023293006x^2 + 0.1899259
11 1521 429 59319 2313441 16731 10 f(x)
R² ==0.9941319235
0.287851537x - 0.6289895356
R² = 0.9854977068
4.4 380.25 85.8 7414.875 144590.063 1673.1
3.8 306.25 66.5 5359.375 93789.0625 1163.75 8

5.5 441 115.5 9261 194481 2425.5


6
28.7 2763 723 82123.75 2751722.25 22173.85
4

2763 1.20102023 -0.1252355 0.00253165 2


82123.75 matinv (A) -0.1252355 0.01626337 -0.0003596
2751722.25 0.00253165 -0.0003596 8.5542E-06 0
0 5 10 15 20

0.06037918 a0
0.18992598 a1
0.0023293 a2

Y(15) = 3.43336158
Chart Title

f(x) = 0.0023293006x^2 + 0.1899259838x + 0.060379185


f(x)
R² ==0.9941319235
0.287851537x - 0.6289895356
R² = 0.9854977068

5 10 15 20 25 30 35 40 45
p= fosforo c = clorofila
Lago superior 4.5
Lago Michigan 8
Lago Huron 5.5
Lago Erie
cuenca oeste
Cuenca Central
cuenca este

You might also like