How would you reduce 20,000 gene expression features with only 150 samples for a predictive model?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
You have 20,000 gene expression features and only 150 samples. How would you approach dimensionality reduction for a predictive model?
```hint What the sample size allows
With 150 samples, think about how many components or selected genes a model can really support, and how you would know whether a reduction helped.
```
```hint Where each step runs
Sort your preprocessing and reduction steps by whether they look at the labels, then decide where each one has to run relative to the cross-validation split.
```
### Constraints & Assumptions
- 20,000 gene expression features and 150 samples, so features far outnumber samples.
- The reduced representation feeds a supervised predictive model.
### Clarifying Questions to Ask
- Is the target a class label (for example, a tumor subtype) or a continuous outcome, and how balanced are the classes?
- Is an interpretable gene list part of the goal, or only predictive accuracy?
- Were the samples processed in different batches or at different sites, and is that recorded?
- Is there an external validation cohort, or must all evaluation come from these 150 samples?
### What a Strong Answer Covers
- Why overfitting and selection leakage are the main risks when features far outnumber samples
- Label-free preprocessing and pre-filtering of the expression data
- Several reduction options (unsupervised, supervised, embedded selection, domain-based grouping) and their trade-offs
- How every data-dependent step is kept inside cross-validation, and how the final model is evaluated
- Checks for stability and for confounders such as batch effects
### Follow-up Questions
- How would you show that your selected genes are stable and not an artifact of one split?
- How would you detect and handle a batch effect that dominates the top principal components?
- When would you choose PLS over PCA followed by a regularized model?
- How many genes can a lasso model select here, and why does that matter for correlated genes?
Overview: Asks how to reduce dimensionality for a predictive model built on 20,000 gene expression features and only 150 samples. Tests reasoning about high-dimensional data with few samples, choice of reduction and selection methods, selection leakage, nested cross-validation and batch effects.