BookmarkSubscribeRSS Feed
edasdfasdfasdfa
Quartz | Level 8
 

I've been reading the Projection section of this wiki article on ordinary least squares: https://en.wikipedia.org/wiki/Ordinary_least_squares#Normal_matrix

 

But I'm not sure how to make sense of the vector of residuals. I'm using a very simple example on purpose just so it's easier to understand. 

 

In any case...

proc iml;
A = {4 8,
     6 12};
b = {5, 1};

I had x of 0.1 and 0.2, p (projection) column vector [2, 3] and resulting vector residual of column vector [3, -2] ...but I have no idea how to interpret it beyond understanding that the residual is apparently the shortest of all possible vectors.

 

So, first, is the residual also referred to as..

a. the orthogonal complement of b on to C(A)?

b. How can I visualize the residual.

How do I make sense of what a coordinate [3, -2] means for a vector residual?

 

2 REPLIES 2
edasdfasdfasdfa
Quartz | Level 8

I think I figured it out.

 

Residual of [3, -2) just tells you that vertically, one of the points is 3 above the regression line and the other point is 2 below the regression line?

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 492 views
  • 2 likes
  • 2 in conversation