Maximum updates
—
k ≤ R² / γ² = —
Squeeze Visualization
Lower (k²γ²)
Upper (kR²)
Actual ||wk||²
Data & Boundary
Parameters
R² / γ²
16
Experiment
Generate random linearly separable data with these R and γ parameters, train a perceptron, and compare actual steps vs. the bound.
How It Works
Lower bound: $(\mathbf{w}^* \cdot \mathbf{w}_k)^2 \ge k^2\gamma^2$
Upper bound: $\|\mathbf{w}_k\|^2 \le kR^2$
Cauchy-Schwarz: $k^2\gamma^2 \le \|\mathbf{w}^*\|^2 \cdot kR^2$
With $\|\mathbf{w}^*\|=1$: $k \le R^2/\gamma^2$