The Response Curve

An influence function is the tangent, at $\varepsilon=0$, of the curve $\theta^\star(\varepsilon)$ traced by the minimizer as one observation's weight changes. This page draws the whole curve, marks how fast it is traversed, and lets you bend the observations so that the curve bends too.

Companion pages: Influence Functions, the Kaczmarz Way (lines and projections) and The Price of Influence (the general derivation and the costs).

1. With linear observations the curve is a straight line, traversed at a slowing pace

Take the setting of the companion page: parameters $x\in\mathbb R^2$, observations $a_i^\top x=b_i$ with unit normals, loss $f(x)=\tfrac12\sum_i(a_i^\top x-b_i)^2$, Hessian $H=\sum_i a_ia_i^\top$, and a new observation $(a,\beta)$ added with weight $\varepsilon$. Sherman–Morrison gives the minimizer in closed form: $$x(\varepsilon)=x^\star-\underbrace{\frac{\varepsilon}{1+\varepsilon q}}_{s(\varepsilon)}\;r_{\text{new}}\,H^{-1}a,\qquad q=a^\top H^{-1}a,\quad r_{\text{new}}=a^\top x^\star-\beta .$$ Everything about the shape of the response curve is in this line.

So in parameter space the response curve is a half-line from the pole to the endpoint, the point $x^\star$ sitting somewhere along it. In the space $(x,\varepsilon)$, with the weight as a third coordinate, it is a planar hyperbola: asymptotically vertical above $x(\infty)$, asymptotically horizontal at the pole.

2. Playground

The response curve is drawn in purple with tick marks at $\varepsilon=-\tfrac12,\ \tfrac12,\ 1,\ 2,\ 4,\ 8,\ 32$ and an arrowhead at the $\varepsilon\to\infty$ endpoint. The influence-function tangent is green, with hollow markers at the same $\varepsilon$ values so you can see the first-order prediction pull away from the truth. Drag the scrubber to move along both.

The curvature slider bends every observation from a line into a circle tangent to that line (radius $1/\kappa$). Lines are circles of infinite radius; with finite radius the residual $r_i(x)=1/\kappa-\lVert x-c_i\rVert$ is nonlinear, the problem is a genuine nonlinear least squares, and the response curve stops being straight.

Drag the circle handles to move observations (each handle sits on its observation; the second handle sets its direction). Press and drag on empty space to draw a new (red) observation.

$x^\star$ exact response curve $x(\varepsilon)$ influence tangent $x^\star-\varepsilon H^{-1}\nabla\ell_{\text{new}}$ Gauss‑Newton tangent damped tangent $(G+\lambda I)^{-1}$ $x(\varepsilon)$ at the scrubber first-order prediction at the scrubber
Weight of the new observation ε
pole0∞
Curvature of observations κ
0 (lines)circles of radius 1/κ
Damping λ for the damped tangent

The same curve as a function of $\varepsilon$

Parameter space hides the parameterization. Below, the chosen quantity is plotted against $\varepsilon$ from just above the pole to $\varepsilon=8$, exact in purple and first-order in green (a straight line, since it is a derivative). The dashed vertical line is the pole; the dashed horizontal line is the value at $\varepsilon\to\infty$. For lines the exact curve is a hyperbola with these two asymptotes.

3. What bending the observations changes

With $\kappa>0$ each residual is $r_i(x)=1/\kappa-\lVert x-c_i\rVert$, so $\nabla r_i$ is the unit vector pointing from $x$ toward the center $c_i$ and $\nabla^2 r_i=-\kappa_i(I-uu^\top)$ with $\kappa_i=1/\lVert x-c_i\rVert$: the residual curves along the circle. The Hessian of the total loss picks up a second term, $$\nabla^2 f=\sum_i\Big(\underbrace{\nabla r_i\nabla r_i^\top}_{\text{Gauss–Newton }G}+\underbrace{r_i\,\nabla^2 r_i}_{\text{dropped by }G}\Big).$$ Three things become visible in the playground.

The negative side of the curve is computed by continuation from $x^\star$ and stops where the augmented Hessian at the minimizer loses positive definiteness. That is the pole; for circles it can arrive sooner or later than $-1/q$, and just before it the minimizer accelerates away.