Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Would somebody explain this step in his explanation?

http://izbicki.me/blog/wp-content/plugins/optimized-latex/im...

How does he go from (a - b)^2 to a^2 - b^2? What am I missing?



That's the definition of variance. Look here: http://en.wikipedia.org/wiki/Variance#Definition


b in the case given is the mean. so it's defined as sum(a)/n. so the "ignored" term is sum(a-sum(a)/n)) which is zero.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: