Unraveling Linear Models: Solving n*Sum(XiYi) - Sum(XiYi)

  • Thread starter Thread starter retspool
  • Start date Start date
  • Tags Tags
    Linear Models
Click For Summary
SUMMARY

The discussion centers on the validity of the equation n*Sum(XiYi) - Sum(XiYi) = Sum(Xi - Xbar)(Yi - Ybar) in the context of linear models. The equation is confirmed to be true, with the derivation involving the expansion of the sum of products and the application of averages Xbar and Ybar. The final expression simplifies to S = Sum(XiYi) - n*Xbar*Ybar, demonstrating the relationship between the sums and the averages.

PREREQUISITES
  • Understanding of linear models and their applications
  • Familiarity with statistical notation and summation
  • Knowledge of averages, specifically Xbar and Ybar
  • Basic algebraic manipulation skills
NEXT STEPS
  • Study the derivation of linear regression coefficients (Betas)
  • Learn about the properties of covariance and correlation
  • Explore the concept of least squares estimation in linear models
  • Review statistical software tools for linear regression analysis, such as R or Python's statsmodels
USEFUL FOR

Students and professionals in statistics, data analysis, and machine learning who seek to deepen their understanding of linear models and their mathematical foundations.

retspool
Messages
35
Reaction score
0
Linear models is the topic

And i believe my professor wrote this n*Sum(XiYi) - Sum(XiYi) = Sum(Xi - Xbar)(Yi - Ybar)

i was hoping if some one could tell me if this is true of if it is my bad in typing down.

If it is true then can some one please tell me how?

I've attached an image i'd appreciate it if someone could explain to me the last 3 steps.

Thanks
 

Attachments

  • IMAG0315.jpg
    IMAG0315.jpg
    27.3 KB · Views: 526
Physics news on Phys.org
And this too. I've written simplifies at the center of the paper, i don't know how they get the Betas.


Thanks
 

Attachments

  • IMAG0317.jpg
    IMAG0317.jpg
    22 KB · Views: 509
Let <x> and <y> denote the x and y averages (you called them Xbar Nd Ybar). You want S = sum{(xj -<x>)(yj - < y>): j=1...n}. The nth term, expanded out, is xj*yj - <x>*yj - <y>*xj + <x>*<y>. Now sum <x>*yj = <x>*sum yj = n*<x>*<y>, etc., so we end up with S = sum(xy) - 2*n*<x>*<y> + n*<x>*<y> = sum(xy) - n<x><y>.

RGV
 

Similar threads

Replies
10
Views
2K
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K