compute std dev and mean to test