Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Statsmodels P>|t|

in the statsmodels summary, what does the P>|t| and t mean in relation to the variables when it says something like:

    coef    std err    t    P>|t|    [95.0% Conf. Int.]
Intercept   7.0326  0.458   15.360  0.000   6.130   7.935
TV          0.0475  0.003   17.668  0.000   0.042   0.053
like image 702
Rob Avatar asked Nov 13 '17 21:11

Rob


People also ask

What is T in statsmodels?

t is the value of the t-statistic for testing if the corresponding coefficient is different from 0. ( Hypothesis H0: coef==0, H1: coef!=0) Pr>|t| is the p-value for this hypothesis test. A low p-value means, that you can reject the null-hypothesis and accept the alternative hypothesis (coef!=

Is statsmodels better than Sklearn?

While scikit-learn is slightly faster than statsmodels for 1,000 or less observations, this difference is not significant per the t-test analysis. Sci-kit learn is significantly faster for datasets with more than 1,000 observations.

How do you fit OLS model in Python?

The OLS() function of the statsmodels. api module is used to perform OLS regression. It returns an OLS object. Then fit() method is called on this object for fitting the regression line to the data.


1 Answers

t is the value of the t-statistic for testing if the corresponding coefficient is different from 0. (Hypothesis H0: coef==0, H1: coef!=0)

Pr>|t| is the p-value for this hypothesis test. A low p-value means, that you can reject the null-hypothesis and accept the alternative hypothesis (coef!=0).

like image 127
CodeZero Avatar answered Sep 24 '22 22:09

CodeZero