05.2.1. Mínimos Cuadrados - Multivariable
05.2.1. Mínimos Cuadrados - Multivariable
05.2.1. Mínimos Cuadrados - Multivariable
4 2.4 1.78
AtA= 2.4 1.78 1.476
1.78 1.476 1.3042
2.58 β= (AtA)^-1Aty
Aty= 0.936 2
0.4362 β= -3
1
y*∙e
-8E-15
0
0
-8E-29
||e||= 1.15E-14 -2E-14
1 x y x2 xy y2
n 2 3 4 1 2 1
1 0.9 1.8 0.81 1.62 3.24
2 0.91 1.81 0.8281 1.6471 3.2761
3 0.9 1.82 0.81 1.638 3.3124
4 0.95 1.8 0.9025 1.71 3.24
5 0.89 1.79 0.7921 1.5931 3.2041
6 0.88 1.78 0.7744 1.5664 3.1684
7 0.88 1.79 0.7744 1.5752 3.2041
8 0.92 1.81 0.8464 1.6652 3.2761
9 0.91 1.77 0.8281 1.6107 3.1329
10 0.94 1.82 0.8836 1.7108 3.3124
n 1 x y w w*=Aβ e=w-w*
1 1 0.9 1.8 18.65 18.348746702 0.301253298
2 1 0.91 1.81 18.6 18.542532981 0.057467019
3 1 0.9 1.82 18.88 18.537137203 0.342862797
4 1 0.95 1.8 19.02 18.846701847 0.173298153
5 1 0.89 1.79 18.49 18.154960422 0.335039578
6 1 0.88 1.78 17.71 17.961174142 -0.25117414
7 1 0.88 1.79 17.64 18.055369393 -0.41536939
8 1 0.92 1.81 18.36 18.642124011 -0.28212401
9 1 0.91 1.77 18.27 18.165751979 0.104248021
10 1 0.94 1.82 18.57 18.935501319 -0.36550132
Suma=
1 2 3 4 5 6
1 1 1 1 1 1
At= 0.9 0.91 0.9 0.95 0.89 0.88
1.8 1.81 1.82 1.8 1.79 1.78
10 9.08 17.99
AtA= 9.08 8.2496 16.3365
17.99 16.3365 32.3665
184.19 -7.56959103
Atw= 167.309 β= (AtA)^-1Aty= 9.959102902
331.397 9.419525066
𝑦=−7.56959103+9.959102
En una placa se registra la temperatura w en función de x e y
Hallar la mejor aproximación por el modelo: w=a+bx+cy
||w-w*||^2 x y w
0.09075355 0.9 1.8 18.65
0.003302458 0.91 1.81 18.6
0.117554897 0.9 1.82 18.88
0.03003225 0.95 1.8 19.02
0.112251519 0.89 1.79 18.49
0.06308845 0.88 1.78 17.71
0.172531733 0.88 1.79 17.64
0.079593957 0.92 1.81 18.36
0.01086765 0.91 1.77 18.27
0.133591214 0.94 1.82 18.57
0.813567678
7 8 9 10
1 1 1 1
0.88 0.92 0.91 0.94
1.79 1.81 1.77 1.82
9103+9.9591029𝑥+9.41952507𝑦
En una placa se registra la temperatura w en función de x e y
Hallar la mejor aproximación por el modelo: w=a+bx+cy+dx^2+exy+fy^2
x y w w*=Aβ e=w-w* ||w-w*||^2
0.9 1.8 18.65
0.91 1.81 18.6
0.9 1.82 18.88
0.95 1.8 19.02
0.89 1.79 18.49
0.88 1.78 17.71
0.88 1.79 17.64
0.92 1.81 18.36
0.91 1.77 18.27
0.94 1.82 18.57
n 1 x y x2 xy y2 w
1 1 0.9 1.8 0.81 1.62 3.24 18.65
2 1 0.91 1.81 0.8281 1.6471 3.2761 18.6
3 1 0.9 1.82 0.81 1.638 3.3124 18.88
4 1 0.95 1.8 0.9025 1.71 3.24 19.02
5 1 0.89 1.79 0.7921 1.5931 3.2041 18.49
6 1 0.88 1.78 0.7744 1.5664 3.1684 17.71
7 1 0.88 1.79 0.7744 1.5752 3.2041 17.64
8 1 0.92 1.81 0.8464 1.6652 3.2761 18.36
9 1 0.91 1.77 0.8281 1.6107 3.1329 18.27
10 1 0.94 1.82 0.8836 1.7108 3.3124 18.57
1 2 3 4 5 6 7
1 1 1 1 1 1 1
0.9 0.91 0.9 0.95 0.89 0.88 0.88
1.8 1.81 1.82 1.8 1.79 1.78 1.79
At= 0.81 0.8281 0.81 0.9025 0.7921 0.7744 0.7744
1.62 1.6471 1.638 1.71 1.5931 1.5664 1.5752
3.24 3.2761 3.3124 3.24 3.2041 3.1684 3.2041
184.19
167.3088
Atw= 331.397 β= (AtA)^-1Aty=
152.06622
301.05271
596.29942
𝑦=−1481+1516.305𝑥+887.4108𝑦+2
w*=Aβ e=w-w* ||w-w*||^2
18.48815 0.1618543 0.0261968
18.650524 -0.050524 0.00255264
18.801533 0.0784668 0.00615703
18.982467 0.037533 0.00140873
18.152949 0.3370515 0.1136037
17.644919 0.0650811 0.00423555
17.987242 -0.347242 0.12057694
18.658381 -0.298381 0.08903136
18.325939 -0.055939 0.00312919
18.497935 0.0720647 0.00519332
Suma= 0.37208386
8 9 10
1 1 1
0.92 0.91 0.94
1.81 1.77 1.82
0.8464 0.8281 0.8836
1.6652 1.6107 1.7108
3.2761 3.1329 3.3124
det= 4.269E-23
-1481
1516.305
887.411
24.162583
-861.733
-26.56964
+887.4108𝑦+24.1626𝑥^2−861.733𝑥𝑦−265696𝑦^2
En una placa se registra la temperatura w en función de x e y
Hallar la mejor aproximación por el modelo: w=a+bx+cy+dx^2+exy+fy^2+()x^3+()x^2y+()xy^2+()y^3
x y w w*=Aβ e=w-w* ||w-w*||^2
0.9 1.8 18.65
0.91 1.81 18.6
0.9 1.82 18.88
0.95 1.8 19.02
0.89 1.79 18.49
0.88 1.78 17.71
0.88 1.79 17.64
0.92 1.81 18.36
0.91 1.77 18.27
0.94 1.82 18.57
n 1 x y x2 xy y2 x3
1 1 0.9 1.8 0.81 1.62 3.24 0.729
2 1 0.91 1.81 0.8281 1.6471 3.2761 0.753571
3 1 0.9 1.82 0.81 1.638 3.3124 0.729
4 1 0.95 1.8 0.9025 1.71 3.24 0.857375
5 1 0.89 1.79 0.7921 1.5931 3.2041 0.704969
6 1 0.88 1.78 0.7744 1.5664 3.1684 0.681472
7 1 0.88 1.79 0.7744 1.5752 3.2041 0.681472
8 1 0.92 1.81 0.8464 1.6652 3.2761 0.778688
9 1 0.91 1.77 0.8281 1.6107 3.1329 0.753571
10 1 0.94 1.82 0.8836 1.7108 3.3124 0.830584
1 2 3 4 5 6 7
1 1 1 1 1 1 1 1
2 0.9 0.91 0.9 0.95 0.89 0.88 0.88
3 1.8 1.81 1.82 1.8 1.79 1.78 1.79
4 At= 0.81 0.8281 0.81 0.9025 0.7921 0.7744 0.7744
5 1.62 1.6471 1.638 1.71 1.5931 1.5664 1.5752
6 3.24 3.2761 3.3124 3.24 3.2041 3.1684 3.2041
7 0.729 0.753571 0.729 0.857375 0.704969 0.681472 0.681472
8 1.458 1.498861 1.4742 1.6245 1.417859 1.378432 1.386176
9 2.916 2.981251 2.98116 3.078 2.851649 2.788192 2.819608
10 5.832 5.929741 6.028568 5.832 5.735339 5.639752 5.735339
1 184.19
2 167.3088
3 331.397
4 152.06622
5 Atw= 301.05271
6 596.29942 β= (AtA)^-1Aty=
7 138.29637
8 273.65141
9 541.75079
10 1073.0338
2y+()xy^2+()y^3
-198168.5
78119.656
291383
-82403.25
-2902.75
-161608
39650.95
-14787.19
8332.6875
28600.438
En una placa se registra la temperatura w en función de x e y
Hallar la mejor aproximación por el modelo: w=a+bx+cy+dx^2+exy+fy^2+()x^3+()x^2y+()xy^2+()y^3
x y w w*=Aβ e=w-w* ||w-w*||^2
0.9 1.8 18.65
0.91 1.81 18.6
0.9 1.82 18.88
0.95 1.8 19.02
0.89 1.79 18.49
0.88 1.78 17.71
0.88 1.79 17.64
0.92 1.81 18.36
0.91 1.77 18.27
0.94 1.82 18.57
n 1 x y x2 xy y2 x3
1 1 0.9 1.8 0.81 1.62 3.24 0.729
2 1 0.91 1.81 0.8281 1.6471 3.2761 0.753571
3 1 0.9 1.82 0.81 1.638 3.3124 0.729
4 1 0.95 1.8 0.9025 1.71 3.24 0.857375
5 1 0.89 1.79 0.7921 1.5931 3.2041 0.704969
6 1 0.88 1.78 0.7744 1.5664 3.1684 0.681472
7 1 0.88 1.79 0.7744 1.5752 3.2041 0.681472
8 1 0.92 1.81 0.8464 1.6652 3.2761 0.778688
9 1 0.91 1.77 0.8281 1.6107 3.1329 0.753571
10 1 0.94 1.82 0.8836 1.7108 3.3124 0.830584
1 2 3 4 5 6 7
1 1 1 1 1 1 1 1
2 0.9 0.91 0.9 0.95 0.89 0.88 0.88
3 1.8 1.81 1.82 1.8 1.79 1.78 1.79
4 At= 0.81 0.8281 0.81 0.9025 0.7921 0.7744 0.7744
5 1.62 1.6471 1.638 1.71 1.5931 1.5664 1.5752
6 3.24 3.2761 3.3124 3.24 3.2041 3.1684 3.2041
7 0.729 0.753571 0.729 0.857375 0.704969 0.681472 0.681472
1 184.19
2 167.3088
3 331.397
4 Atw= 152.06622 β= (AtA)^-1Aty=
5 301.05271
6 596.29942
7 138.29637
2y+()xy^2+()y^3
det= 8.897E-33
-31330
104702.86
-555.9991
-115008
274.62399
87.786902
41898.091