Skip to content
Preptima

Unsupervised & Anomaly Detection interview questions

Clustering and its evaluation, dimensionality reduction, density and isolation methods, and detecting anomalies with no labels to learn from.

3 questions in Machine Learning.

medium3

mediumConceptDesignScenario

You need to flag anomalies and nobody has labelled a single one. How do you build it?

Model what normal looks like and score deviation from it, using distance or density methods, an isolation forest, or reconstruction error from an autoencoder. Then set the threshold from how many alerts the team can investigate per day, because an unlabelled score distribution cannot tell you where to cut.

4 minmid, senior, staff
mediumConcept

When does dimensionality reduction help, and when does it hide the problem?

It helps when features are genuinely redundant, when a downstream method needs dense low-dimensional input, or when you must compress for cost. It hides the problem when PCA's linearity assumption discards the signal, and when a t-SNE or UMAP picture is used as evidence for a modelling decision it cannot support.

4 minmid, senior, staff