small update

This commit is contained in:
Morten Hjorth-Jensen
2023-09-03 14:22:23 +02:00
parent 3cc1f701c0
commit 7f3ecb7bb7
103 changed files with 16669 additions and 1168 deletions
+39 -29
View File
@@ -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>
@@ -571,8 +581,8 @@ matrices and vectors.</p>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[-0.38763091 -2.70501534 -0.3581571 -0.96251494 -1.26223899 0.35309734
2.28186376 -1.85104809 -0.37114298 -1.20893188]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[-0.87136737 1.4300745 -0.3322326 -0.66758934 -1.00283636 -0.27625974
1.89249454 -0.25006757 0.73565195 0.33697405]
</pre></div>
</div>
</div>
@@ -793,26 +803,26 @@ as (recall that we user lowercase letters for vectors and uppercase letters for
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.78459267 0.75453081 0.05363779 0.57350724 0.69764852 0.65795279
0.51507839 0.20461136 0.38788697 0.96496641]
[0.25028968 0.96081861 0.18931988 0.51108791 0.30337713 0.43036842
0.52839842 0.15321987 0.78561443 0.09030825]
[0.10097956 0.50584526 0.34989509 0.55626454 0.69154964 0.2895238
0.13393141 0.15503141 0.26015755 0.42902155]
[0.25789255 0.9492866 0.90252116 0.904221 0.51933924 0.14432948
0.54445121 0.02699523 0.18657863 0.971688 ]
[0.13392097 0.27801122 0.50931378 0.04234339 0.22442417 0.44065609
0.74943449 0.42451192 0.33736485 0.97952271]
[0.95824108 0.59950055 0.91346044 0.58042237 0.13228567 0.31519573
0.12427889 0.64736858 0.60236782 0.18036103]
[0.95911004 0.82027884 0.27547877 0.84317815 0.89842298 0.68322599
0.02377668 0.39943328 0.00162091 0.0525221 ]
[0.94076632 0.88335933 0.75492292 0.7860324 0.41923956 0.86181269
0.45979894 0.44190304 0.07829878 0.00458014]
[0.42915006 0.68127341 0.23875722 0.31988705 0.54956992 0.24801014
0.65335632 0.97713364 0.05635863 0.12160173]
[0.93386901 0.74935095 0.96534137 0.98400474 0.98581925 0.30313128
0.41386599 0.88450476 0.87099757 0.22566121]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.52428467 0.89421873 0.57286194 0.35473061 0.34626037 0.77640601
0.60707801 0.60515083 0.41335011 0.16061448]
[0.51508374 0.7651899 0.07657669 0.14045566 0.92863147 0.32541271
0.62761922 0.20965182 0.55051175 0.14072037]
[0.70311568 0.03617972 0.22335823 0.45797073 0.2223808 0.86208133
0.64452882 0.0770789 0.7866024 0.45739087]
[0.38469441 0.16105443 0.09873132 0.21913656 0.34561469 0.521986
0.89261458 0.75628425 0.25070907 0.96504592]
[0.40506137 0.48241947 0.32158804 0.45112054 0.5783575 0.3267061
0.96261297 0.25216021 0.94271589 0.60651016]
[0.91410101 0.48217977 0.39116042 0.99397049 0.80768431 0.68650491
0.04184636 0.5174581 0.86144422 0.46794929]
[0.62405149 0.27498198 0.63550707 0.85902603 0.38644889 0.86858926
0.68282653 0.65554133 0.81051173 0.00281835]
[0.66001778 0.64858537 0.90034533 0.62389761 0.5333734 0.75390337
0.97926642 0.9893405 0.61605739 0.51905011]
[0.59277468 0.52678301 0.68347072 0.76707201 0.08821204 0.55220861
0.14648477 0.17606773 0.59609892 0.83723539]
[0.40961677 0.07325301 0.34652523 0.72201591 0.66250644 0.6367311
0.79577619 0.85212606 0.86811137 0.43001767]]
</pre></div>
</div>
</div>
@@ -872,13 +882,13 @@ 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.0626202708457115
4.327883798133277
0.3178411477108273
[[ 1.01422853 3.21909039 2.82750687]
[ 3.21909039 11.42694395 9.22887861]
[ 2.82750687 9.22887861 17.2086376 ]]
[24.72855434 0.09533574 4.82592 ]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.03499693245669077
4.187268182169147
-0.19627430151896047
[[ 1.0622197 3.16232481 2.98018358]
[ 3.16232481 10.48442771 8.58039072]
[ 2.98018358 8.58039072 13.66351927]]
[21.70244042 0.07978179 3.42794448]
</pre></div>
</div>
</div>