{"id":7128,"date":"2026-09-20T14:54:36","date_gmt":"2026-09-20T19:54:36","guid":{"rendered":"https:\/\/ykim.synology.me\/wordpress\/bayesian-information-criterion-7128\/"},"modified":"2026-09-20T14:54:46","modified_gmt":"2026-09-20T19:54:46","slug":"bayesian-information-criterion","status":"publish","type":"post","link":"https:\/\/ykim.synology.me\/wordpress\/bayesian-information-criterion-7128\/","title":{"rendered":"Bayesian Information Criterion"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/github.com\/yBarn1\/Images\/blob\/main\/produce\/green-apples-produce-bin.jpg?raw=true\" alt=\"\" style=\"width:auto;height:500px\"\/><\/figure>\n\n\n<p><div class=\"github-readme-container markdown-body\"><div id=\"file\" class=\"md\" data-path=\"Feature-Engineering\/Feature-Selection\/BIC\/bic-ko.md\"><article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">Bayesian Information Criterion<\/h1><a id=\"user-content-bayesian-information-criterion\" class=\"anchor\" aria-label=\"Permalink: Bayesian Information Criterion\" href=\"#bayesian-information-criterion\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Version 8 | Created: 2026-09-20 | Updated: 2026-11-07 13:46 UTC<\/p>\n<ul dir=\"auto\">\n<li><a href=\"#1-purpose\">1. Purpose<\/a><\/li>\n<li><a href=\"#2-summary\">2. Summary<\/a><\/li>\n<li><a href=\"#3-principle\">3. Principle<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#31-from-the-marginal-likelihood\">3.1 From The Marginal Likelihood<\/a><\/li>\n<li><a href=\"#32-conditions\">3.2 Conditions<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#4-application\">4. Application<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#41-linear-regression-form\">4.1 Linear Regression Form<\/a><\/li>\n<li><a href=\"#42-use-in-feature-selection\">4.2 Use In Feature Selection<\/a><\/li>\n<li><a href=\"#43-reading-a-difference\">4.3 Reading A Difference<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#references\">References<\/a><\/li>\n<li><a href=\"#appendix-a-terminology\">Appendix A. Terminology<\/a><\/li>\n<li><a href=\"#appendix-b-the-derivation-of-the-criterion\">Appendix B. The Derivation Of The Criterion<\/a><\/li>\n<li><a href=\"#appendix-c-aic-and-bic\">Appendix C. AIC And BIC<\/a><\/li>\n<li><a href=\"#appendix-d-the-deviance-of-a-gaussian-linear-model\">Appendix D. The Deviance Of A Gaussian Linear Model<\/a><\/li>\n<li><a href=\"#appendix-e-worked-example\">Appendix E. Worked Example<\/a><\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">1. Purpose<\/h2><a id=\"user-content-1-purpose\" class=\"anchor\" aria-label=\"Permalink: 1. Purpose\" href=\"#1-purpose\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li><strong>Problem Statement<\/strong>: Parameter \uac00 \ub9ce\uc740 model \uc77c\uc218\ub85d \uc801\ud569\uc5d0 \uc4f4 data \uc5d0\uc11c \ub354 \ub192\uc740 likelihood \uc5d0 \ub2ff\uc73c\ubbc0\ub85c, likelihood \ub9cc\uc73c\ub85c \uc21c\uc704\ub97c \ub9e4\uae30\uba74 \uc5b8\uc81c\ub098 \uac00\uc7a5 \ud070 \ud6c4\ubcf4\uac00 1 \uc704\uac00 \ub41c\ub2e4.<\/li>\n<li><strong>Goal<\/strong>: BIC \uc758 \uc815\uc758, \uadf8 \uc2dd\uc774 \uc77d\ub294 \uac12, \ub2f5\uc774 \uc131\ub9bd\ud558\ub294 \uc870\uac74\uacfc \uae68\uc9c0\ub294 \uc870\uac74\uc744 \uc815\ub9ac\ud558\uc5ec, \uc8fc\uc5b4\uc9c4 data \uc5d0\uc11c model \uc758 \ud06c\uae30\ub97c BIC \ub85c \uc815\ud560\uc9c0 resampling \uc810\uc218\ub85c \uc815\ud560\uc9c0 \ub3c5\uc790\uac00 \uc2a4\uc2a4\ub85c \uac00\ub9b4 \uc218 \uc788\uac8c \ud55c\ub2e4.<\/li>\n<li><strong>Non-Goal<\/strong>: Prior \uc124\uacc4\uc640 Bayes factor \uc758 \uc815\ud655\ud55c \uacc4\uc0b0\uc740 \ub2e4\ub8e8\uc9c0 \uc54a\ub294\ub2e4. BIC \ub97c \uadf8 \ub458\uc758 \ub300\ud45c\ubcf8 \uadfc\uc0ac\ub85c \uc4f4\ub2e4.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">2. Summary<\/h2><a id=\"user-content-2-summary\" class=\"anchor\" aria-label=\"Permalink: 2. Summary\" href=\"#2-summary\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">BIC \ub294 \uc801\ud569\uc774 \ub05d\ub09c model \uc744 deviance \uc5d0 parameter \ud558\ub098\ub2f9 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\ln n$<\/math-renderer> \uc758 penalty \ub97c \ub354\ud55c \uac12\uc73c\ub85c \ucc44\uc810\ud558\uace0, \uc810\uc218\uac00 \uac00\uc7a5 \uc791\uc740 \ud6c4\ubcf4\ub97c \uace0\ub978\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$\\mathrm{BIC} = -2 \\ln \\hat{L} + k \\ln n \\hspace{19em} (1)$$<\/math-renderer>\n<p dir=\"auto\">Table 1. The three values the formula reads<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Symbol<\/th>\n<th align=\"center\">Meaning<\/th>\n<th align=\"center\">Read from<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\hat{L}$<\/math-renderer><\/td>\n<td align=\"center\">\uc801\ud569\uc774 \ub05d\ub09c parameter \uac12\uc5d0\uc11c\uc758 likelihood<\/td>\n<td align=\"center\">\ucc44\uc810\ud558\ub294 \uc801\ud569 \uc790\uccb4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$k$<\/math-renderer><\/td>\n<td align=\"center\">Free parameter \uc758 \uac1c\uc218, intercept \uc640 noise variance \ud3ec\ud568<\/td>\n<td align=\"center\">Model \uc758 \uc124\uc815<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer><\/td>\n<td align=\"center\">Likelihood \ub97c \uacc4\uc0b0\ud55c \uad00\uce21\uc758 \uac1c\uc218<\/td>\n<td align=\"center\">Data \uc9d1\ud569<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">BIC \uac12\uc740 \uac19\uc740 \uad00\uce21\uacfc \uac19\uc740 response \uc5d0\uc11c \uacc4\uc0b0\ud55c \ub2e4\ub978 BIC \uac12\uacfc \uacac\uc8fc\uc5b4 \uc77d\uc73c\uba70, \ub450 \uac12\uc758 \ucc28\uc774\uac00 \uacb0\uacfc\uc758 \uc804\ubd80\ub2e4.<\/p>\n<p dir=\"auto\">Fig 1 \uc740 \uac19\uc740 deviance \uc5d0 parameter \ud558\ub098\ub2f9 2 \ub97c \ubb3c\ub9ac\ub294 AIC \ub97c BIC \uc606\uc5d0 \ub098\ub780\ud788 \ub454\ub2e4.<\/p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/ykim2718\/AIML\/blob\/main\/Feature-Engineering\/Feature-Selection\/BIC\/bic_fig\/fig1.png\"><img src=\"https:\/\/ykim.synology.me\/wordpress\/wp-json\/gh-readme\/v1\/asset?user=ykim2718&#038;repo=AIML&#038;branch=main&#038;path=Feature-Engineering\/Feature-Selection\/BIC\/bic_fig\/fig1.png&#038;sig=181d75c270983cdc5e2d9267d0371ac3d875c5b222ec3c74d7545bba053728e1\" alt=\"Fig 1\" style=\"max-width: 100%;\"><\/a><\/p>\n<p dir=\"auto\">Fig 1. AIC and BIC as one fit term under two penalties<\/p>\n<p dir=\"auto\">AIC \ub294 \ud45c\ubcf8 \ud06c\uae30\uc640 \ubb34\uad00\ud558\uac8c parameter \ud558\ub098\ub2f9 2 \ub97c \ubb3c\ub9ac\uace0 BIC \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\ln n$<\/math-renderer> \uc744 \ubb3c\ub9ac\ubbc0\ub85c, \ub450 \uac12\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\ln n = 2$<\/math-renderer> \uc778 \uc790\ub9ac\uc5d0\uc11c \uad50\ucc28\ud55c\ub2e4. \ub450 \uae30\uc900\uc758 \ub300\uc870\ub294 <a href=\"#appendix-c-aic-and-bic\">Appendix C<\/a> \uc5d0 \ub450\uace0, \ubcf8\ubb38\uc740 BIC \ub97c \ub530\ub77c\uac04\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">3. Principle<\/h2><a id=\"user-content-3-principle\" class=\"anchor\" aria-label=\"Permalink: 3. Principle\" href=\"#3-principle\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Penalty <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$k \\ln n$<\/math-renderer> \uc740 marginal likelihood \uc758 \ub300\ud45c\ubcf8 \uadfc\uc0ac\uc5d0\uc11c \ub098\uc624\uba70, \uadf8\ub798\uc11c BIC \uac00 \uac00\uc7a5 \uc791\uc740 \ud6c4\ubcf4\uac00 posterior probability \uac00 \uac00\uc7a5 \ud070 \ud6c4\ubcf4\uac00 \ub41c\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.1 From The Marginal Likelihood<\/h3><a id=\"user-content-31-from-the-marginal-likelihood\" class=\"anchor\" aria-label=\"Permalink: 3.1 From The Marginal Likelihood\" href=\"#31-from-the-marginal-likelihood\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Bayesian \ube44\uad50\ub294 data <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$D$<\/math-renderer> \uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c\uc758 posterior probability \ub85c \ud6c4\ubcf4 model <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$M$<\/math-renderer> \uc758 \uc21c\uc704\ub97c \ub9e4\uae34\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$p(M \\mid D) \\propto p(D \\mid M)\\, p(M) \\hspace{19em} (2)$$<\/math-renderer>\n<p dir=\"auto\">Marginal likelihood <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$p(D \\mid M)$<\/math-renderer> \ub294 parameter \uc758 prior \uc5d0 \ub300\ud574 likelihood \ub97c \uc801\ubd84\ud55c \uac12\uc774\ub2e4. \uc801\ubd84 \uc548\uc758 log \ub97c maximum likelihood \ucd94\uc815\uac12 \ub458\ub808\uc5d0\uc11c 2 \ucc28\uae4c\uc9c0 \uc804\uac1c\ud558\uace0 \uadf8 Gaussian \uc744 \uc801\ubd84\ud558\uba74 (Laplace approximation), <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uacfc \ud568\uaed8 \ucee4\uc9c0\ub294 \ud56d\uacfc bounded \ub85c \ub0a8\ub294 \ub098\uba38\uc9c0, \uace7 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uc774 \ucee4\uc838\ub3c4 \uc0c1\uc218\uc5d0 \uba38\ubb34\ub294 \ub098\uba38\uc9c0\uac00 \uac08\ub9b0\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$-2 \\ln p(D \\mid M) = -2 \\ln \\hat{L} + k \\ln n + O(1) \\hspace{19em} (3)$$<\/math-renderer>\n<p dir=\"auto\">Schwarz \ub294 \uc2dd (3) \uc758 \ud615\ud0dc\ub85c \uae30\uc900\uc744 \uc720\ub3c4\ud558\uace0 bounded \ud55c \ub098\uba38\uc9c0\ub97c \ubc84\ub838\ub2e4 [<a href=\"#ref-1\">1<\/a>]. \ud6c4\ubcf4\ub4e4\uc758 prior probability \uac00 \uac19\uc73c\uba74, \uc2dd (1) \uc758 \uc21c\uc704\ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uacfc \ud568\uaed8 \ucee4\uc9c0\uc9c0 \uc54a\ub294 \ud56d\uc744 \ube7c\uace0 posterior probability \uc758 \uc21c\uc704\uc640 \uac19\ub2e4. \uc2dd (2) \uc5d0\uc11c \uc2dd (3) \uae4c\uc9c0\uc758 \ub2e8\uacc4\ub294 <a href=\"#appendix-b-the-derivation-of-the-criterion\">Appendix B<\/a> \uc5d0 \uc788\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.2 Conditions<\/h3><a id=\"user-content-32-conditions\" class=\"anchor\" aria-label=\"Permalink: 3.2 Conditions\" href=\"#32-conditions\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li>\uac00\uc815: model \uc774 \uc801\uc744 \uc218 \uc788\ub294 likelihood, \ub3c5\ub9bd\uc73c\ub85c \ubf51\ud78c \uad00\uce21, \ud2b9\uc774\ud558\uc9c0 \uc54a\uac8c \uc720\uc9c0\ub418\ub294 Fisher information matrix, \uadf8\ub9ac\uace0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uc774 \ucee4\uc9c0\ub294 \ub3d9\uc548 \uace0\uc815\ub41c parameter \uac1c\uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$k$<\/math-renderer>.<\/li>\n<li>\uc124\uc815\uac12: <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$k$<\/math-renderer> \ub294 intercept \uc640 noise variance \ub97c \ud3ec\ud568\ud558\uc5ec \ucd94\uc815\ud558\ub294 parameter \ub97c \ubaa8\ub450 \uc13c\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uc740 \uad00\uce21\uc758 \uac1c\uc218\ub97c \uc13c\ub2e4.<\/li>\n<li>\uae68\uc9c0\ub294 \uc870\uac74: \uc804\uac1c\uac00 \uc131\ub9bd\ud558\uae30\uc5d0 \ub108\ubb34 \uc791\uc740 \ud45c\ubcf8, \ud6c4\ubcf4\uac00 \ubaa8\ub450 \uc798\ubabb \uc124\uc815\ub41c \uacbd\uc6b0, parameter \uac1c\uc218\uac00 \uc815\uc218\uac00 \uc544\ub2cc penalized \uc801\ud569, \uadf8\ub9ac\uace0 \uad00\uce21\uc758 \uac1c\uc218\uc640 \ub3c5\ub9bd \ub2e8\uc704\uc758 \uac1c\uc218\uac00 \ub2e4\ub978 \uc9d1\ub2e8 \uc790\ub8cc.<\/li>\n<li>\ub9cc\ub098\ub294 \uc790\ub9ac: \uc120\ud0dd \uacbd\ub85c\uc5d0\uc11c\uc758 \ubd80\ubd84\uc9d1\ud569 \ud06c\uae30, mixture \uc758 component \uac1c\uc218, \uc2dc\uacc4\uc5f4 model \uc758 lag \ucc28\uc218, model \uae30\ubc18 clustering \uc758 cluster \uac1c\uc218.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">4. Application<\/h2><a id=\"user-content-4-application\" class=\"anchor\" aria-label=\"Permalink: 4. Application\" href=\"#4-application\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">BIC \ub294 \ud55c data \uc9d1\ud569\uc5d0\uc11c \ucc44\uc810\ud55c \ud6c4\ubcf4\ub4e4 \uc0ac\uc774\uc758 \ucc28\uc774\ub85c \uc77d\uc73c\uba70, \uac01 \uc810\uc218\ub97c \ub0b4\ub294 \uc801\ud569\uc740 \uadf8 \ud6c4\ubcf4\uac00 \uc5b4\ucc28\ud53c \ud55c \ubc88 \ud574\uc57c \ud558\ub294 \uc801\ud569\uc774\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.1 Linear Regression Form<\/h3><a id=\"user-content-41-linear-regression-form\" class=\"anchor\" aria-label=\"Permalink: 4.1 Linear Regression Form\" href=\"#41-linear-regression-form\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Gaussian error \ub97c \uac00\uc815\ud55c linear model \uc5d0\uc11c maximized likelihood \ub294 residual sum of squares \ub9cc\uc758 \ud568\uc218\uc774\ubbc0\ub85c, \uc2dd (1) \uc740 \uc801\ud569 \uc794\ucc28\uc5d0\uc11c \ubc14\ub85c \uacc4\uc0b0\ub418\ub294 \ud615\ud0dc\uac00 \ub41c\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$\\mathrm{BIC} = n \\ln \\frac{\\mathrm{RSS}}{n} + k \\ln n + n (\\ln 2\\pi + 1) \\hspace{19em} (4)$$<\/math-renderer>\n<p dir=\"auto\">\ub9c8\uc9c0\ub9c9 \ud56d\uc740 \uac19\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uac1c\uc758 \uad00\uce21\uc5d0 \uc801\ud569\ud55c \ubaa8\ub4e0 \ud6c4\ubcf4\uc5d0\uc11c \uac19\uc740 \uac12\uc774\ubbc0\ub85c \ube44\uad50\ud560 \ub54c\ub9c8\ub2e4 \uc0c1\uc1c4\ub418\uace0, \ub300\ubd80\ubd84\uc758 \uad6c\ud604\uc774 \ub9c8\uc9c0\ub9c9 \ud56d\uc744 \ube80 \uac12\uc744 \ub0b4\ub193\ub294\ub2e4. \ub9c8\uc9c0\ub9c9 \ud56d\uc744 \ube80 \uc810\uc218\uc640 \ub0a8\uae34 library \uc758 \uc810\uc218\ub294 \uc11c\ub85c \uacac\uc904 \uc218 \uc5c6\ub2e4. Gaussian likelihood \uc5d0\uc11c \uc774 \ud615\ud0dc\uae4c\uc9c0\uc758 \ub2e8\uacc4\ub294 <a href=\"#appendix-d-the-deviance-of-a-gaussian-linear-model\">Appendix D<\/a> \uc5d0 \uc788\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.2 Use In Feature Selection<\/h3><a id=\"user-content-42-use-in-feature-selection\" class=\"anchor\" aria-label=\"Permalink: 4.2 Use In Feature Selection\" href=\"#42-use-in-feature-selection\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uae30\uc900\uc740 model \uc758 \ud06c\uae30\ub97c \uc815\ud558\uace0, \ud6c4\ubcf4\ub97c \ub9cc\ub4e4\uc5b4 \ub0b4\ub294 \ud0d0\uc0c9\uc740 \ub530\ub85c \uace0\ub978\ub2e4.<\/p>\n<ul dir=\"auto\">\n<li>\uacbd\ub85c: forward \ub610\ub294 backward selection \uacbd\ub85c, regularization \uacbd\ub85c, \ub610\ub294 \ubd80\ubd84\uc9d1\ud569\uc758 \uba85\uc2dc\uc801 \ubaa9\ub85d\uc774 \ud06c\uae30\ub9c8\ub2e4 \ud6c4\ubcf4 \ud558\ub098\ub97c \ub0b8\ub2e4.<\/li>\n<li>\ucc44\uc810: \ud6c4\ubcf4\ub9c8\ub2e4 \ud55c \ubc88 \uc801\ud569\ud558\uace0 \uc2dd (1) \ub85c \ucc44\uc810\ud558\uc5ec, \uc810\uc218\uac00 \uac00\uc7a5 \uc791\uc740 \ud06c\uae30\ub97c \ub0a8\uae34\ub2e4.<\/li>\n<li>\ube44\uc6a9: \ud6c4\ubcf4 \ud558\ub098\ub2f9 \uc801\ud569 \ud55c \ubc88\uc774\uba70, cross-validation \uc810\uc218\ub294 \ud6c4\ubcf4 \ud558\ub098\ub2f9 fold \uc218\ub9cc\ud07c \uc801\ud569\ud55c\ub2e4.<\/li>\n<li>Regularized \uacbd\ub85c: Lasso \uc801\ud569\uc758 degrees of freedom \uc790\ub9ac\uc5d0 0 \uc774 \uc544\ub2cc \uacc4\uc218\uc758 \uac1c\uc218\ub97c \ub123\uc73c\uba70, <code>LassoLarsIC<\/code> \uc758 \uc810\uc218\ub3c4 \uac19\uc740 \uac1c\uc218\ub97c \uc77d\ub294\ub2e4 [<a href=\"#ref-4\">4<\/a>].<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.3 Reading A Difference<\/h3><a id=\"user-content-43-reading-a-difference\" class=\"anchor\" aria-label=\"Permalink: 4.3 Reading A Difference\" href=\"#43-reading-a-difference\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\ub450 \ud6c4\ubcf4\uc758 BIC \ucc28\uc774\ub294 \ub450 \ud6c4\ubcf4\uac00 \ud568\uc758\ud558\ub294 Bayes factor \uc758 log \uc5d0 2 \ub97c \uacf1\ud55c \uac12\uc774\uace0, Bayes factor \uc758 \ub208\uae08\uc774 \uc8fc\uc5b4\uc9c4 \uac04\uaca9\uc758 \uac12\uc5b4\uce58\ub97c \uc815\ud55c\ub2e4 [<a href=\"#ref-3\">3<\/a>].<\/p>\n<p dir=\"auto\">Table 2. What a BIC difference in favour of the smaller score is worth<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Difference<\/th>\n<th align=\"center\">Evidence against the higher-scoring candidate<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">0 to 2<\/td>\n<td align=\"center\">\uc5b8\uae09\ud560 \uac00\uce58\ub97c \ub118\uc9c0 \uc54a\uc74c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2 to 6<\/td>\n<td align=\"center\">\uae0d\uc815\uc801<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6 to 10<\/td>\n<td align=\"center\">\uac15\ud568<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Over 10<\/td>\n<td align=\"center\">\ub9e4\uc6b0 \uac15\ud568<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">\uac04\uaca9\uc774 2 \ubbf8\ub9cc\uc774\uba74 \ub450 \ud6c4\ubcf4\ub294 \ub3d9\ub960\uc774\uba70, parameter \uac00 \uc801\uc740 \ucabd\uc744 \ub0a8\uae34\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">References<\/h2><a id=\"user-content-references\" class=\"anchor\" aria-label=\"Permalink: References\" href=\"#references\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\"><a id=\"user-content-ref-1\"><\/a>[1] Schwarz, G. (1978). <a href=\"https:\/\/doi.org\/10.1214\/aos\/1176344136\" rel=\"nofollow\">Estimating the Dimension of a Model<\/a>. <em>The Annals of Statistics<\/em>, 6(2), 461\u2013464.<br>\n<a id=\"user-content-ref-2\"><\/a>[2] Akaike, H. (1974). <a href=\"https:\/\/doi.org\/10.1109\/TAC.1974.1100705\" rel=\"nofollow\">A New Look at the Statistical Model Identification<\/a>. <em>IEEE Transactions on Automatic Control<\/em>, 19(6), 716\u2013723.<br>\n<a id=\"user-content-ref-3\"><\/a>[3] Kass, R. E., &amp; Raftery, A. E. (1995). <a href=\"https:\/\/doi.org\/10.1080\/01621459.1995.10476572\" rel=\"nofollow\">Bayes Factors<\/a>. <em>Journal of the American Statistical Association<\/em>, 90(430), 773\u2013795.<br>\n<a id=\"user-content-ref-4\"><\/a>[4] scikit-learn developers. <a href=\"https:\/\/scikit-learn.org\/stable\/auto_examples\/linear_model\/plot_lasso_model_selection.html?utm_source=gemini\" rel=\"nofollow\">Lasso model selection: AIC-BIC \/ cross-validation<\/a>. scikit-learn examples.<br>\n<a id=\"user-content-ref-5\"><\/a>[5] Displayr. <a href=\"https:\/\/docs.displayr.com\/wiki\/Information_Criteria?utm_source=gemini\" rel=\"nofollow\">Information Criteria<\/a>. Displayr documentation wiki.<\/p>\n<hr>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix A. Terminology<\/h2><a id=\"user-content-appendix-a-terminology\" class=\"anchor\" aria-label=\"Permalink: Appendix A. Terminology\" href=\"#appendix-a-terminology\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li>\n<strong>Bayes factor<\/strong>: \uac19\uc740 data \uc5d0\uc11c \ub450 \ud6c4\ubcf4 model \uc758 marginal likelihood \ube44.<\/li>\n<li>\n<strong>Bounded<\/strong>: \ud45c\ubcf8\uc774 \uc544\ubb34\ub9ac \ucee4\uc838\ub3c4 \uc5b4\ub5a4 \uc0c1\uc218 \uc544\ub798\uc5d0 \uba38\ubb34\ub294 \uc591.<\/li>\n<li>\n<strong>Consistency<\/strong>: Data \ub97c \ub9cc\ub4e0 model \uc774 \ud6c4\ubcf4 \uc548\uc5d0 \uc788\uc744 \ub54c, \ud45c\ubcf8\uc774 \ucee4\uc9c8\uc218\ub85d \uadf8 model \uc744 \uace0\ub97c \ud655\ub960\uc774 1 \ub85c \uac00\ub294 \uc131\uc9c8.<\/li>\n<li>\n<strong>Deviance<\/strong>: \uc801\ud569\uc774 \ub05d\ub09c model \uc758 maximized log-likelihood \uc5d0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$-2$<\/math-renderer> \ub97c \uacf1\ud55c \uac12.<\/li>\n<li>\n<strong>Laplace approximation<\/strong>: \uc801\ubd84 \uc548\uc758 log \ub97c \ucd5c\ub313\uac12 \ub458\ub808\uc5d0\uc11c 2 \ucc28\uae4c\uc9c0 \uc804\uac1c\ud558\uace0 \uadf8 Gaussian \uc744 \uc801\ubd84\ud558\uc5ec \uc5bb\ub294 \uc801\ubd84\uac12.<\/li>\n<li>\n<strong>Marginal likelihood<\/strong>: Parameter \ub97c \uadf8 prior \uc5d0 \ub300\ud574 \uc801\ubd84\ud558\uc5ec \uc5c6\uc564 model \uc544\ub798\uc5d0\uc11c \uad6c\ud55c data \uc758 likelihood.<\/li>\n<li>\n<strong>Regular model<\/strong>: Maximum likelihood \ucd94\uc815\uac12\uc5d0\uc11c Fisher information matrix \uac00 \ud2b9\uc774\ud558\uc9c0 \uc54a\uac8c \uc720\uc9c0\ub418\ub294 model.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix B. The Derivation Of The Criterion<\/h2><a id=\"user-content-appendix-b-the-derivation-of-the-criterion\" class=\"anchor\" aria-label=\"Permalink: Appendix B. The Derivation Of The Criterion\" href=\"#appendix-b-the-derivation-of-the-criterion\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uc2dd (1) \uc740 \uc2dd (3) \uc5d0\uc11c bounded \ud55c \ud56d\uc744 \ubc84\ub9b0 \uac83\uc774\uace0, \ub458 \uc0ac\uc774\uc5d0 \uc788\ub294 \uac83\uc774 marginal likelihood \uc758 Laplace approximation \uc774\ub2e4.<\/p>\n<p dir=\"auto\">\uac00\uc815: Parameter <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$k$<\/math-renderer> \uac1c\uac00 maximum likelihood \ucd94\uc815\uac12 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\hat{\\theta}$<\/math-renderer> \uc5d0\uc11c \uc591\uc774\uace0 \uc5f0\uc18d\uc778 prior \ubc00\ub3c4 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\pi(\\theta)$<\/math-renderer> \ub97c \uac00\uc9c0\uba70, model \uc774 regular \ud558\uace0, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uc774 \ucee4\uc9c0\ub294 \ub3d9\uc548 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$k$<\/math-renderer> \uac00 \uace0\uc815\ub41c\ub2e4.<\/p>\n<p dir=\"auto\">\uc2dd (2) \uc758 marginal likelihood \ub294 likelihood <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$L(\\theta)$<\/math-renderer> \ub97c \uadf8 prior \uc5d0 \ub300\ud574 \uc801\ubd84\ud55c \uac12\uc774\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$p(D \\mid M) = \\int L(\\theta)\\, \\pi(\\theta)\\, d\\theta \\hspace{19em} (5)$$<\/math-renderer>\n<p dir=\"auto\">Log-likelihood \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\hat{\\theta}$<\/math-renderer> \uc5d0\uc11c gradient \uac00 0 \uc774\ubbc0\ub85c 2 \ucc28 \uc804\uac1c\uc5d0 \uc774\ucc28\ud56d \ud558\ub098\ub9cc \ub0a8\uc73c\uba70, \uc5ec\uae30\uc11c\ub294 \uad00\uce21\ub2f9 observed information <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$I(\\hat{\\theta}) = -\\frac{1}{n} \\nabla^2 \\ln L(\\hat{\\theta})$<\/math-renderer> \ub85c \uc801\ub294\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$\\ln L(\\theta) \\approx \\ln \\hat{L} - \\frac{n}{2} (\\theta - \\hat{\\theta})^{\\top} I(\\hat{\\theta}) (\\theta - \\hat{\\theta}) \\hspace{19em} (6)$$<\/math-renderer>\n<p dir=\"auto\">\uadf8\ub7ec\uba74 \uc801\ubd84 \uc548\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\theta$<\/math-renderer> \uc5d0 \ub300\ud55c Gaussian \uc774\uc5b4\uc11c \uc801\ubd84\uac12\uc774 \ub2eb\ud78c \ud615\ud0dc\ub85c \ub098\uc624\uace0, posterior \uc9c8\ub7c9\uc774 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\hat{\\theta}$<\/math-renderer> \ub458\ub808\uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n^{-1\/2}$<\/math-renderer> \ub85c \uc904\uc5b4\ub4dc\ub294 \uc601\uc5ed\uc5d0 \ubaa8\uc774\ubbc0\ub85c prior \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\hat{\\theta}$<\/math-renderer> \uc5d0\uc11c\uc758 \uac12\ub9cc \ub0a8\uae34\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$p(D \\mid M) \\approx \\hat{L}\\, \\pi(\\hat{\\theta}) \\left(\\frac{2\\pi}{n}\\right)^{k\/2} \\left| I(\\hat{\\theta}) \\right|^{-1\/2} \\hspace{19em} (7)$$<\/math-renderer>\n<p dir=\"auto\">\uc2dd (7) \uc758 log \uc5d0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$-2$<\/math-renderer> \ub97c \uacf1\ud558\uba74 \ud45c\ubcf8 \ud06c\uae30\ub97c \ub2f4\uc740 \ub450 \ud56d\uc774 \ub098\uba38\uc9c0\uc640 \uac08\ub9b0\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$-2 \\ln p(D \\mid M) \\approx -2 \\ln \\hat{L} + k \\ln n - k \\ln 2\\pi + \\ln \\left| I(\\hat{\\theta}) \\right| - 2 \\ln \\pi(\\hat{\\theta}) \\hspace{19em} (8)$$<\/math-renderer>\n<p dir=\"auto\">\uc2dd (8) \uc758 \ub9c8\uc9c0\ub9c9 \uc138 \ud56d\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uc774 \ucee4\uc838\ub3c4 \uc0c1\uc218\uc5d0 \uba38\ubb38\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$k \\ln 2\\pi$<\/math-renderer> \uc640 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$-2 \\ln \\pi(\\hat{\\theta})$<\/math-renderer> \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uc5d0 \uc758\uc874\ud558\uc9c0 \uc54a\uace0, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\ln | I(\\hat{\\theta}) |$<\/math-renderer> \ub294 \uad00\uce21\ub2f9 Fisher information \uc758 log determinant \ub85c \uc218\ub834\ud55c\ub2e4. \uc138 \ud56d\uc774 \uc2dd (3) \uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$O(1)$<\/math-renderer> \uc774\uba70, \uc774\uac83\uc744 \ubc84\ub9ac\uba74 \uc2dd (1) \uc774 \ub0a8\ub294\ub2e4.<\/p>\n<p dir=\"auto\">Prior \ub294 \ubc84\ub9b0 \ud56d\uc5d0\ub9cc \ub4e4\uc5b4\uc624\ubbc0\ub85c BIC \ub294 prior \ub97c \uc815\ud558\uc9c0 \uc54a\uace0\ub3c4 \uc77d\ud78c\ub2e4. \uac19\uc740 \uc774\uc720\ub85c \uc815\ud655\ub3c4\ub3c4 \uc815\ud574\uc9c4\ub2e4. BIC \uac00 \ub0b4\ub294 \uc21c\uc704\ub294 posterior probability \uc758 \uc21c\uc704\uc640 bounded \ud55c \uc624\ucc28\ub9cc\ud07c \ub2e4\ub974\uba70, \uadf8 \uc624\ucc28\ub294 0 \uc73c\ub85c \uac00\uc9c0 \uc54a\ub294\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix C. AIC And BIC<\/h2><a id=\"user-content-appendix-c-aic-and-bic\" class=\"anchor\" aria-label=\"Permalink: Appendix C. AIC And BIC\" href=\"#appendix-c-aic-and-bic\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\ub450 \uae30\uc900\uc740 \uac19\uc740 deviance \ub85c model \uc744 \ucc44\uc810\ud558\uace0, parameter \ud558\ub098\uc758 \uac12\uc774 \uc5bc\ub9c8\uc778\uc9c0\uc5d0\uc11c \uac08\ub9b0\ub2e4 [<a href=\"#ref-5\">5<\/a>].<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$\\mathrm{AIC} = -2 \\ln \\hat{L} + 2k \\hspace{19em} (9)$$<\/math-renderer>\n<p dir=\"auto\">Table 3. The two criteria against each other<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Criterion<\/th>\n<th align=\"center\">Penalty per parameter<\/th>\n<th align=\"center\">Target quantity<\/th>\n<th align=\"center\">Large-sample property<\/th>\n<th align=\"center\">Selected size<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">AIC<\/td>\n<td align=\"center\">2<\/td>\n<td align=\"center\">\ud45c\ubcf8 \ubc16 deviance \uc758 \uae30\ub313\uac12<\/td>\n<td align=\"center\">Efficient \ud558\uace0 consistent \ud558\uc9c0 \uc54a\uc74c<\/td>\n<td align=\"center\">\ub354 \ud07c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">BIC<\/td>\n<td align=\"center\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\ln n$<\/math-renderer><\/td>\n<td align=\"center\">Model \uc758 posterior probability<\/td>\n<td align=\"center\">\ud6c4\ubcf4\uac00 data \ub97c \ub9cc\ub4e4\uc5c8\uc73c\uba74 consistent \ud568<\/td>\n<td align=\"center\">\ub354 \uc791\uc74c<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">AIC \ub294 \uc801\ud569\ud55c model \uc774 \uac19\uc740 \ud06c\uae30\uc758 \uc0c8 \ud45c\ubcf8\uc5d0\uc11c \ub0bc deviance \ub97c \ucd94\uc815\ud558\ubbc0\ub85c \uc608\uce21 \uae30\uc900\uc774\ub2e4 [<a href=\"#ref-2\">2<\/a>]. BIC \ub294 model \uc758 posterior probability \ub97c \ucd94\uc815\ud558\ubbc0\ub85c \uc2dd\ubcc4 \uae30\uc900\uc774\ub2e4 [<a href=\"#ref-1\">1<\/a>]. \uac19\uc740 \uc801\ud569\uc5d0 \ub300\ud574 \uc11c\ub85c \ub2e4\ub978 \uc9c8\ubb38\uc5d0 \ub2f5\ud558\ubbc0\ub85c, \ub450 \uae30\uc900\uc774 \uc5c7\uac08\ub9ac\uba74 \ub458 \uc911 \uc5b4\ub290 \uc9c8\ubb38\uc744 \ud558\uace0 \uc788\uc5c8\ub294\uc9c0\ub85c \uc77d\ub294\ub2e4.<\/p>\n<p dir=\"auto\">Penalty \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n = e^2 \\approx 7.4$<\/math-renderer> \uc5d0\uc11c \uad50\ucc28\ud558\uba70, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n = 8$<\/math-renderer> \ubd80\ud130\ub294 BIC \uac00 AIC \ubcf4\ub2e4 parameter \ud558\ub098\ub2f9 \ub354 \ub9ce\uc774 \ubb3c\ub9b0\ub2e4. \uadf8\ub798\uc11c \uac19\uc740 nested \uacbd\ub85c\uc5d0\uc11c BIC \uac00 \uace0\ub974\ub294 \ud06c\uae30\ub294 AIC \uac00 \uace0\ub974\ub294 \ud06c\uae30\ubcf4\ub2e4 \ucee4\uc9c0\uc9c0 \uc54a\ub294\ub2e4. <a href=\"#appendix-e-worked-example\">Appendix E<\/a> \ub294 \ud06c\uae30 \ucc28\uc774\ub97c \uc124\uacc4 \ud558\ub098\uc5d0\uc11c \uc7b0\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix D. The Deviance Of A Gaussian Linear Model<\/h2><a id=\"user-content-appendix-d-the-deviance-of-a-gaussian-linear-model\" class=\"anchor\" aria-label=\"Permalink: Appendix D. The Deviance Of A Gaussian Linear Model\" href=\"#appendix-d-the-deviance-of-a-gaussian-linear-model\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uc2dd (4) \uac00 \ub2f4\uc740 deviance \ub294 least squares \ucd94\uc815\uac12\uacfc likelihood \ub97c \ucd5c\ub300\ub85c \ub9cc\ub4dc\ub294 noise variance \uc5d0\uc11c Gaussian likelihood \ub97c \uacc4\uc0b0\ud55c \uac12\uc774\ub2e4.<\/p>\n<p dir=\"auto\">Linear model \uc740 \uad00\uce21 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uac1c\uc758 \uacb0\ud569 \ubc00\ub3c4\ub97c \uacf1\uc73c\ub85c \uc801\uc73c\uba70, \uadf8 \uc9c0\uc218\ubd80\ub294 residual sum of squares <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\mathrm{RSS}(\\beta) = \\sum_i (y_i - x_i^{\\top} \\beta)^2$<\/math-renderer> \ub85c \ubaa8\uc778\ub2e4.<\/p>\n<p dir=\"auto\">\uac00\uc815: \uad00\uce21 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n$<\/math-renderer> \uac1c\uac00 \ub3c5\ub9bd\uc774\uace0, error \uac00 \ud558\ub098\uc758 variance \ub97c \uacf5\uc720\ud558\uc5ec <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\varepsilon_i \\sim N(0, \\sigma^2)$<\/math-renderer> \uc774\uba70, design matrix \uc758 \uc5f4\uc774 full rank \ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$L(\\beta, \\sigma^2) = (2\\pi\\sigma^2)^{-n\/2} \\exp\\left(-\\frac{\\mathrm{RSS}(\\beta)}{2\\sigma^2}\\right) \\hspace{19em} (10)$$<\/math-renderer>\n<p dir=\"auto\">Log \ub97c \ucde8\ud558\uba74 \uacf1\uc774 \uc138 \ud56d\uc758 \ud569\uc774 \ub41c\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$\\ln L(\\beta, \\sigma^2) = -\\frac{n}{2}\\ln(2\\pi) - \\frac{n}{2}\\ln \\sigma^2 - \\frac{\\mathrm{RSS}(\\beta)}{2\\sigma^2} \\hspace{19em} (11)$$<\/math-renderer>\n<p dir=\"auto\">\uacc4\uc218 vector <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\beta$<\/math-renderer> \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\mathrm{RSS}(\\beta)$<\/math-renderer> \ub97c \ud1b5\ud574\uc11c\ub9cc \ub4e4\uc5b4\uc624\ubbc0\ub85c likelihood \ub97c \ucd5c\ub300\ub85c \ub9cc\ub4dc\ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\beta$<\/math-renderer> \ub294 least squares \ucd94\uc815\uac12\uc774\uace0, \uc544\ub798\uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\mathrm{RSS}$<\/math-renderer> \ub294 least squares \ucd94\uc815\uac12\uc758 \uc794\ucc28 \uc81c\uacf1\ud569\uc774\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\sigma^2$<\/math-renderer> \uc5d0 \ub300\ud55c \ubbf8\ubd84\uc744 0 \uc73c\ub85c \ub450\uba74 likelihood \ub97c \ucd5c\ub300\ub85c \ub9cc\ub4dc\ub294 variance \uac00 \ub098\uc628\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$\\frac{\\partial \\ln L}{\\partial \\sigma^2} = -\\frac{n}{2\\sigma^2} + \\frac{\\mathrm{RSS}}{2\\sigma^4} = 0\n\\quad \\Longrightarrow \\quad\n\\hat{\\sigma}^2 = \\frac{\\mathrm{RSS}}{n} \\hspace{19em} (12)$$<\/math-renderer>\n<p dir=\"auto\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\hat{\\sigma}^2$<\/math-renderer> \uc744 \uc2dd (11) \uc5d0 \ub418\ub123\uc73c\uba74 \ub9c8\uc9c0\ub9c9 \ud56d\uc774 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n \/ 2$<\/math-renderer> \uac00 \ub418\uace0 \uac00\uc6b4\ub370 \ud56d\uc774 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\ln(\\mathrm{RSS} \/ n)$<\/math-renderer> \uc774 \ub418\uba70, \uc5ec\uae30\uc5d0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$-2$<\/math-renderer> \ub97c \uacf1\ud558\uba74 deviance \uac00 \ub0a8\ub294\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$$-2 \\ln \\hat{L} = n \\left(\\ln 2\\pi + \\ln \\frac{\\mathrm{RSS}}{n} + 1\\right) \\hspace{19em} (13)$$<\/math-renderer>\n<p dir=\"auto\">\uc2dd (13) \uc5d0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$k \\ln n$<\/math-renderer> \uc744 \ub354\ud558\uba74 \uc2dd (4) \uac00 \ub41c\ub2e4. Table 4 \uc758 \uc138 \ubc88\uc9f8 \ud589\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\mathrm{RSS} = 218.3$<\/math-renderer> \uacfc <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$n = 200$<\/math-renderer> \uc774\uba70, \uc2dd (13) \uc5d0 \ub123\uc73c\uba74 585.1 \uc774 \ub098\uc628\ub2e4.<\/p>\n<p dir=\"auto\">Gaussian \uacc4\uc5f4 \ubc16\uc758 model \uc740 \uc2dd (1) \uc744 \uadf8\ub300\ub85c \ub450\uace0, \uc2dd (13) \uc790\ub9ac\uc5d0 \uc790\uae30 likelihood \uac00 \ub0b4\ub294 deviance \ub97c \ub123\ub294\ub2e4. \uc801\ud569 library \ub294 \uadf8 deviance \ub97c \uc801\ud569\ud55c parameter \uc640 \ud568\uaed8 \ubcf4\uace0\ud55c\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix E. Worked Example<\/h2><a id=\"user-content-appendix-e-worked-example\" class=\"anchor\" aria-label=\"Permalink: Appendix E. Worked Example\" href=\"#appendix-e-worked-example\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\"><a href=\"https:\/\/github.com\/ykim2718\/AIML\/blob\/main\/Feature-Engineering\/Feature-Selection\/BIC\/src\/bic_model_selection.py\"><code>src\/bic_model_selection.py<\/code><\/a> \uc758 class \ub294 \uc5b4\ub290 feature \uac00 \uc790\ub8cc\ub97c \ub9cc\ub4e4\uc5c8\ub294\uc9c0 \uc544\ub294 data \ub97c \ub9cc\ub4e4\uace0, linear model \uc744 feature \ud558\ub098\uc529 \ud0a4\uc6b0\uba70, \ud06c\uae30\ub9c8\ub2e4 \ub450 \uae30\uc900\uc73c\ub85c \ucc44\uc810\ud55c\ub2e4. \uc774 folder \uc5d0\uc11c <code>python3 src\/bic_model_selection.py<\/code> \ub97c \uc2e4\ud589\ud558\uba74 \uc544\ub798 \ud45c\ub97c \ucd9c\ub825\ud558\uace0, \ubc18\ubcf5 \ucd94\ucd9c\uc5d0\uc11c \uac01 \uae30\uc900\uc774 \uc0dd\uc131 feature \ub97c \ub418\ucc3e\ub294 \ud69f\uc218\ub97c \uc138\uba70, Fig 2 \ub97c \uc4f4\ub2e4.<\/p>\n<p dir=\"auto\">Data \ub294 \ub3c5\ub9bd\uc778 standard normal feature 10 \uac1c\uc758 \uad00\uce21 200 \uac1c\uc774\uace0, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$y = 3 x_0 - 2 x_1 + 1.5 x_2 + \\varepsilon$<\/math-renderer> \uc5d0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\varepsilon \\sim N(0, 1)$<\/math-renderer> \uc774\uba70, seed 2 \ub85c \ubf51\uc558\ub2e4. \uac01 \ub2e8\uacc4\ub294 residual sum of squares \ub97c \uac00\uc7a5 \ub9ce\uc774 \ub0ae\ucd94\ub294 feature \ub97c \ub354\ud558\uace0, \uadf8 \ub2e8\uacc4\uc758 parameter \uac1c\uc218\ub294 feature \uac1c\uc218\uc5d0 intercept \uc640 noise variance \ub97c \ub354\ud55c \uac12\uc774\ub2e4.<\/p>\n<p dir=\"auto\">Table 4. The forward path scored by both criteria<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Features<\/th>\n<th align=\"center\">Added<\/th>\n<th align=\"center\">RSS<\/th>\n<th align=\"center\">Deviance<\/th>\n<th align=\"center\">AIC<\/th>\n<th align=\"center\">BIC<\/th>\n<th align=\"center\">Minimum<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">x0<\/td>\n<td align=\"center\">1549.9<\/td>\n<td align=\"center\">977.1<\/td>\n<td align=\"center\">983.1<\/td>\n<td align=\"center\">993.0<\/td>\n<td align=\"center\"><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">x1<\/td>\n<td align=\"center\">767.5<\/td>\n<td align=\"center\">836.5<\/td>\n<td align=\"center\">844.5<\/td>\n<td align=\"center\">857.7<\/td>\n<td align=\"center\"><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">x2<\/td>\n<td align=\"center\">218.3<\/td>\n<td align=\"center\">585.1<\/td>\n<td align=\"center\">595.1<\/td>\n<td align=\"center\">611.6<\/td>\n<td align=\"center\">BIC<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">x3<\/td>\n<td align=\"center\">213.2<\/td>\n<td align=\"center\">580.4<\/td>\n<td align=\"center\">592.4<\/td>\n<td align=\"center\">612.2<\/td>\n<td align=\"center\"><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">x7<\/td>\n<td align=\"center\">210.2<\/td>\n<td align=\"center\">577.5<\/td>\n<td align=\"center\">591.5<\/td>\n<td align=\"center\">614.6<\/td>\n<td align=\"center\">AIC<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">x6<\/td>\n<td align=\"center\">208.5<\/td>\n<td align=\"center\">575.9<\/td>\n<td align=\"center\">591.9<\/td>\n<td align=\"center\">618.3<\/td>\n<td align=\"center\"><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">x4<\/td>\n<td align=\"center\">207.1<\/td>\n<td align=\"center\">574.5<\/td>\n<td align=\"center\">592.5<\/td>\n<td align=\"center\">622.2<\/td>\n<td align=\"center\"><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"center\">x8<\/td>\n<td align=\"center\">206.5<\/td>\n<td align=\"center\">574.0<\/td>\n<td align=\"center\">594.0<\/td>\n<td align=\"center\">626.9<\/td>\n<td align=\"center\"><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">9<\/td>\n<td align=\"center\">x5<\/td>\n<td align=\"center\">206.1<\/td>\n<td align=\"center\">573.6<\/td>\n<td align=\"center\">595.6<\/td>\n<td align=\"center\">631.8<\/td>\n<td align=\"center\"><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">10<\/td>\n<td align=\"center\">x9<\/td>\n<td align=\"center\">206.1<\/td>\n<td align=\"center\">573.5<\/td>\n<td align=\"center\">597.5<\/td>\n<td align=\"center\">637.1<\/td>\n<td align=\"center\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">AIC \uc758 \ucd5c\uc19f\uac12\uc740 feature \ub2e4\uc12f \uac1c \uc790\ub9ac\uc5d0 \uc788\uc73c\uba70, \uc0dd\uc131 feature \uc138 \uac1c\uc758 595.1 \uc5d0 \ub300\ud574 591.5 \ub2e4. \ub354\ud574\uc9c4 \ub450 feature \ub294 deviance \ub97c \ud3c9\uade0 3.8 \uc529 \ub0ae\ucd94\ub294\ub370, AIC \uac00 \ubb3c\ub9ac\ub294 parameter \ub2f9 2 \ubcf4\ub2e4\ub294 \ud06c\uace0 BIC \uac00 \ubb3c\ub9ac\ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$\\ln 200 = 5.3$<\/math-renderer> \ubcf4\ub2e4\ub294 \uc791\ub2e4.<\/p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/ykim2718\/AIML\/blob\/main\/Feature-Engineering\/Feature-Selection\/BIC\/bic_fig\/fig2.png\"><img src=\"https:\/\/ykim.synology.me\/wordpress\/wp-json\/gh-readme\/v1\/asset?user=ykim2718&#038;repo=AIML&#038;branch=main&#038;path=Feature-Engineering\/Feature-Selection\/BIC\/bic_fig\/fig2.png&#038;sig=4d17497f1b631d4796ac288f8280ff4d3bb278b343c22a279f2059dc86c936db\" alt=\"Fig 2\" style=\"max-width: 100%;\"><\/a><\/p>\n<p dir=\"auto\">Fig 2. Both criteria along the forward path, with the minimum of each circled<\/p>\n<p dir=\"auto\">\ub450 \uace1\uc120\uc740 \uc0dd\uc131 feature \uac00 \uc544\uc9c1 \ube60\uc838 \uc788\ub294 \ub3d9\uc548 \uac00\ud30c\ub974\uac8c \ub0b4\ub824\uac00\uace0, \uacbd\ub85c\uac00 feature \uc138 \uac1c\ub97c \uc9c0\ub098\uba74\uc11c \uac08\ub9b0\ub2e4. BIC \uace1\uc120\uc740 \uace7\ubc14\ub85c \uc62c\ub77c\uac00\uace0, AIC \uace1\uc120\uc740 feature \ub2e4\uc12f \uac1c\uae4c\uc9c0 \ud3c9\ud3c9\ud558\uac8c \uac00\ub2e4\uac00 \ub3cc\uc544\uc120\ub2e4.<\/p>\n<p dir=\"auto\">\uac19\uc740 \uc124\uacc4\ub97c \uc5f0\uc18d\ud55c seed \ub85c 200 \ubc88 \ubf51\uc73c\uba74 BIC \ub294 \uadf8 \uac00\uc6b4\ub370 166 \ubc88\uc744 \uc815\ud655\ud788 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$x_0$<\/math-renderer>, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$x_1$<\/math-renderer>, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"9fccdfe117fe3687f45599876d2223e6\">$x_2$<\/math-renderer> \uc5d0\uc11c \uba48\ucd94\uace0 AIC \ub294 46 \ubc88 \uba48\ucd98\ub2e4. 166 \ub300 46 \uc758 \ucc28\uc774\ub294 Table 3 \uc758 consistency \ub97c \uc124\uacc4 \ud558\ub098\uc5d0\uc11c \uc7b0 \uac12\uc774\uba70, \ubaa8\ub4e0 \uc124\uacc4\uc5d0 \ub300\ud55c \uc8fc\uc7a5\uc774 \uc544\ub2c8\ub2e4.<\/p>\n<\/article><\/div><\/div><\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>BIC scores a fitted model as its deviance plus a penalty of ln n per parameter, and the smallest score wins. The penalty comes from a large-sample approximation to the marginal likelihood, so a difference of two scores reads directly as a Bayes factor. Differences under two are a tie.<\/p>\n","protected":false},"author":4,"featured_media":7129,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","fifu_image_url":"","fifu_image_alt":"","iawp_total_views":17,"footnotes":""},"categories":[438,321],"tags":[439,386],"class_list":["post-7128","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bim-slug","category-math-slug","tag-bayes","tag-github-hosted"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"jetpack_featured_media_url":"https:\/\/ykim.synology.me\/wordpress\/wp-content\/uploads\/2026\/09\/green-apples-produce-bin.jpg","_links":{"self":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/comments?post=7128"}],"version-history":[{"count":1,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7128\/revisions"}],"predecessor-version":[{"id":7130,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7128\/revisions\/7130"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media\/7129"}],"wp:attachment":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=7128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=7128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=7128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}