Dimensionality Reduction Calculator
Determine how many principal components to retain based on eigenvalues and target explained variance. Includes scree plot data, Kaiser criterion, and cumulative variance analysis.
Inputs
Results
Components to Keep
4
Variance Explained
95%
How to Use This Calculator
- Enter the number of original features and target number of components.
- Set the minimum explained variance threshold (e.g., 95%).
- Review the number of components needed to reach your variance threshold.
- Plot the scree plot to identify the elbow and confirm the component count.
- Use the selected components as input features for downstream modeling.
How the result changes with Eigenvalue 1 (Largest)
| Eigenvalue 1 (Largest) | Components to Keep | Variance Explained |
|---|---|---|
| 100,000 | 1 | 99.95% |
| 350,000 | 1 | 99.98% |
| 650,000 | 1 | 99.99% |
| 900,000 | 1 | 99.99% |
What each input means
- Total Variance
- The total variance across all original features (sum of all eigenvalues ideally).
- Eigenvalue 1 (Largest)
- Eigenvalue for the first principal component (largest variance direction).
- Eigenvalue 2
- Eigenvalue for the second principal component.
- Eigenvalue 3
- Eigenvalue for the third principal component.
- Eigenvalue 4
- Eigenvalue for the fourth principal component.
- Eigenvalue 5 (Smallest)
- Eigenvalue for the fifth principal component (smallest variance direction).
- Target Variance Explained (%)
- The minimum percentage of total variance you want your retained components to explain. 95% is common.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersTotal Variance = 100, Eigenvalue 1 (Largest) = 45, Eigenvalue 2 = 25, Eigenvalue 3 = 15 = 7 input(s) provided
- Calculate Components to KeepComponents to Keep4 = 4
- Calculate Variance Explained95 = 95
- Calculate Dimension ReductionDimension Reduction20 = 20
- Calculate Kaiser Criterion ComponentsKaiser Criterion Components2 = 2
Engine last updated . Checked against 1 independently-derived test — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Feature Scaling Calculator
Scale raw feature values using min-max normalization, z-score standardization, robust scaling, and max-abs normalization for machine learning preprocessing.
Data ScienceClustering Quality Score Calculator
Evaluate clustering quality using silhouette score, Calinski-Harabasz index, Davies-Bouldin index, and Dunn index from cluster distance metrics.
MLOps & AI CostingFeature Importance Calculator
Estimate how many features to keep, overfitting risk, and expected variance retention based on dataset size, model type, and correlation threshold.
Data ScienceA/B Test Calculator
Determine statistical significance of A/B test results. Calculate z-score, p-value, conversion lift, and whether your variant beats the control at your chosen confidence level.
More in Math & Statistics.