Explore the Ionosphere
Guided project · 14 steps · Principal component analysis
About
Radar returns from the ionosphere (Johns Hopkins). You reduce 34 continuous features to a few components and see whether "good" vs "bad" returns separate in PC space.
Data
Loaded from /datasets/ionosphere/ionosphere.data. No missing values. Labels are for visualization only—PCA itself is unsupervised. Source dataset is licensed under CC BY 4.0 with attribution to UCI.
Task
Standardize features, fit PCA, read a scree plot, project onto PC1–PC2, color by class, and inspect which original attributes load strongly on PC1.
Sign in to run cells and save progress. Log in or sign up.
Step 1: Imports
Step 2: Data path
Step 3: Load the CSV
Step 4: Shape and head
Step 5: Class balance
Step 6: Feature matrix and color labels
Step 7: Scale features
Step 8: Fit full PCA (all components)
Step 9: Scree plot
Step 10: Two-component PCA
Step 11: 2D projection scatter
Step 12: Variance captured in 2D
Step 13: PC1 loadings (which features matter)
Step 14: Bar chart of top PC1 loadings