Loading…

Principal Component Analysis (pca) Preview

Math Linear Algebra • Applications and Advanced Linear Algebra (capstone)

View all topics

Compute PCA from a data matrix \(X\) (rows = samples, columns = features). The tool centers (and optionally standardizes) the data, builds the covariance matrix, finds eigenvalues/eigenvectors (principal components), reports variance explained, and projects to 2D/3D.

Data matrix \(X\)
Enter numeric values. PCA uses the chosen preprocessing then computes covariance eigenvalues.
Inputs accept -3.5, 2e-4, fractions 7/3, and constants pi, e.
Ready
Results
Eigenvalues
Explained variance (PC1)
Explained variance (PC1+PC2)
Notes
Means (and std if z-score)
Covariance / correlation matrix
Principal components (loadings) \(P\) (columns = PCs)
Projected data \(Z=X_{\text{prep}}P\)
Variance explained table
Graph
Interactive plot with tick values. Choose a view, zoom with wheel/trackpad, drag to pan, double-click to reset. Play animates drawing the scatter and PC arrows.
Step-by-step
Enter data and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

Why do we center the data before PCA?

Centering makes the covariance describe variability around the mean. Without centering, the first component can be dominated by the mean offset rather than spread.

When should I use z-score standardization?

Use it when features are measured in different units or scales. Z-scoring prevents large-scale features from dominating the covariance.

What does “explained variance” mean?

It is the fraction of total variance captured by each principal component. Large explained variance for PC1 indicates a strong dominant direction of spread.

Why might some eigenvalues be near zero?

Near-zero eigenvalues indicate directions with little variability, often meaning the data lies close to a lower-dimensional subspace.