{"id":7242,"date":"2026-10-22T06:38:00","date_gmt":"2026-10-22T11:38:00","guid":{"rendered":"https:\/\/ykim.synology.me\/wordpress\/pls-bootstrap-ensemble-7242\/"},"modified":"2026-10-22T06:38:12","modified_gmt":"2026-10-22T11:38:12","slug":"pls-bootstrap-ensemble","status":"publish","type":"post","link":"https:\/\/ykim.synology.me\/wordpress\/pls-bootstrap-ensemble-7242\/","title":{"rendered":"PLS Bootstrap Ensemble"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/github.com\/yBarn1\/Images\/blob\/main\/ice-rinks\/ice-field-facility-entrance-hallway.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=\"Models\/PLS-Bootstrap-Ensemble\/pls-bootstrap-ensemble-ko.md\"><article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">PLS Bootstrap Ensemble<\/h1><a id=\"user-content-pls-bootstrap-ensemble\" class=\"anchor\" aria-label=\"Permalink: PLS Bootstrap Ensemble\" href=\"#pls-bootstrap-ensemble\"><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 3 | Created: 2026-10-19 | 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-taxonomy-and-its-hierarchy\">3. Taxonomy and its Hierarchy<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#31-comparison\">3.1 Comparison<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#4-principle\">4. Principle<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#41-algorithm\">4.1 Algorithm<\/a><\/li>\n<li><a href=\"#42-spread-and-prediction-interval\">4.2 Spread and Prediction Interval<\/a><\/li>\n<li><a href=\"#43-accuracy-gain\">4.3 Accuracy Gain<\/a><\/li>\n<li><a href=\"#44-combined-quantity\">4.4 Combined Quantity<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#5-application\">5. Application<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#51-assumptions\">5.1 Assumptions<\/a><\/li>\n<li><a href=\"#52-settings\">5.2 Settings<\/a><\/li>\n<li><a href=\"#53-failure-conditions\">5.3 Failure Conditions<\/a><\/li>\n<li><a href=\"#54-use-cases\">5.4 Use Cases<\/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-worked-example\">Appendix B. 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>: PLS model \ud558\ub098\ub9cc \uc801\ud569\ud558\uba74 \uc608\uce21\uac12\uacfc \ud68c\uadc0\uacc4\uc218\uac00 \ud559\uc2b5 \ud45c\ubcf8\uc5d0 \ub530\ub77c \uc5bc\ub9c8\ub098 \ub2ec\ub77c\uc9c0\ub294\uc9c0 \uc54c \uc218 \uc5c6\ub2e4.<\/li>\n<li><strong>Goal<\/strong>: \ud589\uc744 \ub2e4\uc2dc \ubf51\uc740 \ud45c\ubcf8\ub9c8\ub2e4 PLS \ub97c \uc801\ud569\ud558\uc5ec \uc608\uce21\uac12, \uc608\uce21 \uad6c\uac04, \ud68c\uadc0\uacc4\uc218\uc758 \uc548\uc815\uc131\uc744 \uad6c\ud558\uace0, \uadf8 \uac12\uc744 \ubbff\uc744 \uc218 \uc788\ub294 \uc870\uac74\uc744 \uac00\ub9b0\ub2e4.<\/li>\n<li><strong>Non-Goal<\/strong>: PLS \uc54c\uace0\ub9ac\uc998\uc758 \uc720\ub3c4, boosting \uacfc stacking \uac19\uc740 \ub2e4\ub978 ensemble framework \ub294 \ub2e4\ub8e8\uc9c0 \uc54a\ub294\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\">PLS bootstrap ensemble \uc740 \ud589\uc744 \ubcf5\uc6d0\ucd94\ucd9c\ud55c \ud45c\ubcf8\ub9c8\ub2e4 PLS \ub97c \uc801\ud569\ud558\uace0 member \uc758 \uc608\uce21\uc744 \ud3c9\uade0\ud558\ub294 bagging \uc774\ub2e4 [<a href=\"#ref-1\">1<\/a>].\nPLS \ub294 \uc548\uc815\ud55c \ud559\uc2b5\uae30\uc5ec\uc11c \ud3c9\uade0\uc73c\ub85c \uc5bb\ub294 \uc815\ud655\ub3c4 \uc774\ub4dd\uc740 \uc791\uc73c\uba70 [<a href=\"#ref-2\">2<\/a>], \uc4f8\ubaa8\ub294 member \uc0ac\uc774\uc758 \ud37c\uc9d0, out-of-bag (OOB) \uc624\ucc28, \uacc4\uc218\uc758 bootstrap \ubd84\ud3ec\uc5d0 \uc788\ub2e4.\n\ud37c\uc9d0\uc740 \uc801\ud569\ud55c \ud3c9\uade0\uc758 \ubd88\ud655\uc2e4\uc131\ub9cc \uc7ac\ubbc0\ub85c, \uc608\uce21 \uad6c\uac04\uc744 \ub9cc\ub4e4 \ub54c\ub294 \uc794\ucc28 \ubd84\uc0b0\uc744 \ub354\ud55c\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">3. Taxonomy and its Hierarchy<\/h2><a id=\"user-content-3-taxonomy-and-its-hierarchy\" class=\"anchor\" aria-label=\"Permalink: 3. Taxonomy and its Hierarchy\" href=\"#3-taxonomy-and-its-hierarchy\"><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\">PLS bootstrap ensemble \uc758 \ubcc0\ud615\uc740 \ub2e4\uc2dc \ubf51\ub294 \ub2e8\uc704, \uc131\ubd84 \uc218\ub97c \uc815\ud558\ub294 \ubc29\uc2dd, \ud569\uce58\ub294 \uc591\uc758 \uc138 \ucd95\uc73c\ub85c \ub098\ub25c\ub2e4. \uc138 \ucd95\uacfc \ucd95\ub9c8\ub2e4\uc758 \uac12\uc740 \uc544\ub798 <a href=\"#fig-1\">Fig 1<\/a> \uacfc \uac19\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"PLS bootstrap ensemble\n|\n+-- Resampled unit\n|   +-- Rows with replacement ............ bagging\n|   +-- Rows without replacement ......... subagging\n|   +-- Groups or blocks of rows ......... group \/ block bootstrap\n|\n+-- Number of components\n|   +-- Fixed for all members ............ chosen once by CV\n|   +-- Chosen per member ................ inner CV in each member\n|\n+-- Combined quantity\n    +-- Prediction ....................... mean and spread\n    +-- Regression coefficient ........... mean and percentile interval\"><pre lang=\"text\" class=\"notranslate\"><code>PLS bootstrap ensemble\n|\n+-- Resampled unit\n|   +-- Rows with replacement ............ bagging\n|   +-- Rows without replacement ......... subagging\n|   +-- Groups or blocks of rows ......... group \/ block bootstrap\n|\n+-- Number of components\n|   +-- Fixed for all members ............ chosen once by CV\n|   +-- Chosen per member ................ inner CV in each member\n|\n+-- Combined quantity\n    +-- Prediction ....................... mean and spread\n    +-- Regression coefficient ........... mean and percentile interval\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-1\"><\/a>Fig 1. Three axes of a PLS bootstrap ensemble<\/p>\n<p dir=\"auto\">\uc138 \ucd95\uc740 \uc11c\ub85c \ub3c5\ub9bd\uc774\ub2e4. \uc608\ub97c \ub4e4\uc5b4 group bootstrap \uc5d0 \uc131\ubd84 \uc218\ub97c member \ub9c8\ub2e4 \uc815\ud558\uace0 \uacc4\uc218\ub97c \ud569\uce58\ub294 \uc870\ud569\ub3c4 \uc4f8 \uc218 \uc788\ub2e4.<\/p>\n<p dir=\"auto\">\ubcc0\ud615 \uc0ac\uc774\uc758 \uacc4\uce35\uc740 \ub2e8\uc77c PLS \uc5d0\uc11c \ucd9c\ubc1c\ud558\uba70, \ud55c \ub2e8\uacc4 \ub0b4\ub824\uac08 \ub54c\ub9c8\ub2e4 \ud589\uc5d0 \ub300\ud55c \uac00\uc815\uc744 \ud558\ub098 \ubc84\ub9ac\uace0 \uacc4\uc0b0\uc744 \ub354\ud55c\ub2e4. \uacc4\uce35\uc740 \uc544\ub798 <a href=\"#fig-2\">Fig 2<\/a> \uc640 \uac19\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"Single PLS ................................ one fit, no spread\n|   assumes: the training rows are the only sample\n|\n+-- Row bootstrap PLS ..................... bagging, subagging\n    |   assumes: rows are independent and exchangeable\n    |\n    +-- Group \/ block bootstrap PLS ....... lot, wafer or time-block resampling\n            assumes: groups are independent; rows inside a group need not be\"><pre lang=\"text\" class=\"notranslate\"><code>Single PLS ................................ one fit, no spread\n|   assumes: the training rows are the only sample\n|\n+-- Row bootstrap PLS ..................... bagging, subagging\n    |   assumes: rows are independent and exchangeable\n    |\n    +-- Group \/ block bootstrap PLS ....... lot, wafer or time-block resampling\n            assumes: groups are independent; rows inside a group need not be\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-2\"><\/a>Fig 2. Assumptions held at each level<\/p>\n<ul dir=\"auto\">\n<li>Single PLS \uc5d0\uc11c row bootstrap \uc73c\ub85c \ub0b4\ub824\uac00\uba74 \ud37c\uc9d0, OOB \uc624\ucc28, \uacc4\uc218 \uad6c\uac04\uc744 \uc5bb\uace0, \uacc4\uc0b0\ub7c9\uc740 member \uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$B$<\/math-renderer> \ubc30\ub85c \ub294\ub2e4.<\/li>\n<li>Row bootstrap \uc5d0\uc11c group bootstrap \uc73c\ub85c \ub0b4\ub824\uac00\uba74 \ud589\uc774 \uc11c\ub85c \ub3c5\ub9bd\uc774\ub77c\ub294 \uac00\uc815\uc744 group \uc774 \uc11c\ub85c \ub3c5\ub9bd\uc774\ub77c\ub294 \uac00\uc815\uc73c\ub85c \ubc14\uafbc\ub2e4. \ub300\uc2e0 \ub2e4\uc2dc \ubf51\ub294 \ub2e8\uc704\uc758 \uc218\uac00 \ud589 \uc218\uc5d0\uc11c group \uc218\ub85c \uc904\uc5b4 \ud37c\uc9d0\uc758 \ucd94\uc815\uc774 \uac70\uce60\uc5b4\uc9c4\ub2e4.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.1 Comparison<\/h3><a id=\"user-content-31-comparison\" class=\"anchor\" aria-label=\"Permalink: 3.1 Comparison\" href=\"#31-comparison\"><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\">\ubcc0\ud615\uc740 \uc790\ub8cc\uc758 \uad6c\uc870\uc640 \uc6d0\ud558\ub294 \uc0b0\ucd9c\ubb3c\ub85c \uace0\ub978\ub2e4.<\/p>\n<p dir=\"auto\">Table 1. Variant by situation<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Situation<\/th>\n<th align=\"center\">Variant<\/th>\n<th align=\"center\">Reason<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">\ud589\uc774 \uc11c\ub85c \ub3c5\ub9bd\uc778 calibration<\/td>\n<td align=\"center\">Row bootstrap, \uc131\ubd84 \uc218 \uace0\uc815<\/td>\n<td align=\"center\">\uac00\uc7a5 \ub2e8\uc21c\ud558\uba70 \ud589 \ub2e8\uc704 OOB \uc624\ucc28\ub97c \uadf8\ub300\ub85c \uc500<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\uc801\ud569 \ud69f\uc218\ub97c \uc904\uc5ec\uc57c \ud560 \ub54c<\/td>\n<td align=\"center\">Subagging<\/td>\n<td align=\"center\">Bagging \uacfc \ube44\uc2b7\ud55c \uc131\ub2a5, \ub354 \uc801\uc740 \uacc4\uc0b0\ub7c9 [<a href=\"#ref-3\">3<\/a>]<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\uac19\uc740 lot\u00b7wafer\u00b7\uc2dc\uac04 \uad6c\uac04\uc758 \ud589<\/td>\n<td align=\"center\">Group \/ block bootstrap<\/td>\n<td align=\"center\">\uac19\uc740 group \uc758 \ud589\uc774 \ud559\uc2b5\uacfc OOB \uc5d0 \ub098\ub258\uc9c0 \uc54a\uc74c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\uacc4\uc218\uc758 \ubd80\ud638\uc640 \ud06c\uae30\ub97c \ud574\uc11d\ud560 \ub54c<\/td>\n<td align=\"center\">Coefficient percentile interval<\/td>\n<td align=\"center\">\uc131\ubd84\uc758 \ubd80\ud638\uc640 \ubb34\uad00\ud55c \ud68c\uadc0\uacc4\uc218\ub97c \ud569\uce68<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\uc131\ubd84 \uc218 \uc120\ud0dd\uc758 \ubd88\ud655\uc2e4\uc131\ub3c4 \ub123\uc744 \ub54c<\/td>\n<td align=\"center\">\uc131\ubd84 \uc218\ub97c member \ub9c8\ub2e4 \uc120\ud0dd<\/td>\n<td align=\"center\">\uc131\ubd84 \uc218\uac00 \ub2ec\ub77c\uc9c0\ub294 \ubaab\uc774 \ud37c\uc9d0\uc5d0 \ub4e4\uc5b4\uac10<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Group bootstrap \uc774 \ud544\uc694\ud55c\uc9c0\ub294 \ud589 \ub2e8\uc704 OOB \uc624\ucc28\uc640 group \ub2e8\uc704 cross-validation (CV) \uc624\ucc28\ub97c \uacac\uc8fc\uc5b4 \uc815\ud55c\ub2e4. \ud589 \ub2e8\uc704 OOB \uc624\ucc28\uac00 \ub69c\ub837\uc774 \uc791\uc73c\uba74 \ud589 \uc0ac\uc774 \uc0c1\uad00\uc774 OOB \uc624\ucc28\ub97c \ub0ae\ucd98 \uac83\uc774\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">4. Principle<\/h2><a id=\"user-content-4-principle\" class=\"anchor\" aria-label=\"Permalink: 4. Principle\" href=\"#4-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\">PLS bootstrap ensemble \uc740 PLS \ub97c \ud559\uc2b5\uae30\ub85c \ub454 bagging \uc774\ub2e4 [<a href=\"#ref-1\">1<\/a>]. PLS \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$X$<\/math-renderer> \ub97c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$y$<\/math-renderer> \uc640\uc758 \uacf5\ubd84\uc0b0\uc774 \ud070 \ubc29\ud5a5\uc73c\ub85c \ud22c\uc601\ud55c \uc131\ubd84 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$A$<\/math-renderer> \uac1c\ub85c \ud68c\uadc0\ud558\ubbc0\ub85c, \uc5f4\uc774 \ub9ce\uace0 \uc11c\ub85c \uc0c1\uad00\ub41c \uc790\ub8cc\uc5d0\uc11c\ub3c4 \uc801\ud569\uc774 \ub41c\ub2e4 [<a href=\"#ref-4\">4<\/a>].<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.1 Algorithm<\/h3><a id=\"user-content-41-algorithm\" class=\"anchor\" aria-label=\"Permalink: 4.1 Algorithm\" href=\"#41-algorithm\"><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\">\uc808\ucc28\ub294 \uc131\ubd84 \uc218\ub97c \ud55c \ubc88 \uc815\ud55c \ub4a4 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$B$<\/math-renderer> \uac1c\uc758 member \ub97c \uc801\ud569\ud558\ub294 \uac83\uc774\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"# Pseudocode\nchoose A by K-fold CV on (X, y)\nfor b in 1..B:\n    I_b &lt;- n row indices drawn with replacement\n    O_b &lt;- rows not in I_b                      # out-of-bag rows of member b\n    f_b &lt;- PLS with A components fitted on (X[I_b], y[I_b])\npredict : mean of f_b(x) over b                  # equation (1)\nspread  : variance of f_b(x) over b              # equation (2)\nOOB     : for row i, mean of f_b(x_i) over b with i in O_b\"><pre lang=\"text\" class=\"notranslate\"><code># Pseudocode\nchoose A by K-fold CV on (X, y)\nfor b in 1..B:\n    I_b &lt;- n row indices drawn with replacement\n    O_b &lt;- rows not in I_b                      # out-of-bag rows of member b\n    f_b &lt;- PLS with A components fitted on (X&#91;I_b&#93;, y&#91;I_b&#93;)\npredict : mean of f_b(x) over b                  # equation (1)\nspread  : variance of f_b(x) over b              # equation (2)\nOOB     : for row i, mean of f_b(x_i) over b with i in O_b\n<\/code><\/pre><\/div>\n<p dir=\"auto\">\ud589 \ud558\ub098\uac00 bootstrap \ud45c\ubcf8\uc5d0 \ud55c \ubc88\ub3c4 \ubf51\ud788\uc9c0 \uc54a\uc744 \ud655\ub960\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$(1 - 1\/n)^n$<\/math-renderer> \uc774\uace0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$n$<\/math-renderer> \uc774 \ucee4\uc9c0\uba74 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$e^{-1} \\approx 0.368$<\/math-renderer> \uc5d0 \uac00\uae4c\uc6cc\uc9c4\ub2e4. \ub530\ub77c\uc11c member \ub9c8\ub2e4 \ud589\uc758 \uc57d 37 % \uac00 OOB \ub85c \ub0a8\uace0, \ud589 \ud558\ub098\uc758 OOB \uc608\uce21\uc5d0\ub294 member \uc57d <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$0.368B$<\/math-renderer> \uac1c\uac00 \uc4f0\uc778\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.2 Spread and Prediction Interval<\/h3><a id=\"user-content-42-spread-and-prediction-interval\" class=\"anchor\" aria-label=\"Permalink: 4.2 Spread and Prediction Interval\" href=\"#42-spread-and-prediction-interval\"><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\">\uc608\uce21\uac12\uc740 member \uc608\uce21\uc758 \ud3c9\uade0\uc774\uace0, \ud37c\uc9d0\uc740 member \uc608\uce21\uc758 \ubd84\uc0b0\uc774\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$$\\bar{f}(x) = \\frac{1}{B}\\sum_{b=1}^{B}\\hat{f}_b(x) \\hspace{19em} (1)$$<\/math-renderer>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$$s_f^2(x) = \\frac{1}{B-1}\\sum_{b=1}^{B}\\left(\\hat{f}_b(x) - \\bar{f}(x)\\right)^2 \\hspace{19em} (2)$$<\/math-renderer>\n<p dir=\"auto\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$s_f^2(x)$<\/math-renderer> \ub294 \ud559\uc2b5 \ud45c\ubcf8\uc774 \ubc14\ub014 \ub54c \uc801\ud569\ud55c \ud3c9\uade0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\bar{f}(x)$<\/math-renderer> \uac00 \uc6c0\uc9c1\uc774\ub294 \uc815\ub3c4\uc774\ub2e4. \uc0c8 \uad00\uce21\uac12\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$y = f(x) + \\varepsilon$<\/math-renderer> \uc774\ubbc0\ub85c, \uad00\uce21\uac12\uc774 \ub4e4\uc5b4\uac08 \uad6c\uac04\uc5d0\ub294 \uc7a1\uc74c \ubd84\uc0b0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\sigma^2$<\/math-renderer> \uc774 \ub354\ud574\uc838\uc57c \ud55c\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\sigma^2$<\/math-renderer> \uc758 \ucd94\uc815\uac12\uc73c\ub85c OOB \ud3c9\uade0\uc81c\uacf1\uc624\ucc28\ub97c \uc4f4\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$$\\hat{\\sigma}^2_{\\mathrm{OOB}} = \\frac{1}{n'}\\sum_{i=1}^{n'}\\left(y_i - \\hat{y}_i^{\\mathrm{OOB}}\\right)^2 \\hspace{19em} (3)$$<\/math-renderer>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$$\\bar{f}(x) \\pm z_{1-\\alpha\/2}\\sqrt{s_f^2(x) + \\hat{\\sigma}^2_{\\mathrm{OOB}}} \\hspace{19em} (4)$$<\/math-renderer>\n<p dir=\"auto\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$n'$<\/math-renderer> \uc740 OOB \uc608\uce21\uc744 \ud558\ub098 \uc774\uc0c1 \ubc1b\uc740 \ud589\uc758 \uc218\uc774\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\hat{\\sigma}^2_{\\mathrm{OOB}}$<\/math-renderer> \uc5d0\ub294 \uc7a1\uc74c\uacfc \uc801\ud569 \uc624\ucc28\uac00 \ud568\uaed8 \ub4e4\uc5b4 \uc788\uc73c\ubbc0\ub85c, \uc2dd (4) \ub294 \uc801\ud569 \uc624\ucc28\ub97c \ub450 \ubc88 \ub354\ud574 \uad6c\uac04\uc774 \uc57d\uac04 \ub113\uc5b4\uc9c0\ub294 \ucabd\uc73c\ub85c \uc5b4\uae0b\ub09c\ub2e4.<\/p>\n<p dir=\"auto\"><a href=\"#appendix-b-worked-example\">Appendix B<\/a> \uc758 \uc608\uc81c\uc5d0\uc11c member \uc608\uce21\uc758 5\u201395 percentile \uad6c\uac04\uc740 \uc0c8 \uad00\uce21\uac12\uc758 33.3 % \ub9cc \ub2f4\uc558\uace0, \uc2dd (4) \uc758 90 % \uad6c\uac04\uc740 90.7 % \ub97c \ub2f4\uc558\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.3 Accuracy Gain<\/h3><a id=\"user-content-43-accuracy-gain\" class=\"anchor\" aria-label=\"Permalink: 4.3 Accuracy Gain\" href=\"#43-accuracy-gain\"><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\">Bagging \uc774 \ud3c9\uade0\uc73c\ub85c \uc904\uc774\ub294 \uac83\uc740 \ud559\uc2b5\uae30\uc758 \ubd84\uc0b0\uc774\ubbc0\ub85c, \ud559\uc2b5 \ud45c\ubcf8\uc774 \uc870\uae08 \ubc14\ub014 \ub54c \uc801\ud569\uc774 \ud06c\uac8c \ubc14\ub00c\ub294 \ud559\uc2b5\uae30\uc77c\uc218\ub85d \uc774\ub4dd\uc774 \ud06c\ub2e4 [<a href=\"#ref-1\">1<\/a>]. PLS \ub294 \uc131\ubd84 \uc218\uac00 \uc801\uc744 \ub54c \uc801\ud569\uc774 \uc548\uc815\ud558\ub2e4 [<a href=\"#ref-2\">2<\/a>].<\/p>\n<ul dir=\"auto\">\n<li>\uc131\ubd84 \uc218\uac00 \uc801\uac70\ub098 \uc911\uac04\uc77c \ub54c bagging \ud55c PLS \ub294 \ub2e8\uc77c PLS \ubcf4\ub2e4 \ub69c\ub837\uc774 \ub0ab\uc9c0 \uc54a\ub2e4 [<a href=\"#ref-2\">2<\/a>].<\/li>\n<li>\uc131\ubd84 \uc218\uac00 \ub9ce\uc544 \ub2e8\uc77c PLS \uac00 overfitting \ud560 \ub54c bagging \ud55c PLS \ub294 overfitting \uc758 \uc601\ud5a5\uc744 \ub35c \ubc1b\ub294\ub2e4 [<a href=\"#ref-2\">2<\/a>].<\/li>\n<li><a href=\"#appendix-b-worked-example\">Appendix B<\/a> \uc758 \uc608\uc81c\uc5d0\uc11c test RMSE \ub294 \ub2e8\uc77c PLS 0.525, bagging \ud55c PLS 0.522 \ub85c, \uc7a1\uc74c \ud45c\uc900\ud3b8\ucc28 0.5 \ubcf4\ub2e4 \uac01\uac01 0.025 \uc640 0.022 \ucef8\ub2e4.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.4 Combined Quantity<\/h3><a id=\"user-content-44-combined-quantity\" class=\"anchor\" aria-label=\"Permalink: 4.4 Combined Quantity\" href=\"#44-combined-quantity\"><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\">Member \uc0ac\uc774\uc5d0\uc11c \ud569\uce58\ub294 \uc591\uc740 \uc608\uce21\uac12\uacfc \ud68c\uadc0\uacc4\uc218\uc774\uba70, weight \uc640 loading \uc740 \ud569\uce58\uc9c0 \uc54a\ub294\ub2e4. PLS \uc131\ubd84\uc740 \ubd80\ud638\ub97c \ubc14\uafb8\uc5b4\ub3c4 \uac19\uc740 \uc801\ud569\uc774 \ub418\ubbc0\ub85c member \ub9c8\ub2e4 weight \uc640 loading \uc758 \ubd80\ud638\uac00 \ub2e4\ub97c \uc218 \uc788\uace0, \uc131\ubd84\uc758 \ucc28\ub840\ub3c4 \ubc14\ub014 \uc218 \uc788\ub2e4. \ud68c\uadc0\uacc4\uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\hat{\\beta}_b$<\/math-renderer> \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$x$<\/math-renderer> \ub85c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\hat{y}$<\/math-renderer> \ub97c \uad6c\ud558\ub294 \uc120\ud615\uc2dd\uc758 \uacc4\uc218\uc5ec\uc11c \uc131\ubd84\uc758 \ubd80\ud638\uc640 \ucc28\ub840\uc5d0 \ubb34\uad00\ud558\ubbc0\ub85c, member \uc0ac\uc774\uc5d0\uc11c \ud3c9\uade0\ud558\uace0 percentile \uc744 \uad6c\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p dir=\"auto\">\uacc4\uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$j$<\/math-renderer> \uc758 95 % \uad6c\uac04\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\hat{\\beta}_{b,j}$<\/math-renderer> \uc758 2.5 \uc640 97.5 percentile \uc774\ub2e4. \uad6c\uac04\uc774 0 \uc744 \ud3ec\ud568\ud558\uc9c0 \uc54a\ub294 \uacc4\uc218\ub294 \ud559\uc2b5 \ud45c\ubcf8\uc774 \ubc14\ub00c\uc5b4\ub3c4 \ubd80\ud638\uac00 \uc720\uc9c0\ub41c\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">5. Application<\/h2><a id=\"user-content-5-application\" class=\"anchor\" aria-label=\"Permalink: 5. Application\" href=\"#5-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\"><a href=\"#4-principle\">Section 4<\/a> \uc758 \uc808\ucc28\ub97c \uc4f8 \uc218 \uc788\ub294 \uc870\uac74, \uc124\uc815\uac12, \uae68\uc9c0\ub294 \uc870\uac74, \uc4f0\uc774\ub294 \uacf5\uc815\uc740 \uc544\ub798\uc774\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">5.1 Assumptions<\/h3><a id=\"user-content-51-assumptions\" class=\"anchor\" aria-label=\"Permalink: 5.1 Assumptions\" href=\"#51-assumptions\"><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>\ud589\uc774 \uc11c\ub85c \ub3c5\ub9bd\uc774\uace0 \uac19\uc740 \ubd84\ud3ec\uc5d0\uc11c \ub098\uc634. Group \uad6c\uc870\uac00 \uc788\uc73c\uba74 group \uc774 \uadf8 \ub2e8\uc704.<\/li>\n<li>\uc608\uce21\ud560 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$x$<\/math-renderer> \uac00 \ud559\uc2b5 \uc790\ub8cc\uc758 \ubc94\uc704 \uc548\uc5d0 \uc788\uc74c.<\/li>\n<li>\uc7a1\uc74c \ubd84\uc0b0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\sigma^2$<\/math-renderer> \uc774 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$x$<\/math-renderer> \uc5d0 \ub530\ub77c \ud06c\uac8c \ub2ec\ub77c\uc9c0\uc9c0 \uc54a\uc74c. \uc2dd (4) \uc5d0\uc11c\ub294 \ubaa8\ub4e0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$x$<\/math-renderer> \uc5d0 \uac19\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\hat{\\sigma}^2_{\\mathrm{OOB}}$<\/math-renderer> \uac00 \uc4f0\uc784.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">5.2 Settings<\/h3><a id=\"user-content-52-settings\" class=\"anchor\" aria-label=\"Permalink: 5.2 Settings\" href=\"#52-settings\"><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\">Table 2. Settings<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Parameter<\/th>\n<th align=\"center\">Setting<\/th>\n<th align=\"center\">Basis<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">Member \uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$B$<\/math-renderer>\n<\/td>\n<td align=\"center\">\n<math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\bar{f}$<\/math-renderer> \uc640 \uad6c\uac04 \ud3ed\uc774 \ub354 \ubcc0\ud558\uc9c0 \uc54a\ub294 \uac12<\/td>\n<td align=\"center\">\n<math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$B$<\/math-renderer> \ub97c \ub450 \ubc30\ub85c \ub298\ub824 \ub450 \uac12\uc758 \ubcc0\ud654\ub97c \ud655\uc778. \uc608\uc81c\ub294 200<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\uc131\ubd84 \uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$A$<\/math-renderer>\n<\/td>\n<td align=\"center\">\uc804\uccb4 \uc790\ub8cc\uc5d0 K-fold CV \ub85c \ud55c \ubc88<\/td>\n<td align=\"center\">Member \ub9c8\ub2e4 \uc815\ud558\uba74 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$B$<\/math-renderer> \ubc30\uc758 CV \uac00 \ub354 \ub4e6<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Scaling<\/td>\n<td align=\"center\">Member \uc548\uc5d0\uc11c \ub2e4\uc2dc \uacc4\uc0b0<\/td>\n<td align=\"center\">\uc804\uccb4 \uc790\ub8cc\uc758 \ud3c9\uade0\uacfc \ubd84\uc0b0\uc744 \uc4f0\uba74 OOB \ud589\uc758 \uc815\ubcf4\uac00 \uc11e\uc784<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\uad6c\uac04 \uc218\uc900 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\alpha$<\/math-renderer>\n<\/td>\n<td align=\"center\">\uc2dd (4) \uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$z_{1-\\alpha\/2}$<\/math-renderer>\n<\/td>\n<td align=\"center\">90 % \uad6c\uac04\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$z = 1.645$<\/math-renderer>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">5.3 Failure Conditions<\/h3><a id=\"user-content-53-failure-conditions\" class=\"anchor\" aria-label=\"Permalink: 5.3 Failure Conditions\" href=\"#53-failure-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>\n<strong>\ud589 \uc0ac\uc774 \uc0c1\uad00<\/strong>: \uac19\uc740 lot\u00b7wafer\u00b7\uc2dc\uac04 \uad6c\uac04\uc758 \ud589\uc774 \ud559\uc2b5 \ud45c\ubcf8\uacfc OOB \uc5d0 \ud568\uaed8 \ub4e4\uc5b4\uac00 OOB \uc624\ucc28\uac00 \uc2e4\uc81c\ubcf4\ub2e4 \uc791\uac8c \ub098\uc634. \uc2dd (4) \uc758 \uad6c\uac04\ub3c4 \uadf8\ub9cc\ud07c \uc881\uc544\uc9d0. Group bootstrap \uc73c\ub85c \ubc14\uafc8.<\/li>\n<li>\n<strong>\uc678\uc0bd<\/strong>: \ud559\uc2b5 \ubc94\uc704 \ubc16\uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$x$<\/math-renderer> \uc5d0\uc11c\ub294 member \uac00 \ubaa8\ub450 \uac19\uc740 \uc120\ud615 \uc678\uc0bd\uc744 \ud558\uc5ec <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$s_f^2(x)$<\/math-renderer> \uac00 \uc791\uac8c \ub098\uc634. \ud37c\uc9d0\uc774 \uc791\ub2e4\uace0 \uc608\uce21\uc744 \ubbff\uc744 \uc218 \uc5c6\uc73c\uba70, score \uc758 Hotelling <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$T^2$<\/math-renderer> \ub85c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$x$<\/math-renderer> \uac00 \ud559\uc2b5 \ubc94\uc704 \uc548\uc5d0 \uc788\ub294\uc9c0 \uba3c\uc800 \ud655\uc778.<\/li>\n<li>\n<strong>\uc791\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$n$<\/math-renderer><\/strong>: <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$\\hat{\\sigma}^2_{\\mathrm{OOB}}$<\/math-renderer> \uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$n'$<\/math-renderer> \uac1c \ud589\uc5d0\uc11c \ub098\uc624\ubbc0\ub85c \ud559\uc2b5 \ud45c\ubcf8\ub9c8\ub2e4 \ud06c\uac8c \ud754\ub4e4\ub9bc. \uc608\uc81c\uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$n = 60$<\/math-renderer> \uc5d0\uc11c OOB RMSE \ub294 0.406 \ubd80\ud130 0.612 \uae4c\uc9c0 \ub098\uc654\uace0, \uc2dd (4) \uad6c\uac04\uc758 coverage \ub294 0.820 \ubd80\ud130 0.962 \uae4c\uc9c0 \ub098\uc654\ub2e4.<\/li>\n<li>\n<strong>\uace0\uc815\ud55c \uc131\ubd84 \uc218<\/strong>: <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$A$<\/math-renderer> \ub97c \uc804\uccb4 \uc790\ub8cc\ub85c \ud55c \ubc88 \uc815\ud558\uba74 \uc131\ubd84 \uc218 \uc120\ud0dd\uc758 \ubd88\ud655\uc2e4\uc131\uc740 \ud37c\uc9d0\uc5d0 \ub4e4\uc5b4\uac00\uc9c0 \uc54a\uc74c. \uc608\uc81c\uc5d0\uc11c CV \uac00 \uace0\ub978 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$A$<\/math-renderer> \ub294 \ud559\uc2b5 \ud45c\ubcf8\uc5d0 \ub530\ub77c 1 \ubd80\ud130 5 \uae4c\uc9c0 \ub2ec\ub790\ub2e4.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">5.4 Use Cases<\/h3><a id=\"user-content-54-use-cases\" class=\"anchor\" aria-label=\"Permalink: 5.4 Use Cases\" href=\"#54-use-cases\"><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>Spectrum calibration<\/strong>: NIR spectrum \ucc98\ub7fc \uc5f4\uc774 \uc218\ubc31 \uac1c\uc774\uace0 \uc11c\ub85c \uc0c1\uad00\ub41c \uc790\ub8cc\uc5d0\uc11c \uc131\ubd84 \ud568\ub7c9\uc744 \uc608\uce21. Subagging \uc744 diesel \ud488\uc9c8 parameter \uc758 NIR calibration \uc5d0 \uc801\uc6a9\ud55c \uc608\uac00 \uc788\ub2e4 [<a href=\"#ref-3\">3<\/a>].<\/li>\n<li><strong>Soft sensor \uc640 virtual metrology<\/strong>: \uacf5\uc815 sensor \uac12\uc73c\ub85c \uacc4\uce21\uac12\uc744 \uc608\uce21\ud560 \ub54c, \uc2dd (4) \uc758 \uad6c\uac04 \ud3ed\uc73c\ub85c \uacc4\uce21\uc744 \uac74\ub108\ub6f0\uc5b4\ub3c4 \ub418\ub294 wafer \uc640 \uc2e4\uc81c\ub85c \uacc4\uce21\ud560 wafer \ub97c \uac00\ub984.<\/li>\n<li><strong>\ubcc0\uc218 \ud574\uc11d<\/strong>: \uacc4\uc218 \uad6c\uac04\uc774 0 \uc744 \ud3ec\ud568\ud558\uc9c0 \uc54a\ub294 \uc5f4\ub9cc \uacf5\uc815 \ubcc0\uc218 \ud6c4\ubcf4\ub85c \ub0a8\uae40.<\/li>\n<\/ul>\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] Breiman, L. (1996). <a href=\"https:\/\/doi.org\/10.1007\/BF00058655\" rel=\"nofollow\">Bagging Predictors<\/a>. <em>Machine Learning<\/em>, 24(2), 123\u2013140.<br>\n<a id=\"user-content-ref-2\"><\/a>[2] Mevik, B.-H., Segtnan, V. H. and N\u00e6s, T. (2004). <a href=\"https:\/\/doi.org\/10.1002\/cem.895\" rel=\"nofollow\">Ensemble methods and partial least squares regression<\/a>. <em>Journal of Chemometrics<\/em>, 18(11), 498\u2013507.<br>\n<a id=\"user-content-ref-3\"><\/a>[3] Galv\u00e3o, R. K. H., Ara\u00fajo, M. C. U., Martins, M. N., Jos\u00e9, G. E., Pontes, M. J. C., Silva, E. C. and Saldanha, T. C. B. (2006). <a href=\"https:\/\/doi.org\/10.1016\/j.chemolab.2005.09.005\" rel=\"nofollow\">An application of subagging for the improvement of prediction accuracy of multivariate calibration models<\/a>. <em>Chemometrics and Intelligent Laboratory Systems<\/em>, 81(1), 60\u201367.<br>\n<a id=\"user-content-ref-4\"><\/a>[4] Wold, S., Sj\u00f6str\u00f6m, M. and Eriksson, L. (2001). <a href=\"https:\/\/doi.org\/10.1016\/S0169-7439(01)00155-1\" rel=\"nofollow\">PLS-regression: a basic tool of chemometrics<\/a>. <em>Chemometrics and Intelligent Laboratory Systems<\/em>, 58(2), 109\u2013130.<\/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>bagging<\/strong>: Bootstrap aggregating. \ud589\uc744 \ubcf5\uc6d0\ucd94\ucd9c\ud55c \ud45c\ubcf8\ub9c8\ub2e4 \ud559\uc2b5\uae30\ub97c \uc801\ud569\ud558\uace0 \uc608\uce21\uc744 \ud3c9\uade0\ud558\ub294 ensemble.<\/li>\n<li>\n<strong>bootstrap<\/strong>: \ud06c\uae30 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$n$<\/math-renderer> \uc758 \uc790\ub8cc\uc5d0\uc11c \ud589 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$n$<\/math-renderer> \uac1c\ub97c \ubcf5\uc6d0\ucd94\ucd9c\ud558\uc5ec \uc0c8 \ud45c\ubcf8\uc744 \ub9cc\ub4dc\ub294 \ubc29\ubc95.<\/li>\n<li>\n<strong>coverage<\/strong>: \uad6c\uac04\uc774 \uc0c8 \uad00\uce21\uac12\uc744 \ub2f4\uc740 \ube44\uc728.<\/li>\n<li>\n<strong>CV<\/strong>: Cross-validation. \uc790\ub8cc\ub97c \ub098\ub204\uc5b4 \uc77c\ubd80\ub85c \uc801\ud569\ud558\uace0 \ub098\uba38\uc9c0\ub85c \uc624\ucc28\ub97c \uc7ac\ub294 \uac80\uc99d.<\/li>\n<li>\n<strong>Hotelling <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$T^2$<\/math-renderer><\/strong>: Score \uac00 \uc7a0\uc7ac\uacf5\uac04\uc758 \uc911\uc2ec\uc5d0\uc11c \ub5a8\uc5b4\uc9c4 \uc815\ub3c4\ub97c \uc7ac\ub294 \ud1b5\uacc4\ub7c9.<\/li>\n<li>\n<strong>member<\/strong>: Ensemble \uc744 \uc774\ub8e8\ub294 model \ud558\ub098. \uc5ec\uae30\uc11c\ub294 bootstrap \ud45c\ubcf8 \ud558\ub098\uc5d0 \uc801\ud569\ud55c PLS.<\/li>\n<li>\n<strong>NIR<\/strong>: Near-infrared. \uadfc\uc801\uc678\uc120 \uc601\uc5ed\uc758 spectrum.<\/li>\n<li>\n<strong>OOB<\/strong>: Out-of-bag. \ud55c member \uc758 bootstrap \ud45c\ubcf8\uc5d0 \ubf51\ud788\uc9c0 \uc54a\uc740 \ud589.<\/li>\n<li>\n<strong>PLS<\/strong>: Partial Least Squares. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$X$<\/math-renderer> \ub97c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"c123a33980e6e9f2b750632b0f5163d3\">$y$<\/math-renderer> \uc640\uc758 \uacf5\ubd84\uc0b0\uc774 \ud070 \ubc29\ud5a5\uc73c\ub85c \ud22c\uc601\ud55c \uc131\ubd84\uc73c\ub85c \ud68c\uadc0\ud558\ub294 \ubc29\ubc95.<\/li>\n<li>\n<strong>RMSE<\/strong>: Root mean squared error. \uc624\ucc28 \uc81c\uacf1 \ud3c9\uade0\uc758 \uc81c\uacf1\uadfc.<\/li>\n<li>\n<strong>subagging<\/strong>: Subsample aggregating. \ud589\uc744 \ube44\ubcf5\uc6d0\ucd94\ucd9c\ud55c \ubd80\ubd84 \ud45c\ubcf8\uc73c\ub85c bagging \ud558\ub294 \ubc29\ubc95.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix B. Worked Example<\/h2><a id=\"user-content-appendix-b-worked-example\" class=\"anchor\" aria-label=\"Permalink: Appendix B. Worked Example\" href=\"#appendix-b-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\">\uc608\uc81c\ub294 \uc5f4 200 \uac1c\uac00 \uc7a0\uc7ac \uc778\uc790 \uc14b\uc5d0 \ub530\ub77c \uc6c0\uc9c1\uc774\ub294 spectrum \ubaa8\uc591\uc758 \uc790\ub8cc\uc5d0\uc11c \ub2e8\uc77c PLS \uc640 PLS bootstrap ensemble \uc744 \uacac\uc900\ub2e4. \ud559\uc2b5 \ud589 60 \uac1c, test \ud589 2,000 \uac1c, \uc7a1\uc74c \ud45c\uc900\ud3b8\ucc28 0.5 \ub85c \ud559\uc2b5 \ud45c\ubcf8\uc744 20 \ubc88 \uc0c8\ub85c \ub9cc\ub4e4\uace0, \ud45c\ubcf8\ub9c8\ub2e4 member 200 \uac1c\ub97c \uc801\ud569\ud55c\ub2e4. \uc2e4\ud589\uc5d0\ub294 numpy \uc640 scikit-learn \uc774 \ud544\uc694\ud558\uba70, scikit-learn 1.9.1 \uc5d0\uc11c \uc57d 13 \ucd08 \uac78\ub838\ub2e4.<\/p>\n<div class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# Python\nimport numpy as np\nfrom sklearn.cross_decomposition import PLSRegression\nfrom sklearn.model_selection import GridSearchCV\n\nN_TRAIN, N_TEST, P, SIGMA = 60, 2000, 200, 0.5\nB, REPS, Z90 = 200, 20, 1.645\nSHAPES = np.stack([np.exp(-((np.linspace(0, 1, P) - c) \/ 0.08) ** 2) for c in (0.25, 0.5, 0.75)])\n\n\ndef simulate(rng: np.random.Generator, n: int) -&gt; tuple[np.ndarray, np.ndarray]:\n    &quot;&quot;&quot;Return collinear, spectrum-like X driven by three latent factors, and y.&quot;&quot;&quot;\n    t = rng.normal(size=(n, 3))\n    x = t @ SHAPES + 0.05 * rng.normal(size=(n, P))\n    y = t @ np.array([1.0, -0.7, 0.4]) + SIGMA * rng.normal(size=n)\n    return x, y\n\n\ndef run(seed: int) -&gt; dict[str, float]:\n    &quot;&quot;&quot;Fit a single PLS and a PLS bootstrap ensemble on one training set and score both.&quot;&quot;&quot;\n    rng = np.random.default_rng(seed)\n    x_tr, y_tr = simulate(rng, N_TRAIN)\n    x_te, y_te = simulate(rng, N_TEST)\n\n    # single PLS, number of components chosen by 5-fold CV\n    search = GridSearchCV(PLSRegression(scale=False), {&quot;n_components&quot;: range(1, 11)},\n                          cv=5, scoring=&quot;neg_mean_squared_error&quot;).fit(x_tr, y_tr)\n    a = search.best_params_[&quot;n_components&quot;]\n    single = search.best_estimator_.predict(x_te).ravel()\n\n    # ensemble: B members, each fitted on a bootstrap resample of the rows\n    pred = np.empty((B, N_TEST))\n    coef = np.empty((B, P))\n    oob_sum, oob_cnt = np.zeros(N_TRAIN), np.zeros(N_TRAIN)\n    for b in range(B):\n        idx = rng.integers(0, N_TRAIN, N_TRAIN)\n        oob = np.setdiff1d(np.arange(N_TRAIN), idx)\n        member = PLSRegression(n_components=a, scale=False).fit(x_tr[idx], y_tr[idx])\n        pred[b] = member.predict(x_te).ravel()\n        coef[b] = member.coef_.ravel()\n        oob_sum[oob] += member.predict(x_tr[oob]).ravel()\n        oob_cnt[oob] += 1\n\n    bagged = pred.mean(axis=0)\n    seen = oob_cnt &gt; 0\n    oob_mse = np.mean((y_tr[seen] - oob_sum[seen] \/ oob_cnt[seen]) ** 2)\n\n    # 90 % intervals: member spread alone vs member spread plus OOB error, equation (4)\n    lo, hi = np.percentile(pred, [5, 95], axis=0)\n    half = Z90 * np.sqrt(pred.var(axis=0, ddof=1) + oob_mse)\n    c_lo, c_hi = np.percentile(coef, [2.5, 97.5], axis=0)\n    return {\n        &quot;components&quot;: a,\n        &quot;rmse_single&quot;: np.sqrt(np.mean((y_te - single) ** 2)),\n        &quot;rmse_bagged&quot;: np.sqrt(np.mean((y_te - bagged) ** 2)),\n        &quot;rmse_oob&quot;: np.sqrt(oob_mse),\n        &quot;cover_spread&quot;: np.mean((y_te &gt;= lo) &amp; (y_te &lt;= hi)),\n        &quot;cover_noise&quot;: np.mean(np.abs(y_te - bagged) &lt;= half),\n        &quot;stable_coef&quot;: np.sum((c_lo &gt; 0) | (c_hi &lt; 0)),\n    }\n\n\nrows = [run(seed) for seed in range(REPS)]\nfor key in rows[0]:\n    v = np.array([r[key] for r in rows], dtype=float)\n    print(f&quot;{key:13s} mean {v.mean():7.3f}  min {v.min():7.3f}  max {v.max():7.3f}&quot;)\"><pre><span class=\"pl-c\"># Python<\/span>\n<span class=\"pl-k\">import<\/span> <span class=\"pl-s1\">numpy<\/span> <span class=\"pl-k\">as<\/span> <span class=\"pl-s1\">np<\/span>\n<span class=\"pl-k\">from<\/span> <span class=\"pl-s1\">sklearn<\/span>.<span class=\"pl-s1\">cross_decomposition<\/span> <span class=\"pl-k\">import<\/span> <span class=\"pl-v\">PLSRegression<\/span>\n<span class=\"pl-k\">from<\/span> <span class=\"pl-s1\">sklearn<\/span>.<span class=\"pl-s1\">model_selection<\/span> <span class=\"pl-k\">import<\/span> <span class=\"pl-v\">GridSearchCV<\/span>\n\n<span class=\"pl-c1\">N_TRAIN<\/span>, <span class=\"pl-c1\">N_TEST<\/span>, <span class=\"pl-c1\">P<\/span>, <span class=\"pl-c1\">SIGMA<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-c1\">60<\/span>, <span class=\"pl-c1\">2000<\/span>, <span class=\"pl-c1\">200<\/span>, <span class=\"pl-c1\">0.5<\/span>\n<span class=\"pl-c1\">B<\/span>, <span class=\"pl-c1\">REPS<\/span>, <span class=\"pl-v\">Z90<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-c1\">200<\/span>, <span class=\"pl-c1\">20<\/span>, <span class=\"pl-c1\">1.645<\/span>\n<span class=\"pl-c1\">SHAPES<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">stack<\/span>(&#91;<span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">exp<\/span>(<span class=\"pl-c1\">-<\/span>((<span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linspace<\/span>(<span class=\"pl-c1\">0<\/span>, <span class=\"pl-c1\">1<\/span>, <span class=\"pl-c1\">P<\/span>) <span class=\"pl-c1\">-<\/span> <span class=\"pl-s1\">c<\/span>) <span class=\"pl-c1\">\/<\/span> <span class=\"pl-c1\">0.08<\/span>) <span class=\"pl-c1\">**<\/span> <span class=\"pl-c1\">2<\/span>) <span class=\"pl-k\">for<\/span> <span class=\"pl-s1\">c<\/span> <span class=\"pl-c1\">in<\/span> (<span class=\"pl-c1\">0.25<\/span>, <span class=\"pl-c1\">0.5<\/span>, <span class=\"pl-c1\">0.75<\/span>)&#93;)\n\n\n<span class=\"pl-k\">def<\/span> <span class=\"pl-en\">simulate<\/span>(<span class=\"pl-s1\">rng<\/span>: <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">random<\/span>.<span class=\"pl-c1\">Generator<\/span>, <span class=\"pl-s1\">n<\/span>: <span class=\"pl-smi\">int<\/span>) <span class=\"pl-c1\">-&gt;<\/span> <span class=\"pl-s1\">tuple<\/span>&#91;<span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">ndarray<\/span>, <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">ndarray<\/span>&#93;:\n    <span class=\"pl-s\">\"\"\"Return collinear, spectrum-like X driven by three latent factors, and y.\"\"\"<\/span>\n    <span class=\"pl-s1\">t<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">rng<\/span>.<span class=\"pl-c1\">normal<\/span>(<span class=\"pl-s1\">size<\/span><span class=\"pl-c1\">=<\/span>(<span class=\"pl-s1\">n<\/span>, <span class=\"pl-c1\">3<\/span>))\n    <span class=\"pl-s1\">x<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">t<\/span> @ <span class=\"pl-c1\">SHAPES<\/span> <span class=\"pl-c1\">+<\/span> <span class=\"pl-c1\">0.05<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-s1\">rng<\/span>.<span class=\"pl-c1\">normal<\/span>(<span class=\"pl-s1\">size<\/span><span class=\"pl-c1\">=<\/span>(<span class=\"pl-s1\">n<\/span>, <span class=\"pl-c1\">P<\/span>))\n    <span class=\"pl-s1\">y<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">t<\/span> @ <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">array<\/span>(&#91;<span class=\"pl-c1\">1.0<\/span>, <span class=\"pl-c1\">-<\/span><span class=\"pl-c1\">0.7<\/span>, <span class=\"pl-c1\">0.4<\/span>&#93;) <span class=\"pl-c1\">+<\/span> <span class=\"pl-c1\">SIGMA<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-s1\">rng<\/span>.<span class=\"pl-c1\">normal<\/span>(<span class=\"pl-s1\">size<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-s1\">n<\/span>)\n    <span class=\"pl-k\">return<\/span> <span class=\"pl-s1\">x<\/span>, <span class=\"pl-s1\">y<\/span>\n\n\n<span class=\"pl-k\">def<\/span> <span class=\"pl-en\">run<\/span>(<span class=\"pl-s1\">seed<\/span>: <span class=\"pl-smi\">int<\/span>) <span class=\"pl-c1\">-&gt;<\/span> <span class=\"pl-s1\">dict<\/span>&#91;<span class=\"pl-smi\">str<\/span>, <span class=\"pl-smi\">float<\/span>&#93;:\n    <span class=\"pl-s\">\"\"\"Fit a single PLS and a PLS bootstrap ensemble on one training set and score both.\"\"\"<\/span>\n    <span class=\"pl-s1\">rng<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">random<\/span>.<span class=\"pl-c1\">default_rng<\/span>(<span class=\"pl-s1\">seed<\/span>)\n    <span class=\"pl-s1\">x_tr<\/span>, <span class=\"pl-s1\">y_tr<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-en\">simulate<\/span>(<span class=\"pl-s1\">rng<\/span>, <span class=\"pl-c1\">N_TRAIN<\/span>)\n    <span class=\"pl-s1\">x_te<\/span>, <span class=\"pl-s1\">y_te<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-en\">simulate<\/span>(<span class=\"pl-s1\">rng<\/span>, <span class=\"pl-c1\">N_TEST<\/span>)\n\n    <span class=\"pl-c\"># single PLS, number of components chosen by 5-fold CV<\/span>\n    <span class=\"pl-s1\">search<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-en\">GridSearchCV<\/span>(<span class=\"pl-en\">PLSRegression<\/span>(<span class=\"pl-s1\">scale<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">False<\/span>), {<span class=\"pl-s\">\"n_components\"<\/span>: <span class=\"pl-en\">range<\/span>(<span class=\"pl-c1\">1<\/span>, <span class=\"pl-c1\">11<\/span>)},\n                          <span class=\"pl-s1\">cv<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">5<\/span>, <span class=\"pl-s1\">scoring<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-s\">\"neg_mean_squared_error\"<\/span>).<span class=\"pl-c1\">fit<\/span>(<span class=\"pl-s1\">x_tr<\/span>, <span class=\"pl-s1\">y_tr<\/span>)\n    <span class=\"pl-s1\">a<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">search<\/span>.<span class=\"pl-c1\">best_params_<\/span>&#91;<span class=\"pl-s\">\"n_components\"<\/span>&#93;\n    <span class=\"pl-s1\">single<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">search<\/span>.<span class=\"pl-c1\">best_estimator_<\/span>.<span class=\"pl-c1\">predict<\/span>(<span class=\"pl-s1\">x_te<\/span>).<span class=\"pl-c1\">ravel<\/span>()\n\n    <span class=\"pl-c\"># ensemble: B members, each fitted on a bootstrap resample of the rows<\/span>\n    <span class=\"pl-s1\">pred<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">empty<\/span>((<span class=\"pl-c1\">B<\/span>, <span class=\"pl-c1\">N_TEST<\/span>))\n    <span class=\"pl-s1\">coef<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">empty<\/span>((<span class=\"pl-c1\">B<\/span>, <span class=\"pl-c1\">P<\/span>))\n    <span class=\"pl-s1\">oob_sum<\/span>, <span class=\"pl-s1\">oob_cnt<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">zeros<\/span>(<span class=\"pl-c1\">N_TRAIN<\/span>), <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">zeros<\/span>(<span class=\"pl-c1\">N_TRAIN<\/span>)\n    <span class=\"pl-k\">for<\/span> <span class=\"pl-s1\">b<\/span> <span class=\"pl-c1\">in<\/span> <span class=\"pl-en\">range<\/span>(<span class=\"pl-c1\">B<\/span>):\n        <span class=\"pl-s1\">idx<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">rng<\/span>.<span class=\"pl-c1\">integers<\/span>(<span class=\"pl-c1\">0<\/span>, <span class=\"pl-c1\">N_TRAIN<\/span>, <span class=\"pl-c1\">N_TRAIN<\/span>)\n        <span class=\"pl-s1\">oob<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">setdiff1d<\/span>(<span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">arange<\/span>(<span class=\"pl-c1\">N_TRAIN<\/span>), <span class=\"pl-s1\">idx<\/span>)\n        <span class=\"pl-s1\">member<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-en\">PLSRegression<\/span>(<span class=\"pl-s1\">n_components<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-s1\">a<\/span>, <span class=\"pl-s1\">scale<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">False<\/span>).<span class=\"pl-c1\">fit<\/span>(<span class=\"pl-s1\">x_tr<\/span>&#91;<span class=\"pl-s1\">idx<\/span>&#93;, <span class=\"pl-s1\">y_tr<\/span>&#91;<span class=\"pl-s1\">idx<\/span>&#93;)\n        <span class=\"pl-s1\">pred<\/span>&#91;<span class=\"pl-s1\">b<\/span>&#93; <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">member<\/span>.<span class=\"pl-c1\">predict<\/span>(<span class=\"pl-s1\">x_te<\/span>).<span class=\"pl-c1\">ravel<\/span>()\n        <span class=\"pl-s1\">coef<\/span>&#91;<span class=\"pl-s1\">b<\/span>&#93; <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">member<\/span>.<span class=\"pl-c1\">coef_<\/span>.<span class=\"pl-c1\">ravel<\/span>()\n        <span class=\"pl-s1\">oob_sum<\/span>&#91;<span class=\"pl-s1\">oob<\/span>&#93; <span class=\"pl-c1\">+=<\/span> <span class=\"pl-s1\">member<\/span>.<span class=\"pl-c1\">predict<\/span>(<span class=\"pl-s1\">x_tr<\/span>&#91;<span class=\"pl-s1\">oob<\/span>&#93;).<span class=\"pl-c1\">ravel<\/span>()\n        <span class=\"pl-s1\">oob_cnt<\/span>&#91;<span class=\"pl-s1\">oob<\/span>&#93; <span class=\"pl-c1\">+=<\/span> <span class=\"pl-c1\">1<\/span>\n\n    <span class=\"pl-s1\">bagged<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">pred<\/span>.<span class=\"pl-c1\">mean<\/span>(<span class=\"pl-s1\">axis<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">0<\/span>)\n    <span class=\"pl-s1\">seen<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">oob_cnt<\/span> <span class=\"pl-c1\">&gt;<\/span> <span class=\"pl-c1\">0<\/span>\n    <span class=\"pl-s1\">oob_mse<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">mean<\/span>((<span class=\"pl-s1\">y_tr<\/span>&#91;<span class=\"pl-s1\">seen<\/span>&#93; <span class=\"pl-c1\">-<\/span> <span class=\"pl-s1\">oob_sum<\/span>&#91;<span class=\"pl-s1\">seen<\/span>&#93; <span class=\"pl-c1\">\/<\/span> <span class=\"pl-s1\">oob_cnt<\/span>&#91;<span class=\"pl-s1\">seen<\/span>&#93;) <span class=\"pl-c1\">**<\/span> <span class=\"pl-c1\">2<\/span>)\n\n    <span class=\"pl-c\"># 90 % intervals: member spread alone vs member spread plus OOB error, equation (4)<\/span>\n    <span class=\"pl-s1\">lo<\/span>, <span class=\"pl-s1\">hi<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">percentile<\/span>(<span class=\"pl-s1\">pred<\/span>, &#91;<span class=\"pl-c1\">5<\/span>, <span class=\"pl-c1\">95<\/span>&#93;, <span class=\"pl-s1\">axis<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">0<\/span>)\n    <span class=\"pl-s1\">half<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-v\">Z90<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">sqrt<\/span>(<span class=\"pl-s1\">pred<\/span>.<span class=\"pl-c1\">var<\/span>(<span class=\"pl-s1\">axis<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">0<\/span>, <span class=\"pl-s1\">ddof<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">1<\/span>) <span class=\"pl-c1\">+<\/span> <span class=\"pl-s1\">oob_mse<\/span>)\n    <span class=\"pl-s1\">c_lo<\/span>, <span class=\"pl-s1\">c_hi<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">percentile<\/span>(<span class=\"pl-s1\">coef<\/span>, &#91;<span class=\"pl-c1\">2.5<\/span>, <span class=\"pl-c1\">97.5<\/span>&#93;, <span class=\"pl-s1\">axis<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">0<\/span>)\n    <span class=\"pl-k\">return<\/span> {\n        <span class=\"pl-s\">\"components\"<\/span>: <span class=\"pl-s1\">a<\/span>,\n        <span class=\"pl-s\">\"rmse_single\"<\/span>: <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">sqrt<\/span>(<span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">mean<\/span>((<span class=\"pl-s1\">y_te<\/span> <span class=\"pl-c1\">-<\/span> <span class=\"pl-s1\">single<\/span>) <span class=\"pl-c1\">**<\/span> <span class=\"pl-c1\">2<\/span>)),\n        <span class=\"pl-s\">\"rmse_bagged\"<\/span>: <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">sqrt<\/span>(<span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">mean<\/span>((<span class=\"pl-s1\">y_te<\/span> <span class=\"pl-c1\">-<\/span> <span class=\"pl-s1\">bagged<\/span>) <span class=\"pl-c1\">**<\/span> <span class=\"pl-c1\">2<\/span>)),\n        <span class=\"pl-s\">\"rmse_oob\"<\/span>: <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">sqrt<\/span>(<span class=\"pl-s1\">oob_mse<\/span>),\n        <span class=\"pl-s\">\"cover_spread\"<\/span>: <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">mean<\/span>((<span class=\"pl-s1\">y_te<\/span> <span class=\"pl-c1\">&gt;=<\/span> <span class=\"pl-s1\">lo<\/span>) <span class=\"pl-c1\">&amp;<\/span> (<span class=\"pl-s1\">y_te<\/span> <span class=\"pl-c1\">&lt;=<\/span> <span class=\"pl-s1\">hi<\/span>)),\n        <span class=\"pl-s\">\"cover_noise\"<\/span>: <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">mean<\/span>(<span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">abs<\/span>(<span class=\"pl-s1\">y_te<\/span> <span class=\"pl-c1\">-<\/span> <span class=\"pl-s1\">bagged<\/span>) <span class=\"pl-c1\">&lt;=<\/span> <span class=\"pl-s1\">half<\/span>),\n        <span class=\"pl-s\">\"stable_coef\"<\/span>: <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">sum<\/span>((<span class=\"pl-s1\">c_lo<\/span> <span class=\"pl-c1\">&gt;<\/span> <span class=\"pl-c1\">0<\/span>) <span class=\"pl-c1\">|<\/span> (<span class=\"pl-s1\">c_hi<\/span> <span class=\"pl-c1\">&lt;<\/span> <span class=\"pl-c1\">0<\/span>)),\n    }\n\n\n<span class=\"pl-s1\">rows<\/span> <span class=\"pl-c1\">=<\/span> &#91;<span class=\"pl-en\">run<\/span>(<span class=\"pl-s1\">seed<\/span>) <span class=\"pl-k\">for<\/span> <span class=\"pl-s1\">seed<\/span> <span class=\"pl-c1\">in<\/span> <span class=\"pl-en\">range<\/span>(<span class=\"pl-c1\">REPS<\/span>)&#93;\n<span class=\"pl-k\">for<\/span> <span class=\"pl-s1\">key<\/span> <span class=\"pl-c1\">in<\/span> <span class=\"pl-s1\">rows<\/span>&#91;<span class=\"pl-c1\">0<\/span>&#93;:\n    <span class=\"pl-s1\">v<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">array<\/span>(&#91;<span class=\"pl-s1\">r<\/span>&#91;<span class=\"pl-s1\">key<\/span>&#93; <span class=\"pl-k\">for<\/span> <span class=\"pl-s1\">r<\/span> <span class=\"pl-c1\">in<\/span> <span class=\"pl-s1\">rows<\/span>&#93;, <span class=\"pl-s1\">dtype<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-s1\">float<\/span>)\n    <span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">f\"<span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">key<\/span>:13s<span class=\"pl-kos\">}<\/span><\/span> mean <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">v<\/span>.<span class=\"pl-c1\">mean<\/span>():7.3f<span class=\"pl-kos\">}<\/span><\/span>  min <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">v<\/span>.<span class=\"pl-c1\">min<\/span>():7.3f<span class=\"pl-kos\">}<\/span><\/span>  max <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">v<\/span>.<span class=\"pl-c1\">max<\/span>():7.3f<span class=\"pl-kos\">}<\/span><\/span>\"<\/span>)<\/pre><\/div>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"components    mean   2.700  min   1.000  max   5.000\nrmse_single   mean   0.525  min   0.492  max   0.566\nrmse_bagged   mean   0.522  min   0.493  max   0.560\nrmse_oob      mean   0.520  min   0.406  max   0.612\ncover_spread  mean   0.333  min   0.263  max   0.467\ncover_noise   mean   0.907  min   0.820  max   0.962\nstable_coef   mean 122.250  min  19.000  max 158.000\"><pre lang=\"text\" class=\"notranslate\"><code>components    mean   2.700  min   1.000  max   5.000\nrmse_single   mean   0.525  min   0.492  max   0.566\nrmse_bagged   mean   0.522  min   0.493  max   0.560\nrmse_oob      mean   0.520  min   0.406  max   0.612\ncover_spread  mean   0.333  min   0.263  max   0.467\ncover_noise   mean   0.907  min   0.820  max   0.962\nstable_coef   mean 122.250  min  19.000  max 158.000\n<\/code><\/pre><\/div>\n<p dir=\"auto\">Table 3. Results over 20 training sets<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Quantity<\/th>\n<th align=\"center\">Mean<\/th>\n<th align=\"center\">Min<\/th>\n<th align=\"center\">Max<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">CV \uac00 \uace0\ub978 \uc131\ubd84 \uc218<\/td>\n<td align=\"center\">2.700<\/td>\n<td align=\"center\">1<\/td>\n<td align=\"center\">5<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Test RMSE, single PLS<\/td>\n<td align=\"center\">0.525<\/td>\n<td align=\"center\">0.492<\/td>\n<td align=\"center\">0.566<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Test RMSE, ensemble<\/td>\n<td align=\"center\">0.522<\/td>\n<td align=\"center\">0.493<\/td>\n<td align=\"center\">0.560<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">OOB RMSE<\/td>\n<td align=\"center\">0.520<\/td>\n<td align=\"center\">0.406<\/td>\n<td align=\"center\">0.612<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">90 % coverage, member percentile<\/td>\n<td align=\"center\">0.333<\/td>\n<td align=\"center\">0.263<\/td>\n<td align=\"center\">0.467<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">90 % coverage, equation (4)<\/td>\n<td align=\"center\">0.907<\/td>\n<td align=\"center\">0.820<\/td>\n<td align=\"center\">0.962<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">95 % \uad6c\uac04\uc774 0 \uc744 \ube80 \uacc4\uc218 \uc218 (200 \uac1c \uc911)<\/td>\n<td align=\"center\">122.25<\/td>\n<td align=\"center\">19<\/td>\n<td align=\"center\">158<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<ul dir=\"auto\">\n<li>Test RMSE \ub294 \ub450 \ubc29\ubc95 \ubaa8\ub450 \uc7a1\uc74c \ud45c\uc900\ud3b8\ucc28 0.5 \uc5d0 \uac00\uae5d\uace0, \ub458\uc758 \ucc28\uc774\ub294 \ud3c9\uade0 0.003 \uc774\ub2e4.<\/li>\n<li>OOB RMSE \uc758 \ud3c9\uade0 0.520 \uc740 test RMSE \uc640 \uac19\uc740 \uc218\uc900\uc774\uc9c0\ub9cc, \ud559\uc2b5 \ud45c\ubcf8 \ud558\ub098\uc5d0\uc11c\ub294 0.406 \ubd80\ud130 0.612 \uae4c\uc9c0 \ud769\uc5b4\uc84c\ub2e4.<\/li>\n<li>Member percentile \uad6c\uac04\uc5d0\ub294 \uc7a1\uc74c \ubd84\uc0b0\uc774 \ube60\uc838 \uc788\uc5b4 90 % \uad6c\uac04\uc774 \uc0c8 \uad00\uce21\uac12\uc758 33.3 % \ub9cc \ub2f4\uc558\ub2e4. \uc2dd (4) \ub85c OOB \uc624\ucc28\ub97c \ub354\ud558\uba74 \ud3c9\uade0 coverage \uac00 90.7 % \uc774\ub2e4.<\/li>\n<li>\uacc4\uc218 \uad6c\uac04\uc774 0 \uc744 \ube80 \uc5f4\uc758 \uc218\ub294 19 \ubd80\ud130 158 \uae4c\uc9c0 \ub2ec\ub790\ub2e4. CV \uac00 \uc131\ubd84 2 \uac1c\ub97c \uace0\ub978 \ud559\uc2b5 \ud45c\ubcf8\uc5d0\uc11c\ub294 141\u2013158 \uac1c, 4 \uac1c \uc774\uc0c1\uc744 \uace0\ub978 \ud45c\ubcf8\uc5d0\uc11c\ub294 19\u201325 \uac1c\uc600\ub2e4.<\/li>\n<\/ul>\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>A PLS bootstrap ensemble fits PLS on each row-resampled sample and averages the members, which is bagging. Because PLS is a stable learner, averaging adds little accuracy; the value lies in member spread, out-of-bag error, and bootstrap distributions of coefficients. Prediction intervals must add residual variance to the spread.<\/p>\n","protected":false},"author":4,"featured_media":7243,"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":3,"footnotes":""},"categories":[56,392],"tags":[460,386],"class_list":["post-7242","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science-slug","category-models-slug","tag-ensemble","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\/10\/ice-field-facility-entrance-hallway.jpg","_links":{"self":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7242","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=7242"}],"version-history":[{"count":1,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7242\/revisions"}],"predecessor-version":[{"id":7244,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7242\/revisions\/7244"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media\/7243"}],"wp:attachment":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=7242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=7242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=7242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}