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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

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
  • 4 replies
  • 1689 views
  • 1 like
  • 2 in conversation