calculates average, standard deviation, maximum and minimum values