Suppose the average of N numbers is A. Suppose you want to add X to data set and compute the new average A'.

A' = (N*A + X)/(N+1)

A' = (N*A + X)/(N+1)

**A' = N/(N+1)*A + X/(N+1)**