Skip to main content
For data (0,0), (1,1) and (2,0), compare f(x)=1−(x−1)2 with g(x)=1/3 using ∑i[yi−h(xi)]2+λ∫02[h′′(t)]2dt. For which λ≥0 does the quadratic have a smaller score than the line?
The quadratic scores 8λ. This is smaller than 2/3 when λ<1/12. At λ=0.1 the quadratic scores 0.8, which is larger, so the straight line wins that comparison.