1
$\begingroup$

I learned in school that we don't split the dataset into training and testing sets if the sample size is less than 30. I wonder why we don't?

$\endgroup$
1
  • $\begingroup$ It might be instructive to think about what you are going to do if the sample size is 31. If you want to learn about about data splitting (why and why not), rather than rules of thumb, you'll find lots on this topic on CV, eg. 1, 2. $\endgroup$
    – dipetkov
    Jul 1, 2022 at 5:58

1 Answer 1

1
$\begingroup$

Depends on what the task is, but generally, train-test splitting data with small sample size will lead to an even smaller training set. The model can't effectively "learn" on such small dataset. As a result the learned parameters are not what we are looking for. This will especially be more true regarding the classification tasks, which will lead to extensive imbalances in the dependent data as well.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.