Guide to Sample Sizes for Predictive Modeling Techniques

Here is a quick and dirty chart to figure out what your available modeling techniques are to apply to your dataset based on the number of observations (aka the available population for idiots like me)

TechniqueMinimum Sample SizeScaling with Variables (k)Key Rule of ThumbNotes
Multiple Linear Regression50 + 8kLinear growthGreen’s Rule: N = 50 + 8kWidely accepted rule for regression stability.
Logistic Regression10EPVBased on Events Per Variable (EPV)EPV Rule: At least 10 positive outcomes per predictor variableIf only 20% of data are “events”, total N must be adjusted upward.
Decision Tree (Shallow)10kLinear growth10 samples per variableBest for small datasets and shallow depth (max depth 3-4).
Decision Tree (Moderate Depth)20kFaster than linear20 samples per variableNeeded for trees with moderate depth (5-8).
Decision Tree (Deep)50kMuch faster growth50 samples per variableDeep trees prone to overfitting without large datasets.
Random Forest≥10 x k x #treesScales with number of treesBootstrapping reduces per-tree data, so larger datasets neededCommon starting point: 500 trees, so total population must be high.
Gradient Boosted Trees (XGBoost, LightGBM, etc.)100kVery high scaling100 samples per variable minimumComplex ensemble methods need the largest datasets.
Neural Network≥10 x total weightsExponential growth with complexityRule of thumb: 10x the number of network weightsDeep networks need massive sample sizes to generalize.

Throwing this together helped me a ton in the beginning. Hopefully it helps you too.

/end trans

Leave a Reply

Discover more from Nelson Barringer

Subscribe now to keep reading and get access to the full archive.

Continue reading