Put , , and . Componentwise,
Thus the James–Stein shrinkage toward the sample mean leaves the average unchanged and multiplies every contrast about it by the same data-dependent factor . If the contrasts shrink without changing sign; if their signs reverse, and if their magnitudes increase. The event has probability zero, and the estimator can be assigned there.
The sample mean is a linear normal statistic with mean and variance , so
The error splits into orthogonal mean and contrast components:
Since the second term is perpendicular to , its cross product with the first is zero for every sample. Taking squared norms and expectations, , which yields the risk function
To compute the contrast risk, choose an orthonormal basis matrix for the range of , with , and . Then with , , and the contrast norm is the norm of . Expand it:
For , the Gaussian Stein identity gives
This application at a singularity is valid: near zero the reciprocal squared radius is integrable in dimension , since its radial integral is . Apply Gaussian integration by parts outside a ball of radius ; the inner boundary contribution is bounded by a constant times and vanishes. The Gaussian tail eliminates the boundary at infinity. Therefore all required expectations are finite and the displayed identity holds.
Since , the Stein risk identity now gives contrast risk . Adding the unit mean risk proves
Finally has the noncentral chi-squared distribution with . To establish where its reciprocal expectation is largest, complete the square in the normal representation to obtain its Laplace transform:
Since , the Tonelli theorem gives the reciprocal moment of a noncentral chi-squared variable
Its integrand is positive and strictly decreasing in for every . The expectation is therefore strictly largest at , where
Because this expectation is subtracted in the risk, the minimizing set is exactly , that is, all coordinates of equal. On this line the risk is :