New weights formula using mean and standard deviation