PCA Eigenvalue Tool Calculator

Paste data then uncover principal variance drivers. See eigenvalues scree hints and cumulative totals instantly. Download clean reports for study audits or reviews later.

Calculator Inputs

Match this to how you paste your dataset.
Correlation mode standardizes variables automatically.
Standardization removes unit effects across variables.
Higher values help stubborn matrices converge.
Smaller tolerance means stricter diagonalization.
Rows are observations. Columns are variables. Provide only numeric values.
Reset

Example Data Table

This dataset has 8 observations and 3 variables. It is suitable for quick testing.
Obs X1 X2 X3
12.11.93.2
22.42.23.0
31.81.72.6
43.02.73.9
52.62.53.4
61.91.62.8
72.82.43.6
82.22.03.1

Formula Used

PCA starts from a centered data matrix X with n observations and p variables. If standardization is selected, each column is scaled to unit standard deviation.

The covariance matrix is computed as S = (1/(n-1)) · XᵀX. In correlation mode, the standardized data produces a correlation matrix using the same form.

Eigenvalues are obtained by solving S v = λ v, where each λ measures variance captured by a principal component. Explained variance percent is 100·λ/Σλ.

How to Use This Calculator

  1. Paste your numeric dataset, with one observation per row.
  2. Select the delimiter and indicate if headers are included.
  3. Choose covariance for unit-aware analysis, or correlation for scale-free comparison.
  4. Enable centering, and optionally standardize using Z-scores.
  5. Press Calculate to view eigenvalues, variance percent, and cumulative percent.
  6. Download CSV or PDF if you need a portable report.

Eigenvalues and variance accounting

Eigenvalues are the diagonalized variances of the covariance or correlation matrix. The tool ranks them from largest to smallest, then converts each value into variance percent using 100·λ/Σλ. For the sample 3‑variable table, the sum of eigenvalues equals total variance across X1–X3. If Σλ is 5.20, PC1 at 3.10 explains 59.6%. Cumulative percent helps decide where information saturates; 80–95% is often a practical retention band in reporting.

Covariance versus correlation selection

Covariance mode keeps original measurement units, so variables with larger scales can dominate λ values. Use it when all columns share comparable units, such as synchronized sensor readings. Correlation suits mixed units and scales. Correlation mode standardizes columns to mean 0 and standard deviation 1, producing a scale‑free matrix. In this mode, the Kaiser rule counts eigenvalues greater than 1 as potentially useful components, a quick screening step before deeper model checks.

Centering and scaling controls

Centering subtracts each column mean, ensuring the first component explains variation around the average rather than absolute level. Without centering, the covariance matrix can be inflated by offsets, especially when all values are positive. Standardize (Z‑score) when columns have different spreads; a zero‑variance column cannot be standardized and should be removed or corrected. The tool reports n and p so you can verify adequate observations per variable before interpreting loadings.

Convergence settings and numerical stability

Eigenvalues are computed with a Jacobi rotation method, iteratively reducing off‑diagonal correlations until they fall below the chosen tolerance. Tight tolerances such as 1e‑12 yield cleaner diagonals but may require more iterations, while looser settings finish faster. Start at 250 iterations; raise to 800 safely. If your matrix is near‑singular, small negative eigenvalues can appear from rounding; the tool clamps tiny negatives to zero to keep variance percentages interpretable.

Reporting outputs and audit trail

Export buttons create a reproducible record of the run. The CSV includes component labels, eigenvalues, variance percent, and cumulative percent, along with matrix type and preprocessing flags. The PDF provides a compact table suitable for audits and appendices. Include dataset label in filenames. When communicating results, pair eigenvalues with a scree interpretation: look for an “elbow” where successive drops become small, then justify the retained dimensionality with cumulative percent and domain constraints.

FAQs

1) What data shape does the tool expect?

Paste an n×p numeric matrix: rows are observations, columns are variables. Provide at least 2 rows and 2 columns. Up to 20 variables are supported for stable computation.

2) When should I choose correlation mode?

Choose correlation when variables use different units or scales. It standardizes each column, so eigenvalues reflect shared structure rather than magnitude differences. It is common in mixed‑metric surveys and financial ratios.

3) Why does a column with zero variance fail standardization?

Z‑scoring divides by the column standard deviation. If all values are identical, the standard deviation is zero and division is undefined. Remove the constant column or correct the source data, then rerun.

4) How do I decide how many components to keep?

Use cumulative variance percent and the scree pattern. Many workflows retain enough PCs to reach 80–95% cumulative variance. In correlation mode, eigenvalues above 1 can be a quick starting point, then confirm with validation.

5) Can I compute eigenvectors or scores here?

This page focuses on eigenvalues and variance explained. For full PCA loadings and scores, extend the algorithm to accumulate rotation matrices and project data onto retained components. Keep the same preprocessing choices for consistent interpretation.

6) Do exports include my raw dataset?

No. Exports contain results and run settings, not your pasted values. This reduces accidental data leakage while preserving reproducibility. If you need to archive inputs, store them separately using your preferred secure workflow.

Tip If eigenvalues drop sharply, fewer components may suffice.

Related Calculators

PCA CalculatorPCA Data AnalyzerPCA Score CalculatorPCA Explained VariancePCA Component CalculatorPCA Scree PlotPCA Factor ScoresPCA Dimensionality ToolPCA Feature ReducerPCA Data Reduction

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.