being from a stats background I found your use of the term "variance" somewhat confusing, I thought you were after something more than just subtraction.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I ended up doing the same as Helen and the author. for variety, here's a variant that uses CTEs but
EXPLAIN ANALYSE
says it's slightly (10%) slower:being from a stats background I found your use of the term "variance" somewhat confusing, I thought you were after something more than just subtraction.