L1-regularized quadratic function: Difference between revisions
(Created page with "==Definition== A <math>\ell^1</math>-regularized quadratic function of one variable is a function of the form: <math>f(x) := ax^2 + bx + c + \lambda|x|</math> where <math>a...") |
|||
| Line 20: | Line 20: | ||
The first derivative is undefined at <math>x = 0</math>. At this point, the left-hand derivative is <math>b - \lambda</math> and the right-hand derivative is <math>b + \lambda</math>. | The first derivative is undefined at <math>x = 0</math>. At this point, the left-hand derivative is <math>b - \lambda</math> and the right-hand derivative is <math>b + \lambda</math>. | ||
The derivative function is therefore a piecewise linear function with a jump discontinuity at zero. | |||
===Second derivative=== | ===Second derivative=== | ||
| Line 28: | Line 30: | ||
The second derivative is undefined at zero. | The second derivative is undefined at zero. | ||
==Points and intervals of interest== | |||
===Critical points=== | |||
As noted above, we have the following expression for the derivative: | |||
<math>f'(x) = \left\lbrace \begin{array}{rl} 2ax + (b + \lambda), & x > 0 \\ 2ax + (b - \lambda), & x < 0 \\\end{array}\right.</math> | |||
We have at least one and at most three critical points. The three candidates are discussed below. | |||
{| class="sortable" border="1" | |||
! Critical point !! Case that it occurs !! Description of critical point | |||
|- | |||
| 0 || Always || The function is not differentiable at the point. The left-hand derivative is <math>b - \lambda</math> and the right-hand derivative is <math>b + \lambda</math>. | |||
|- | |||
| <math>\frac{-(b + \lambda)}{2a}</math> || The case that <math>\frac{-(b + \lambda)}{2a} > 0</math> || It is the unique critical point for the quadratic piece for <math>x > 0</math>. It occurs if and only if the critical point for that piece happens to fall within that piece definition. | |||
|- | |||
| <math>\frac{-(b - \lambda)}{2a}</math> || The case that <math>\frac{-(b - \lambda)}{2a} < 0</math> || It is the unique critical point for the quadratic piece for <math>x < 0</math>. It occurs if and only if the critical point for that piece happens to fall within that piece definition. | |||
|} | |||
Revision as of 17:25, 11 May 2014
Definition
A -regularized quadratic function of one variable is a function of the form:
where .
The function has a piecewise quadratic function definition:
Differentiation
First derivative
The expression for the first derivative is obtained from the piecewise definition of the function, using the differentiation rule for piecewise definition by interval. We obtain the expression:
The first derivative is undefined at . At this point, the left-hand derivative is and the right-hand derivative is .
The derivative function is therefore a piecewise linear function with a jump discontinuity at zero.
Second derivative
The second derivative is defined as:
The second derivative is undefined at zero.
Points and intervals of interest
Critical points
As noted above, we have the following expression for the derivative:
We have at least one and at most three critical points. The three candidates are discussed below.
| Critical point | Case that it occurs | Description of critical point |
|---|---|---|
| 0 | Always | The function is not differentiable at the point. The left-hand derivative is and the right-hand derivative is . |
| The case that | It is the unique critical point for the quadratic piece for . It occurs if and only if the critical point for that piece happens to fall within that piece definition. | |
| The case that | It is the unique critical point for the quadratic piece for . It occurs if and only if the critical point for that piece happens to fall within that piece definition. |