BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
pvareschi
Quartz | Level 8

Topic "Dealing with Missing Values" in "Lesson 5: Regression Models Using SAS Enterprise Miner" (module 3: Predictive Modeler using SAS Enterprise Miner), with regard to synthetic distribution methods, states that: "A model trained with the modified training data will not be biased if the same modifications are made to any other data set that the model might encounter (and the data has a similar pattern of missing values)".

I do not understand, from a statistical point of view, why data imputation would not cause bias; would it not be more correct to say that bias will be introduced but it would be the same across training and validation datasets? In terms of net effect, I guess it would be negligible for ranking and decision predictions but it would be a concern for estimate predictions: is that correct?

 

Additionally, how should we choose whether to use the mean or median as the replacement value?

Would it be correct to say that for modelling techniques based on ranking of input values the median would be more suitable whereas methods based on the actual measurement (i.e. regression), the mean should be preferred?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  We asked the class instructors and here's the response:

 

"Imputation of numeric inputs in a regression framework has an effect on the derived regression coefficient. For data skewed to the right, median<mean, for data skewed to the left, median>mean.

 

  For simple regression with only main effects, you can anticipate how the regression coefficient will be influenced by choice of mean or median. If a certain percentage of an input variable values are smaller for a first data set than for a second data set, for a fixed regression coefficient, the predictions will be smaller (positive coefficient) or larger (negative coefficient) for the first data set. To bring the predictions closer in line, estimating the coefficient for each data set will produce a larger negative coefficient or a smaller positive coefficient for the first data set. For more complex models, like neural networks, it is difficult to assess the changes in the model brought about by switching from mean to median imputation.

 

   In general, models derived using mean or median tend to perform about the same. With the model comparison node, you can pick the imputation method that gives the best result for the validation data, regardless of any intuition or rigorous theory.

 

  With respect to how to choose mean or median imputation, do as stated above:  pick the imputation method that gives the best result for the validation data."

 

  And, a final comment: "From personal experience, I almost always pick the mean. (1) It is computationally easier to compute and thus uses fewer computer cycles; (2) Rarely will choice of mean or median make a substantial difference in prediction accuracy; (3) For tight deadlines, I am better served spending my time doing feature engineering than worrying about imputation methods. For choosing the imputation method, I would have to re-run my experiment on imputation method for every change I made to the model, because imputation method accuracy might be influenced by how imputed variables are correlated with other variables in the model."

 

  Hope this helps,

Cynthia

View solution in original post

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  We asked the class instructors and here's the response:

 

"Imputation of numeric inputs in a regression framework has an effect on the derived regression coefficient. For data skewed to the right, median<mean, for data skewed to the left, median>mean.

 

  For simple regression with only main effects, you can anticipate how the regression coefficient will be influenced by choice of mean or median. If a certain percentage of an input variable values are smaller for a first data set than for a second data set, for a fixed regression coefficient, the predictions will be smaller (positive coefficient) or larger (negative coefficient) for the first data set. To bring the predictions closer in line, estimating the coefficient for each data set will produce a larger negative coefficient or a smaller positive coefficient for the first data set. For more complex models, like neural networks, it is difficult to assess the changes in the model brought about by switching from mean to median imputation.

 

   In general, models derived using mean or median tend to perform about the same. With the model comparison node, you can pick the imputation method that gives the best result for the validation data, regardless of any intuition or rigorous theory.

 

  With respect to how to choose mean or median imputation, do as stated above:  pick the imputation method that gives the best result for the validation data."

 

  And, a final comment: "From personal experience, I almost always pick the mean. (1) It is computationally easier to compute and thus uses fewer computer cycles; (2) Rarely will choice of mean or median make a substantial difference in prediction accuracy; (3) For tight deadlines, I am better served spending my time doing feature engineering than worrying about imputation methods. For choosing the imputation method, I would have to re-run my experiment on imputation method for every change I made to the model, because imputation method accuracy might be influenced by how imputed variables are correlated with other variables in the model."

 

  Hope this helps,

Cynthia

 

This is a knowledge-sharing community for learners in the Academy. Find answers to your questions or post here for a reply.
To ensure your success, use these getting-started resources:

Estimating Your Study Time
Reserving Software Lab Time
Most Commonly Asked Questions
Troubleshooting Your SAS-Hadoop Training Environment

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 432 views
  • 0 likes
  • 2 in conversation