Code Snippet for Calculating Mean, Variance, and Standard Deviation
Here are the methods to calculate mean, variance, and standard deviation of a vector of values. These are put here for easy reference, so that I do not need to rewrite them again (and again (and again)).