script for calculating mean and variance of training data, to be used with normalization of data