필터 지우기
필터 지우기

OLS estimator b=x\y?

조회 수: 16 (최근 30일)
TAEKYU EOM
TAEKYU EOM 2020년 11월 11일
댓글: Star Strider 2020년 11월 11일
Hi guys,
when x is n*2 vector and y is n*1 vector,
b=(x'*x)^(-1)*x'*y.
If I use the expression like
b=x\y,
both have same results.
What is difference between these two expressions?

채택된 답변

Star Strider
Star Strider 2020년 11월 11일
What is difference between these two expressions?
The way they are implemented in MATLAB. The documentation for mldivide,\ explains how it works (so I won’t go into that here), and the reason it is more stable and preferred over taking the inverse and multiplying.
  댓글 수: 2
TAEKYU EOM
TAEKYU EOM 2020년 11월 11일
Thanks for your comment!
Star Strider
Star Strider 2020년 11월 11일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by