Transpose of the product of matrices problem

Click For Summary
SUMMARY

The discussion centers on the matrix algebra involved in linear regression, specifically the equation relating to the transpose of the product of matrices. The user, Ed, seeks clarification on the equality -\mathbf{y}^{\text{T}}\mathbf{X}\tilde{\beta} = -\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{y} within the context of the equation (1). The key takeaway is that both expressions represent the same scalar value, which allows for the equality to hold true due to the properties of transposition in scalar products.

PREREQUISITES
  • Understanding of linear regression concepts
  • Familiarity with matrix algebra and operations
  • Knowledge of transpose properties in linear algebra
  • Experience with scalar products in matrix equations
NEXT STEPS
  • Study the properties of matrix transposition in detail
  • Explore scalar products and their implications in linear algebra
  • Learn about the derivation of linear regression equations
  • Investigate the implications of symmetry in matrix equations
USEFUL FOR

Students and professionals in statistics, data science, or any field involving linear regression and matrix algebra will benefit from this discussion.

EdMel
Messages
13
Reaction score
0
Hi,

The following equations are from linear regression model notes but there is an aspect of the matrix algebra I do not get.

I have, \mathbf{y} and \tilde{\beta} are a mx1 vectors, and \mathbf{X} is a mxn matrix.

I understand the equation
(\mathbf{y}-\mathbf{X}\tilde{\beta})^{\text{T}}(\mathbf{y}-\mathbf{X}\tilde{\beta})= \mathbf{y}^{\text{T}}\mathbf{y}-\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{y}-\mathbf{y}^{\text{T}}\mathbf{X}\tilde{\beta}+ \tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{X}\tilde{\beta}<br />
, but then it is stated
\mathbf{y}^{\text{T}}\mathbf{y}-\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{y}-\mathbf{y}^{\text{T}}\mathbf{X}\tilde{\beta}-\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{X}\tilde{\beta}= \mathbf{y}^{\text{T}}\mathbf{y}-2\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{y}+\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{X}\tilde{\beta}\qquad\text{(1)}
, and I do not understand why -\mathbf{y}^{\text{T}}\mathbf{X}\tilde{\beta}=-\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{y} in equation (1).

I understand the transpose identity (\mathbf{y}^{\text{T}}\tilde{\beta}\mathbf{X})^{\text{T}}= \mathbf{X}^{\text{T}}\tilde{\beta}^{\text{T}}\mathbf{y},
but then (1) would be
\mathbf{y}^{\text{T}}\mathbf{y}-\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{y}-\mathbf{y}^{\text{T}}\mathbf{X}\tilde{\beta}-\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{X}\tilde{\beta}= \mathbf{y}^{\text{T}}\mathbf{y}-\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{y}-(\tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{y})^{\text{T}}+ \tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{X}\tilde{\beta},
and (1) would only be true if \tilde{\beta}^{\text{T}}\mathbf{X}^{\text{T}}\mathbf{y} is s symmetric matrix, which I think it need not be.

What am I missing here?

Thanks in advance,

Ed
 
Physics news on Phys.org
Hey EdMel.

Hint: Is the quantity a scalar? (If it is then what does this imply about the appropriate transpose?)
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K