small update
This commit is contained in:
@@ -268,6 +268,16 @@ const thebe_selector_output = ".output, .cell_output"
|
||||
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
|
||||
</a>
|
||||
</li>
|
||||
<li class="toctree-l1">
|
||||
<a class="reference internal" href="exercisesweek36.html">
|
||||
Exercises week 36
|
||||
</a>
|
||||
</li>
|
||||
<li class="toctree-l1">
|
||||
<a class="reference internal" href="week36.html">
|
||||
Week 36: Statistical interpretation of Linear Regression and Resampling techniques
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
@@ -1233,10 +1243,10 @@ covariance matrix through the <strong>np.linalg.eig()</strong> function.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.008947823579448178
|
||||
4.14822021080294
|
||||
[[0.73947737 2.16006961]
|
||||
[2.16006961 7.24782786]]
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.01354598394614281
|
||||
4.037503978471253
|
||||
[[0.95927495 2.85834701]
|
||||
[2.85834701 9.70233292]]
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1273,10 +1283,10 @@ a more brute force way. Here we scale the mean values for each column of the des
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.08657894597048958
|
||||
2.219222942590059
|
||||
[[1. 0.6343356]
|
||||
[0.6343356 1. ]]
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.09309965420717024
|
||||
1.6546329613199204
|
||||
[[1. 0.57867898]
|
||||
[0.57867898 1. ]]
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1306,30 +1316,30 @@ this matrix we easily see that it is a positive definite matrix.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[ 0.29724806 0.26804287]
|
||||
[-0.15626984 -1.36853738]
|
||||
[-0.77070756 -2.13536532]
|
||||
[-0.45372697 -3.1582408 ]
|
||||
[ 0.52580392 2.72567956]
|
||||
[-0.86515815 -1.35704388]
|
||||
[-0.73738602 -2.12933164]
|
||||
[-0.10486183 1.06292011]
|
||||
[ 1.75670484 5.27381733]
|
||||
[ 0.50835355 0.81805914]]
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[-0.49352496 -2.38394242]
|
||||
[ 0.18849928 0.73454039]
|
||||
[-1.58104393 -5.16350368]
|
||||
[ 0.34695383 0.23472346]
|
||||
[ 0.95953339 2.95819409]
|
||||
[ 1.31331481 3.59914165]
|
||||
[ 0.14846308 1.1180677 ]
|
||||
[ 0.26022531 0.23496851]
|
||||
[-0.12178678 -0.11868087]
|
||||
[-1.02063403 -1.21350883]]
|
||||
0 1
|
||||
0 0.297248 0.268043
|
||||
1 -0.156270 -1.368537
|
||||
2 -0.770708 -2.135365
|
||||
3 -0.453727 -3.158241
|
||||
4 0.525804 2.725680
|
||||
5 -0.865158 -1.357044
|
||||
6 -0.737386 -2.129332
|
||||
7 -0.104862 1.062920
|
||||
8 1.756705 5.273817
|
||||
9 0.508354 0.818059
|
||||
0 -0.493525 -2.383942
|
||||
1 0.188499 0.734540
|
||||
2 -1.581044 -5.163504
|
||||
3 0.346954 0.234723
|
||||
4 0.959533 2.958194
|
||||
5 1.313315 3.599142
|
||||
6 0.148463 1.118068
|
||||
7 0.260225 0.234969
|
||||
8 -0.121787 -0.118681
|
||||
9 -1.020634 -1.213509
|
||||
0 1
|
||||
0 1.000000 0.915549
|
||||
1 0.915549 1.000000
|
||||
0 1.000000 0.949087
|
||||
1 0.949087 1.000000
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1386,37 +1396,37 @@ this matrix we easily see that it is a positive definite matrix.</p>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 0 1 2 3 4 5 6 7 \
|
||||
0 0.0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
|
||||
1 0.0 0.086925 0.087377 0.087520 0.087878 0.088164 0.079680 0.079580
|
||||
2 0.0 0.087377 0.089240 0.088074 0.089063 0.089924 0.079827 0.080060
|
||||
3 0.0 0.087520 0.088074 0.094227 0.094252 0.094139 0.089441 0.088974
|
||||
4 0.0 0.087878 0.089063 0.094252 0.094610 0.094812 0.089040 0.088778
|
||||
5 0.0 0.088164 0.089924 0.094139 0.094812 0.095315 0.088488 0.088425
|
||||
6 0.0 0.079680 0.079827 0.089441 0.089040 0.088488 0.087315 0.086524
|
||||
7 0.0 0.079580 0.080060 0.088974 0.088778 0.088425 0.086524 0.085876
|
||||
8 0.0 0.079499 0.080295 0.088502 0.088506 0.088348 0.085716 0.085210
|
||||
9 0.0 0.079448 0.080548 0.088037 0.088238 0.088275 0.084906 0.084541
|
||||
10 0.0 0.071751 0.071438 0.082839 0.082089 0.081194 0.082509 0.081481
|
||||
11 0.0 0.071392 0.071284 0.082139 0.081533 0.080780 0.081559 0.080641
|
||||
12 0.0 0.071071 0.071164 0.081471 0.081007 0.080395 0.080635 0.079827
|
||||
13 0.0 0.070794 0.071084 0.080839 0.080518 0.080048 0.079741 0.079043
|
||||
14 0.0 0.070562 0.071051 0.080249 0.080070 0.079745 0.078880 0.078293
|
||||
1 0.0 0.072254 0.074732 0.075050 0.075400 0.075727 0.068297 0.068215
|
||||
2 0.0 0.074732 0.078265 0.076259 0.077107 0.077954 0.068418 0.068622
|
||||
3 0.0 0.075050 0.076259 0.082604 0.082322 0.081988 0.078133 0.077663
|
||||
4 0.0 0.075400 0.077107 0.082322 0.082315 0.082269 0.077387 0.077091
|
||||
5 0.0 0.075727 0.077954 0.081988 0.082269 0.082525 0.076570 0.076454
|
||||
6 0.0 0.068297 0.068418 0.078133 0.077387 0.076570 0.075952 0.075224
|
||||
7 0.0 0.068215 0.068622 0.077663 0.077091 0.076454 0.075224 0.074613
|
||||
8 0.0 0.068168 0.068876 0.077210 0.076818 0.076371 0.074495 0.074004
|
||||
9 0.0 0.068163 0.069190 0.076775 0.076573 0.076324 0.073764 0.073398
|
||||
10 0.0 0.060924 0.060401 0.071600 0.070601 0.069522 0.071006 0.070141
|
||||
11 0.0 0.060711 0.060369 0.071122 0.070241 0.069283 0.070364 0.069583
|
||||
12 0.0 0.060534 0.060381 0.070671 0.069911 0.069080 0.069738 0.069042
|
||||
13 0.0 0.060394 0.060441 0.070245 0.069612 0.068912 0.069125 0.068517
|
||||
14 0.0 0.060291 0.060550 0.069845 0.069343 0.068782 0.068524 0.068007
|
||||
|
||||
8 9 10 11 12 13 14
|
||||
0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
|
||||
1 0.079499 0.079448 0.071751 0.071392 0.071071 0.070794 0.070562
|
||||
2 0.080295 0.080548 0.071438 0.071284 0.071164 0.071084 0.071051
|
||||
3 0.088502 0.088037 0.082839 0.082139 0.081471 0.080839 0.080249
|
||||
4 0.088506 0.088238 0.082089 0.081533 0.081007 0.080518 0.080070
|
||||
5 0.088348 0.088275 0.081194 0.080780 0.080395 0.080048 0.079745
|
||||
6 0.085716 0.084906 0.082509 0.081559 0.080635 0.079741 0.078880
|
||||
7 0.085210 0.084541 0.081481 0.080641 0.079827 0.079043 0.078293
|
||||
8 0.084685 0.084157 0.080434 0.079704 0.078999 0.078326 0.077688
|
||||
9 0.084157 0.083772 0.079379 0.078759 0.078165 0.077604 0.077079
|
||||
10 0.080434 0.079379 0.079152 0.078033 0.076935 0.075863 0.074818
|
||||
11 0.079704 0.078759 0.078033 0.077004 0.075996 0.075014 0.074061
|
||||
12 0.078999 0.078165 0.076935 0.075996 0.075079 0.074187 0.073325
|
||||
13 0.078326 0.077604 0.075863 0.075014 0.074187 0.073388 0.072618
|
||||
14 0.077688 0.077079 0.074818 0.074061 0.073325 0.072618 0.071942
|
||||
1 0.068168 0.068163 0.060924 0.060711 0.060534 0.060394 0.060291
|
||||
2 0.068876 0.069190 0.060401 0.060369 0.060381 0.060441 0.060550
|
||||
3 0.077210 0.076775 0.071600 0.071122 0.070671 0.070245 0.069845
|
||||
4 0.076818 0.076573 0.070601 0.070241 0.069911 0.069612 0.069343
|
||||
5 0.076371 0.076324 0.069522 0.069283 0.069080 0.068912 0.068782
|
||||
6 0.074495 0.073764 0.071006 0.070364 0.069738 0.069125 0.068524
|
||||
7 0.074004 0.073398 0.070141 0.069583 0.069042 0.068517 0.068007
|
||||
8 0.073520 0.073044 0.069265 0.068792 0.068339 0.067905 0.067489
|
||||
9 0.073044 0.072705 0.068375 0.067990 0.067628 0.067288 0.066969
|
||||
10 0.069265 0.068375 0.067400 0.066672 0.065952 0.065237 0.064526
|
||||
11 0.068792 0.067990 0.066672 0.066006 0.065350 0.064701 0.064057
|
||||
12 0.068339 0.067628 0.065952 0.065350 0.064759 0.064176 0.063600
|
||||
13 0.067905 0.067288 0.065237 0.064701 0.064176 0.063661 0.063155
|
||||
14 0.067489 0.066969 0.064526 0.064057 0.063600 0.063155 0.062721
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user