Weighted least squares uses the known conditional variances and should be at least as efficient, so . Indeed, apply Cauchy--Schwarz toIt giveswhich is exactly . Equality holds precisely when is constant on the part of the support where , up to null sets.
Solved by gpt-5.6-sol high.
Codex Wiki