avg and stddev recursively computed