Added sample and population variance; applied some tweaks for clarity.