2023-10-29

399: For 'Independent Variable'-Value Pairs Data, Choosing Origin-Passing Approximating Line with Least Value Difference Squares Sum Equals Projecting Values Vector to Independent Variables Vector Line

<The previous article in this series | The table of contents of this series | The next article in this series>

A description/proof of that for 'independent variable'-value pairs data, choosing origin-passing approximating line with least value difference squares sum equals projecting values vector to independent variables vector line

Topics


About: vectors space

The table of contents of this article


Starting Context



Target Context


  • The reader will have a description and a proof of the proposition that for any 'independent variable'-value pairs data, choosing the origin-passing approximating line with the least value difference squares sum equals projecting the values vector to the independent variables vector line in the Rn space.

Orientation


There is a list of definitions discussed so far in this site.

There is a list of propositions discussed so far in this site.


Main Body


1: Description


For any 'independent variable'-value pairs data, (x1,y1),(x2,y2),...,(xn,yn), choosing the origin-passing approximating line, y=sx, such that the value difference squares sum, S:=i(yisxi)2, is the least equals projecting the values vector, (y1,y2,...,yn), to the independent variables vector line, t(x1,x2,...,xn) in the Rn space, what which means is that s equals the length of the projection.


2: Proof


Let us determine s. Let us take dSds=0. dSds=i(2(yisxi)xi)=0. i(yixi)=sixi2. s=(i(yixi))(ixi2)1.

Let us take the projection. The inner product of (x1,x2,...,xn) and (y1,y2,...,yn) is i(yixi)=(ixi2)21(iyi2)21cosθ where θ is the angle between the vectors, and the length of the projection is l=(iyi2)21cosθ=(iyi2)21i(yixi)((ixi2)21)1((iyi2)21)1=i(yixi)((ixi2)21)1.

So, l=s, which is what this proposition means.

The projection is (i(yixi))((ixi2)21)1((ixi2)21)1(x1,x2,...,xn)=(i(yixi))((ixi2)21)2(x1,x2,...,xn)=(i(yixi))(ixi2)1(x1,x2,...,xn).


References


<The previous article in this series | The table of contents of this series | The next article in this series>