A one-class SVM with an RBF kernel is trained on normal points with . (a) What does guarantee about the number of training points outside the learned boundary and the number of support vectors? (b) What happens if you set instead, and why would be a poor choice for contaminated data if set too small?
Unsupervised learning, Anomaly detection
Level L2 Elementary. Length Short. Nature Th+Mat Both.
What's being asked
Whether you know the -property of the one-class SVM and can turn it into numbers.
Key idea
is an upper bound on the fraction of training points treated as outliers (outside the boundary) and a lower bound on the fraction of support vectors.
Steps
- The one-class SVM finds a function that separates the data from the origin in feature space with maximum margin. Points with are called outliers.
- The -property: .
- With and : at most training points fall outside the boundary, and at least points are support vectors.
- With the boundary is allowed to exclude up to points and needs at least support vectors. The region shrinks to the dense core, so many normal points are flagged.
- If is much smaller than the true contamination, the boundary stretches to include the anomalies and misses them. If it is much larger, normal points are rejected. So acts as the expected outlier rate.
Common mistakes
- Reading as the exact number of outliers. It is only a bound, and both bounds become close to equalities for large and a suitable kernel.
- Confusing with the RBF width . Both change the shape of the boundary and must be tuned together.
- Forgetting that the model is trained on mostly normal data, so contamination in the training set distorts the boundary.
How long your answer should be
5–6 sentences with the two numbers.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: A Gaussian kernel density estimate with bandwidth is built from the three 1-D points , and . (a) Write and compute for . (b) What does become for , and what does the change in do to the estimate in general?
Next in Unsupervised learning: Five shopping baskets are T1 = {A, B, C}, T2 = {A, B}, T3 = {A, C}, T4 = {B, C, D} and T5 = {A, B, C, D}. Run Apriori with minimum support count 2 to list all frequent itemsets. Then, for the rules and , compute confidence and lift. Which rule shows a real association?