Expand around the expectation :
Thus variance as the minimum mean squared error of a constant gives
The finite second moment also guarantees the finite first absolute moment needed below.
For a probability density function , splitting at gives
Let be the cumulative distribution function. Since a density gives no mass at a singleton, differentiating under this integral yields . This derivative is nondecreasing, so is convex and
This is the median minimizes expected absolute loss property. The minimizer need not be unique: a gap in the density can give an interval of medians, all with the same loss.
The bounded classical solution is the heat-kernel convolution
The two-dimensional heat kernel has integral one. Boundedness of permits differentiation under the integral for , proving and . Its approximate identity property gives , locally uniformly since is continuous. This bounded solution satisfies the required Gaussian-growth bound.
For heat-equation uniqueness under Gaussian growth, let be the difference of two solutions, so and on a finite time interval. Choose and a slab . The positive comparison solution
satisfies . For any , its faster spatial growth makes on a sufficiently large lateral cylinder boundary. At the initial boundary, . The heat equation maximum principle applied to proves the same inequality inside. First allow the cylinder radius to increase, then let . Repeating these slabs proves uniqueness on every finite interval with the stated uniform growth bound. No spatial integrability of is required.
At time , this is Gaussian filtering with covariance , hence per coordinate. With the angular-frequency Fourier transform convention , the Gaussian filtering Fourier multiplier is
For merely bounded , this identity is understood through tempered distributions. The multiplier leaves the zero frequency unchanged and attenuates large frequencies exponentially: it suppresses rapid noise fluctuations but blurs image edges. In cycles-per-length frequency , the multiplier is .
For the printed Perona-Malik equation, retain the supplied conductance , which includes an extra factor . In one dimension write and . Then , with
The forward-backward threshold for gradient-weighted exponential diffusion is therefore
At and the coefficient vanishes, giving degenerate diffusion. Increasing increases the forward-diffusion range. Small nonzero slopes smooth, while large slopes formally sharpen; a negative coefficient produces short-wave growth and ill-posedness, so this is a dynamics explanation, not a general existence theorem for arbitrary data. Replacing the printed conductance by would give threshold , but that is a different equation.
The four-neighbour mean expansion follows by Taylor expansion: opposing first and third derivatives cancel, so
If for every sufficiently small , division by and passage to the limit give . This is a pointwise conclusion; it does not assert harmonicity in a whole neighbourhood.
For the area median over the disk, the disk-median curvature expansion, at a point where , is
Consequently the analogous median fixed-point condition yields
This is the vanishing of the level-line curvature at : to second order the level line is straight there. It need not be a straight segment. For example has zero disk median at the origin for every radius, by odd symmetry, but its zero level line is the cubic . Vanishing curvature on an entire connected regular level arc would force that arc to be straight. The factor is for the disk's uniform area measure; a circle-boundary median has a different scale factor, while producing the same zero-curvature equation.
Put for . This is the quantile function, rather than an ordinary inverse requiring strict increase. The limits of the distribution function at infinity make finite, and the fact that is a right-continuous function ensures . Consequently
Increasing shrinks the set in the infimum, so the quantile function is a monotone function. To prove the left continuity of the quantile function, fix and let . If , choose . Then , so some satisfies , a contradiction. Thus as . At a flat stretch of the distribution function, the quantile function may jump immediately to the right, consistent with this left-continuous convention.
For the uniform order statistic, count the observations at most . That count has the binomial distribution with parameters , giving
Differentiating makes adjacent terms telescope: use and . The probability density function is therefore
In particular, has the Beta distribution with parameters .
Write for the specified median. Continuity of the distribution function gives and no mass at , even if the distribution function has a flat stretch there. Thus has the binomial distribution with parameters . Except on a null event, the order-statistic confidence interval for a median covers exactly when . Symmetry of the binomial distribution makes its two failure probabilities equal. Alternatively, the probability integral transform gives
Hence the coverage is exactly , with
The asymmetric open/closed endpoint convention does not change the coverage because the continuous probability distribution assigns no mass to the median.
Write . Besides Talagrand's convex distance inequality, we use the precise squared edge bound for tours in the unit square stated above and the triangle inequality, which permits shortcutting a closed walk without increasing its length. We first prove the geometric comparison that connects these results.
For each fixed , choose a cyclic tour with edge lengths satisfying . At vertex , let be the sum of the lengths of its two incident edges in . The Cauchy-Schwarz inequality gives
We claim the weighted mismatch bound for Euclidean tours:
To prove it, keep the vertices whose coordinates agree. In the cyclic ordering , the deleted vertices split into consecutive runs between kept vertices. For one run, let denote its two boundary edge lengths and the sum of its internal edge lengths. Starting at the left kept endpoint, visit the run and return along the same path, at cost ; starting at the right endpoint costs . Choose the cheaper detour. Its cost is at most
which is exactly the sum of over that run. Attach these detours to a shortest tour through , which already visits every kept point. The resulting closed walk visits all points of ; shortcut it using the triangle inequality. Summing the detour costs proves the claimed weighted mismatch bound for Euclidean tours. If there is just one kept vertex, the same argument uses that vertex as both endpoints of the unique run. If there are no kept vertices, proves the comparison directly. Repeated point locations cause no difficulty, since their connecting edges may have length zero.
Let be any median of and set . For , the weighted mismatch bound for Euclidean tours implies
The weights have squared sum at most one, so . Since , Talagrand's convex distance inequality yields
For the lower tail, put . If there is nothing to prove. For every with , apply the same weighted mismatch bound for Euclidean tours with its weights and all . It gives . The set of such has probability at least , so Talagrand's convex distance inequality instead gives
Combining both tails,
The bound has a constant fluctuation scale, independent of . Only independence of the point coordinates and their support in the square are needed here; their uniform distribution was needed for the earlier lower bound on the expected value.
The useful form is Talagrand's convex distance inequality. Let be standard probability spaces, let carry the product measure , and let be a measurable event with . For , form the mismatch vectors
The Talagrand convex distance is the distance from zero to their closed convex hull:
Equivalently, by the Hahn-Banach separation theorem for two convex sets,
Nonnegative weights suffice because every mismatch vector has nonnegative coordinates. Talagrand's convex distance inequality states
In particular, Markov's inequality gives the product-space concentration inequality
The same conclusion is interpreted with outer probabilities if a distance set is not measurable; the continuous geometric function used below has measurable level sets. A median of a real random variable means that and . Applying the displayed concentration inequality to suitable level sets will control deviations around a median.
For a nonnegative continuous event time, the survivor function is ; here the printed denotes survival, not the usual cumulative distribution function. A lower median is
For a continuous strictly decreasing survivor function this is the unique solution of . If the curve has a flat stretch at , the distribution has a nonunique median and the infimum specifies the lower endpoint.
The tail integral formula for moments follows from and Tonelli theorem. Therefore, when survival vanishes beyond ,
If at every finite time, the mean is finite precisely when . For a concrete sufficient condition, require for all , with and . The integral over is at most , and the tail integral is at most . An exponential tail bound also suffices. Merely having , or even , does not suffice: a properly completed decreasing tail proportional to for has infinite mean.
Let be the distinct observed event times, the risk set size immediately before , and the events there. Under independent censoring, the Kaplan–Meier estimator is
It starts at one, jumps down at events, and is unchanged by a pure censoring time; right censoring removes people from subsequent risk sets. If events and censorings coincide, the convention here processes events before censoring, so those censored at the recorded time are included just before the event. The estimated median is the first time the curve reaches or falls below . If it never does during observation, the median is not estimable from the observed curve without tail assumptions.
With one remaining individual censored at , no event factor is introduced. Hence
This is the terminal observed step value. With an empty risk set after , continued horizontal plotting is a convention and supplies no information about the true later survivor function. The tail rests on one person and is imprecise; this is terminal censoring and survival-mean identifiability. If , the unrestricted mean cannot be obtained nonparametrically from this censored tail: extending the last positive step to infinity would give an infinite area, which does not establish an infinite population mean. A restricted mean survival time up to a suitably supported finite cutoff remains estimable.
Normalization of the probability density function gives
so
The expected value is
The second moment is
Therefore the variance is
For the median ,
so
Expanding around the expected value ,
because . Therefore
with equality exactly when .
For the absolute loss,
Leibniz differentiation gives, with ,
Thus decreases while and increases while . It is minimized at any median, characterized in the continuous case by
Let be the unique median. The influence function of the sample median is
away from . Its second moment, equivalently the asymptotic distribution of a sample median, gives
No symmetry assumption is used: the density is evaluated at the actual median of .
Choose a fixed . On the stated high-probability event, strictly more than half of the block means satisfy, simultaneously for every ,
The median of a collection with a strict majority in an interval lies in that interval. Hence the same bound holds for uniformly in . Part b then gives
with probability at least . Renaming the constant proves the claim.
Complementing every friendship sends every degree to , and hence sends to . Since the random graph and its complement have the same law, the distribution of is symmetric about , giving .
The same symmetry gives equal probabilities strictly below and above . There is positive probability at : for odd use a regular graph of degree ; for even , use with a perfect matching removed and then restore one matching edge. Thus the lower median as defined is also .