Why variance can come out negative in code, with Welford's fix and notes on tied AUC and Spearman
Variance looks trivial until you compute it on real data, and the same goes for AUC and for rank correlation. All of them have a textbook formula that produces the wrong number, and they come up again and again in ML and quant coding rounds. Why the textbook variance formula fails The variance is E…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-11-04 09:12 · DEV Community — Machine Learning
Why variance can come out negative in code, with Welford's fix and notes on tied AUC and Spearman