Skip to main content
Calcimator

Feature Importance Calculator

Estimate how many features to keep, overfitting risk, and expected variance retention based on dataset size, model type, and correlation threshold.

Inputs

Results

Recommended Features to Keep

50

Est. Variance Retained

100%

Features to Remove0
Samples per Feature20
Min Samples Needed750
Overfitting Risk8%
How to Use This Calculator
  1. Enter Total Features (number of columns in your dataset).
  2. Enter Dataset Size (number of rows/samples).
  3. Select your Model Type — each type has different feature capacity.
  4. Review Recommended Features to Keep and Overfitting Risk.
  5. Check if your dataset meets the Minimum Samples Needed.
  6. Use the chart to see the keep vs. remove split.

How the result changes with Total Features

Total FeaturesRecommended Features to KeepEst. Variance Retained
10,0021002.1%
35,0011000.6%
65,0011000.3%
90,0001000.2%

What each input means

Total Features
Total number of features in the dataset
Dataset Size (rows)
Number of samples/rows in the dataset
Model Type
Model type affects feature selection heuristics and data requirements
Target Variance Explained (%)
Desired percentage of variance to retain after feature selection
Correlation Threshold
Features with correlation above this are considered redundant

How this is calculated

Worked example, using the default values

  1. Assess Data-to-Feature Ratio
    effectiveFeatureRatio = datasetSize ÷ totalFeatures
    1000 ÷ 50 = 20 = 20 samples per feature (Very Low overfitting risk)
  2. Calculate Recommended Features
    recommendedFeatures = min(totalFeatures, datasetSize ÷ 10)
    min(50, 1000 ÷ 10) = min(50, 100) = 50 features (Linear/Regularized)
  3. Estimate Variance Retained
    V(k) = [1 − (1 − k/n)^α] × 100
    [1 − (1 − 50/50)^1.8] × 100 = 100% variance retained with 50 of 50 features
  4. Calculate Minimum Samples Needed
    minSamples = totalFeatures × samplesPerFeature (15× for Linear/Regularized)
    50 × 15 = 750 samples needed (you have 1000 ✓)

Engine last updated . Checked against 2 independently-derived tests how we verify calculators.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Technology & Computing.