Calculating 1-variable statistics