Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.A dial you can read
With a C-SVM, “C = 7.3” tells you little; good values depend on the data’s scale and size. The ν-SVM swaps C for ν (nu), a fraction between 0 and 1 that you can interpret:
- at most a fraction ν of training points may be margin errors (inside the margin or misclassified);
- at least a fraction ν of points will be support vectors.
“I expect about 10% of my labels to be noisy” translates directly into ν ≈ 0.1. In regression, ν-SVR goes further: you no longer choose the tube width ε at all. ν sets roughly what fraction of points may lie outside the tube, and ε adjusts itself to the noise.
ν transfers between datasets better than C: “allow 5% margin errors” means the same thing for 200 or 200 000 telemetry samples, while a good C changes with n and feature scale. ν-SVR’s automatic tube is useful when sensor noise varies between instruments or missions.
- 1. ν is an upper bound on the fraction of…
- 2. ν is a lower bound on the fraction of…
- 3. ν-SVR learns which quantity automatically?
Level 1: Beginner
★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.Why the ν-property holds: counting
In ν-SVC (Chang and Lin’s form) every dual weight satisfies 0 ≤ αᵢ ≤ 1/n, and the weights sum to exactly ν.
Example: n = 10, ν = 0.2. Each αᵢ ≤ 0.1 and Σαᵢ = 0.2.
- Support vectors ≥ 2. Two weights of at most 0.1 are needed to reach a sum of 0.2. So the support-vector fraction is at least 2/10 = ν.
- Margin errors ≤ 2. The KKT conditions force every margin error to have αᵢ = 1/n = 0.1. Three margin errors would already sum to 0.3, above 0.2. So the margin-error fraction is at most ν.
Equivalent C. If the ν-SVM finds margin ρ = 0.5 on n = 10 points, then the C-SVM with C = 1/(nρ) = 0.2 gives the same boundary, with α_C = α_ν/ρ.
The steps in plain English:
- Pick ν as your tolerated fraction of margin errors, such as the expected label-noise rate plus a little.
- Solve the ν-SVM dual: minimise ½αᵀQα subject to 0 ≤ αᵢ ≤ 1/n, Σαᵢyᵢ = 0 and Σαᵢ = ν.
- Read off ρ and b from free support vectors on each side.
- Check: the fractions of margin errors and support vectors should bracket ν.
- 1. n = 50, ν = 0.1: at most how many margin errors?
- 2. Upper bound on each αᵢ in ν-SVC?
- 3. Equivalent C for n = 100, ρ = 0.02?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 35 minUndergraduate students and practising engineers.The formulations
ν-SVC primal (Schölkopf et al., 2000). Minimise ½‖w‖² − νρ + (1/n)·Σξᵢ subject to yᵢ(w·xᵢ + b) ≥ ρ − ξᵢ, ξᵢ ≥ 0, ρ ≥ 0. The margin ρ is itself a variable, rewarded at rate ν.
ν-SVC dual. Minimise ½αᵀQα subject to 0 ≤ αᵢ ≤ 1/n, Σαᵢyᵢ = 0 and Σαᵢ ≥ ν. Chang and Lin (2001) showed the last constraint can be taken as an equality.
ν-property (Schölkopf et al.). If ρ is positive:
- the fraction of margin errors is at most ν;
- the fraction of support vectors is at least ν;
- asymptotically, with probability 1 under mild conditions, both fractions converge to ν.
Equivalence with C-SVM. A ν-SVC with margin ρ gives the same classifier as a C-SVM with C = 1/(nρ). Conversely, a C-SVM solution α corresponds to ν = Σαᵢ/(nC). ν is defined only in a feasible range (ν_min, ν_max], where ν_max = 2·min(n₊, n₋)/n.
ν-SVR. Minimise ½‖w‖² + C·(nνε + Σ max(0, |rᵢ| − ε)) over w, b and ε ≥ 0.
- ε is now a variable with price Cnν.
- In the dual it becomes the multiplier of the constraint Σ(αᵢ + αᵢ*) = Cnν (LIBSVM’s scaling, with 0 ≤ α ≤ C).
- ν bounds the fraction of points outside the tube from above and the fraction of support vectors from below.
from sklearn.svm import NuSVC, NuSVR
clf = NuSVC(nu=0.1, kernel="rbf").fit(X, y)
reg = NuSVR(nu=0.5, C=10, kernel="rbf").fit(X, t) # ε is learned- 1. In the ν-SVC primal the margin ρ is…
- 2. The C-SVM equivalent to a ν-SVM has C =
- 3. In ν-SVR, ε is…
Level 3: Advanced
★★★★☆ Advanced⏱ 30 minGraduate level, with full derivations and proofs.Theory
Proof of the ν-property. Take ρ positive.
- Complementary slackness on ρ gives Σαᵢ = ν.
- Margin errors (ξᵢ positive) have αᵢ = 1/n. So (#margin errors)/n ≤ Σαᵢ = ν.
- Every αᵢ is at most 1/n. So ν = Σαᵢ ≤ (#SV)/n.
The same counting proves the regression version.
Asymptotics. Under i.i.d. sampling and a kernel that is analytic and non-constant (such as RBF), both fractions converge to ν almost surely (Schölkopf et al., 2000). For ν-SVR with Gaussian noise of standard deviation σ, the fraction outside the tube tends to ν, which gives ε → σ·Φ⁻¹(1 − ν/2) = 0.674σ for ν = 0.5. Exercise 2 measured ε/σ ≈ 0.62 at n = 80. That is a little lower, because the fitted function partly absorbs the noise.
What ν does not fix. You still choose the kernel and γ, and ν-SVR still needs C. The ν-SVM is the same family of classifiers as the C-SVM, so a well-tuned C and a well-tuned ν give the same accuracy. The benefit is interpretability and easier transfer of ν between datasets.
Optimisation. The extra equality constraint makes SMO slightly more complex: pairs must come from the same class (Chang and Lin, 2002). ν-SVMs can be infeasible when ν exceeds 2·min(n₊, n₋)/n.
Interview questions.
- How would you set ν for data with about 5% label noise? Slightly above 0.05, for example 0.07–0.1, then check by CV.
- Why can ν-SVR outperform ε-SVR with a fixed ε? A fixed ε is far too wide when the noise is small, while ν-SVR rescales the tube automatically. It is not always better: in exercise 2 a narrow fixed tube won at the largest noise level.
- 1. Asymptotic ε/σ for ν = 0.5 with Gaussian noise?
- 2. ν must not exceed…
- 3. Compared with tuned C-SVM, tuned ν-SVM accuracy is…
Level 4: Expert
★★★★★ Expert⏱ 25 minResearchers: original papers and open problems.Does ν-SVR’s tube track the noise?
History.
- Schölkopf, Smola, Williamson and Bartlett (2000) introduced ν-SVC and ν-SVR.
- Chang and Lin (2001) analysed the ν-SVC dual and its feasible ν range, and (2002) gave its SMO.
- Crisp and Burges (2000) studied the geometry.
- LIBSVM and scikit-learn ship NuSVC, NuSVR and the one-class variant (next page), which uses the same ν idea.
Exercise 1. The ν-property held at every ν: 0.02 ≤ 0.1 ≤ 0.35, 0.18 ≤ 0.3 ≤ 0.50, 0.38 ≤ 0.5 ≤ 0.62 and 0.72 ≤ 0.8 ≤ 0.83. For ν = 0.3 the ν-SVM equalled a C-SVM with C = 1/(nρ) = 7.256, with α_C = α_ν/ρ.
Exercise 2. Setup: y = sin(2x) + Gaussian noise, n = 80, RBF γ = 1, C = 10, ν = 0.5, 2 seeds. ν-SVR is solved as ε-SVR at the ε where Σ|β| = Cnν, found by regula falsi. Each ε-SVR is solved to tight tolerance: with a loose L-BFGS-B tolerance the σ = 0.4 fit stopped far from its optimum, and the first draft of this page wrongly reported ν-SVR winning there.
| noise σ | learned ε | ε/σ | ν-SVR SVs | ν-SVR RMSE | ε-SVR (ε = 0.1) RMSE | ε-SVR SVs |
|---|---|---|---|---|---|---|
| 0.05 | 0.031 | 0.63 | 59% | 0.021 | 0.043 | 14% |
| 0.1 | 0.062 | 0.62 | 58% | 0.041 | 0.045 | 31% |
| 0.2 | 0.123 | 0.61 | 58% | 0.081 | 0.079 | 65% |
| 0.4 | 0.248 | 0.62 | 58% | 0.167 | 0.155 | 87% |
- The tube scales with the noise. ε/σ stayed at 0.61–0.63, a little below the asymptotic 0.674.
- The support-vector share stayed near ν. It held at 58–59%, while a fixed ε = 0.1 swung from 14% (tube too wide for small noise) to 87% (too narrow for large noise).
- ν-SVR won clearly only at small noise. At σ = 0.05 the fixed tube was far too wide (0.043 against 0.021). At σ = 0.1 ν-SVR still led slightly, at σ = 0.2 they tied, and at σ = 0.4 the fixed ε = 0.1 was better (0.155 against 0.167).
- Why a narrow tube can win. A tube narrower than the noise makes SVR behave like robust absolute-error regression, which suits large Gaussian noise well. ν = 0.5’s wider tube discards more information. A larger ν (narrower learned tube) would help at high noise.
- Takeaway: ν-SVR’s real advantage is that one setting gives a sensible, noise-scaled tube everywhere. It does not guarantee the best accuracy, and ν itself is still worth tuning.
ν-SVMs in AI, robotics and aerospace
- Label-noise-aware classification: set ν from the known annotation error rate, for example for crowd-labelled imagery.
- Sensor regression across instruments: ν-SVR’s tube adapts to each instrument’s noise.
- Novelty detection: the one-class SVM (next page) uses ν as the expected outlier fraction.
References
- B. Schölkopf, A. J. Smola, R. C. Williamson, P. L. Bartlett (2000). “New support vector algorithms.” Neural Computation 12(5).
- C.-C. Chang, C.-J. Lin (2001). “Training ν-support vector classifiers: theory and algorithms.” Neural Computation 13(9).
- C.-C. Chang, C.-J. Lin (2002). “Training ν-support vector regression: theory and algorithms.” Neural Computation 14(8).
- D. J. Crisp, C. J. C. Burges (2000). “A geometric interpretation of ν-SVM classifiers.” NeurIPS.
- A. J. Smola, B. Schölkopf (2004). “A tutorial on support vector regression.” Statistics and Computing 14.