Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Sep 26, 2023
1 parent 95696f3 commit 486174e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1ad63189
67bfa027
8 changes: 4 additions & 4 deletions schedule/slides/06-information-criteria.html
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,12 @@ <h2>AIC and BIC</h2>
<p><span class="math inline">\(\textrm{AIC}/n = -2\textrm{loglikelihood}/n + 2\textrm{df}/n\)</span></p>
<p><span class="math inline">\(\textrm{BIC}/n = -2\textrm{loglikelihood}/n + 2\log(n)\textrm{df}/n\)</span></p>
<div class="fragment">
<p>In the case of a linear model with Gaussian errors,</p>
<p>In the case of a linear model with Gaussian errors and <span class="math inline">\(p\)</span> predictors</p>
<span class="math display">\[\begin{aligned}
\textrm{AIC} &amp;= -n + 2n\log(2\pi) - 2 + 2\log(n) - 2\log(RSS) + 2(p+2) \\
&amp;\propto -2\log(RSS) + 2(p+2)
\textrm{AIC}/n &amp;= \log(2\pi) + \log(RSS/n) + 2(p+1)/n \\
&amp;\propto \log(RSS) + 2(p+1)/n
\end{aligned}\]</span>
<p>( <span class="math inline">\(p+2\)</span> because of the intercept and the unknown variance)</p>
<p>( <span class="math inline">\(p+1\)</span> because of the unknown variance, intercept included in <span class="math inline">\(p\)</span> or not)</p>
</div>
<div class="fragment">
<div class="callout callout-important callout-titled callout-style-default">
Expand Down
2 changes: 1 addition & 1 deletion search.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
"href": "schedule/slides/06-information-criteria.html#aic-and-bic",
"title": "UBC Stat406 2023W",
"section": "AIC and BIC",
"text": "AIC and BIC\nThese have a very similar flavor to \\(C_p\\), but their genesis is different.\nWithout going into too much detail, they look like\n\\(\\textrm{AIC}/n = -2\\textrm{loglikelihood}/n + 2\\textrm{df}/n\\)\n\\(\\textrm{BIC}/n = -2\\textrm{loglikelihood}/n + 2\\log(n)\\textrm{df}/n\\)\n\nIn the case of a linear model with Gaussian errors,\n\\[\\begin{aligned}\n\\textrm{AIC} &= -n + 2n\\log(2\\pi) - 2 + 2\\log(n) - 2\\log(RSS) + 2(p+2) \\\\\n&\\propto -2\\log(RSS) + 2(p+2)\n\\end{aligned}\\]\n( \\(p+2\\) because of the intercept and the unknown variance)\n\n\n\n\n\n\n\n\nImportant\n\n\nUnfortunately, different books/software/notes define these differently. Even different R packages. This is super annoying.\nForms above are in [ESL] eq. (7.29) and (7.35). [ISLR] gives special cases in Section 6.1.3. Remember the generic form here."
"text": "AIC and BIC\nThese have a very similar flavor to \\(C_p\\), but their genesis is different.\nWithout going into too much detail, they look like\n\\(\\textrm{AIC}/n = -2\\textrm{loglikelihood}/n + 2\\textrm{df}/n\\)\n\\(\\textrm{BIC}/n = -2\\textrm{loglikelihood}/n + 2\\log(n)\\textrm{df}/n\\)\n\nIn the case of a linear model with Gaussian errors and \\(p\\) predictors\n\\[\\begin{aligned}\n\\textrm{AIC}/n &= \\log(2\\pi) + \\log(RSS/n) + 2(p+1)/n \\\\\n&\\propto \\log(RSS) + 2(p+1)/n\n\\end{aligned}\\]\n( \\(p+1\\) because of the unknown variance, intercept included in \\(p\\) or not)\n\n\n\n\n\n\n\n\nImportant\n\n\nUnfortunately, different books/software/notes define these differently. Even different R packages. This is super annoying.\nForms above are in [ESL] eq. (7.29) and (7.35). [ISLR] gives special cases in Section 6.1.3. Remember the generic form here."
},
{
"objectID": "schedule/slides/06-information-criteria.html#over-fitting-vs.-under-fitting",
Expand Down
50 changes: 25 additions & 25 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,102 +2,102 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/handouts/lab00-git.html</loc>
<lastmod>2023-09-26T14:57:23.472Z</lastmod>
<lastmod>2023-09-26T17:39:03.161Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/08-ridge-regression.html</loc>
<lastmod>2023-09-26T14:57:21.488Z</lastmod>
<lastmod>2023-09-26T17:39:00.213Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/06-information-criteria.html</loc>
<lastmod>2023-09-26T14:57:20.080Z</lastmod>
<lastmod>2023-09-26T17:38:58.117Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/04-bias-variance.html</loc>
<lastmod>2023-09-26T14:57:18.760Z</lastmod>
<lastmod>2023-09-26T17:38:56.189Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/02-lm-example.html</loc>
<lastmod>2023-09-26T14:57:17.428Z</lastmod>
<lastmod>2023-09-26T17:38:54.249Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/00-version-control.html</loc>
<lastmod>2023-09-26T14:57:16.316Z</lastmod>
<lastmod>2023-09-26T17:38:52.665Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/00-quiz-0-wrap.html</loc>
<lastmod>2023-09-26T14:57:13.996Z</lastmod>
<lastmod>2023-09-26T17:38:49.365Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/00-cv-for-many-models.html</loc>
<lastmod>2023-09-26T14:57:12.796Z</lastmod>
<lastmod>2023-09-26T17:38:47.709Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/course-setup.html</loc>
<lastmod>2023-09-26T14:57:11.496Z</lastmod>
<lastmod>2023-09-26T17:38:45.801Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/computing/windows.html</loc>
<lastmod>2023-09-26T14:57:09.884Z</lastmod>
<lastmod>2023-09-26T17:38:43.485Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/computing/mac_x86.html</loc>
<lastmod>2023-09-26T14:57:08.452Z</lastmod>
<lastmod>2023-09-26T17:38:41.337Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/computing/index.html</loc>
<lastmod>2023-09-26T14:57:07.112Z</lastmod>
<lastmod>2023-09-26T17:38:39.481Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/index.html</loc>
<lastmod>2023-09-26T14:57:05.484Z</lastmod>
<lastmod>2023-09-26T17:38:37.125Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/faq.html</loc>
<lastmod>2023-09-26T14:57:06.744Z</lastmod>
<lastmod>2023-09-26T17:38:38.981Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/computing/mac_arm.html</loc>
<lastmod>2023-09-26T14:57:07.772Z</lastmod>
<lastmod>2023-09-26T17:38:40.405Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/computing/ubuntu.html</loc>
<lastmod>2023-09-26T14:57:09.120Z</lastmod>
<lastmod>2023-09-26T17:38:42.329Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/syllabus.html</loc>
<lastmod>2023-09-26T14:57:10.928Z</lastmod>
<lastmod>2023-09-26T17:38:44.989Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/index.html</loc>
<lastmod>2023-09-26T14:57:12.244Z</lastmod>
<lastmod>2023-09-26T17:38:46.841Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/00-intro-to-class.html</loc>
<lastmod>2023-09-26T14:57:13.448Z</lastmod>
<lastmod>2023-09-26T17:38:48.625Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/00-r-review.html</loc>
<lastmod>2023-09-26T14:57:15.316Z</lastmod>
<lastmod>2023-09-26T17:38:51.245Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/01-lm-review.html</loc>
<lastmod>2023-09-26T14:57:16.876Z</lastmod>
<lastmod>2023-09-26T17:38:53.465Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/03-regression-function.html</loc>
<lastmod>2023-09-26T14:57:18.160Z</lastmod>
<lastmod>2023-09-26T17:38:55.333Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/05-estimating-test-mse.html</loc>
<lastmod>2023-09-26T14:57:19.484Z</lastmod>
<lastmod>2023-09-26T17:38:57.245Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/07-greedy-selection.html</loc>
<lastmod>2023-09-26T14:57:20.756Z</lastmod>
<lastmod>2023-09-26T17:38:59.101Z</lastmod>
</url>
<url>
<loc>https://github.com/UBC-STAT/stat-406/schedule/slides/09-l1-penalties.html</loc>
<lastmod>2023-09-26T14:57:22.220Z</lastmod>
<lastmod>2023-09-26T17:39:01.293Z</lastmod>
</url>
</urlset>

0 comments on commit 486174e

Please sign in to comment.