diff --git a/.nojekyll b/.nojekyll
index e4a8d47..b3b36cd 100644
--- a/.nojekyll
+++ b/.nojekyll
@@ -1 +1 @@
-1ad63189
\ No newline at end of file
+67bfa027
\ No newline at end of file
diff --git a/schedule/slides/06-information-criteria.html b/schedule/slides/06-information-criteria.html
index c0a1ee0..7f7a405 100644
--- a/schedule/slides/06-information-criteria.html
+++ b/schedule/slides/06-information-criteria.html
@@ -496,12 +496,12 @@
AIC and BIC
\(\textrm{AIC}/n = -2\textrm{loglikelihood}/n + 2\textrm{df}/n\)
\(\textrm{BIC}/n = -2\textrm{loglikelihood}/n + 2\log(n)\textrm{df}/n\)
-
In the case of a linear model with Gaussian errors,
+
In the case of a linear model with Gaussian errors and \(p\) predictors
\[\begin{aligned}
-\textrm{AIC} &= -n + 2n\log(2\pi) - 2 + 2\log(n) - 2\log(RSS) + 2(p+2) \\
-&\propto -2\log(RSS) + 2(p+2)
+\textrm{AIC}/n &= \log(2\pi) + \log(RSS/n) + 2(p+1)/n \\
+&\propto \log(RSS) + 2(p+1)/n
\end{aligned}\]
-
( \(p+2\) because of the intercept and the unknown variance)
+
( \(p+1\) because of the unknown variance, intercept included in \(p\) or not)
diff --git a/search.json b/search.json
index 96d002d..3992824 100644
--- a/search.json
+++ b/search.json
@@ -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",
diff --git a/sitemap.xml b/sitemap.xml
index 58b0fdb..c5226ba 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -2,102 +2,102 @@
https://github.com/UBC-STAT/stat-406/schedule/handouts/lab00-git.html
- 2023-09-26T14:57:23.472Z
+ 2023-09-26T17:39:03.161Z
https://github.com/UBC-STAT/stat-406/schedule/slides/08-ridge-regression.html
- 2023-09-26T14:57:21.488Z
+ 2023-09-26T17:39:00.213Z
https://github.com/UBC-STAT/stat-406/schedule/slides/06-information-criteria.html
- 2023-09-26T14:57:20.080Z
+ 2023-09-26T17:38:58.117Z
https://github.com/UBC-STAT/stat-406/schedule/slides/04-bias-variance.html
- 2023-09-26T14:57:18.760Z
+ 2023-09-26T17:38:56.189Z
https://github.com/UBC-STAT/stat-406/schedule/slides/02-lm-example.html
- 2023-09-26T14:57:17.428Z
+ 2023-09-26T17:38:54.249Z
https://github.com/UBC-STAT/stat-406/schedule/slides/00-version-control.html
- 2023-09-26T14:57:16.316Z
+ 2023-09-26T17:38:52.665Z
https://github.com/UBC-STAT/stat-406/schedule/slides/00-quiz-0-wrap.html
- 2023-09-26T14:57:13.996Z
+ 2023-09-26T17:38:49.365Z
https://github.com/UBC-STAT/stat-406/schedule/slides/00-cv-for-many-models.html
- 2023-09-26T14:57:12.796Z
+ 2023-09-26T17:38:47.709Z
https://github.com/UBC-STAT/stat-406/course-setup.html
- 2023-09-26T14:57:11.496Z
+ 2023-09-26T17:38:45.801Z
https://github.com/UBC-STAT/stat-406/computing/windows.html
- 2023-09-26T14:57:09.884Z
+ 2023-09-26T17:38:43.485Z
https://github.com/UBC-STAT/stat-406/computing/mac_x86.html
- 2023-09-26T14:57:08.452Z
+ 2023-09-26T17:38:41.337Z
https://github.com/UBC-STAT/stat-406/computing/index.html
- 2023-09-26T14:57:07.112Z
+ 2023-09-26T17:38:39.481Z
https://github.com/UBC-STAT/stat-406/index.html
- 2023-09-26T14:57:05.484Z
+ 2023-09-26T17:38:37.125Z
https://github.com/UBC-STAT/stat-406/faq.html
- 2023-09-26T14:57:06.744Z
+ 2023-09-26T17:38:38.981Z
https://github.com/UBC-STAT/stat-406/computing/mac_arm.html
- 2023-09-26T14:57:07.772Z
+ 2023-09-26T17:38:40.405Z
https://github.com/UBC-STAT/stat-406/computing/ubuntu.html
- 2023-09-26T14:57:09.120Z
+ 2023-09-26T17:38:42.329Z
https://github.com/UBC-STAT/stat-406/syllabus.html
- 2023-09-26T14:57:10.928Z
+ 2023-09-26T17:38:44.989Z
https://github.com/UBC-STAT/stat-406/schedule/index.html
- 2023-09-26T14:57:12.244Z
+ 2023-09-26T17:38:46.841Z
https://github.com/UBC-STAT/stat-406/schedule/slides/00-intro-to-class.html
- 2023-09-26T14:57:13.448Z
+ 2023-09-26T17:38:48.625Z
https://github.com/UBC-STAT/stat-406/schedule/slides/00-r-review.html
- 2023-09-26T14:57:15.316Z
+ 2023-09-26T17:38:51.245Z
https://github.com/UBC-STAT/stat-406/schedule/slides/01-lm-review.html
- 2023-09-26T14:57:16.876Z
+ 2023-09-26T17:38:53.465Z
https://github.com/UBC-STAT/stat-406/schedule/slides/03-regression-function.html
- 2023-09-26T14:57:18.160Z
+ 2023-09-26T17:38:55.333Z
https://github.com/UBC-STAT/stat-406/schedule/slides/05-estimating-test-mse.html
- 2023-09-26T14:57:19.484Z
+ 2023-09-26T17:38:57.245Z
https://github.com/UBC-STAT/stat-406/schedule/slides/07-greedy-selection.html
- 2023-09-26T14:57:20.756Z
+ 2023-09-26T17:38:59.101Z
https://github.com/UBC-STAT/stat-406/schedule/slides/09-l1-penalties.html
- 2023-09-26T14:57:22.220Z
+ 2023-09-26T17:39:01.293Z