Interpreation of fitlm results

9 次查看(过去 30 天)
Liliana Sierra
Liliana Sierra 2018-1-22
Hi! I used the fitlm() to get some values of a linear regression, and I got the following results:
Linear regression model:
y ~ 1 + x1
Estimated Coefficients:
Estimate SE tStat pValue
________ _______ _______ __________
(Intercept) 10.035 0.55554 18.064 2.2246e-08
x1 -2.3583 0.18476 -12.765 4.542e-07
Number of observations: 11, Error degrees of freedom: 9
Root Mean Squared Error: 0.315
R-squared: 0.948, Adjusted R-Squared 0.942
F-statistic vs. constant model: 163, p-value = 4.54e-07
What is the difference between the Intercept values and X1?(I know it must be a very simple answer, but I am getting confused in it...)
Thank you!

回答(1 个)

Star Strider
Star Strider 2018-1-22
Put simply, the ‘Intercept’ is the y-axis intercept of the line, and *‘x1’*is the slope of your simple linear regression.
So:
y = -2.3583*x + 10.035;
would define the regression line.

类别

Help CenterFile Exchange 中查找有关 Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by