I'm trying to do an OLS regression with several independent variables, and want to better understand how to interpret the p-values from doing the t-tests on the independent variables within my regression. For example, here is my result:
OLS Regression Results
==============================================================================
Dep. Variable: y R-squared: 0.612
Model: OLS Adj. R-squared: 0.497
Method: Least Squares F-statistic: 5.353
Date: Fri, 11 Jan 2013 Prob (F-statistic): 0.00390
Time: 16:12:03 Log-Likelihood: -239.61
No. Observations: 23 AIC: 491.2
Df Residuals: 17 BIC: 498.0
Df Model: 5
==============================================================================
coef std err t P>|t| [95.0% Conf. Int.]
------------------------------------------------------------------------------
const 4.268e+05 1.85e+04 23.092 0.000 3.88e+05 4.66e+05
x1 -70.4536 2230.755 -0.032 0.975 -4776.936 4636.028
x2 -2.384e+04 1.25e+04 -1.905 0.074 -5.02e+04 2565.514
x3 -3821.8439 3848.891 -0.993 0.335 -1.19e+04 4298.607
x4 4030.8183 2295.228 1.756 0.097 -811.689 8873.325
x5 -3.955e+04 1.73e+04 -2.282 0.036 -7.61e+04 -2977.451
==============================================================================
Omnibus: 2.870 Durbin-Watson: 1.674
Prob(Omnibus): 0.238 Jarque-Bera (JB): 1.326
Skew: -0.227 Prob(JB): 0.515
Kurtosis: 4.085 Cond. No. 21.8
==============================================================================
From what I understand, if the p-values are above a certain threshold for a given variable (e.g. p-value > 0.05) as is the case with variable x1's pvalue=0.975, then one can say that this particular regression doesn't gain any additional information from having this variable in there. If I'm misunderstanding or generalizing too much, let me know.
What else is confusing me is that same variable, x1, when I run a regression with just x1 and x5, x1's p-value=0.05. I'm guessing that I interpret this as, x1 has some useful information, but when compared with the information carried by x2, x2 and x4 together, x1 isn't useful.
Regarding feature selection, would it be correct to try all various subsets of x1 through x5, throw out those that contain an independent variable whose p-value > 0.05, and then use the remaining combinations with cross-validation to find the best model parameters?
My end goal is to do feature selection from a large set of variables, and maybe p-values are not the best thing to use for this. In either case, I would like to better understand these p-values, and if you have a favorite feature selection method, I'd love to hear as well. Thanks