small update
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -2,19 +2,19 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c6c4a1a9",
|
||||
"id": "fb4d27e1",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
"source": [
|
||||
"<!-- HTML file automatically generated from DocOnce source (https://github.com/doconce/doconce/)\n",
|
||||
"doconce format html exercisesweek36.do.txt -->\n",
|
||||
"doconce format html exercisesweek36.do.txt --no_mako -->\n",
|
||||
"<!-- dom:TITLE: Exercises week 36 -->"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "b9e17125",
|
||||
"id": "c3ef468d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "1d1f3e67",
|
||||
"id": "b81273ff",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -44,7 +44,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3c35d277",
|
||||
"id": "53c4e245",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -62,7 +62,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3fea75a2",
|
||||
"id": "e5813e09",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -74,7 +74,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "b4a2ad5f",
|
||||
"id": "f8af4862",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -84,7 +84,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "52645879",
|
||||
"id": "8a114760",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -97,7 +97,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "254fb658",
|
||||
"id": "c4610a33",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -107,7 +107,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f5a7c9bb",
|
||||
"id": "a3608d5c",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -119,7 +119,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5dfb00b0",
|
||||
"id": "5dcf5daa",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -134,7 +134,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f3a06e4a",
|
||||
"id": "0cbd93fd",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -147,7 +147,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5ebd015a",
|
||||
"id": "6fba5d18",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -159,7 +159,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "1b1a8ec0",
|
||||
"id": "bec3e21d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -171,7 +171,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "03028b12",
|
||||
"id": "380e526b",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -183,7 +183,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f69937ca",
|
||||
"id": "97a04d2d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -193,7 +193,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5f6c92bf",
|
||||
"id": "a378590f",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -205,7 +205,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "49ff5bbe",
|
||||
"id": "f2d2d7ae",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -217,7 +217,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "af2180fd",
|
||||
"id": "b2ffd80f",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -229,19 +229,19 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "444ff356",
|
||||
"id": "3c3a9191",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
"source": [
|
||||
"### b) The singular value decomposition\n",
|
||||
"\n",
|
||||
"Use the singular value decomposition of an $n\\times p$ matrix $\\boldsymbol{X}$ (our design matrix)"
|
||||
"Here we will use the singular value decomposition of an $n\\times p$ matrix $\\boldsymbol{X}$ (our design matrix)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9763b84e",
|
||||
"id": "4e3f0bb8",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -253,12 +253,13 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3b151e0d",
|
||||
"id": "040a6f88",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
"source": [
|
||||
"where $\\boldsymbol{U}$ and $\\boldsymbol{V}$ are orthogonal matrices of dimensions\n",
|
||||
"to study properties of Ridge regression and ordinary least squares regression.\n",
|
||||
"Here $\\boldsymbol{U}$ and $\\boldsymbol{V}$ are orthogonal matrices of dimensions\n",
|
||||
"$n\\times n$ and $p\\times p$, respectively, and $\\boldsymbol{\\Sigma}$ is an\n",
|
||||
"$n\\times p$ matrix which contains the singular values only. This material was discussed during the lectures of week 35.\n",
|
||||
"\n",
|
||||
@@ -268,7 +269,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "22e9035e",
|
||||
"id": "0107597b",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -280,7 +281,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "15d6527a",
|
||||
"id": "55fd1a9a",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -290,7 +291,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9a0a76fa",
|
||||
"id": "8a05634c",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -302,7 +303,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9407f726",
|
||||
"id": "5d46ab65",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -314,7 +315,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c36ff1cb",
|
||||
"id": "478a39d8",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -338,7 +339,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "409205f5",
|
||||
"id": "ed28dbd2",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -350,7 +351,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "fa81481d",
|
||||
"id": "1939c401",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -360,7 +361,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c10bc842",
|
||||
"id": "10877c2d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -372,7 +373,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "d42231f2",
|
||||
"id": "a7adfe54",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
|
||||
@@ -445,7 +445,7 @@ const thebe_selector_output = ".output, .cell_output"
|
||||
<div>
|
||||
|
||||
<!-- HTML file automatically generated from DocOnce source (https://github.com/doconce/doconce/)
|
||||
doconce format html exercisesweek36.do.txt -->
|
||||
doconce format html exercisesweek36.do.txt --no_mako -->
|
||||
<!-- dom:TITLE: Exercises week 36 --><div class="tex2jax_ignore mathjax_ignore section" id="exercises-week-36">
|
||||
<h1>Exercises week 36<a class="headerlink" href="#exercises-week-36" title="Permalink to this headline">¶</a></h1>
|
||||
<p><strong>September 4-8, 2023</strong></p>
|
||||
@@ -516,12 +516,13 @@ a finite number larger than zero. We will not implement that here.</p>
|
||||
</div>
|
||||
<div class="section" id="b-the-singular-value-decomposition">
|
||||
<h3>b) The singular value decomposition<a class="headerlink" href="#b-the-singular-value-decomposition" title="Permalink to this headline">¶</a></h3>
|
||||
<p>Use the singular value decomposition of an <span class="math notranslate nohighlight">\(n\times p\)</span> matrix <span class="math notranslate nohighlight">\(\boldsymbol{X}\)</span> (our design matrix)</p>
|
||||
<p>Here we will use the singular value decomposition of an <span class="math notranslate nohighlight">\(n\times p\)</span> matrix <span class="math notranslate nohighlight">\(\boldsymbol{X}\)</span> (our design matrix)</p>
|
||||
<div class="math notranslate nohighlight">
|
||||
\[
|
||||
\boldsymbol{X}=\boldsymbol{U}\boldsymbol{\Sigma}\boldsymbol{V}^T,
|
||||
\]</div>
|
||||
<p>where <span class="math notranslate nohighlight">\(\boldsymbol{U}\)</span> and <span class="math notranslate nohighlight">\(\boldsymbol{V}\)</span> are orthogonal matrices of dimensions
|
||||
<p>to study properties of Ridge regression and ordinary least squares regression.
|
||||
Here <span class="math notranslate nohighlight">\(\boldsymbol{U}\)</span> and <span class="math notranslate nohighlight">\(\boldsymbol{V}\)</span> are orthogonal matrices of dimensions
|
||||
<span class="math notranslate nohighlight">\(n\times n\)</span> and <span class="math notranslate nohighlight">\(p\times p\)</span>, respectively, and <span class="math notranslate nohighlight">\(\boldsymbol{\Sigma}\)</span> is an
|
||||
<span class="math notranslate nohighlight">\(n\times p\)</span> matrix which contains the singular values only. This material was discussed during the lectures of week 35.</p>
|
||||
<p>Show that you can write the
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -2,19 +2,19 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c6c4a1a9",
|
||||
"id": "fb4d27e1",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
"source": [
|
||||
"<!-- HTML file automatically generated from DocOnce source (https://github.com/doconce/doconce/)\n",
|
||||
"doconce format html exercisesweek36.do.txt -->\n",
|
||||
"doconce format html exercisesweek36.do.txt --no_mako -->\n",
|
||||
"<!-- dom:TITLE: Exercises week 36 -->"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "b9e17125",
|
||||
"id": "c3ef468d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "1d1f3e67",
|
||||
"id": "b81273ff",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -44,7 +44,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3c35d277",
|
||||
"id": "53c4e245",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -62,7 +62,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3fea75a2",
|
||||
"id": "e5813e09",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -74,7 +74,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "b4a2ad5f",
|
||||
"id": "f8af4862",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -84,7 +84,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "52645879",
|
||||
"id": "8a114760",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -97,7 +97,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "254fb658",
|
||||
"id": "c4610a33",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -107,7 +107,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f5a7c9bb",
|
||||
"id": "a3608d5c",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -119,7 +119,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5dfb00b0",
|
||||
"id": "5dcf5daa",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -134,7 +134,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f3a06e4a",
|
||||
"id": "0cbd93fd",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -147,7 +147,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5ebd015a",
|
||||
"id": "6fba5d18",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -159,7 +159,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "1b1a8ec0",
|
||||
"id": "bec3e21d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -171,7 +171,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "03028b12",
|
||||
"id": "380e526b",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -183,7 +183,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f69937ca",
|
||||
"id": "97a04d2d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -193,7 +193,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5f6c92bf",
|
||||
"id": "a378590f",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -205,7 +205,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "49ff5bbe",
|
||||
"id": "f2d2d7ae",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -217,7 +217,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "af2180fd",
|
||||
"id": "b2ffd80f",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -229,19 +229,19 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "444ff356",
|
||||
"id": "3c3a9191",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
"source": [
|
||||
"### b) The singular value decomposition\n",
|
||||
"\n",
|
||||
"Use the singular value decomposition of an $n\\times p$ matrix $\\boldsymbol{X}$ (our design matrix)"
|
||||
"Here we will use the singular value decomposition of an $n\\times p$ matrix $\\boldsymbol{X}$ (our design matrix)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9763b84e",
|
||||
"id": "4e3f0bb8",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -253,12 +253,13 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3b151e0d",
|
||||
"id": "040a6f88",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
"source": [
|
||||
"where $\\boldsymbol{U}$ and $\\boldsymbol{V}$ are orthogonal matrices of dimensions\n",
|
||||
"to study properties of Ridge regression and ordinary least squares regression.\n",
|
||||
"Here $\\boldsymbol{U}$ and $\\boldsymbol{V}$ are orthogonal matrices of dimensions\n",
|
||||
"$n\\times n$ and $p\\times p$, respectively, and $\\boldsymbol{\\Sigma}$ is an\n",
|
||||
"$n\\times p$ matrix which contains the singular values only. This material was discussed during the lectures of week 35.\n",
|
||||
"\n",
|
||||
@@ -268,7 +269,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "22e9035e",
|
||||
"id": "0107597b",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -280,7 +281,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "15d6527a",
|
||||
"id": "55fd1a9a",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -290,7 +291,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9a0a76fa",
|
||||
"id": "8a05634c",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -302,7 +303,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9407f726",
|
||||
"id": "5d46ab65",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -314,7 +315,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c36ff1cb",
|
||||
"id": "478a39d8",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -338,7 +339,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "409205f5",
|
||||
"id": "ed28dbd2",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -350,7 +351,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "fa81481d",
|
||||
"id": "1939c401",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -360,7 +361,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c10bc842",
|
||||
"id": "10877c2d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -372,7 +373,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "d42231f2",
|
||||
"id": "a7adfe54",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c6c4a1a9",
|
||||
"id": "fb4d27e1",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
"source": [
|
||||
"<!-- HTML file automatically generated from DocOnce source (https://github.com/doconce/doconce/)\n",
|
||||
"doconce format html exercisesweek36.do.txt -->\n",
|
||||
"doconce format html exercisesweek36.do.txt --no_mako -->\n",
|
||||
"<!-- dom:TITLE: Exercises week 36 -->"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "b9e17125",
|
||||
"id": "c3ef468d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "1d1f3e67",
|
||||
"id": "b81273ff",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -44,7 +44,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3c35d277",
|
||||
"id": "53c4e245",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -62,7 +62,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3fea75a2",
|
||||
"id": "e5813e09",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -74,7 +74,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "b4a2ad5f",
|
||||
"id": "f8af4862",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -84,7 +84,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "52645879",
|
||||
"id": "8a114760",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -97,7 +97,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "254fb658",
|
||||
"id": "c4610a33",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -107,7 +107,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f5a7c9bb",
|
||||
"id": "a3608d5c",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -119,7 +119,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5dfb00b0",
|
||||
"id": "5dcf5daa",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -134,7 +134,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f3a06e4a",
|
||||
"id": "0cbd93fd",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -147,7 +147,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5ebd015a",
|
||||
"id": "6fba5d18",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -159,7 +159,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "1b1a8ec0",
|
||||
"id": "bec3e21d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -171,7 +171,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "03028b12",
|
||||
"id": "380e526b",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -183,7 +183,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f69937ca",
|
||||
"id": "97a04d2d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -193,7 +193,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5f6c92bf",
|
||||
"id": "a378590f",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -205,7 +205,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "49ff5bbe",
|
||||
"id": "f2d2d7ae",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -217,7 +217,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "af2180fd",
|
||||
"id": "b2ffd80f",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -229,19 +229,19 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "444ff356",
|
||||
"id": "3c3a9191",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
"source": [
|
||||
"### b) The singular value decomposition\n",
|
||||
"\n",
|
||||
"Use the singular value decomposition of an $n\\times p$ matrix $\\boldsymbol{X}$ (our design matrix)"
|
||||
"Here we will use the singular value decomposition of an $n\\times p$ matrix $\\boldsymbol{X}$ (our design matrix)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9763b84e",
|
||||
"id": "4e3f0bb8",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -253,12 +253,13 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3b151e0d",
|
||||
"id": "040a6f88",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
"source": [
|
||||
"where $\\boldsymbol{U}$ and $\\boldsymbol{V}$ are orthogonal matrices of dimensions\n",
|
||||
"to study properties of Ridge regression and ordinary least squares regression.\n",
|
||||
"Here $\\boldsymbol{U}$ and $\\boldsymbol{V}$ are orthogonal matrices of dimensions\n",
|
||||
"$n\\times n$ and $p\\times p$, respectively, and $\\boldsymbol{\\Sigma}$ is an\n",
|
||||
"$n\\times p$ matrix which contains the singular values only. This material was discussed during the lectures of week 35.\n",
|
||||
"\n",
|
||||
@@ -268,7 +269,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "22e9035e",
|
||||
"id": "0107597b",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -280,7 +281,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "15d6527a",
|
||||
"id": "55fd1a9a",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -290,7 +291,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9a0a76fa",
|
||||
"id": "8a05634c",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -302,7 +303,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9407f726",
|
||||
"id": "5d46ab65",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -314,7 +315,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c36ff1cb",
|
||||
"id": "478a39d8",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -338,7 +339,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "409205f5",
|
||||
"id": "ed28dbd2",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -350,7 +351,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "fa81481d",
|
||||
"id": "1939c401",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -360,7 +361,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c10bc842",
|
||||
"id": "10877c2d",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -372,7 +373,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "d42231f2",
|
||||
"id": "a7adfe54",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user