Let a simple symmetric random walk start from a deterministic integer , and put . Then is a martingale with . The visit count includes time if .
For every integer and step , the pathwise identityholds with . Subtract the indicator function and sum over time to obtainThe sign function of the current state is a bounded predictable process for the next increment, so the sum is a martingale transform. Alternatively, averaging the two possible next absolute values shows directly that the conditional drift is . Bounds and verify integrability at each finite time.
This is an absolute-value version of the discrete Tanaka formula. The correction records the occasions when the random walk is at the corner of the absolute-value function; away from zero that function is locally linear along a single step.
Cauchy principal value Created 2026-09-24 Updated 2026-10-14
The Cauchy principal value assigns an integral a value by a specified symmetric limit. Its simplest example is on : delete , integrate what remains, and obtain zero for every . The positive signed area under a graph cancels the negative one, although each grows without bound as the gap closes. This is a useful cancellation rule, but it does not make the ordinary improper integral exist.
Equal local cutoffs cancel the signed areas of 1/x; unequal cutoffs leave a logarithmic remainder, even when both shrink to zero
. Details. Precisely, let be finite and suppose that the two truncated integrals below exist for every sufficiently small . The local Cauchy principal value at isprovided the combined limit is finite. The same removes equal distances on the two sides of ; the outer endpoints need not be equally distant from . By contrast, the ordinary improper integral requires both one-sided limits to be finite separately before adding them. Whenever those separate limits exist, the Cauchy principal value agrees with their sum.[ref]
For , the natural logarithm givesTheir sum is zero at every positive cutoff, so . This calculation adds two finite truncated integrals and then takes a limit; it never assigns a meaning to . If the left and right deletion widths are instead and , thenThus a ratio tending to produces : choosing gives , and choosing makes the sum tend to . Both widths can tend to zero without selecting a unique answer. The local Cauchy principal value selects the ratio .
Unequal outer endpoints leave a finite contribution even with symmetric local deletion. For ,More generally, for a function with continuous derivative on , subtract its value at the possible simple pole:The quotient in the last integral extends continuously to at . This formula explains both the cancellation and a practical way to compute it: integrate a continuous remainder instead of subtracting two large, nearly equal divergent contributions.
A finite Cauchy principal value is weaker than absolute convergence. Indeed,Taking the absolute value destroys the cancellation. Even the Cauchy principal value need not exist: gives on the same truncated interval. Absolute integrability makes the cutoff prescription unnecessary; an ordinary improper integral can also converge without absolute convergence, as the Dirichlet integral illustrates. The three notions should therefore be checked separately.
There is an independent Cauchy principal value at infinity. For a function integrable on every finite interval, definewhen the limit is finite. The ordinary improper integral instead requires convergence of the two tails separately.[ref] For example, the odd function has no finite singularity and its symmetric integral is always zero, whereas its two tails diverge. Unequal truncations giveLetting as yields . Symmetry at infinity is therefore a separate choice from symmetry near a finite pole. When both are needed, state both prescriptions, for example first take the local Cauchy principal value at fixed and then let ; coupling the two cutoffs requires its own justification.
The local cancellation also defines the principal-value reciprocal distribution. Since is not a locally integrable function across zero, its action on a test function is prescribed byThe test function is smooth with compact support, so the last numerator removes the singular constant contribution: its quotient tends to at zero and vanishes sufficiently far away. This defines a distribution, not a finite pointwise value of at zero. It extends to Schwartz functions as a tempered distribution, and is also the distributional derivative of the logarithmic modulus.[ref]
https://www.math.ucdavis.edu/~hunter/book/ch11.pdf. Hunter and Nachtergaele, Applied Analysis, Chapter 11, Example 11.7, p. 293: principal-value reciprocal distribution
Using an asymmetric local cutoff ratio would add to this action, equivalently adding times the Dirac delta function. Thus the cutoff choice matters even after passing to distributions.Why keep this prescription? A Fourier transform naturally encounters such a kernel. With , pairing and gives, for and ,The cosine contribution is an odd function and cancels locally; the sine contribution has a removable singularity and its tail converges by the Dirichlet integral. This is the Fourier transform of a principal-value reciprocal, with the sign function. The displayed computation is a prescribed limit for each nonzero ; the corresponding Fourier transform identity is understood as an identity of tempered distributions, rather than the transform of an absolutely integrable reciprocal function.
Fourier cancellation for 1/x: the odd cosine contribution disappears, the sine contribution approaches minus i times pi, and the Hilbert transform turns a cosine into a sine
. Details. The Hilbert transform uses exactly this principal-value reciprocal distribution as a convolution kernel. In the convention already used here,for Schwartz functions , with the second identity interpreted through tempered distributions. Hence the singular integral has a simple description as a Fourier multiplier.[ref]
https://ocw.mit.edu/courses/res-18-015-topics-in-fourier-analysis-spring-2024/mitres_18_015_s24_lec21.pdf. Stroock, MIT Topics in Fourier Analysis, Lecture 21, p. 1: principal-value convolution kernel and its Fourier multiplier; signs adapted to the displayed convention
For the bounded pure tone with , the same calculation with symmetric deletion about and symmetric truncation of at infinity gives and . These tones lie outside the Schwartz space; their prescribed Cauchy principal values explain the quarter-cycle shift in the figure. Both figures are calculated mathematical illustrations. Reversing the Hilbert denominator reverses these signs; NIST uses that opposite convention.[ref]https://dlmf.nist.gov/1.14#v. NIST DLMF, equations 1.14.41 and 1.14.46: Hilbert transform and Fourier sign conventions
Dual prediction with a kernel 2026-10-14
If the weight vector lies in the linear span of the training feature map outputs, write . ThenThis is a dual representation: coefficients weight training examples rather than feature coordinates. They need not be positive, and need not be unique when the kernel matrix is singular. Some kernel methods instead write with under their own optimization constraints.[ref]
The kernel trick by Ryan Giordano. Kernelizing classification with support vector machines: displayed prediction as a sum of label-weighted kernel evaluations
The formula is an algebraic conversion for a weight vector in this linear span, not a claim about every possible weight vector. The representer theorem gives a broader reason this form appears in regularized kernel methods.For the XOR separation by a product feature, let have rows . The Gram matrix of those rows, equivalently the kernel matrix, isIts eigenvalues are , so it is a positive semidefinite matrix of rank two, not an invertible matrix. More generally, for any real coefficient vector and any finite set of inputs,This proves the positive-semidefinite kernel condition for the displayed polynomial kernel on all of , rather than checking only this square.
Here , so the explicit choice gives and . ConsequentlyFor the new input , the four polynomial kernel evaluations are . Their weighted sum is , and the sign function predicts . No explicit feature map is needed for this calculation. These coefficients were constructed to reproduce the chosen separator; no fitting algorithm or generalization guarantee is being asserted.
Fenchel–Young inequality Created 2026-09-28 Updated 2026-10-14
The Fenchel–Young inequality says that every input and every slope obeywhere is any proper extended-real function and is its convex conjugate. No convexity assumption on is needed for this inequality: the defining supremum is at least the particular value . If either term on the left is , the inequality still holds, but cannot be an equality because the dot product on the right is finite.
For a proper convex function, equality is equivalent to the subgradient conditionTo see this, with finite, equality says that attains the supremum defining , so for every . Rearranging gives the subgradient inequality . Geometrically, the affine minorant touches at .
If the proper convex function is also closed, meaning its epigraph is a closed set, or equivalently it is lower semicontinuous, thenThe forward implication holds without closedness; the reverse one requires the additional hypothesis in general. Applying the equality criterion to relates to , and the Fenchel-Moreau theorem supplies when is closed. See Bertsekas, Convex Optimization Theory: A Summary, §5.4.1, Proposition 5.4.3 for precisely this distinction.
A concrete failure of the reverse implication occurs for the indicator functional of a constraint set of the open interval . Its convex conjugate is : the endpoint gives the supremum, even though it is excluded from the interval. At , , but , so equality fails and is empty. Closing the interval changes the endpoint value and restores equality there.
For the convex quadratic function , the Fenchel–Young inequality is , and equality holds exactly when . For the absolute value , finite equality requires at , where is the sign function; at every gives equality. These are exactly the subgradients of the absolute value, including its entire interval of slopes at the corner.
Infimal convolution Created 2026-10-05 Updated 2026-10-14
An infimal convolution is the cheapest way to split a prescribed total between two costs. Suppose two activities contribute and to a required total , costing and . Their combined cost is optimized over all splits , rather than charging both activities for the entire total.
For proper extended-real functions on a real vector space , defineThe definition does not require convexity. An infinite cost forbids that contribution, as with an indicator functional of a constraint set. If no split has two finite costs, set ; if the costs of admissible splits are unbounded below, . Thus proper inputs need not produce a proper extended-real function. The notation denotes the same operation. See Parikh and Boyd, Proximal Algorithms, §3.1 for the standard convex analysis definition and its connection to the Moreau envelope.
An infimum is a best lower bound, whereas a minimum is a value realized by some split. Writing in place of requires an attaining pair . For convex functions, mixing two nearly optimal splits and applying convexity to each cost proves that their infimal convolution is convex whenever it is proper; one must use nearly optimal splits because exact minimizers need not exist. Its convex conjugate is whenever the extended real number arithmetic is well defined; see conjugate of an infimal convolution for the precise identity. This turns the optimization over splits into addition in the conjugate variables.
Two quadratic costs: share the load according to its price. Let and let the convex quadratic functions beFor fixed , eliminate . The derivative of the total cost is , so equal marginal costs giveThe cheaper activity receives more of a positive total: when and , . Completing the square gives an exact certificate for every competing split:Consequently the infimum is a unique minimum, andThe effective quadratic coefficient is , with . It is smaller than either or : allowing both activities reduces the cost compared with assigning everything to either one. If , each receives half the total and . This is a simple quadratic optimization problem whose answer preserves the form of the original costs.
Optimizing the split of two quadratic costs gives a cheaper quadratic total cost
. An exact illustrative calculation, not measured data: , and give and cost , compared with cost for an equal split. The right panel compares the optimized cost with assigning the whole total to either activity. Details.Smoothing a corner by splitting its cost. Take the absolute value function and the convex quadratic function , with . This infimal convolution is the Moreau envelope of the absolute value function:Here is the sign function, with . The optimal is soft thresholding. In the central region, the quadratic function carries the whole total; outside it, stays at and the absolute value function carries the excess. At the result is the Huber loss in the normalization near zero and outside. Its derivative is for and outside, so the corner becomes a continuous change of slope. Parikh and Boyd's [ref]
https://web.stanford.edu/~boyd/papers/pdf/prox_algs.pdf#page=18. §3.1 discussion of Moreau smoothing
uses twice this normalization for the Huber loss; the explicit formula here fixes the convention. This is also the one-dimensional case of the existing Moreau envelope of the Euclidean norm. Influence function of the mean 2026-10-14
For the statistical functional , assuming , the contaminated mean is exactlyThus the influence function of the mean is , and its gross-error sensitivity is infinite on an unbounded sample space. The linear approximation is exact here: any fixed positive contamination fraction allows an arbitrarily large change by moving far enough. No finite second moment is needed for this derivative, although a finite variance is needed for the usual central limit theorem for the sample mean.
For comparison, the influence function of the sample median iswhen the median is unique and the probability density function is positive and continuous at . The sign function records which side of receives the contaminating mass. The influence function of a quantile supplies the short derivation. With the generalized-inverse quantile convention, contamination exactly at leaves the median at , giving derivative zero there. If is very small, this bounded influence function can still be large; if , the displayed formula is unavailable.
Kinetic friction Created 2026-10-14 Updated 2026-10-20
Kinetic friction is friction during nonzero contact slip. For one-dimensional motion along a surface, choose right as positive and write for the body's contact-point velocity and for the surface's contact-point velocity, both measured in the same inertial frame. The signed relative velocity is . The ideal Coulomb law for the tangential force on the body isHere is the magnitude of the normal force, is the coefficient of kinetic friction, and is the sign function. Thus kinetic friction opposes contact slip, which can differ from the body's direction of motion. In several tangential directions the same law reads for a nonzero tangential relative velocity . The magnitude law is documented in Ling, Sanny and Moebs, OpenStax University Physics 1, §6.2: static and kinetic friction.
For a stipulated toy model, take a nonrotating box with mass , normal force , coefficient of static friction , and coefficient of kinetic friction . These are assumed model parameters, rather than measured properties of any particular pair of materials; the prescribed normal force is consistent with horizontal support under and no other vertical forces. On stationary ground, a box already sliding right has . With an applied horizontal force to the right, Newton's second law gives , for as long as rightward contact slip persists.
Direction is clearer by comparing two instantaneous states of this same model. If the box has on stationary ground, and , so kinetic friction acts left with magnitude . If the box still has but a belt beneath it has , then : kinetic friction acts right with magnitude , even while the box moves right.
The same rightward box velocity gives opposite friction directions on stationary ground and a faster moving belt
. Details. In the belt case, the power delivered to the box is . With no other horizontal force, its kinetic energy therefore increases by the work-energy theorem. By Newton's third law, the box exerts on the belt, so the contact power delivered to the belt is . Their sum is : frictional heating produces thermal internal energy at . An ideal motor maintaining the prescribed belt velocity supplies against this contact load, neglecting other losses, so its input divides into of box kinetic energy and of frictional heating. These are instantaneous rates, since the box's velocity subsequently changes. This balance follows directly from power as force times velocity and conservation of energy; the power law is given in Ling, Sanny and Moebs, OpenStax University Physics 1, §7.4: power.
When contact slip vanishes, including a transition to rolling without slipping, the nonzero-slip law no longer applies. Determine the required static friction from the no-slip condition and the equations of motion, then test its bound. Substituting into the sliding law would incorrectly exclude a nonzero static friction.
Use weighted decision stump optimization with the convention , and write . For each coordinate , sort the examples by their th coordinate and group all equal coordinate values. For a threshold between the th and st distinct values, the decision stump predicts on the left and on the right. Its weighted misclassification risk isStart with a threshold below the minimum observed value. Every prediction is then , and the initial error is . Sweep the threshold from left to right. When it passes an entire group of equal coordinate values, that group's prediction changes from to , so updateRecord the smallest value and a threshold achieving it, including the final threshold above all observations, which predicts everywhere on the sample. Representatives can be chosen strictly between successive distinct values; the two outer representatives are finite real numbers below the minimum and above the maximum.
Every threshold has exactly the same sample predictions as one of these representatives. In particular, if a threshold equals an observed value, the equality group is on the side under the chosen sign function convention, which duplicates the representative immediately before that group. Thus the sweep includes every possible sample labelling by the stated decision stump. Repeating for all coordinates and returning the globally smallest error proves optimality.
Sorting costs per coordinate and the grouped sweep costs . The overall time complexity iswith working storage when coordinates are processed one at a time. Pre-sorted coordinate orders can be reused across repeated AdaBoost rounds, leaving work per round for changing weights. The paper allows only the orientation ; reversing its polarity would enlarge the hypothesis class and is unnecessary here.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 29 1 c Solution Created 2026-10-03 Updated 2026-10-14
Again put . For any fixed real , the random variableis nonnegative and integrable. The sign function of is bounded and -measurable, so conditioning and equality of the probability distributions giveThus almost surely. On this forces ; on it forces ; on it forces . In particular up to a null set. These two events have equal probability, again by equality of the probability distributions, so they agree up to a null set. ConsequentlyTaking establishes the suggested sign assertion, but this alone would not exclude unequal positive values. Apply the same argument simultaneously to the countable set of rational . Outside the union of their null sets, unequal and would have a rational strictly between them, giving opposite signs. This proves the conditional expectation preserving a distribution result:Only integrability was used; no finite second moment or hidden square-integrability assumption is needed.
Past exam of the mathematics course of the University of Cambridge 2010 ia Paper 1 12F c Solution Created 2026-09-24 Updated 2026-10-14
The zeros of occur atLet . At these nonzero points,The definition of the derivative gives , henceThe sign function is constant sufficiently near the nonzero point , and . As , multiplication yieldsIts right and left one-sided derivatives are therefore and respectively. They differ, so is not differentiable at any . In particular, as , provingThe absolute value at a simple zero mechanism creates unequal one-sided derivatives. It also shows why the existence of alone does not imply higher-order differentiability at a point of order two.
Past exam of the mathematics course of the University of Cambridge 2010 ia Paper 1 12F d Solution Created 2026-09-24 Updated 2026-10-14
Away from zero and the zeros of , the sign function is locally constant and the absolute value function is differentiable at the value of the cosine. The product rule and chain rule giveThus the triangle inequality and the bounds on sine and cosine imply . Part (c) rules out differentiability at every nonzero cosine zero, and part (b) gives , so this estimate covers every point where the derivative exists.
For a finite interval , choose such that throughout . ThenThe apparent factor in the derivative of the oscillation cancels against the multiplying , which is what makes a uniform bound possible even near zero.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 36 1 a Solution Created 2026-10-03 Updated 2026-10-07
Let be the support of a vector , with . Suppose the null space property holds. Every other feasible vector is , where . Splitting its L1 norm over and and using the triangle inequality givesThus the sparse vector is the unique minimizer in basis pursuit. Notice that the argument works for complex coordinates: it uses the absolute value inequality, rather than a real sign function.
Conversely, suppose basis pursuit uniquely recovers every sparse vector of order . Fix and any with . Take and . These vectors have the same measurements, because , and they are distinct since . The vector has at most nonzero coordinates, so uniqueness givesThis is the null space property for every such . Uniform unique recovery by basis pursuit is equivalent to the order- null space property.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 36 3 a Solution 2026-10-07
Let , using the real sign function on the support of a vector . The fixed-sign null space condition in the PDF uses on its right-hand side. This complement is essential. For any real coordinate , the supporting-line inequality for the absolute value isEvery distinct feasible vector is with . Summing the coordinate inequalities on and adding the L1 norm on givesThe strict final inequality is precisely the fixed-sign null space condition. Hence is the unique basis pursuit minimizer. Unlike the null space property of Question 1, this condition concerns the particular sign function values of , rather than every vector supported in .
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 36 3 b Solution 2026-10-07
Assume is the unique basis pursuit minimizer. Fix and setThere is such that the sign function of equals that of at every whenever . To choose it, take less than the minimum of over the nonzero in ; if that set is empty, any positive works. On this interval the L1 norm has the exact expressionFor , both and are distinct feasible vectors. Uniqueness forces their objective differences to be strictly positive, so and . ThereforeThe fixed-sign null space condition is necessary as well as sufficient. This argument also covers an empty support of a vector: then and the nonzero null space vector has . Strictness is indispensable: equality would make a sufficiently short feasible segment have the same objective as .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 205 3 Solution Created 2026-10-03 Updated 2026-10-06
Fix the normalizationThe Lasso penalty uses the L1 norm. All arguments below apply to every minimizer; uniqueness of the coefficient vector is not assumed.
The Karush-Kuhn-Tucker conditions are the subgradient optimality conditionThese conditions are necessary and sufficient because the objective is a convex function. They use the subgradient of the absolute value, coordinate by coordinate.
Put . Centered columns imply , so the subtraction of in the model contributes nothing to the score. The Karush-Kuhn-Tucker conditions becomeMultiply by . Since and , this gives the prediction inequality from Lasso stationarity:This is the desired version of the Basic inequality for the Lasso. Using stationarity directly preserves the coefficient on the squared prediction norm.
For the Gaussian score event for the Lasso, write for column . The assumed Euclidean norm and the multivariate normal distribution of giveThe may be correlated, which does not affect the union bound. Use the following sharp two-sided Gaussian tail bound, valid for with the standard normal distribution and every :For completeness, the difference satisfies , , and as . It first increases and then decreases to zero, so it is nonnegative. This bound avoids introducing an unnecessary factor two.
Here is the standard normal distribution function. With , the union bound yieldsConsequentlyThe score event uses the supremum norm of ; the centering term still vanishes because .
We next work deterministically on . LetBy Holder inequality, . Since , the triangle inequality givesSubstituting both inequalities into the Basic inequality for the Lasso producesBecause , this also proves the relevant Lasso cone condition, . The assumed Compatibility condition for the Lasso therefore applies to :Set . Combining these inequalities givesIf , discarding the nonnegative term shows . If , compatibility gives , and the preceding inequality then gives . In either case , soThis is a fast prediction bound and an inactive-coordinate error bound on the same event. It is the fast-rate Lasso prediction bound under compatibility.
Finally, the same argument bounds the active-coordinate L1 norm byIf , then , and . When this implies ; when it implies . Thus the sign function obeysThis is Lasso sign recovery under compatibility. It concerns the sufficiently large nonzero coefficients; it does not assert that every estimated inactive coefficient is zero.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 202 3 b Solution Created 2026-10-03 Updated 2026-10-05
The Tanaka equation is an example:It has weak solutions and uniqueness in law, but lacks pathwise uniqueness. The value is deliberate: using the sign function with value zero at zero would admit the identically zero solution and would change the example.
For a quick verification, take a Brownian motion and put . Its quadratic variation is , so it is a Brownian motion by the Lévy characterization of Brownian motion, and associativity of stochastic integration gives . Every weak solution likewise has quadratic variation and therefore the law of Brownian motion. On this same enlarged filtration, both and solve the equation driven by : away from zero, and the Brownian zero set has zero time measure, so the discrepancy at zero contributes nothing to the Itô integral. These solutions differ with positive probability at any positive time. This proves the claimed distinction without relying on a choice of zero convention left unstated.
The distributional derivative is defined by for every test function. For the Heaviside function, compact support givesThus . Splitting the integral for at zero and using integration by parts gives its first derivative as the sign function. The jump of that function at zero is two, soas distributions. The value assigned to the sign function at the single point zero does not affect its associated distribution.
Strict dual certificate for basis pursuit 2026-10-07
For a real vector with support of a vector , this certificate is a vector whose measurements under the adjoint operator match the active sign function values and lie strictly between minus one and one on the inactive coordinates. If is injective, such a certificate proves that is the unique basis pursuit minimizer. For a nonzero , injectivity ensures , and implies the fixed-sign null space condition. The strict inequality is interpreted coordinatewise if is empty. The condition with the sign function written here is for real variables; complex basis pursuit uses the unit phases of active coordinates instead.





