calculate mean/stddev monte carlo stlye