A negative source correlation shrinks by magnitude, then copies the negative sign back into the exact numerator.

highlighted = computed this step

Make the source negative

Use the same x values 1, 2, and 3, but flip the y values to -2, -4, and -6. The source sum is sum xy=-28 and sum x squared is still 14.

xy=28,x2=14\sum xy=-28,\quad \sum x^2=14
Negative Source Keeps Its SignExact sign-copy shrinkage for a negative source correlation.negative source keeps its signquantityexact valuewhy it is shownΣxy-28negative sourceΣx^214denominator|Σxy|28shrink magnitude sourcesign(Σxy)-1copy sign after shrinkmax(|Σxy|-λ,0)21positive magnitudenumerator-21sign times magnitudew-3/2divide by Σx^2sign(Σxy)*max(|Σxy|-λ,0)/Σx^2sign copied after shrinking magnitudeone exact sign/shrinkage exampleλ is chosen before the solve; L1 can hit exact zeroNOT convergence; NOT training; NOT learningNOT general feature selection; NOT generalization; NOT future-data proofNOT accuracy; NOT calibration; NOT probability truth; NOT model quality

Shrink the magnitude

With λ=7, shrink the magnitude: max(|-28| minus 7, 0)=21. The sign has not been copied back yet.

max(287,0)=21\max(|-28| - 7,0)=21
Negative Source Keeps Its SignExact sign-copy shrinkage for a negative source correlation.negative source keeps its signquantityexact valuewhy it is shownΣxy-28negative sourceΣx^214denominator|Σxy|28shrink magnitude sourcesign(Σxy)-1copy sign after shrinkmax(|Σxy|-λ,0)21positive magnitudenumerator-21sign times magnitudew-3/2divide by Σx^2sign(Σxy)*max(|Σxy|-λ,0)/Σx^2sign copied after shrinking magnitudeone exact sign/shrinkage exampleλ is chosen before the solve; L1 can hit exact zeroNOT convergence; NOT training; NOT learningNOT general feature selection; NOT generalization; NOT future-data proofNOT accuracy; NOT calibration; NOT probability truth; NOT model quality

Copy the sign back

Because the source sum is negative, the numerator is -1 times 21 = -21. Divide by 14 to get w=-3/2.

w=2114=3/2w={-21\over 14}=-3/2
Negative Source Keeps Its SignExact sign-copy shrinkage for a negative source correlation.negative source keeps its signquantityexact valuewhy it is shownΣxy-28negative sourceΣx^214denominator|Σxy|28shrink magnitude sourcesign(Σxy)-1copy sign after shrinkmax(|Σxy|-λ,0)21positive magnitudenumerator-21sign times magnitudew-3/2divide by Σx^2sign(Σxy)*max(|Σxy|-λ,0)/Σx^2sign copied after shrinking magnitudeone exact sign/shrinkage exampleλ is chosen before the solve; L1 can hit exact zeroNOT convergence; NOT training; NOT learningNOT general feature selection; NOT generalization; NOT future-data proofNOT accuracy; NOT calibration; NOT probability truth; NOT model quality

What this example says

This is one exact sign/shrinkage example. Lambda is chosen before the solve. It is NOT convergence, NOT training, NOT learning, NOT general feature selection, NOT generalization, NOT future-data proof, NOT accuracy, NOT calibration, NOT probability truth, and NOT model quality.

sign(xy)max(xyλ,0)/x2\operatorname{sign}(\sum xy)\max(|\sum xy|-\lambda,0)/\sum x^2
Negative Source Keeps Its SignExact sign-copy shrinkage for a negative source correlation.negative source keeps its signquantityexact valuewhy it is shownΣxy-28negative sourceΣx^214denominator|Σxy|28shrink magnitude sourcesign(Σxy)-1copy sign after shrinkmax(|Σxy|-λ,0)21positive magnitudenumerator-21sign times magnitudew-3/2divide by Σx^2sign(Σxy)*max(|Σxy|-λ,0)/Σx^2sign copied after shrinking magnitudeone exact sign/shrinkage exampleλ is chosen before the solve; L1 can hit exact zeroNOT convergence; NOT training; NOT learningNOT general feature selection; NOT generalization; NOT future-data proofNOT accuracy; NOT calibration; NOT probability truth; NOT model quality