calc_ref_stats function

Define reference values of average and standard deviation