
Empirical-Bayes shrinkage of hot-spot counts: the expected size of the fall
Source:R/regression_to_mean.R
morie_hotspot_shrinkage.RdFirst-period counts \(y = \theta + e\) at places with true rates
\(\theta\) and noise of variance noise_variance. The shrinkage
estimator \((1-B)y + B\bar y\) has, under a noise law with weighted
mean zero and zero weighted correlation with \(\theta\), the loss
\((1-B)^2 S_e + B^2 S_\theta\) (Research.P19Shrinkage.loss_eq),
minimised at \(B^* = S_e/(S_e + S_\theta)\) (loss_min,
bstar_mem) where it never exceeds the raw loss
(loss_bstar_le_raw). The predicted fall of a place is
\(B(y - \bar y)\) (predicted_fall): the size the P19 sign theorem
left open. Here \(S_\theta\) is estimated as the excess of the weighted
scatter of \(y\) over the noise mass.