Z-scores and excesses with confidence intervals