Selecting Variables and Avoiding PitfallsLet’s start with the pitfallsRemember…Correlation does not imply Causation!Caution: Lack of variability or small nCaution: Interpreting the magnitude of βi coefficient as determining the importance of xiCaution: MulticollinearityHow do I know if multicollinearity is present?VIFCaution 2: Violating the AssumptionsSelecting VariablesParing downWhat we’ve done: R2 Criterion and Adjusted R2 (MSE Criterion)Another option: Stepwise RegressionToday’s Data Set: PulseStepwise RegressionSlide 17Backward EliminationBest Subsets RegressionCp CriterionPRESS CriterionCautionsSelecting Variables and Avoiding PitfallsChapters 6 and 7Let’s start with the pitfallsWhat do you think they are?Young children who sleep with the light on are much more likely to develop myopia in later life. This result of a study at the University of Pennsylvania Medical Center was published in the May 13, 1999, issue of Nature. However a later study at Ohio State University did not find any link between infants sleeping with the light on and developing myopia but did find a strong link between parental myopia and the development of child myopia and also noted that myopic parents were more likely to leave a light on in their children's bedroom. http://researchnews.osu.edu/archive/nitelite.htmWhat’s going on here?Remember…Correlation does not imply Causation!A statistically significant relationship between a response y and predictor x does not necessarily imply a cause-and-effect relationship.Caution: Lack of variability or small nThe number of levels of a quantitative variable must be at least one more than the order of the polynomial x that you want to fit.To fit a straight line, you need at least two different x values; how many do you need to fit a curve?Sample size n must be large enough so that the degrees of freedom (n-(k+1)) for estimating σ2 exceeds 0.Caution: Interpreting the magnitude of βi coefficient as determining the importance of xiWith complex models, not all βs have practical interpretation.Unless coefficients are standardized, we cannot compare β values.To standardize in Minitab: Stat Regression Storage Standardized CoefficientsCaution: MulticollinearityWhen 2 or more independent variables are moderately to highly correlated with each otherThe best regression models are those in which the predictor variables each correlate highly with the dependent (outcome) variable but correlate-- at most-- only minimally with each otherHow do I know if multicollinearity is present?Correlation matrixStat > Basic Statistics > Correlation (select all variables of interest)Look for non-significant t tests for individual β parameters when the F test is significantLook for opposite signs with β than you expectedVIFThe variance inflation factor (VIF): measures how much the variance of an estimated regression coefficient increases if your predictors are correlated (multicollinear). VIF = 1 indicates no relation; VIF > 1, otherwise. When VIF is greater than 10, then the regression coefficients are poorly estimated. In Regression Window, select Options button, select Variance Inflation Factors under DisplayUsing the VIF value, you can calculate an R2 to relate one of the independent variables to the remaining independent variables (p. 349).Caution 2: Violating the AssumptionsWhat are the assumptions about ε?mean value of ε for any given set of values of x1, x2,…xk is E (ε )= 0ε has a normal probability distribution with mean equal to 0 and variance equal to σ2Random errors are independentIf data violate the assumptions, derived inferences are suspect… so methodology must be modifiedWe will dive into this in chapter 8!Selecting VariablesLast class and journal: Compared complex models to reduced modelsTested a portion of complete model parameters with a nested model F test Today:Methods for selecting which independent variables to include from many possible variablesParing downWe start with a comprehensive model that includes all conceivable, testable influences on the phenomena under investigation. We want to end up with the simplest model possible.In addition to literature, theory and plotting data, stepwise regression can help in selecting variables.Parsimony: the smaller number of βs, the better (Simpler models are easier to understand and appreciate, and therefore have a "beauty" that their more complicated counterparts often lack.)What we’ve done: R2 Criterion and Adjusted R2 (MSE Criterion)Explore with different variables in the regression equation… but always keep common sense/ literature in mind!Add enough variables that the R2 is sufficiently largeYou can also look at the adjusted R2, which is adjusted as the number of βs increasesSelect the simplest model with the highest R2 (or R2 adj) You can also search for the model with the minimum MSE (included in the ANOVA output) Remember: parsimonyAnother option: Stepwise Regression(1) You identify an initial model with lots of potential variables(2) The software repeatedly alters the model at the previous step by adding a predictor variable in accordance with the "stepping criteria." (3) The search is terminated when stepping is no longer possible given the stepping criteria, or when a specified maximum number of steps has been reached.Today’s Data Set: Pulse Each student in a class recorded his or her height, weight, gender, smoking preference, usual activity level, and resting pulse. They all flipped coins, and those whose coins came up heads ran in place for one minute. Afterward, the entire class recorded their pulses once more. We now want to find the best predictors for the second pulse rate.Stepwise Regression•Starts with no predictors. Each of the available predictors is evaluated with respect to how much R2 would be increased by adding it to the model. •The one which will most increase R2 will be added if it meets the statistical criterion for entry. •This procedure is repeated until there remain no more predictors that are eligible for entry.Open the Pulse data set.1) Choose Stat > Regression > Stepwise.2) In Response, enter Pulse2.3) In Predictors, enter Pulse1 Ran-Weight.4) Click OKWhich variables were selected?Backward EliminationFits a model with terms for all potential variables, then drops the variable with the smallest t statistic1)
View Full Document