easy · Eigenvalues, positive semidefiniteness and covariance
Fix an integer and a scalar . Consider the matrix where is the identity, , so that has on the diagonal and in every off-diagonal entry. Think of as the correlation matrix of unit-variance assets that share a common pairwise correlation .
Write with the all-ones matrix. The key observation — the step a candidate should reach for immediately — is that is rank one, so its spectrum is trivial: , and for every . Hence has eigenvalue once (eigenvector ) and eigenvalue with multiplicity (the orthogonal complement of ).
Adding a multiple of the identity shifts every eigenvalue by the same amount and keeps the eigenvectors, so the eigenvalues of are
As a check, the trace is , matching .
A symmetric matrix is positive semidefinite iff all its eigenvalues are nonnegative. So we need both
which give and . Therefore
The tempting wrong answer is , obtained by thinking of as an ordinary pairwise correlation. That is necessary but not sufficient: a single pair can be perfectly anticorrelated, but assets cannot all be that negatively correlated with one another simultaneously.
For the equal-weight portfolio ,
This is exactly , since is the eigenvector for . Requiring this variance to be nonnegative recovers the binding constraint .
As , the lower bound . Interpretation: a large book of assets cannot maintain a common negative pairwise correlation. The most negative correlation compatible with all pairs being equal shrinks to zero, because diversification would otherwise drive the equal-weight portfolio variance below zero — impossible.
Final answers:
medium · Importance sampling and effective sample size
Let the target be the standard normal and the proposal a centered normal with . Draw and form the importance weights The standard diagnostic for importance sampling is the effective sample size and we study its per-sample limit (in probability).
Compute and in closed form. State precisely the range of for which the second moment is finite, and explain in one line what the limit equals in terms of these moments and why.
Give in closed form on the region where it is positive. Find the value of that maximizes it and the maximum value.
Solve exactly. Comment on the two roots: which regime (proposal too narrow, or too wide) is the dangerous one, and why.
With and ,
First moment. By construction the weight integrates the target against the proposal, so This holds for every ; it is what makes ordinary (non-normalized) importance sampling unbiased.
Second moment. This is the step that carries all the information: Now The Gaussian integral converges iff the coefficient , i.e. iff . When it does, For the integral diverges: . (This is exactly , the chi-square divergence, so the divergence has a name.)
Why is a ratio of these moments. By the law of large numbers, and (the latter finite only when ). Hence When the denominator diverges and : the effective sample size is .
For , and for .
Write and maximize : So the maximum is at , where . This is the sanity check: gives constant weights and full effective sample size, .
Set with . Squaring, Both roots exceed (indeed and ), so both are admissible:
Interpretation. The efficiency curve is single-peaked at and falls off on both sides, so a given efficiency level is hit once on each side. But the two sides are not symmetric in their failure mode. Making the proposal too narrow () sends to a hard zero — the weight variance is literally infinite, the LLN for fails, and a handful of samples in the target's tail carry all the mass. Making it too wide only degrades smoothly toward as (since ), with all moments finite throughout. The lesson every practitioner eventually relearns: overdisperse the proposal, never underdisperse it.
The tempting error is to treat as finite and positive for all — the closed form formally returns a complex number for , which quietly hides the real event: the second moment has diverged and the estimator's asymptotic variance is infinite. The convergence condition is the whole point of the problem, not a technicality.
Two new problems every morning at 8am · every day so far