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

Hi ,

Can someone please suggest when we do oversampling ,do we do this on main dataset and then we spilt it into Training and Validation (so both are over sampled)? Or we first make Training and Validation datasets nd then oversample Training dataset and perform validation on non-oversampled Validation dataset? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

I don't see the need for unequal probability sub-sampling for the validation data. By keeping the original event probability in the validation dataset you could also check that your weighting in the training data was done properly.

 

Note : I edited the topic title to attract attention from others to this question.

PG

View solution in original post

4 REPLIES 4
PGStats
Opal | Level 21

Oversampling for what purpose? Bootstrap?

PG
sachin01663
Obsidian | Level 7
Hi,

I am working on a data with very low event rate around 0.8% however the observations are quite high around 2 million. I am thinking to take 50-50 events and non events to build a better logistic regression model. Usually when I do logistic regression, I split my data into validation and training datasets. Build model on Training and validate on validation.

However in this case, where I am taking lower proportion of non events, I am not sure how to split Training and Validation datasets. Do I do oversampling/undersampling before split data into Training and Validation or I only do this on Training dataset and Validation data stays as it is?

I hope it is clear.
Thanks Sachin
PGStats
Opal | Level 21

I don't see the need for unequal probability sub-sampling for the validation data. By keeping the original event probability in the validation dataset you could also check that your weighting in the training data was done properly.

 

Note : I edited the topic title to attract attention from others to this question.

PG
sachin01663
Obsidian | Level 7
Okay. I was wondering if the event rate is too low to build model on Training dataset (hence we did sampling), is it sufficient to do validation without oversampling ?

Thanks for editing the title.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2693 views
  • 1 like
  • 2 in conversation