update notes

This commit is contained in:
Morten Hjorth-Jensen
2023-09-11 06:41:34 +02:00
parent b7e90afa3a
commit 125231ac1a
130 changed files with 12893 additions and 810 deletions
+80 -58
View File
@@ -278,6 +278,28 @@ const thebe_selector_output = ".output, .cell_output"
Week 36: Statistical interpretation of Linear Regression and Resampling techniques
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="exercisesweek37.html">
Exercises week 37
</a>
</li>
<li class="toctree-l1">
<a class="reference internal" href="week37.html">
Week 37: Statitsitcal interpretations and Resampling Methods
</a>
</li>
</ul>
<p aria-level="2" class="caption" role="heading">
<span class="caption-text">
Projects
</span>
</p>
<ul class="nav bd-sidenav">
<li class="toctree-l1">
<a class="reference internal" href="project1.html">
Project 1 on Machine Learning, deadline October 9 (midnight), 2023
</a>
</li>
</ul>
</div>
@@ -1243,10 +1265,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.01354598394614281
4.037503978471253
[[0.95927495 2.85834701]
[2.85834701 9.70233292]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.003788445263115483
3.859628021353642
[[0.93725291 2.8143782 ]
[2.8143782 9.64008343]]
</pre></div>
</div>
</div>
@@ -1283,10 +1305,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.09309965420717024
1.6546329613199204
[[1. 0.57867898]
[0.57867898 1. ]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.07783152589039466
2.06282378894371
[[1. 0.66124684]
[0.66124684 1. ]]
</pre></div>
</div>
</div>
@@ -1316,30 +1338,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.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]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[-0.15499979 -0.6924788 ]
[-0.50456256 -2.98248681]
[ 1.97264311 4.4533029 ]
[ 0.03286166 -0.27108228]
[-0.97421755 -3.08891672]
[-0.3744637 0.62223681]
[ 1.18655084 4.67392051]
[-0.51719273 -1.14648903]
[-0.51793145 -1.51975002]
[-0.14868784 -0.04825655]]
0 1
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 -0.155000 -0.692479
1 -0.504563 -2.982487
2 1.972643 4.453303
3 0.032862 -0.271082
4 -0.974218 -3.088917
5 -0.374464 0.622237
6 1.186551 4.673921
7 -0.517193 -1.146489
8 -0.517931 -1.519750
9 -0.148688 -0.048257
0 1
0 1.000000 0.949087
1 0.949087 1.000000
0 1.000000 0.929612
1 0.929612 1.000000
</pre></div>
</div>
</div>
@@ -1396,37 +1418,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.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
1 0.0 0.079729 0.074983 0.077280 0.078995 0.080168 0.068546 0.070577
2 0.0 0.074983 0.071314 0.073127 0.075035 0.076519 0.065106 0.067183
3 0.0 0.077280 0.073127 0.080979 0.082487 0.083517 0.075422 0.077387
4 0.0 0.078995 0.075035 0.082487 0.084199 0.085447 0.076612 0.078725
5 0.0 0.080168 0.076519 0.083517 0.085447 0.086942 0.077411 0.079671
6 0.0 0.068546 0.065106 0.075422 0.076612 0.077411 0.072522 0.074203
7 0.0 0.070577 0.067183 0.077387 0.078725 0.079671 0.074203 0.076007
8 0.0 0.072638 0.069315 0.079368 0.080867 0.081977 0.075887 0.077825
9 0.0 0.074671 0.071455 0.081315 0.082991 0.084282 0.077536 0.079615
10 0.0 0.060425 0.057463 0.068676 0.069583 0.070161 0.067515 0.068912
11 0.0 0.062197 0.059245 0.070486 0.071501 0.072183 0.069129 0.070625
12 0.0 0.064048 0.061113 0.072365 0.073497 0.074293 0.070797 0.072398
13 0.0 0.065974 0.063066 0.074310 0.075569 0.076491 0.072515 0.074230
14 0.0 0.067967 0.065101 0.076313 0.077711 0.078771 0.074276 0.076112
8 9 10 11 12 13 14
0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
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
1 0.072638 0.074671 0.060425 0.062197 0.064048 0.065974 0.067967
2 0.069315 0.071455 0.057463 0.059245 0.061113 0.063066 0.065101
3 0.079368 0.081315 0.068676 0.070486 0.072365 0.074310 0.076313
4 0.080867 0.082991 0.069583 0.071501 0.073497 0.075569 0.077711
5 0.081977 0.084282 0.070161 0.072183 0.074293 0.076491 0.078771
6 0.075887 0.077536 0.067515 0.069129 0.070797 0.072515 0.074276
7 0.077825 0.079615 0.068912 0.070625 0.072398 0.074230 0.076112
8 0.079786 0.081728 0.070305 0.072122 0.074007 0.075958 0.077970
9 0.081728 0.083834 0.071659 0.073585 0.075587 0.077666 0.079814
10 0.070305 0.071659 0.063876 0.065268 0.066700 0.068170 0.069669
11 0.072122 0.073585 0.065268 0.066742 0.068261 0.069823 0.071420
12 0.074007 0.075587 0.066700 0.068261 0.069873 0.071534 0.073236
13 0.075958 0.077666 0.068170 0.069823 0.071534 0.073300 0.075115
14 0.077970 0.079814 0.069669 0.071420 0.073236 0.075115 0.077050
</pre></div>
</div>
</div>