SMOTE Sample Count Calculator
Work out smote sample count instantly with clear inputs, formula shown and shareable results.
About SMOTE Sample Count Calculator
SMOTE creates a synthetic minority point by picking a real minority sample, choosing one of its k nearest minority neighbours, and interpolating at a random position on the segment between them. Fully balancing the classes needs majority minus minority new points, and the ratio of synthetic to real points tells you how hard the algorithm is being pushed — above roughly five, generated points start dominating the class.
Formula
SMOTE generation
synthetic = majority - minority; synthetic per real point = synthetic / minority; interpolation candidates = minority x k
Worked example
With the default values below, SMOTE Sample Count Calculator returns Synthetic samples SMOTE must generate of 9,000. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Real minority samplesminimum 2
- 500
- Majority samplesminimum 1
- 9,500
- k nearest neighboursaccepts 1–50
- 5
Results
- Synthetic samples SMOTE must generate
- 9,000
- Minority rows after resampling
- 9,500
- Synthetic points per real minority point
- 18.00
- Available neighbour pairs to interpolate along
- 2,500
Step by step
- 1Values used
- 2SMOTE generation
- 3Synthetic samples SMOTE must generate= 9,000
- 4Minority rows after resampling= 9,500
- 5Synthetic points per real minority point= 18.00
- 6Available neighbour pairs to interpolate along= 2,500
Assumptions and limits
- The result is derived only from the 3 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 2 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
Can k be larger than the minority count?
No. k must be less than the number of minority samples, otherwise there are not enough neighbours to interpolate between and the implementation will error.
Must SMOTE run before or after the train/test split?
Strictly after, and only on the training fold. Generating synthetic points before splitting leaks interpolated information into the test set and inflates the score.
Related Calculators
- Feature Count vs Sample Ratio Calculator
- Active Learning Sample Budget Calculator
- Annotation QA Sample Size Calculator
- Human Review Sample Size Calculator
- LoRA Parameter Count Calculator
- Model Parameter Count Calculator
- Token Count Estimate Calculator
- A B Test For Models Calculator
- Adjusted Rand Index Calculator
- AI Project ROI Calculator
You might also need
- Feature Count vs Sample Ratio CalculatorAlso in AI, ML & Data Science
- Annotation QA Sample Size CalculatorAlso in AI, ML & Data Science
- LoRA Parameter Count CalculatorAlso in AI, ML & Data Science
- Model Parameter Count CalculatorAlso in AI, ML & Data Science
- Token Count Estimate CalculatorAlso in AI, ML & Data Science
- Active Learning Sample Budget CalculatorAlso in AI, ML & Data Science
