Linear regression : estimate the parameters
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
amine&&
el 18 de Feb. de 2017
Comentada: Chad Greene
el 18 de Feb. de 2017
Hello! How can I estimate the parameters (beta1 and beata2) of the following model : y=beta1+beta2*x+epsilon Thanks.
0 comentarios
Respuesta aceptada
Chad Greene
el 18 de Feb. de 2017
p = polyfit(x,y,1);
beta1 = p(2);
beta2 = p(1);
2 comentarios
Chad Greene
el 18 de Feb. de 2017
Check out the optional S output in polyfit, which has S.R and S.normr.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!