<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2021.1210061</article-id><article-id pub-id-type="publisher-id">AM-112812</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  A Geometric View on Inner Transformation between the Variables of a Linear Regression Model
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Zhaoyang</surname><given-names>Li</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Bostjan</surname><given-names>Antoncic</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>School of Economics and Business, University of Ljubljana, Ljubljana, Slovenia</addr-line></aff><aff id="aff1"><addr-line>Shanghai University of International Business and Economics, Shanghai, China</addr-line></aff><pub-date pub-type="epub"><day>13</day><month>10</month><year>2021</year></pub-date><volume>12</volume><issue>10</issue><fpage>931</fpage><lpage>938</lpage><history><date date-type="received"><day>21,</day>	<month>July</month>	<year>2021</year></date><date date-type="rev-recd"><day>26,</day>	<month>October</month>	<year>2021</year>	</date><date date-type="accepted"><day>29,</day>	<month>October</month>	<year>2021</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  In the teaching and researching of linear regression analysis, it is interesting and enlightening to explore how the dependent variable vector can be inner-transformed into regression coefficient estimator vector from a visible geometrical view. As an example, the roadmap of such inner transformation is presented based on a simple multiple linear regression model in this work. By applying the matrix algorithms like singular value decomposition (SVD) and Moore-Penrose generalized matrix inverse, the dependent variable vector lands into the right space of the independent variable matrix and is metamorphosed into regression coefficient estimator vector through the three-step of inner transformation. This work explores the geometrical relationship between the dependent variable vector and regression coefficient estimator vector as well as presents a new approach for vector rotating.
 
