Deriving X from X'X

3 ビュー (過去 30 日間)
Colette Salemi
Colette Salemi 2016 年 10 月 2 日
コメント済み: Colette Salemi 2016 年 10 月 6 日
Hello, I am hoping someone can help me determine the n x k matrix X when the k x k matrix X'X is given using Matlab. Please share any coding tips! Many thanks!!
  2 件のコメント
Walter Roberson
Walter Roberson 2016 年 10 月 2 日
if n > k then there will cannot be a unique solution, as k x k would not have enough information to find n x k when n > k.
If n < k then round-off error has the potential to be a problem.
Colette Salemi
Colette Salemi 2016 年 10 月 6 日
Thank you! I was working on a problem set where we were provided with X'X, and my first instinct was to try to derive X. As you point out this isn't possible with the information given (instead we used the info in X'X). Thanks again for your help!

サインインしてコメントする。

回答 (1 件)

Jang geun Choi
Jang geun Choi 2016 年 10 月 2 日
編集済み: Jang geun Choi 2016 年 10 月 2 日
n=2;
k=3;
X=rand(n,k); % make sample matrix X
Xn=X'*X
Is it right what you want?

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by