Borrar filtros
Borrar filtros

OLS estimator b=x\y?

16 visualizaciones (últimos 30 días)
TAEKYU EOM
TAEKYU EOM el 11 de Nov. de 2020
Comentada: Star Strider el 11 de Nov. de 2020
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?

Respuesta aceptada

Star Strider
Star Strider el 11 de Nov. de 2020
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 comentarios
TAEKYU EOM
TAEKYU EOM el 11 de Nov. de 2020
Thanks for your comment!
Star Strider
Star Strider el 11 de Nov. de 2020
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by