</p></abstract><kwd-group><kwd>Matrix Singular Value Decomposition</kwd><kwd> Moore-Penrose Generalized Inverse</kwd><kwd> Matrix Inner Transformation</kwd><kwd> Regression Analysis</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>A matrix can be factorized into the product of several matrices with special properties. Particularly, by singular value decomposition (SVD) which is widely used in regression analysis [<xref ref-type="bibr" rid="scirp.112812-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref3">3</xref>], a matrix can be factorized into the product of three matrices with orthogonal or diagonal properties respectively. SVD can be formularized like X = U θ V T [<xref ref-type="bibr" rid="scirp.112812-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref7">7</xref>].</p><p>Moore-Penrose generalized inverse is a special case of generalized matrix inverse [<xref ref-type="bibr" rid="scirp.112812-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref12">12</xref>] and can be applied in regression analysis [<xref ref-type="bibr" rid="scirp.112812-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref14">14</xref>] and least square analysis [<xref ref-type="bibr" rid="scirp.112812-ref15">15</xref>]. For example, in the study of Tian and Zhang [<xref ref-type="bibr" rid="scirp.112812-ref13">13</xref>], the linear unbiased estimator of partial coefficients is derived through Moore-Penrose generalized inverse algorithm. Herein, multiplied by Moore-Penrose generalized inverse of the independent variable matrix, the dependent variable vector is transformed into the new coordinate systems, or left space and then right space of the independent variable matrix [<xref ref-type="bibr" rid="scirp.112812-ref16">16</xref>]. In fact, this process can also be regarded as a vector rotating algorithm. In addition to Moore-Penrose’s generalized inverse algorithm, singular value decomposition (SVD) facilitates such transformation by dividing the transformation process into three-step to present a visible geometrical view.</p></sec><sec id="s2"><title>2. y Can Be Transformed into β ^</title><p>In order to avoid the irrelevant calculation minutia when adopting an independent matrix with a large rank and only to highlight inner transformation, herein,</p><p>a simple multiple linear regression model y = X β ^ + ε ^ is adopted with the independent matrix X = [ 1 1 1 2 1 3 ] and the dependent vector y = [ 1 0 2 ] , β ^ symbolizes the regression coefficient estimator vector.</p><p>In this multiple linear regression model, the matrix X’s singular value decomposition (SVD) can be demonstrated as below:</p><p>X = U θ V T = [ 0.324 0.854 0.420 0.549 0.186 − 0.820 0.774 − 0.490 0.410 ] [ 4.07 0 0 0.6 0 0 ] [ 0.403 0.915 0.915 − 0.403 ] T (E.1)</p><p>U and V are respectively the left and right singular vector matrix of X, and θ is eigen value matrix of X [<xref ref-type="bibr" rid="scirp.112812-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref17">17</xref>].</p><p>Because X is a matrix with full rank column, β ^ can be demonstrated as β ^ = X + y [<xref ref-type="bibr" rid="scirp.112812-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref16">16</xref>], X + signifies the Moore-Penrose generalized inverse of matrix X. And β ^ can also be demonstrated as below when X is substituted by its SVD form presented in equation (E.1),</p><p>β ^ = X + y = ( U θ V T ) + y = ( V T ) − 1 θ + U − 1 y (E.2)</p><p>The Equation (E.2) can be regarded as a process that the vector y is transformed 3 times from right to left multiplied by ( V T ) − 1 θ + U − 1 .</p><p>Transformation 1</p><p>y 1 = U − 1 y = [ 0.324 0.854 0.420 0.549 0.186 − 0.820 0.774 − 0.490 0.410 ] − 1 [ 1 0 2 ] = [ 1.86 − 0.12 1.24 ] (E.3)</p><p>U’s columns are demonstrated as u 1 = [ 0.324 0.549 0.774 ] , u 2 = [ 0.854 0.186 − 0.490 ] and u 3 = [ 0.420 − 0.820 0.410 ] .</p><p>Let the coordinate axes of a 3-dimension original coordinate system be symbolized by a 1 = [ 1 0 0 ] , a 2 = [ 0 1 0 ] and a 3 = [ 0 0 1 ] . The quintessence of the equation (E.3) is that multiplied by the matrix U − 1 , vector y = [ 1 0 2 ] in the coordinate system constructed by a 1 , a 2 and a 3 , can be transformed into y 1 = [ 1.86 − 0.12 1.24 ]</p><p>which is located in a coordinate system constructed by u 1 , u 2 and u 3 , or left space of X. In fact, y and y 1 are at the same spatial location. However, y is in the coordinate system constructed by a 1 , a 2 and a 3 , meanwhile y 1 is presented by the coordinate system constructed by u 1 , u 2 and u 3 , in another word, y 1 is in the left space of X. These locations can be demonstrated as below in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>Transformation 2</p><p>y 2 = θ + U − 1 y = θ + y 1 = [ 4.07 0 0 0.6 0 0 ] + [ 1.86 − 0.12 1.24 ] = [ 0.46 − 0.20 0 ] (E.4)</p><p>During this transformation, multiplied by θ ’s Moore–Penrose inverse θ + , the vector y 1 in u 1 , u 2 and u 3 coordinate system is transformed into the vector y 2 which is in the same coordinate system as y 1 . Such a transformation can be called “Vector Stretching”. During this transformation, the coordinate value of y 1 in u 1 axis diminishes, meanwhile, the coordinate value of y 1 in u 2 axis gets enlarged. The coordinate value of y 1 in u 3 axis vanishes. The “Vector Stretching” of y 1 into y 2 can be demonstrated as below in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>The vanishing coordinate value of y 1 in u 3 axis can signify the degree of freedom of X from a geometric view.</p><p>Transformation 3</p><p>β ^ = ( V T ) − 1 θ + U − 1 y = ( V T ) − 1 y 2 = ( [ 0.403 0.915 0.915 − 0.403 ] T ) − 1 [ 0.46 − 0.20 0 ] = [ 0 0.5 ] (E.5)</p><p>X’s right singular vectors can be denoted as v 1 T = [ 0.403 0.915 ] and v 2 T = [ 0.915 − 0.403 ] . v 1 T and v 2 T vectors are located in a coordinate system constructed by u 1 and u 2 vectors [<xref ref-type="bibr" rid="scirp.112812-ref16">16</xref>].</p><p>The quintessence of Equation (E.5) is that the vector y 2 in the coordinate system is constructed by u 1 and u 2 can be embodied by the vector β ^ in the coordinate system v 1 T and v 2 T . This transformation is demonstrated as below in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>Though the vector β ^ has the same spatial position as y 2 in <xref ref-type="fig" rid="fig3">Figure 3</xref>, these two vectors are situated in two different coordinate systems constructed respectively by v 1 T , v 2 T (the right space of X) and u 1 , u 2 (the left space of X). In another word, the distinction between the vector β ^ and y 2 is that β ^ is demonstrated by the coordinate system of v 1 T and v 2 T , meanwhile, y 2 is demonstrated by u 1 and u 2 . As demonstrated by the aforementioned 3 steps of transformation, the dependent variable y vector is inner-transformed into parameter β ^ vector.</p></sec><sec id="s3"><title>3. y Can Be Transformed into y ^</title><p>The independent variable X’s left singular vector matrix U [<xref ref-type="bibr" rid="scirp.112812-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.112812-ref17">17</xref>] ) can be blocked into two sub-matrics U 1 and U 2 as below.</p><p>U = [ 0.324 0.854 0.420 0.549 0.186 − 0.820 0.774 − 0.490 0.410 ] = [ U 1 U 2 ] = [ 0.324 0.854 0.420 0.549 0.186 − 0.820 0.774 − 0.490 0.410 ]</p><p>Let y ^ symbolize the estimator of the dependent variable y. For that U 1 is the left space of X, y ^ can be demonstrated as y ^ = X β ^ = U 1 U 1 T y [<xref ref-type="bibr" rid="scirp.112812-ref16">16</xref>], based on which the following result can be derived.</p><p>y ^ = U 1 U 1 T y = [ 0.324 0.854 0.549 0.186 0.774 − 0.490 ] [ 0.324 0.854 0.549 0.186 0.774 − 0.490 ] T [ 1 0 2 ] = [ 0.5 1 1.5 ]</p><p>Because U 1 is an orthonormal matrix, U 1 ’s Moore-Penrose inverse U 1 + is equal with U 1 T [<xref ref-type="bibr" rid="scirp.112812-ref12">12</xref>]. So, y ^ can be demonstrated as below:</p><p>y ^ = U 1 U 1 + y = [ 0.324 0.854 0.549 0.186 0.774 − 0.490 ] [ 0.324 0.854 0.549 0.186 0.774 − 0.490 ] + [ 1 0 2 ] = [ 0.5 1 1.5 ] (E.6)</p><p>Based on E.6, y can be transformed into y ^ by two steps as below.</p><p>Transformation 4</p><p>y ∗ = U 1 + y = [ 0.324 0.854 0.549 0.186 0.774 − 0.490 ] + [ 1 0 2 ] = [ 1.86 − 0.12 ] (E.7)</p><p>In Transformation 4, y transforms into y ∗ by being projected into U 1 , the left space of X. Another word, y ∗ is the projection of y in X.</p><p>Transformation 5</p><p>y ^ = U 1 U 1 + y = U 1 y ∗ = [ 0.324 0.854 0.549 0.186 0.774 − 0.490 ] [ 1.86 − 0.12 ] = [ 0.5 1 1.5 ] (E.8)</p><p>In Transformation 5, multiplied by U 1 , y ∗ transforms into y ^ and is presented in the coordinate system constructed by a 1 , a 2 and a 3 . Their spatial locations are demonstrated in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><p>In <xref ref-type="fig" rid="fig4">Figure 4</xref>, it can be found that the error estimator ε ^ is located in the same direction with u 3 which is the left null space of matrix X, and can be expressed as below:</p><p>ε ^ = [ 0.5 − 1 0.5 ] ≅ 1.22 [ 0.42 − 0.82 0.41 ] = 1.22 u 3 .</p><p>y ^ is the projection of y into the left space of X, but presented in the original coordinate system constructed by a 1 , a 2 and a 3 . ε ^ is located in the left null space of matrix X and perpendicular with y ^ . This perpendicular result can be geometrically demonstrated in <xref ref-type="fig" rid="fig4">Figure 4</xref> as well as in the following multiplication.</p><p>y ^ T ε ^ = [ 0.5 1 1.5 ] [ 0.5 − 1 0.5 ] = 0 .</p></sec><sec id="s4"><title>4. Finding and Conclusion</title><p>By applying SVD and Moore-Penrose generalized inverse of the independent variable X in a multiple linear regression model, the dependent variable y can be transformed into the regression coefficient estimator vector β ^ and its own estimator y ^ . This process presents a new geometric perspective to study the relationship between X, y, β ^ and y ^ , through the inner-transformation algorithm.</p><p>As demonstrated from Figures 1-3, y transforms into β ^ by transforming from the original coordinate system of a 1 , a 2 and a 3 into the right space of X constructed by v 1 T and v 2 T . Through this process, y transforms into y 1 by transferring into the coordinate system of u 1 , u 2 and u 3 , that is presented by Transformation 1 (E.3) and demonstrated in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>Multiplied by θ + , the Moore-Penrose inverse of θ , y 1 stretches into y 2 , that is presented by Rotation 2 (E.4) and demonstrated in <xref ref-type="fig" rid="fig2">Figure 2</xref>. In this transformation, the coordinate value of y 1 in u 3 axis vanished, which also signifies the degree of freedom of X from a geometric view.</p><p>Multiplied by ( V T ) − 1 , the inverse of the right singular value matrix of X, y 2 transforms into β ^ , that is presented by Rotation 3 (E.5) and demonstrated in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>As demonstrated in <xref ref-type="fig" rid="fig4">Figure 4</xref>, y transforms into y ∗ by projecting into U 1 , the left space of X. And then, multiplied by U 1 , y ∗ transforms into y ^ and returns back into the original coordinate system constructed by a 1 , a 2 and a 3 . y ^ is the projection of y into the left space of X, and perpendicular with error estimator ε ^ which is located in the left null space of X.</p><p>With the aid of the algorithms like matrix decomposition and Moore-Penrose generalized matrix inverse, the dependent variable y of a multiple linear regression model can be inner-transformed into the regression coefficient estimator β ^ and its own estimator y ^ . This process is a new approach to illustrate the inner-transformation between variables from a geometric view as well as presenting the spatial locations of the variables. To date, there is no study to explore the relationship between the variables of the multiple linear regression model from the view of geometric transformation. This study fills such a gap and provides a new perspective for studying multiple linear regression.</p><p>The limitation of this work is that a simple example of the multiple linear model is adopted to present such intricate inner transformation. But, it can demonstrate more inference art of inner transformation if more complex examples of multiple linear regression model are adopted in future studies.</p></sec><sec id="s5"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s6"><title>Cite this paper</title><p>Li, Z.Y. and Antoncic, B. (2021) A Geometric View on Inner Transformation between the Variables of a Linear Regression Model. Applied Mathematics, 12, 931-938. https://doi.org/10.4236/am.2021.1210061</p></sec></body><back><ref-list><title>References</title><ref id="scirp.112812-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Mandel, J. (1982) Use of the Singular Value Decomposition in Regression Analysis. The American Statistician, 36, 15-24. https://doi.org/10.1080/00031305.1982.10482771</mixed-citation></ref><ref id="scirp.112812-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Mishra, A., Dey, D.K. and Chen, K. (2017) Sequential Co-Sparse Factor Regression. Journal of Computational and Graphical Statistics, 26, 814-826. https://doi.org/10.1080/10618600.2017.1340891</mixed-citation></ref><ref id="scirp.112812-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Nelder, J.A. (1985) An Alternative Interpretation of Singular Value Decomposition in Regression. The American Statistician, 39, 63-65. https://doi.org/10.2307/2683911</mixed-citation></ref><ref id="scirp.112812-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">De Schutter, B. and De Moor, B. (1998) The QR Decomposition and the Singular Value Decomposition in the Symmetrized Max-Plus Algebra. SIAM Journal on Matrix Analysis and Applications, 19, 378-406. https://doi.org/10.1137/S0895479896304782</mixed-citation></ref><ref id="scirp.112812-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Kalman, D. (1996) A Singularly Valuable Decomposition: SVD of a Matrix. The College Mathematics Journal, 27, 2-23. https://doi.org/10.1080/07468342.1996.11973744</mixed-citation></ref><ref id="scirp.112812-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Stewart G.W. (1993) On the Early History of the Singular Value Decomposition. SIAM Review, 35, 551-566. https://doi.org/10.1137/1035134</mixed-citation></ref><ref id="scirp.112812-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Stewart, G.W. (1998) Matrix Algorithms: Volume 1: Basic Decompositions. Society for Industrial and Applied Mathematics, Philadelphia. https://doi.org/10.1137/1.9781611971408</mixed-citation></ref><ref id="scirp.112812-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Ben-Isreal, A. and Charnes, A. (1963) Contributions to the Theory of Generalized Inverses. Journal of the Society for Industrial and Applied Mathematics, 11, 667-699. https://doi.org/10.1137/0111051</mixed-citation></ref><ref id="scirp.112812-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Campbell, S.L. and Meyer, C.D. (1991) Generalized Inverse of Linear Transformations. Dover Publications, New York.</mixed-citation></ref><ref id="scirp.112812-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Fill, J.A. and Fishkind, D.E. (2000) The Moore—Penrose Generalized Inverse for Sums of Matrices. SIAM Journal on Matrix Analysis and Applications, 21, 629-635. https://doi.org/10.1137/S0895479897329692</mixed-citation></ref><ref id="scirp.112812-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Penrose, R. (1955) A Generalized Inverse for Matrices. Mathematical Proceedings of the Cambridge Philosophical Society, 51, 406-413. https://doi.org/10.1017/S0305004100030401</mixed-citation></ref><ref id="scirp.112812-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Wang, G.R., Wei, Y.M. and Qiao, S. (2003) Generalized Inverse: Theory and Computations. Science Press, Beijing.</mixed-citation></ref><ref id="scirp.112812-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Tian, Y. and Zhang, J. (2011) Some Equalities for Estimations of Partial Coefficients under a General Linear Regression Model. Statistical Papers, 52, 911-920. https://doi.org/10.1007/s00362-009-0298-5</mixed-citation></ref><ref id="scirp.112812-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Xu, W. and Tang, X. (2009) Ridge Estimate on Moore-Penrose Inverse Matrix of Generalized Linear Regression Model. Journal of Northeast Forestry University, 37, 108-119.</mixed-citation></ref><ref id="scirp.112812-ref15"><label>15</label><mixed-citation publication-type="book" xlink:type="simple">Rao, C.R. and Mitra, S.K. (1972) Generalized Inverse of a Matrix and Its Applications. In: Le Cam, L.M., Neyman, J. and Scott, E.L., Eds., Proceedings of the Sixth Berkeley Symposium on Statistics and Probability, Berkeley and Los Angeles, Vol. 1: Theory of Statistics, University of California Press, 355-372.</mixed-citation></ref><ref id="scirp.112812-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Li, Z.Y. (2006) Matris Ayr&amp;#305;&amp;#351;&amp;#305;m&amp;#305;. Yüksek Lisans Tezi. Master Degree Thesis, &amp;#304;stanbul üniversitesi, &amp;#304;stanbul.</mixed-citation></ref><ref id="scirp.112812-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Piziak, R. and Odell, P.L. (1999) Full Rank Factorization of Matrix. Mathematics Magazine, 72, 193-201. https://doi.org/10.1080/0025570X.1999.11996730</mixed-citation></ref></ref-list></back></article>