{"id":7311,"date":"2026-11-02T05:19:58","date_gmt":"2026-11-02T11:19:58","guid":{"rendered":"https:\/\/ykim.synology.me\/wordpress\/conditions-under-which-pls-works-where-ols-fails-7311\/"},"modified":"2026-11-25T16:54:15","modified_gmt":"2026-11-25T22:54:15","slug":"conditions-under-which-pls-works-where-ols-fails","status":"publish","type":"post","link":"https:\/\/ykim.synology.me\/wordpress\/conditions-under-which-pls-works-where-ols-fails-7311\/","title":{"rendered":"Conditions Under Which PLS Works Where OLS Fails"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/github.com\/yBarn1\/Images\/blob\/main\/meats\/heb-beef-strip-steak-package.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=\"Regression\/PLS\/pls-where-ols-fails-ko.md\"><article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">Conditions Under Which PLS Works Where OLS Fails<\/h1><a id=\"user-content-conditions-under-which-pls-works-where-ols-fails\" class=\"anchor\" aria-label=\"Permalink: Conditions Under Which PLS Works Where OLS Fails\" href=\"#conditions-under-which-pls-works-where-ols-fails\"><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 2 | Created: 2026-11-02 | 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-singular-cross-product-matrix\">4. Singular Cross-Product Matrix<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#41-ols\">4.1 OLS<\/a><\/li>\n<li><a href=\"#42-pls\">4.2 PLS<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#5-high-multicollinearity\">5. High Multicollinearity<\/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>\n<strong>Problem Statement<\/strong>: \uc785\ub825 \ubcc0\uc218\uac00 sample \ubcf4\ub2e4 \ub9ce\uac70\ub098 \uc785\ub825 \ubcc0\uc218\ub07c\ub9ac \uc120\ud615\uc73c\ub85c \uc5bd\ud78c \ub370\uc774\ud130\uc5d0\uc11c\ub294 OLS (Ordinary Least Squares) \uc758 \uacc4\uc218\ub97c \uad6c\ud560 \uc218 \uc5c6\uac70\ub098 \uacc4\uc218\uac00 \ud06c\uac8c \ud754\ub4e4\ub9b0\ub2e4.<\/li>\n<li>\n<strong>Goal<\/strong>: OLS \uac00 \uacc4\uc218\ub97c \uad6c\ud558\uc9c0 \ubabb\ud558\ub294 \uc870\uac74\uacfc \uad6c\ud558\uc9c0\ub9cc \ubd88\uc548\uc815\ud55c \uc870\uac74\uc744 \uac00\ub974\uace0, \uac01 \uc870\uac74\uc5d0\uc11c PLS (Partial Least Squares) \uac00 \uacc4\uc218\ub97c \uad6c\ud558\ub294 \uc774\uc720\ub97c \ub3c5\uc790\uac00 \uc2dd\uc73c\ub85c \ud655\uc778\ud560 \uc218 \uc788\uac8c \ud55c\ub2e4.<\/li>\n<li>\n<strong>Non-Goal<\/strong>: \uc131\ubd84 \uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K$<\/math-renderer> \ub97c \uace0\ub974\ub294 \uc808\ucc28\uc640 Ridge \uac19\uc740 penalty \ubc29\ubc95\uc740 \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\">OLS \uac00 \uacc4\uc218\ub97c \uad6c\ud560 \uc218 \uc5c6\uace0 PLS \ub294 \uad6c\ud560 \uc218 \uc788\ub294 \uc870\uac74\uc740 cross-product matrix <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uc758 \uc5ed\ud589\ub82c\uc774 \uc5c6\uc744 \ub54c, \uace7 \uc785\ub825 \ubcc0\uc218 \uc218\uac00 sample \uc218 \uc774\uc0c1\uc774\uac70\ub098 (<math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\ge N$<\/math-renderer>) \uc644\uc804 \ub2e4\uc911\uacf5\uc120\uc131 (perfect multicollinearity) \uc774 \uc788\uc744 \ub54c\uc774\ub2e4. \uc5ed\ud589\ub82c\uc740 \uc788\uc9c0\ub9cc \ub2e4\uc911\uacf5\uc120\uc131 (multicollinearity) \uc774 \ub192\uc744 \ub54c\ub294 OLS \ub3c4 \uacc4\uc218\ub97c \uad6c\ud558\uc9c0\ub9cc \uacc4\uc218\uac00 \ud06c\uac8c \ud754\ub4e4\ub9ac\uba70, PLS \ub294 \uac19\uc740 \ub370\uc774\ud130\uc5d0\uc11c \uc548\uc815\uc801\uc778 \uacc4\uc218\ub97c \uad6c\ud55c\ub2e4. \uc870\uac74\ubcc4 \uacb0\uacfc\ub294 Table 1 \uc5d0 \uc788\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\">OLS \uac00 \uacc4\uc218\ub97c \uad6c\ud560 \uc218 \uc788\ub294\uc9c0\ub294 sample \uc218\uc640 \uc785\ub825 \ubcc0\uc218 \uc218\uc758 \uad00\uacc4, \uadf8\ub9ac\uace0 \uc785\ub825 \ubcc0\uc218 \uc5f4 \uc0ac\uc774\uc758 \uc120\ud615 \uc885\uc18d \uc815\ub3c4\uc758 \ub450 \ucd95\uc73c\ub85c \uc815\ud574\uc9c4\ub2e4. \ub450 \ucd95\uc740 \uc544\ub798 Fig 1 \uacfc \uac19\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"Axis 1. Size of X (N x P)          Axis 2. Dependence among the columns of X\n-------------------------          -----------------------------------------\nP &lt; N  : fewer columns than rows   independent      : no column near a mix of others\nP &gt;= N : as many columns or more   nearly dependent : a column close to a mix of others\n                                   exactly dependent: a column equal to a mix of others\"><pre lang=\"text\" class=\"notranslate\"><code>Axis 1. Size of X (N x P)          Axis 2. Dependence among the columns of X\n-------------------------          -----------------------------------------\nP &lt; N  : fewer columns than rows   independent      : no column near a mix of others\nP &gt;= N : as many columns or more   nearly dependent : a column close to a mix of others\n                                   exactly dependent: a column equal to a mix of others\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-1\"><\/a>\nFig 1. Two axes that decide whether OLS has a unique solution<\/p>\n<p dir=\"auto\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\ge N$<\/math-renderer> \uc774\uac70\ub098 \uc5f4\uc774 \uc815\ud655\ud788 \uc885\uc18d\uc774\uba74 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uc758 \uc5ed\ud589\ub82c\uc774 \uc5c6\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\lt N$<\/math-renderer> \uc774\uace0 \uc5f4\uc774 \uac70\uc758 \uc885\uc18d\uc774\uba74 \uc5ed\ud589\ub82c\uc740 \uc788\uc9c0\ub9cc \uadf8 \uc5ed\ud589\ub82c\uc758 \uc6d0\uc18c\uac00 \ub9e4\uc6b0 \ud06c\ub2e4. Centering \ud55c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc5d0\uc11c\ub294 rank \uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$N - 1$<\/math-renderer> \uc774\ud558\uc774\ubbc0\ub85c, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P = N - 1$<\/math-renderer> \uc774\uc5b4\ub3c4 \uc5ed\ud589\ub82c\uc774 \uc5c6\ub2e4.<\/p>\n<p dir=\"auto\">OLS \uc5d0\uc11c PLS \ub85c \ub0b4\ub824\uac00\uba74 \uc785\ub825 \ubcc0\uc218\uc758 \ubaa8\ub4e0 \ubc29\ud5a5\uc744 \uc4f0\ub294 \ub300\uc2e0 \uace0\ub978 \ubc29\ud5a5 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K$<\/math-renderer> \uac1c\ub9cc \uc4f0\uba70, \uadf8 \ub300\uac00\ub85c \uc5ed\ud589\ub82c\uc774 \ud544\uc694 \uc5c6\uc5b4\uc9c4\ub2e4. \uadf8 \uacc4\uce35\uc740 \uc544\ub798 Fig 2 \uc640 \uac19\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"OLS               regresses y on all P columns of X\n |                needs   : X^T X invertible (rank P)\n |\n +-- PLS          regresses y on K orthogonal scores, K &lt;= rank(X)\n                  gives up: directions of X beyond the K chosen ones\n                  gains   : no inverse of X^T X; works when P &gt;= N or columns depend\"><pre lang=\"text\" class=\"notranslate\"><code>OLS               regresses y on all P columns of X\n |                needs   : X^T X invertible (rank P)\n |\n +-- PLS          regresses y on K orthogonal scores, K &lt;= rank(X)\n                  gives up: directions of X beyond the K chosen ones\n                  gains   : no inverse of X^T X; works when P &gt;= N or columns depend\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-2\"><\/a>\nFig 2. Hierarchy from OLS to PLS<\/p>\n<p dir=\"auto\">OLS \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \uac1c \uc5f4 \ubaa8\ub450\ub97c \uc4f0\ubbc0\ub85c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uc758 rank \uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \uc5ec\uc57c \ud55c\ub2e4. PLS \ub294 score <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K$<\/math-renderer> \uac1c\uc5d0\ub9cc \ud68c\uadc0\ud558\ubbc0\ub85c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K$<\/math-renderer> \uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc758 rank \uc774\ud558\uc774\uae30\ub9cc \ud558\uba74 \ub418\uace0, \uace0\ub974\uc9c0 \uc54a\uc740 \ubc29\ud5a5\uc758 \uc815\ubcf4\ub294 \uc4f0\uc9c0 \uc54a\ub294\ub2e4.<\/p>\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\">\ub370\uc774\ud130 \uc870\uac74\ub9c8\ub2e4 OLS \uc640 PLS \uc758 \uacb0\uacfc\ub294 Table 1 \uacfc \uac19\ub2e4.<\/p>\n<p dir=\"auto\">Table 1. OLS and PLS by data condition<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Condition<\/th>\n<th align=\"center\">Rank of <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer>\n<\/th>\n<th align=\"center\">OLS<\/th>\n<th align=\"center\">PLS<\/th>\n<th align=\"center\">Section<\/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=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\ge N$<\/math-renderer><\/td>\n<td align=\"center\">\n<math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \ubbf8\ub9cc<\/td>\n<td align=\"center\">\uacc4\uc218\ub97c \ud558\ub098\ub85c \uc815\ud560 \uc218 \uc5c6\uc74c<\/td>\n<td align=\"center\">\uacc4\uc218\ub97c \uad6c\ud568<\/td>\n<td align=\"center\">section 4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\uc644\uc804 \ub2e4\uc911\uacf5\uc120\uc131<\/td>\n<td align=\"center\">\n<math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \ubbf8\ub9cc<\/td>\n<td align=\"center\">\uacc4\uc218\ub97c \ud558\ub098\ub85c \uc815\ud560 \uc218 \uc5c6\uc74c<\/td>\n<td align=\"center\">\uacc4\uc218\ub97c \uad6c\ud568<\/td>\n<td align=\"center\">section 4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\ub192\uc740 \ub2e4\uc911\uacf5\uc120\uc131<\/td>\n<td align=\"center\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer><\/td>\n<td align=\"center\">\uacc4\uc218\ub97c \uad6c\ud558\uc9c0\ub9cc \ud06c\uac8c \ud754\ub4e4\ub9bc<\/td>\n<td align=\"center\">\uc548\uc815\uc801\uc778 \uacc4\uc218<\/td>\n<td align=\"center\">section 5<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\n<math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\lt N$<\/math-renderer>, \uc5f4\uc774 \ub3c5\ub9bd<\/td>\n<td align=\"center\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer><\/td>\n<td align=\"center\">\uc548\uc815\uc801\uc778 \uacc4\uc218<\/td>\n<td align=\"center\">\uc548\uc815\uc801\uc778 \uacc4\uc218<\/td>\n<td align=\"center\">-<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$N$<\/math-renderer> \uc740 sample \uc218\uc774\uace0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \ub294 \uc785\ub825 \ubcc0\uc218\uc758 \uc218\uc774\ub2e4. \uc55e\uc758 \ub450 \ud589\uc774 OLS \ub294 \ubabb\ud558\uace0 PLS \ub294 \ud560 \uc218 \uc788\ub294 \uc870\uac74\uc774\uace0, \uc14b\uc9f8 \ud589\uc740 \ub458 \ub2e4 \ud558\uc9c0\ub9cc PLS \uac00 \ub354 \uc548\uc815\uc801\uc778 \uc870\uac74\uc774\ub2e4.<\/p>\n<p dir=\"auto\">\ubc29\ubc95\ub9c8\ub2e4 \uac00\uc815, \uc124\uc815\uac12, \uae68\uc9c0\ub294 \uc870\uac74, \uc4f0\uc774\ub294 \uacf3\uc740 Table 2 \uc640 \uac19\ub2e4.<\/p>\n<p dir=\"auto\">Table 2. Assumption, setting, failure condition and usage of each method<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Method<\/th>\n<th align=\"center\">Assumption<\/th>\n<th align=\"center\">Setting<\/th>\n<th align=\"center\">Breaks when<\/th>\n<th align=\"center\">Where used<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">OLS<\/td>\n<td align=\"center\">\n<math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uc758 \uc5ed\ud589\ub82c\uc774 \uc788\uc74c<\/td>\n<td align=\"center\">\uc5c6\uc74c<\/td>\n<td align=\"center\">\n<math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\ge N$<\/math-renderer> \uc774\uac70\ub098 \uc5f4\uc774 \uc885\uc18d\uc77c \ub54c<\/td>\n<td align=\"center\">\ubcc0\uc218\uac00 \uc801\uace0 \uc11c\ub85c \ub3c5\ub9bd\uc778 \ub370\uc774\ud130<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">PLS<\/td>\n<td align=\"center\">\n<math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc640 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{y}$<\/math-renderer> \uc758 \uad00\uacc4\uac00 \uc120\ud615<\/td>\n<td align=\"center\">\uc131\ubd84 \uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K \\le \\mathrm{rank}(\\mathbf{X})$<\/math-renderer>\n<\/td>\n<td align=\"center\">\uad00\uacc4\uac00 \ube44\uc120\ud615\uc77c \ub54c<\/td>\n<td align=\"center\">\uc13c\uc11c \uc218\ubc31 \uac1c, \uc2a4\ud399\ud2b8\ub7fc \uac19\uc740 \uace0\ucc28\uc6d0 \ub370\uc774\ud130<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">4. Singular Cross-Product Matrix<\/h2><a id=\"user-content-4-singular-cross-product-matrix\" class=\"anchor\" aria-label=\"Permalink: 4. Singular Cross-Product Matrix\" href=\"#4-singular-cross-product-matrix\"><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\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\ge N$<\/math-renderer> \uc774\uac70\ub098 \uc644\uc804 \ub2e4\uc911\uacf5\uc120\uc131\uc774 \uc788\uc73c\uba74 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uac00 singular matrix \uac00 \ub418\uc5b4 OLS \uc758 \uacc4\uc218\ub294 \ud558\ub098\ub85c \uc815\ud574\uc9c0\uc9c0 \uc54a\uace0, PLS \ub294 \uc5ed\ud589\ub82c \uc5c6\uc774 \uacc4\uc218\ub97c \uad6c\ud55c\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X} \\in \\mathbb{R}^{N \\times P}$<\/math-renderer> \ub294 sample <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$N$<\/math-renderer> \uac1c\uc640 \uc785\ub825 \ubcc0\uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \uac1c\ub85c \uc774\ub8e8\uc5b4\uc9c4 \uc785\ub825 \ud589\ub82c\uc774\uace0, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{y} \\in \\mathbb{R}^{N}$<\/math-renderer> \uc740 \uac19\uc740 sample \uc758 \ud0c0\uac9f\uc774\uba70, \ub450 \ud589\ub82c\uc758 \uc5f4\uc740 \ud3c9\uade0\uc744 \ube7c\uc11c centering \ud55c\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.1 OLS<\/h3><a id=\"user-content-41-ols\" class=\"anchor\" aria-label=\"Permalink: 4.1 OLS\" href=\"#41-ols\"><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\">OLS \uc758 \uacc4\uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\hat{\\boldsymbol{\\beta}} \\in \\mathbb{R}^{P}$<\/math-renderer> \ub294 \uc794\ucc28 \uc81c\uacf1\ud569\uc744 \ucd5c\uc18c\ub85c \ud558\ub294 \uac12\uc774\uba70, \uc815\uaddc\ubc29\uc815\uc2dd (normal equation) <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X} \\hat{\\boldsymbol{\\beta}} = \\mathbf{X}^\\top \\mathbf{y}$<\/math-renderer> \uc758 \ud574\uc774\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uc758 \uc5ed\ud589\ub82c\uc774 \uc788\uc73c\uba74 \ud574\ub294 \ud558\ub098\uc774\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$$\\hat{\\boldsymbol{\\beta}} = (\\mathbf{X}^\\top \\mathbf{X})^{-1} \\mathbf{X}^\\top \\mathbf{y} \\hspace{19em} (1)$$<\/math-renderer>\n<p dir=\"auto\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\times P$<\/math-renderer> \ud589\ub82c\uc774\uc9c0\ub9cc \uadf8 rank \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc758 rank \uc640 \uac19\uace0, centering \ud55c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc758 rank \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$N - 1$<\/math-renderer> \uacfc <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \ub97c \ub118\uc9c0 \ubabb\ud55c\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$$\\mathrm{rank}(\\mathbf{X}^\\top \\mathbf{X}) = \\mathrm{rank}(\\mathbf{X}) \\le \\min(N - 1, \\, P) \\hspace{19em} (2)$$<\/math-renderer>\n<p dir=\"auto\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\ge N$<\/math-renderer> \uc774\uba74 \uc2dd (2) \uc758 rank \uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \ubcf4\ub2e4 \uc791\uace0, \uc644\uc804 \ub2e4\uc911\uacf5\uc120\uc131\uc774 \uc788\uc73c\uba74 \ud55c \uc5f4\uc774 \ub2e4\ub978 \uc5f4\ub4e4\uc758 \uc120\ud615\uacb0\ud569\uc774\uc5b4\uc11c rank \uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \ubcf4\ub2e4 \uc791\ub2e4. \ub450 \uacbd\uc6b0 \ubaa8\ub450 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}\\mathbf{v} = \\mathbf{0}$<\/math-renderer> \uc744 \ub9cc\uc871\ud558\ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{0}$<\/math-renderer> \uc774 \uc544\ub2cc \ubca1\ud130 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{v}$<\/math-renderer> \uac00 \uc788\uc73c\ubbc0\ub85c, \uc815\uaddc\ubc29\uc815\uc2dd\uc758 \ud574 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\hat{\\boldsymbol{\\beta}}$<\/math-renderer> \ud558\ub098\uc5d0 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{v}$<\/math-renderer> \ub97c \uba87 \ubc30 \ub354\ud574\ub3c4 \uc608\uce21\uac12\uc774 \uac19\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$$\\mathbf{X}(\\hat{\\boldsymbol{\\beta}} + a\\mathbf{v}) = \\mathbf{X}\\hat{\\boldsymbol{\\beta}} \\quad \\text{for every real } a \\hspace{19em} (3)$$<\/math-renderer>\n<p dir=\"auto\">\uc2dd (3) \ub300\ub85c \uc794\ucc28 \uc81c\uacf1\ud569\uc774 \uac19\uc740 \uacc4\uc218\uac00 \ub05d\uc5c6\uc774 \ub9ce\uc73c\ubbc0\ub85c, OLS \ub294 \uacc4\uc218\ub97c \ud558\ub098\ub85c \uc815\ud560 \uc218 \uc5c6\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\ge N$<\/math-renderer> \uc774\uba74 \uc794\ucc28\uac00 0 \uc774 \ub418\ub294 \uacc4\uc218\uae4c\uc9c0 \uc788\uc5b4\uc11c, \ud559\uc2b5 \ub370\uc774\ud130\uc5d0\ub294 \uc644\uc804\ud788 \ub9de\uc9c0\ub9cc \uc0c8 \ub370\uc774\ud130\uc758 \uc608\uce21 \uc624\ucc28\uac00 \ucee4\uc9c4\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.2 PLS<\/h3><a id=\"user-content-42-pls\" class=\"anchor\" aria-label=\"Permalink: 4.2 PLS\" href=\"#42-pls\"><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 \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc640 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{y}$<\/math-renderer> \uc758 \uacf5\ubd84\uc0b0\uc774 \uac00\uc7a5 \ud070 \ubc29\ud5a5\ubd80\ud130 score <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K$<\/math-renderer> \uac1c\ub97c \ubf51\uace0, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{y}$<\/math-renderer> \ub97c \uadf8 score \uc5d0 \ud68c\uadc0\ud55c\ub2e4. X-score \ub97c \uc5f4\ub85c \ubaa8\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{T} \\in \\mathbb{R}^{N \\times K}$<\/math-renderer> \ub294 \uc6d0\ub798 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc758 \uc120\ud615\uacb0\ud569 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{T} = \\mathbf{X}\\mathbf{R}$<\/math-renderer> \uc774\uace0, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{R} \\in \\mathbb{R}^{P \\times K}$<\/math-renderer> \ub294 \uac01 score \uc758 \ubc29\ud5a5\uc744 \uc5f4\ub85c \ubaa8\uc740 \ud589\ub82c\uc774\ub2e4. Score \ub07c\ub9ac\ub294 \uc11c\ub85c \uc9c1\uad50\ud558\ubbc0\ub85c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{T}^\\top \\mathbf{T}$<\/math-renderer> \uac00 \ub300\uac01\ud589\ub82c\uc774\uace0, score \ub9c8\ub2e4\uc758 \uacc4\uc218 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$q_k$<\/math-renderer> \ub294 \uc5ed\ud589\ub82c \uc5c6\uc774 \ub098\ub217\uc148 \ud558\ub098\ub85c \uad6c\ud574\uc9c4\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$$q_k = \\frac{\\mathbf{t}_k^\\top \\mathbf{y}}{\\mathbf{t}_k^\\top \\mathbf{t}_k}, \\qquad k = 1, \\ldots, K \\hspace{19em} (4)$$<\/math-renderer>\n<p dir=\"auto\"><math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{t}_k$<\/math-renderer> \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{T}$<\/math-renderer> \uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$k$<\/math-renderer> \ubc88\uc9f8 \uc5f4\uc774\ub2e4. \uc6d0\ub798 \uc785\ub825 \ubcc0\uc218\uc5d0 \ub300\ud55c \uacc4\uc218\ub294 score \uc758 \uacc4\uc218\uc5d0 \ubc29\ud5a5 \ud589\ub82c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{R}$<\/math-renderer> \uc744 \uacf1\ud574 \uc5bb\ub294\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$$\\hat{\\boldsymbol{\\beta}}_{\\mathrm{PLS}} = \\mathbf{R}\\,\\mathbf{q}, \\qquad \\mathbf{q} = (q_1, \\ldots, q_K)^\\top \\hspace{19em} (5)$$<\/math-renderer>\n<p dir=\"auto\">\uc2dd (4) \uc758 \ubd84\ubaa8 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{t}_k^\\top \\mathbf{t}_k$<\/math-renderer> \ub294 score \uac00 0 \uc774 \uc544\ub2c8\uba74 \uc591\uc218\uc774\uace0, score \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K$<\/math-renderer> \uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc758 rank \uc774\ud558\uc774\uace0 deflation \ud6c4 \ub0a8\uc740 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc640 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{y}$<\/math-renderer> \uc758 \uacf5\ubd84\uc0b0\uc774 0 \uc774 \uc544\ub2cc \ub3d9\uc548 0 \uc774 \ub418\uc9c0 \uc54a\ub294\ub2e4. \ub530\ub77c\uc11c PLS \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uc758 rank \uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P$<\/math-renderer> \ubcf4\ub2e4 \uc791\uc544\ub3c4 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K \\le \\mathrm{rank}(\\mathbf{X})$<\/math-renderer> \uc774\uba74 \uacc4\uc218\ub97c \ud558\ub098\ub85c \uad6c\ud55c\ub2e4. <a href=\"#appendix-b-worked-example\">Appendix B<\/a> \uc758 \uc608\uc81c\uc5d0\uc11c \uc13c\uc11c 50 \uac1c, wafer 20 \uc7a5\uc778 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> rank \ub294 50 \uc911 19 \uc774\uace0, OLS \uacc4\uc218 \ub450 \uac1c\uac00 \uc11c\ub85c 5.00 \ub5a8\uc5b4\uc838 \uc788\uc5b4\ub3c4 \uc794\ucc28\uac00 \ubaa8\ub450 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$10^{-14}$<\/math-renderer> \uc218\uc900\uc73c\ub85c \uac19\uc73c\uba70, PLS \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K = 2$<\/math-renderer> \ub85c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$R^2 = 0.994$<\/math-renderer> \ub97c \uc5bb\ub294\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">5. High Multicollinearity<\/h2><a id=\"user-content-5-high-multicollinearity\" class=\"anchor\" aria-label=\"Permalink: 5. High Multicollinearity\" href=\"#5-high-multicollinearity\"><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\">\ub2e4\uc911\uacf5\uc120\uc131\uc774 \ub192\uc9c0\ub9cc \uc644\uc804\ud558\uc9c0 \uc54a\uc73c\uba74 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uc758 \uc5ed\ud589\ub82c\uc774 \uc788\uc5b4 OLS \ub3c4 \uc2dd (1) \ub85c \uacc4\uc218\ub97c \uad6c\ud558\uc9c0\ub9cc, \uadf8 \uacc4\uc218\ub294 \ub370\uc774\ud130\uc758 \uc791\uc740 \ubcc0\ud654\uc5d0\ub3c4 \ud06c\uac8c \ud754\ub4e4\ub9b0\ub2e4. \ud0c0\uac9f\uc758 \uc7a1\uc74c\uc774 \uc11c\ub85c \ub3c5\ub9bd\uc774\uace0 \ubd84\uc0b0\uc774 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\sigma^2$<\/math-renderer> \ub85c \uac19\uc744 \ub54c, OLS \uacc4\uc218\uc758 \uacf5\ubd84\uc0b0 \ud589\ub82c\uc740 \uc544\ub798\uc640 \uac19\ub2e4. <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\lambda_j$<\/math-renderer> \uc640 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{v}_j$<\/math-renderer> \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$j$<\/math-renderer> \ubc88\uc9f8 eigenvalue \uc640 eigenvector \uc774\ub2e4.<\/p>\n<math-renderer class=\"js-display-math\" style=\"display: block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$$\\mathrm{Cov}(\\hat{\\boldsymbol{\\beta}}) = \\sigma^2 (\\mathbf{X}^\\top \\mathbf{X})^{-1} = \\sigma^2 \\sum_{j=1}^{P} \\frac{\\mathbf{v}_j \\mathbf{v}_j^\\top}{\\lambda_j} \\hspace{19em} (6)$$<\/math-renderer>\n<p dir=\"auto\">\uc5f4\uc774 \uac70\uc758 \uc885\uc18d\uc774\uba74 \uac00\uc7a5 \uc791\uc740 eigenvalue \uac00 0 \uc5d0 \uac00\uae5d\uace0, \uc2dd (6) \uc5d0\uc11c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$1\/\\lambda_j$<\/math-renderer> \uac00 \ucee4\uc9c0\ubbc0\ub85c \uadf8 eigenvector \ubc29\ud5a5\uc73c\ub85c \uacc4\uc218\uc758 \ubd84\uc0b0\uc774 \ucee4\uc9c4\ub2e4. PLS \ub294 \uacf5\ubd84\uc0b0\uc774 \ud070 \ubc29\ud5a5\ubd80\ud130 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K$<\/math-renderer> \uac1c\ub9cc \uc4f0\ubbc0\ub85c, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K$<\/math-renderer> \uac00 \uc791\uc73c\uba74 eigenvalue \uac00 0 \uc5d0 \uac00\uae4c\uc6b4 \ubc29\ud5a5\uc774 \uacc4\uc218\uc5d0 \uac70\uc758 \ub4e4\uc5b4\uac00\uc9c0 \uc54a\ub294\ub2e4. <a href=\"#appendix-b-worked-example\">Appendix B<\/a> \uc758 \uc608\uc81c\uc5d0\uc11c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \uc758 rank \ub294 10 \uc911 10 \uc774\uc9c0\ub9cc eigenvalue \uc758 \ucd5c\ub300\uc640 \ucd5c\uc18c\uc758 \ube44\uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$3.2 \\times 10^{3}$<\/math-renderer> \uc774\uace0, \ud0c0\uac9f\uc758 \uc7a1\uc74c\ub9cc \ubc14\uafb8\uc5b4 200 \ubc88 \ub2e4\uc2dc \uc801\ud569\ud558\uba74 \uacc4\uc218 \ud45c\uc900\ud3b8\ucc28\uc758 \ud3c9\uade0\uc774 OLS 0.164, PLS 0.003 \uc774\ub2e4.<\/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>centering<\/strong>: \uac01 \uc5f4\uc5d0\uc11c \uadf8 \uc5f4\uc758 \ud3c9\uade0\uc744 \ube7c\uc11c \ud3c9\uade0\uc744 0 \uc73c\ub85c \ub9cc\ub4dc\ub294 \ucc98\ub9ac.<\/li>\n<li>\n<strong>cross-product matrix<\/strong>: <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}^\\top \\mathbf{X}$<\/math-renderer> \ub85c, \uc785\ub825 \ubcc0\uc218 \uc5f4\ub07c\ub9ac\uc758 \ub0b4\uc801\uc744 \uc6d0\uc18c\ub85c \uac00\uc9c4 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$P \\times P$<\/math-renderer> \ud589\ub82c.<\/li>\n<li>\n<strong>deflation<\/strong>: \ucc3e\uc740 score \uac00 \uc124\uba85\ud55c \ubd80\ubd84\uc744 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc5d0\uc11c \ube7c\uc11c, \ub2e4\uc74c score \ub97c \ub0a8\uc740 \uc815\ubcf4\uc5d0\uc11c \ucc3e\uac8c \ud558\ub294 \ub2e8\uacc4.<\/li>\n<li>\n<strong>eigenvector<\/strong>: \ud589\ub82c <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{A}$<\/math-renderer> \uc5d0 \uacf1\ud574\ub3c4 \ubc29\ud5a5\uc774 \ubc14\ub00c\uc9c0 \uc54a\ub294 \ubca1\ud130 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{v}$<\/math-renderer> \uc774\uba70, <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{A}\\mathbf{v} = \\lambda\\mathbf{v}$<\/math-renderer> \uc758 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\lambda$<\/math-renderer> \ub97c \uadf8 eigenvector \uc758 eigenvalue \ub77c \ud55c\ub2e4.<\/li>\n<li>\n<strong>OLS (Ordinary Least Squares)<\/strong>: \uc794\ucc28 \uc81c\uacf1\ud569\uc744 \ucd5c\uc18c\ub85c \ud558\ub294 \uacc4\uc218\ub97c \uad6c\ud558\ub294 \uc120\ud615 \ud68c\uadc0.<\/li>\n<li>\n<strong>PLS (Partial Least Squares)<\/strong>: <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$\\mathbf{X}$<\/math-renderer> \uc640 \ud0c0\uac9f\uc758 \uacf5\ubd84\uc0b0\uc774 \ud070 \ubc29\ud5a5\uc73c\ub85c score \ub97c \ubf51\uace0 \uadf8 score \uc5d0 \ud68c\uadc0\ud558\ub294 \ubc29\ubc95.<\/li>\n<li>\n<strong>rank<\/strong>: \ud589\ub82c\uc758 \uc120\ud615\ub3c5\ub9bd\uc778 \uc5f4\uc758 \uc218. \ucc28\uc6d0\uacfc rank \uc758 \uad6c\ubcc4\uc740 <a href=\"https:\/\/github.com\/ykim2718\/Math\/blob\/main\/Linear-Algebra\/Dimension-and-Rank\/dimension-and-rank-primer-ko.md\">Dimension and Rank Primer<\/a> \uc5d0 \uc788\ub2e4.<\/li>\n<li>\n<strong>score<\/strong>: Sample \uc744 \ud55c \ubc29\ud5a5\uc73c\ub85c \ud22c\uc601\ud55c \uc88c\ud45c\uac12.<\/li>\n<li>\n<strong>singular matrix<\/strong>: \uc5ed\ud589\ub82c\uc774 \uc5c6\ub294 \uc815\uc0ac\uac01\ud589\ub82c\uc774\uba70, rank \uac00 \ud589\ub82c\uc758 \ud06c\uae30\ubcf4\ub2e4 \uc791\ub2e4.<\/li>\n<li>\n<strong>\ub2e4\uc911\uacf5\uc120\uc131 (multicollinearity)<\/strong>: \uc785\ub825 \ubcc0\uc218 \uc5f4 \uc0ac\uc774\uc758 \uc120\ud615 \uc0c1\uad00\uc774 \ub192\uc544, \ud55c \uc5f4\uc774 \ub2e4\ub978 \uc5f4\ub4e4\uc758 \uc120\ud615\uacb0\ud569\uc5d0 \uac00\uae4c\uc6b4 \uc0c1\ud0dc.<\/li>\n<li>\n<strong>\uc644\uc804 \ub2e4\uc911\uacf5\uc120\uc131 (perfect multicollinearity)<\/strong>: \ud55c \uc5f4\uc774 \ub2e4\ub978 \uc5f4\ub4e4\uc758 \uc120\ud615\uacb0\ud569\uacfc \uc815\ud655\ud788 \uac19\uc740 \uc0c1\ud0dc.<\/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\">\uc544\ub798 code \ub294 \uc228\uc740 \uc694\uc778 \ub450 \uac1c\uac00 \uc13c\uc11c\ub97c \uc6c0\uc9c1\uc774\uace0 \uadf8 \uac00\uc6b4\ub370 \ud558\ub098\uac00 \ub450\uaed8\ub97c \uc815\ud558\ub294 \ub370\uc774\ud130\ub97c \ub9cc\ub4e4\uc5b4, Table 1 \uc758 \uc55e \uc138 \uc870\uac74\uc5d0\uc11c OLS \uc640 PLS \ub97c \uacac\uc900\ub2e4. \uc2e4\ud589 \ud658\uacbd\uc740 NumPy 2.5.3, scikit-learn 1.9.1 \uc774\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\n\nrng = np.random.default_rng(0)\n\n\ndef sensors(n_wafers: int = None, n_sensors: int = None) -&gt; tuple:\n    &quot;&quot;&quot;Return X driven by two hidden factors and a thickness y driven by the second one.&quot;&quot;&quot;\n    factors = rng.standard_normal((n_wafers, 2))\n    loadings = rng.standard_normal((2, n_sensors))\n    X = factors @ loadings + 0.1 * rng.standard_normal((n_wafers, n_sensors))\n    y = 2.0 * factors[:, 1] + 0.1 * rng.standard_normal(n_wafers)\n    return X - X.mean(axis=0), y - y.mean()\n\n\n# 1. P &gt; N: 50 sensors, 20 wafers\nX, y = sensors(n_wafers=20, n_sensors=50)\nprint(f&quot;P &gt; N           : X {X.shape}, rank of X^T X = {np.linalg.matrix_rank(X.T @ X)} of {X.shape[1]}&quot;)\n\n# Two different OLS coefficient vectors that fit the data equally well\nbeta_a = np.linalg.lstsq(X, y, rcond=None)[0]\nnull_direction = np.linalg.svd(X)[2][-1]  # X @ null_direction is zero\nbeta_b = beta_a + 5.0 * null_direction\nprint(f&quot;                  ||X beta_a - y|| = {np.linalg.norm(X @ beta_a - y):.2e}, &quot;\n      f&quot;||X beta_b - y|| = {np.linalg.norm(X @ beta_b - y):.2e}, &quot;\n      f&quot;||beta_a - beta_b|| = {np.linalg.norm(beta_a - beta_b):.2f}&quot;)\n\npls = PLSRegression(n_components=2, scale=False).fit(X, y)\nprint(f&quot;                  PLS with K = 2: R^2 = {pls.score(X, y):.3f}&quot;)\nprint(&quot;-&quot; * 72)\n\n# 2. Perfect multicollinearity: one column is twice another\nX, y = sensors(n_wafers=40, n_sensors=10)\nX[:, 1] = 2.0 * X[:, 0]\nprint(f&quot;perfect collin. : X {X.shape}, rank of X^T X = {np.linalg.matrix_rank(X.T @ X)} of {X.shape[1]}&quot;)\npls = PLSRegression(n_components=2, scale=False).fit(X, y)\nprint(f&quot;                  PLS with K = 2: R^2 = {pls.score(X, y):.3f}&quot;)\nprint(&quot;-&quot; * 72)\n\n# 3. High multicollinearity: X^T X has an inverse, but a tiny eigenvalue\nX, y = sensors(n_wafers=40, n_sensors=10)\neigenvalues = np.linalg.eigvalsh(X.T @ X)\nprint(f&quot;high collin.    : rank of X^T X = {np.linalg.matrix_rank(X.T @ X)} of {X.shape[1]}, &quot;\n      f&quot;eigenvalue max\/min = {eigenvalues[-1] \/ eigenvalues[0]:.1e}&quot;)\n\n# Refit 200 times with fresh noise in y, and measure how far the coefficients move\nols_runs, pls_runs = [], []\nfor _ in range(200):\n    y_new = y + 0.1 * rng.standard_normal(len(y))\n    ols_runs.append(np.linalg.solve(X.T @ X, X.T @ y_new))\n    pls_runs.append(PLSRegression(n_components=2, scale=False).fit(X, y_new).coef_.ravel())\nprint(f&quot;                  mean sd of coefficients: OLS {np.std(ols_runs, axis=0).mean():.3f}, &quot;\n      f&quot;PLS {np.std(pls_runs, axis=0).mean():.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\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-c1\">0<\/span>)\n\n\n<span class=\"pl-k\">def<\/span> <span class=\"pl-en\">sensors<\/span>(<span class=\"pl-s1\">n_wafers<\/span>: <span class=\"pl-smi\">int<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-c1\">None<\/span>, <span class=\"pl-s1\">n_sensors<\/span>: <span class=\"pl-smi\">int<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-c1\">None<\/span>) <span class=\"pl-c1\">-&gt;<\/span> <span class=\"pl-smi\">tuple<\/span>:\n    <span class=\"pl-s\">\"\"\"Return X driven by two hidden factors and a thickness y driven by the second one.\"\"\"<\/span>\n    <span class=\"pl-s1\">factors<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">rng<\/span>.<span class=\"pl-c1\">standard_normal<\/span>((<span class=\"pl-s1\">n_wafers<\/span>, <span class=\"pl-c1\">2<\/span>))\n    <span class=\"pl-s1\">loadings<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">rng<\/span>.<span class=\"pl-c1\">standard_normal<\/span>((<span class=\"pl-c1\">2<\/span>, <span class=\"pl-s1\">n_sensors<\/span>))\n    <span class=\"pl-c1\">X<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">factors<\/span> @ <span class=\"pl-s1\">loadings<\/span> <span class=\"pl-c1\">+<\/span> <span class=\"pl-c1\">0.1<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-s1\">rng<\/span>.<span class=\"pl-c1\">standard_normal<\/span>((<span class=\"pl-s1\">n_wafers<\/span>, <span class=\"pl-s1\">n_sensors<\/span>))\n    <span class=\"pl-s1\">y<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-c1\">2.0<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-s1\">factors<\/span>&#91;:, <span class=\"pl-c1\">1<\/span>&#93; <span class=\"pl-c1\">+<\/span> <span class=\"pl-c1\">0.1<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-s1\">rng<\/span>.<span class=\"pl-c1\">standard_normal<\/span>(<span class=\"pl-s1\">n_wafers<\/span>)\n    <span class=\"pl-k\">return<\/span> <span class=\"pl-c1\">X<\/span> <span class=\"pl-c1\">-<\/span> <span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">mean<\/span>(<span class=\"pl-s1\">axis<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">0<\/span>), <span class=\"pl-s1\">y<\/span> <span class=\"pl-c1\">-<\/span> <span class=\"pl-s1\">y<\/span>.<span class=\"pl-c1\">mean<\/span>()\n\n\n<span class=\"pl-c\"># 1. P &gt; N: 50 sensors, 20 wafers<\/span>\n<span class=\"pl-c1\">X<\/span>, <span class=\"pl-s1\">y<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-en\">sensors<\/span>(<span class=\"pl-s1\">n_wafers<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">20<\/span>, <span class=\"pl-s1\">n_sensors<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">50<\/span>)\n<span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">f\"P &gt; N           : X <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">shape<\/span><span class=\"pl-kos\">}<\/span><\/span>, rank of X^T X = <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">matrix_rank<\/span>(<span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">T<\/span> @ <span class=\"pl-c1\">X<\/span>)<span class=\"pl-kos\">}<\/span><\/span> of <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">shape<\/span>&#91;<span class=\"pl-c1\">1<\/span>&#93;<span class=\"pl-kos\">}<\/span><\/span>\"<\/span>)\n\n<span class=\"pl-c\"># Two different OLS coefficient vectors that fit the data equally well<\/span>\n<span class=\"pl-s1\">beta_a<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">lstsq<\/span>(<span class=\"pl-c1\">X<\/span>, <span class=\"pl-s1\">y<\/span>, <span class=\"pl-s1\">rcond<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">None<\/span>)&#91;<span class=\"pl-c1\">0<\/span>&#93;\n<span class=\"pl-s1\">null_direction<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">svd<\/span>(<span class=\"pl-c1\">X<\/span>)&#91;<span class=\"pl-c1\">2<\/span>&#93;&#91;<span class=\"pl-c1\">-<\/span><span class=\"pl-c1\">1<\/span>&#93;  <span class=\"pl-c\"># X @ null_direction is zero<\/span>\n<span class=\"pl-s1\">beta_b<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">beta_a<\/span> <span class=\"pl-c1\">+<\/span> <span class=\"pl-c1\">5.0<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-s1\">null_direction<\/span>\n<span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">f\"                  ||X beta_a - y|| = <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">norm<\/span>(<span class=\"pl-c1\">X<\/span> @ <span class=\"pl-s1\">beta_a<\/span> <span class=\"pl-c1\">-<\/span> <span class=\"pl-s1\">y<\/span>):.2e<span class=\"pl-kos\">}<\/span><\/span>, \"<\/span>\n      <span class=\"pl-s\">f\"||X beta_b - y|| = <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">norm<\/span>(<span class=\"pl-c1\">X<\/span> @ <span class=\"pl-s1\">beta_b<\/span> <span class=\"pl-c1\">-<\/span> <span class=\"pl-s1\">y<\/span>):.2e<span class=\"pl-kos\">}<\/span><\/span>, \"<\/span>\n      <span class=\"pl-s\">f\"||beta_a - beta_b|| = <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">norm<\/span>(<span class=\"pl-s1\">beta_a<\/span> <span class=\"pl-c1\">-<\/span> <span class=\"pl-s1\">beta_b<\/span>):.2f<span class=\"pl-kos\">}<\/span><\/span>\"<\/span>)\n\n<span class=\"pl-s1\">pls<\/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-c1\">2<\/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-c1\">X<\/span>, <span class=\"pl-s1\">y<\/span>)\n<span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">f\"                  PLS with K = 2: R^2 = <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">pls<\/span>.<span class=\"pl-c1\">score<\/span>(<span class=\"pl-c1\">X<\/span>, <span class=\"pl-s1\">y<\/span>):.3f<span class=\"pl-kos\">}<\/span><\/span>\"<\/span>)\n<span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">\"-\"<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-c1\">72<\/span>)\n\n<span class=\"pl-c\"># 2. Perfect multicollinearity: one column is twice another<\/span>\n<span class=\"pl-c1\">X<\/span>, <span class=\"pl-s1\">y<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-en\">sensors<\/span>(<span class=\"pl-s1\">n_wafers<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">40<\/span>, <span class=\"pl-s1\">n_sensors<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">10<\/span>)\n<span class=\"pl-c1\">X<\/span>&#91;:, <span class=\"pl-c1\">1<\/span>&#93; <span class=\"pl-c1\">=<\/span> <span class=\"pl-c1\">2.0<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-c1\">X<\/span>&#91;:, <span class=\"pl-c1\">0<\/span>&#93;\n<span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">f\"perfect collin. : X <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">shape<\/span><span class=\"pl-kos\">}<\/span><\/span>, rank of X^T X = <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">matrix_rank<\/span>(<span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">T<\/span> @ <span class=\"pl-c1\">X<\/span>)<span class=\"pl-kos\">}<\/span><\/span> of <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">shape<\/span>&#91;<span class=\"pl-c1\">1<\/span>&#93;<span class=\"pl-kos\">}<\/span><\/span>\"<\/span>)\n<span class=\"pl-s1\">pls<\/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-c1\">2<\/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-c1\">X<\/span>, <span class=\"pl-s1\">y<\/span>)\n<span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">f\"                  PLS with K = 2: R^2 = <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">pls<\/span>.<span class=\"pl-c1\">score<\/span>(<span class=\"pl-c1\">X<\/span>, <span class=\"pl-s1\">y<\/span>):.3f<span class=\"pl-kos\">}<\/span><\/span>\"<\/span>)\n<span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">\"-\"<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-c1\">72<\/span>)\n\n<span class=\"pl-c\"># 3. High multicollinearity: X^T X has an inverse, but a tiny eigenvalue<\/span>\n<span class=\"pl-c1\">X<\/span>, <span class=\"pl-s1\">y<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-en\">sensors<\/span>(<span class=\"pl-s1\">n_wafers<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">40<\/span>, <span class=\"pl-s1\">n_sensors<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">10<\/span>)\n<span class=\"pl-s1\">eigenvalues<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">eigvalsh<\/span>(<span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">T<\/span> @ <span class=\"pl-c1\">X<\/span>)\n<span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">f\"high collin.    : rank of X^T X = <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">matrix_rank<\/span>(<span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">T<\/span> @ <span class=\"pl-c1\">X<\/span>)<span class=\"pl-kos\">}<\/span><\/span> of <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">shape<\/span>&#91;<span class=\"pl-c1\">1<\/span>&#93;<span class=\"pl-kos\">}<\/span><\/span>, \"<\/span>\n      <span class=\"pl-s\">f\"eigenvalue max\/min = <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">eigenvalues<\/span>&#91;<span class=\"pl-c1\">-<\/span><span class=\"pl-c1\">1<\/span>&#93; <span class=\"pl-c1\">\/<\/span> <span class=\"pl-s1\">eigenvalues<\/span>&#91;<span class=\"pl-c1\">0<\/span>&#93;:.1e<span class=\"pl-kos\">}<\/span><\/span>\"<\/span>)\n\n<span class=\"pl-c\"># Refit 200 times with fresh noise in y, and measure how far the coefficients move<\/span>\n<span class=\"pl-s1\">ols_runs<\/span>, <span class=\"pl-s1\">pls_runs<\/span> <span class=\"pl-c1\">=<\/span> &#91;&#93;, &#91;&#93;\n<span class=\"pl-k\">for<\/span> <span class=\"pl-s1\">_<\/span> <span class=\"pl-c1\">in<\/span> <span class=\"pl-en\">range<\/span>(<span class=\"pl-c1\">200<\/span>):\n    <span class=\"pl-s1\">y_new<\/span> <span class=\"pl-c1\">=<\/span> <span class=\"pl-s1\">y<\/span> <span class=\"pl-c1\">+<\/span> <span class=\"pl-c1\">0.1<\/span> <span class=\"pl-c1\">*<\/span> <span class=\"pl-s1\">rng<\/span>.<span class=\"pl-c1\">standard_normal<\/span>(<span class=\"pl-en\">len<\/span>(<span class=\"pl-s1\">y<\/span>))\n    <span class=\"pl-s1\">ols_runs<\/span>.<span class=\"pl-c1\">append<\/span>(<span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">linalg<\/span>.<span class=\"pl-c1\">solve<\/span>(<span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">T<\/span> @ <span class=\"pl-c1\">X<\/span>, <span class=\"pl-c1\">X<\/span>.<span class=\"pl-c1\">T<\/span> @ <span class=\"pl-s1\">y_new<\/span>))\n    <span class=\"pl-s1\">pls_runs<\/span>.<span class=\"pl-c1\">append<\/span>(<span class=\"pl-en\">PLSRegression<\/span>(<span class=\"pl-s1\">n_components<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">2<\/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-c1\">X<\/span>, <span class=\"pl-s1\">y_new<\/span>).<span class=\"pl-c1\">coef_<\/span>.<span class=\"pl-c1\">ravel<\/span>())\n<span class=\"pl-en\">print<\/span>(<span class=\"pl-s\">f\"                  mean sd of coefficients: OLS <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">std<\/span>(<span class=\"pl-s1\">ols_runs<\/span>, <span class=\"pl-s1\">axis<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">0<\/span>).<span class=\"pl-c1\">mean<\/span>():.3f<span class=\"pl-kos\">}<\/span><\/span>, \"<\/span>\n      <span class=\"pl-s\">f\"PLS <span class=\"pl-s1\"><span class=\"pl-kos\">{<\/span><span class=\"pl-s1\">np<\/span>.<span class=\"pl-c1\">std<\/span>(<span class=\"pl-s1\">pls_runs<\/span>, <span class=\"pl-s1\">axis<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-c1\">0<\/span>).<span class=\"pl-c1\">mean<\/span>():.3f<span class=\"pl-kos\">}<\/span><\/span>\"<\/span>)<\/pre><\/div>\n<p dir=\"auto\">\uc2e4\ud589 \uacb0\uacfc\ub294 \uc544\ub798\uc640 \uac19\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"P &gt; N           : X (20, 50), rank of X^T X = 19 of 50\n                  ||X beta_a - y|| = 6.29e-15, ||X beta_b - y|| = 1.06e-14, ||beta_a - beta_b|| = 5.00\n                  PLS with K = 2: R^2 = 0.994\n------------------------------------------------------------------------\nperfect collin. : X (40, 10), rank of X^T X = 9 of 10\n                  PLS with K = 2: R^2 = 0.996\n------------------------------------------------------------------------\nhigh collin.    : rank of X^T X = 10 of 10, eigenvalue max\/min = 3.2e+03\n                  mean sd of coefficients: OLS 0.164, PLS 0.003\"><pre lang=\"text\" class=\"notranslate\"><code>P &gt; N           : X (20, 50), rank of X^T X = 19 of 50\n                  ||X beta_a - y|| = 6.29e-15, ||X beta_b - y|| = 1.06e-14, ||beta_a - beta_b|| = 5.00\n                  PLS with K = 2: R^2 = 0.994\n------------------------------------------------------------------------\nperfect collin. : X (40, 10), rank of X^T X = 9 of 10\n                  PLS with K = 2: R^2 = 0.996\n------------------------------------------------------------------------\nhigh collin.    : rank of X^T X = 10 of 10, eigenvalue max\/min = 3.2e+03\n                  mean sd of coefficients: OLS 0.164, PLS 0.003\n<\/code><\/pre><\/div>\n<ul dir=\"auto\">\n<li>\uccab \ubb36\uc74c: wafer 20 \uc7a5\uc744 centering \ud558\uc5ec rank \uac00 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$N - 1 = 19$<\/math-renderer> \uc774\ub2e4. \uc11c\ub85c 5.00 \ub5a8\uc5b4\uc9c4 \ub450 OLS \uacc4\uc218\uc758 \uc794\ucc28\uac00 \ubaa8\ub450 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$10^{-14}$<\/math-renderer> \uc218\uc900\uc774\uc5b4\uc11c \uc2dd (3) \ub300\ub85c \uacc4\uc218\uac00 \ud558\ub098\ub85c \uc815\ud574\uc9c0\uc9c0 \uc54a\uace0, \uc794\ucc28\uac00 0 \uc774\uc5b4\uc11c \ud559\uc2b5 \ub370\uc774\ud130\uc5d0 \uc644\uc804\ud788 \ub9de\ub294\ub2e4.<\/li>\n<li>\ub458\uc9f8 \ubb36\uc74c: \ub458\uc9f8 \uc5f4\uc744 \uccab\uc9f8 \uc5f4\uc758 2 \ubc30\ub85c \ub450\uc5b4 rank \uac00 10 \uc911 9 \uc774\uc9c0\ub9cc, PLS \ub294 <math-renderer class=\"js-inline-math\" style=\"display: inline-block\" data-run-id=\"fa2a2f5e01f6adb079ca46d2b7676c4a\">$K = 2$<\/math-renderer> \ub85c \uacc4\uc218\ub97c \uad6c\ud55c\ub2e4.<\/li>\n<li>\uc14b\uc9f8 \ubb36\uc74c: \uc228\uc740 \uc694\uc778 \ub450 \uac1c\uac00 \uc13c\uc11c 10 \uac1c\ub97c \uc6c0\uc9c1\uc5ec \uc5f4\uc774 \uac70\uc758 \uc885\uc18d\uc774\ub2e4. \uc5ed\ud589\ub82c\uc740 \uc788\uc9c0\ub9cc, \uc7a1\uc74c\ub9cc \ubc14\uafbc 200 \ubc88\uc758 \uc801\ud569\uc5d0\uc11c OLS \uacc4\uc218\uac00 PLS \uacc4\uc218\ubcf4\ub2e4 \uc57d 50 \ubc30 \ud06c\uac8c \ud754\ub4e4\ub9b0\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>OLS cannot compute coefficients when X transpose X has no inverse, that is, when variables number at least as many as samples or perfect multicollinearity exists, while PLS still can. When the inverse exists but multicollinearity is high, OLS coefficients swing widely, and PLS gives stable coefficients from the same data.<\/p>\n","protected":false},"author":4,"featured_media":7312,"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":8,"footnotes":""},"categories":[56,467,321],"tags":[386],"class_list":["post-7311","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science-slug","category-linear-algebra-slug","category-math-slug","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\/11\/heb-beef-strip-steak-package.jpg","_links":{"self":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7311","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=7311"}],"version-history":[{"count":2,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7311\/revisions"}],"predecessor-version":[{"id":7355,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7311\/revisions\/7355"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media\/7312"}],"wp:attachment":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=7311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=7311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=7311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}