From fe19fd515e2e97907d26998df6bd75f4f66cc337 Mon Sep 17 00:00:00 2001 From: Morten Hjorth-Jensen Date: Thu, 8 Sep 2022 17:02:11 +0200 Subject: [PATCH] small typo --- doc/pub/week35/html/._week35-bs068.html | 2 +- doc/pub/week35/html/week35-reveal.html | 2 +- doc/pub/week35/html/week35-solarized.html | 2 +- doc/pub/week35/html/week35.html | 2 +- doc/pub/week35/ipynb/ipynb-week35-src.tar.gz | Bin 191 -> 191 bytes doc/pub/week35/ipynb/week35.ipynb | 826 +++++++++---------- doc/src/week35/week35.do.txt | 2 +- 7 files changed, 418 insertions(+), 418 deletions(-) diff --git a/doc/pub/week35/html/._week35-bs068.html b/doc/pub/week35/html/._week35-bs068.html index 39c9b7811..f980e363c 100644 --- a/doc/pub/week35/html/._week35-bs068.html +++ b/doc/pub/week35/html/._week35-bs068.html @@ -298,7 +298,7 @@ $$

Taking the derivative with respect to \( \boldsymbol{\beta} \) and recalling that the derivative of the absolute value is (we drop the boldfaced vector symbol for simplicty)

