A dataset has 500 correlated numeric features and training is slow. Which technique reduces dimensions while keeping most of the variance?
- Exam domain
- Data Manipulation and Preparation23% of the exam
- Difficulty
- Medium
- In this mock
- 11 questions on this domainPractise this domain
Why the exam asks this
Data Manipulation and Preparation (23% of the exam)
Objective in the exam guide: Dimensionality reduction and data sampling
Dimensionality reduction and sampling are named.
Why C is the answer
Principal component analysis (PCA)
PCA projects data onto a few uncorrelated components that keep most of the variance. cuML provides GPU PCA.
Remember: PCA reduces correlated features.
How it works
PCA reduces dimensions; sampling reduces rows. Stratified sampling keeps class proportions.
In detail
- PCA keeps variance in fewer dimensions.
- Fit PCA on training data only.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Sorting the columnsWrong
Sorting changes nothing.
B. Randomly drop 450 features and hope the important ones survive the cutWrongMost tempting
Random dropping can lose signal.
Why it tempts: Dropping columns is quick.
C. Principal component analysis (PCA)Right
PCA reduces correlated features.
D. One-hot encodingWrong
One-hot adds columns.
Use case
An illustrative scenario, not a real incident.
Illustrative: 40 components keep 95% of variance and training runs ten times faster.
See it in different ways
flowchart LR S0["Scale features"] --> S1["Fit PCA on training data"] --> S2["Keep components for 95% variance"] --> S3["Transform all splits"]
How to read this chart
- Read it in order: Scale features, then Fit PCA on training data, then Keep components for 95% variance, then Transform all splits.
mindmap
root(("Reduce"))
n1["Columns"]
n2["PCA"]
n3["Feature selection"]
n4["Rows"]
n5["Random sampling"]
n6["Stratified sampling"]How to read this chart
- The centre is "Reduce".
- "Columns" covers "PCA", "Feature selection".
- "Rows" covers "Random sampling", "Stratified sampling".
Related questions
Learn more
- Our lesson: Data manipulation and preparation with cuDF
- Practise Data Manipulation and Preparation questions in the mock exam
- Source: Decomposing signals in components, PCA (scikit-learn)
- Source: cuML documentation (RAPIDS)
- cuDF documentation (RAPIDS)
- pandas documentation
- Apache Parquet documentation
- Over-sampling (imbalanced-learn)