fi’s are the corresponding frequencies and x is the mean