I am looking for a script that calculates mean and variance for a given set of data. in any language, with comments.