$$ -\frac{d \vert \beta\vert}{d \boldsymbol{\beta}}=\mathrm{sgn}(\boldsymbol{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\ 0 & \beta =0\\-1 & \beta < 0, \end{array}\right. +\frac{d \vert \beta\vert}{d \boldsymbol{\beta}}=\mathrm{sgn}(\boldsymbol{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\-1 & \beta < 0, \end{array}\right. $$

we have that the derivative of the cost function is

diff --git a/doc/pub/week35/html/week35-reveal.html b/doc/pub/week35/html/week35-reveal.html index c7195b2a3..f4a5143cf 100644 --- a/doc/pub/week35/html/week35-reveal.html +++ b/doc/pub/week35/html/week35-reveal.html @@ -3465,7 +3465,7 @@ $$

Taking the derivative with respect to \( \boldsymbol{\beta} \) and recalling that the derivative of the absolute value is (we drop the boldfaced vector symbol for simplicty)

 
$$ -\frac{d \vert \beta\vert}{d \boldsymbol{\beta}}=\mathrm{sgn}(\boldsymbol{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\ 0 & \beta =0\\-1 & \beta < 0, \end{array}\right. +\frac{d \vert \beta\vert}{d \boldsymbol{\beta}}=\mathrm{sgn}(\boldsymbol{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\-1 & \beta < 0, \end{array}\right. $$

 
diff --git a/doc/pub/week35/html/week35-solarized.html b/doc/pub/week35/html/week35-solarized.html index a17d8d38b..c30dee9d4 100644 --- a/doc/pub/week35/html/week35-solarized.html +++ b/doc/pub/week35/html/week35-solarized.html @@ -3309,7 +3309,7 @@ $$

Taking the derivative with respect to \( \boldsymbol{\beta} \) and recalling that the derivative of the absolute value is (we drop the boldfaced vector symbol for simplicty)

$$ -\frac{d \vert \beta\vert}{d \boldsymbol{\beta}}=\mathrm{sgn}(\boldsymbol{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\ 0 & \beta =0\\-1 & \beta < 0, \end{array}\right. +\frac{d \vert \beta\vert}{d \boldsymbol{\beta}}=\mathrm{sgn}(\boldsymbol{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\-1 & \beta < 0, \end{array}\right. $$

we have that the derivative of the cost function is

diff --git a/doc/pub/week35/html/week35.html b/doc/pub/week35/html/week35.html index 653392d4b..f4a1384ea 100644 --- a/doc/pub/week35/html/week35.html +++ b/doc/pub/week35/html/week35.html @@ -3386,7 +3386,7 @@ $$

Taking the derivative with respect to \( \boldsymbol{\beta} \) and recalling that the derivative of the absolute value is (we drop the boldfaced vector symbol for simplicty)

$$ -\frac{d \vert \beta\vert}{d \boldsymbol{\beta}}=\mathrm{sgn}(\boldsymbol{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\ 0 & \beta =0\\-1 & \beta < 0, \end{array}\right. +\frac{d \vert \beta\vert}{d \boldsymbol{\beta}}=\mathrm{sgn}(\boldsymbol{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\-1 & \beta < 0, \end{array}\right. $$

we have that the derivative of the cost function is

diff --git a/doc/pub/week35/ipynb/ipynb-week35-src.tar.gz b/doc/pub/week35/ipynb/ipynb-week35-src.tar.gz index c4a6ba91b27801e287ec36f5a3f2f52360cb1145..2c86e862f6bec724508a4030eb71e3ae4b18e3f7 100644 GIT binary patch literal 191 zcmV;w06_mAiwFSY0~%uh1MSaE3c@fD1>mlGia9|^Ow+CfyKo_hc!88oZLCddlA^u6 z{Q+GmZi)!`HjglmFmuS(n_U*Uy9*XW2ub1?#!M4FC0Why38frp%!U%7Y0Q97##cN5 zvfN59opr(tt2EUal|}WgH`L1V!$0#W@XSAPtfYnQzIT;YptQqW>l$u|HRF+NdzC|> t(T*c9c 0 \\\\ 0 & \\beta =0\\\\-1 & \\beta < 0, \\end{array}\\right.\n", + "\\frac{d \\vert \\beta\\vert}{d \\boldsymbol{\\beta}}=\\mathrm{sgn}(\\boldsymbol{\\beta})=\\left\\{\\begin{array}{cc} 1 & \\beta > 0 \\\\-1 & \\beta < 0, \\end{array}\\right.\n", "$$" ] }, { "cell_type": "markdown", - "id": "c29a0029", + "id": "26a3c4ec", "metadata": { "editable": true }, @@ -5191,7 +5191,7 @@ }, { "cell_type": "markdown", - "id": "f42be85b", + "id": "101c994f", "metadata": { "editable": true }, @@ -5203,7 +5203,7 @@ }, { "cell_type": "markdown", - "id": "d40c7b89", + "id": "40dd9f0a", "metadata": { "editable": true }, @@ -5213,7 +5213,7 @@ }, { "cell_type": "markdown", - "id": "46a4ace7", + "id": "af4aee98", "metadata": { "editable": true }, @@ -5225,7 +5225,7 @@ }, { "cell_type": "markdown", - "id": "2dbb1a94", + "id": "2fae682f", "metadata": { "editable": true }, @@ -5235,7 +5235,7 @@ }, { "cell_type": "markdown", - "id": "5ca52930", + "id": "cbf66da8", "metadata": { "editable": true }, @@ -5247,7 +5247,7 @@ }, { "cell_type": "markdown", - "id": "5e4c91f6", + "id": "a8b01e63", "metadata": { "editable": true }, @@ -5316,7 +5316,7 @@ }, { "cell_type": "markdown", - "id": "76a81c61", + "id": "19dd6294", "metadata": { "editable": true }, @@ -5330,7 +5330,7 @@ { "cell_type": "code", "execution_count": 31, - "id": "b524fb84", + "id": "b1a5f068", "metadata": { "collapsed": false, "editable": true @@ -5343,7 +5343,7 @@ }, { "cell_type": "markdown", - "id": "6d1b9bf7", + "id": "7b6b84c1", "metadata": { "editable": true }, @@ -5357,7 +5357,7 @@ }, { "cell_type": "markdown", - "id": "8d5fd7a2", + "id": "ddf0341d", "metadata": { "editable": true }, @@ -5370,7 +5370,7 @@ }, { "cell_type": "markdown", - "id": "87982c08", + "id": "f6a29e6f", "metadata": { "editable": true }, @@ -5381,7 +5381,7 @@ }, { "cell_type": "markdown", - "id": "1204b0ee", + "id": "2071dc36", "metadata": { "editable": true }, @@ -5393,7 +5393,7 @@ }, { "cell_type": "markdown", - "id": "06383502", + "id": "6bd2414e", "metadata": { "editable": true }, @@ -5403,7 +5403,7 @@ }, { "cell_type": "markdown", - "id": "c629cf4e", + "id": "1d273873", "metadata": { "editable": true }, @@ -5415,7 +5415,7 @@ }, { "cell_type": "markdown", - "id": "509d5952", + "id": "12f141e5", "metadata": { "editable": true }, @@ -5431,7 +5431,7 @@ { "cell_type": "code", "execution_count": 32, - "id": "6e13a21a", + "id": "40688707", "metadata": { "collapsed": false, "editable": true @@ -5482,7 +5482,7 @@ }, { "cell_type": "markdown", - "id": "150c65cf", + "id": "bdf3e008", "metadata": { "editable": true }, @@ -5492,7 +5492,7 @@ }, { "cell_type": "markdown", - "id": "877a66ce", + "id": "a743a8f7", "metadata": { "editable": true }, @@ -5538,7 +5538,7 @@ { "cell_type": "code", "execution_count": 33, - "id": "41966219", + "id": "fd6d1cb5", "metadata": { "collapsed": false, "editable": true @@ -5551,7 +5551,7 @@ }, { "cell_type": "markdown", - "id": "f1aaef76", + "id": "3fc40c82", "metadata": { "editable": true }, @@ -5562,7 +5562,7 @@ { "cell_type": "code", "execution_count": 34, - "id": "f2af05c8", + "id": "c618d953", "metadata": { "collapsed": false, "editable": true @@ -5577,7 +5577,7 @@ }, { "cell_type": "markdown", - "id": "a2b99a36", + "id": "cab0421b", "metadata": { "editable": true }, @@ -5595,7 +5595,7 @@ { "cell_type": "code", "execution_count": 35, - "id": "d6032869", + "id": "5dda4da8", "metadata": { "collapsed": false, "editable": true @@ -5612,7 +5612,7 @@ }, { "cell_type": "markdown", - "id": "1e446f61", + "id": "9369aca3", "metadata": { "editable": true }, @@ -5622,7 +5622,7 @@ }, { "cell_type": "markdown", - "id": "52bf375d", + "id": "1d721b3e", "metadata": { "editable": true }, @@ -5633,7 +5633,7 @@ }, { "cell_type": "markdown", - "id": "c9e4a451", + "id": "2ae374c6", "metadata": { "editable": true }, @@ -5644,7 +5644,7 @@ }, { "cell_type": "markdown", - "id": "6c8c407d", + "id": "502ccfaa", "metadata": { "editable": true }, @@ -5655,7 +5655,7 @@ }, { "cell_type": "markdown", - "id": "ce3bb965", + "id": "1a86daf6", "metadata": { "editable": true }, @@ -5678,7 +5678,7 @@ { "cell_type": "code", "execution_count": 36, - "id": "cd3c026a", + "id": "710ad5b6", "metadata": { "collapsed": false, "editable": true @@ -5691,7 +5691,7 @@ }, { "cell_type": "markdown", - "id": "b07b7a34", + "id": "e5637c7c", "metadata": { "editable": true }, @@ -5706,7 +5706,7 @@ { "cell_type": "code", "execution_count": 37, - "id": "86cde4dd", + "id": "32a02bc3", "metadata": { "collapsed": false, "editable": true @@ -5786,7 +5786,7 @@ }, { "cell_type": "markdown", - "id": "027dcc58", + "id": "36b5bbf6", "metadata": { "editable": true }, @@ -5801,7 +5801,7 @@ }, { "cell_type": "markdown", - "id": "2a44814e", + "id": "2b3df71f", "metadata": { "editable": true }, @@ -5814,7 +5814,7 @@ }, { "cell_type": "markdown", - "id": "ed838a79", + "id": "7f78e38c", "metadata": { "editable": true }, @@ -5825,7 +5825,7 @@ }, { "cell_type": "markdown", - "id": "6a1a6c6a", + "id": "62a4bf6e", "metadata": { "editable": true }, @@ -5837,7 +5837,7 @@ }, { "cell_type": "markdown", - "id": "641a97f8", + "id": "222d5ecc", "metadata": { "editable": true }, @@ -5847,7 +5847,7 @@ }, { "cell_type": "markdown", - "id": "353f15fd", + "id": "40f07ead", "metadata": { "editable": true }, @@ -5859,7 +5859,7 @@ }, { "cell_type": "markdown", - "id": "f61c05b6", + "id": "5c6380c3", "metadata": { "editable": true }, @@ -5869,7 +5869,7 @@ }, { "cell_type": "markdown", - "id": "ab11beb1", + "id": "7eccaadc", "metadata": { "editable": true }, @@ -5891,7 +5891,7 @@ }, { "cell_type": "markdown", - "id": "ae6b4c88", + "id": "cc95e14c", "metadata": { "editable": true }, @@ -5903,7 +5903,7 @@ }, { "cell_type": "markdown", - "id": "621e52b3", + "id": "030c8aee", "metadata": { "editable": true }, @@ -5913,7 +5913,7 @@ }, { "cell_type": "markdown", - "id": "2746a572", + "id": "94fdfd57", "metadata": { "editable": true }, @@ -5925,7 +5925,7 @@ }, { "cell_type": "markdown", - "id": "2cd087d4", + "id": "f3d3bda8", "metadata": { "editable": true }, @@ -5935,7 +5935,7 @@ }, { "cell_type": "markdown", - "id": "180351f8", + "id": "974b0bfa", "metadata": { "editable": true }, @@ -5947,7 +5947,7 @@ }, { "cell_type": "markdown", - "id": "aa074b3e", + "id": "531c5860", "metadata": { "editable": true }, @@ -5960,7 +5960,7 @@ }, { "cell_type": "markdown", - "id": "e02208eb", + "id": "fbd40c20", "metadata": { "editable": true }, @@ -5972,7 +5972,7 @@ }, { "cell_type": "markdown", - "id": "8dca7f5e", + "id": "547c1ef1", "metadata": { "editable": true }, @@ -5982,7 +5982,7 @@ }, { "cell_type": "markdown", - "id": "520a2239", + "id": "301b971b", "metadata": { "editable": true }, @@ -5994,7 +5994,7 @@ }, { "cell_type": "markdown", - "id": "cd75eee2", + "id": "f8f17713", "metadata": { "editable": true }, @@ -6004,7 +6004,7 @@ }, { "cell_type": "markdown", - "id": "8495cf80", + "id": "bb4c1126", "metadata": { "editable": true }, @@ -6016,7 +6016,7 @@ }, { "cell_type": "markdown", - "id": "bae8a404", + "id": "81112dc2", "metadata": { "editable": true }, @@ -6026,7 +6026,7 @@ }, { "cell_type": "markdown", - "id": "a74331f9", + "id": "c597b4bd", "metadata": { "editable": true }, diff --git a/doc/src/week35/week35.do.txt b/doc/src/week35/week35.do.txt index 4372552a4..ad9f80209 100644 --- a/doc/src/week35/week35.do.txt +++ b/doc/src/week35/week35.do.txt @@ -2495,7 +2495,7 @@ C(\bm{X},\bm{\beta})=\left\{(\bm{y}-\bm{X}\bm{\beta})^T(\bm{y}-\bm{X}\bm{\beta}) Taking the derivative with respect to $\bm{\beta}$ and recalling that the derivative of the absolute value is (we drop the boldfaced vector symbol for simplicty) !bt \[ -\frac{d \vert \beta\vert}{d \bm{\beta}}=\mathrm{sgn}(\bm{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\ 0 & \beta =0\\-1 & \beta < 0, \end{array}\right. +\frac{d \vert \beta\vert}{d \bm{\beta}}=\mathrm{sgn}(\bm{\beta})=\left\{\begin{array}{cc} 1 & \beta > 0 \\-1 & \beta < 0, \end{array}\right. \] !et we have that the derivative of the cost function is