When would you use One-Class SVM for outlier detection?

Quick Overview

Asks when One-Class SVM is a sensible choice for detecting outliers or novel points and when another method would serve better. Tests understanding of novelty detection, kernel boundaries, the nu and gamma parameters, feature scaling, and how training cost and contamination limit the method.

When would you use One-Class SVM for outlier detection?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

When would you use `One-Class SVM` for outlier detection? ```hint Look at the training data Think about what the method assumes the training set contains, and how its cost grows with the number of rows. ``` ### What a Strong Answer Covers - What One-Class SVM learns and the kind of training data it assumes. - When its flexible boundary helps compared with simpler methods. - What `nu` and `gamma` control and how to set them without labeled outliers. - When to choose something else: dataset size, contaminated training data, unscaled features, labeled anomalies. ### Follow-up Questions - How would you tune `nu` and `gamma` when you have no labeled anomalies? - Your training set has 2 million rows. How would you still get a kernel boundary, or what would you use instead? - How does One-Class SVM compare with Isolation Forest and Local Outlier Factor? - When would you skip unsupervised detection and train a classifier?

Overview: Asks when One-Class SVM is a sensible choice for detecting outliers or novel points and when another method would serve better. Tests understanding of novelty detection, kernel boundaries, the nu and gamma parameters, feature scaling, and how training cost and contamination limit the method.

PracHub logo
General
Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

When would you use One-Class SVM for outlier detection?

What a Strong Answer Covers Guidance

  • What One-Class SVM learns and the kind of training data it assumes.
  • When its flexible boundary helps compared with simpler methods.
  • What nu and gamma control and how to set them without labeled outliers.
  • When to choose something else: dataset size, contaminated training data, unscaled features, labeled anomalies.

Follow-up Questions Guidance

  • How would you tune nu and gamma when you have no labeled anomalies?
  • Your training set has 2 million rows. How would you still get a kernel boundary, or what would you use instead?
  • How does One-Class SVM compare with Isolation Forest and Local Outlier Factor?
  • When would you skip unsupervised detection and train a classifier?