update_param: compute new mean and sd from old ones with one additional observation
Description
compute new mean and sd from old ones with one additional observation
Usage
update_param(old_mean, old_sd, x_new, n_obs)
Arguments
old_sd
vector of old standard deviation
n_obs
total number of observations (including x_new)
Value
list of two vectors: new mean and new standard deviation