Frac 1 x_1 frac n sum_ i1n frac 1 x_i. Therefore the harmonic mean is calculated by dividing the number of observations by the sum of reciprocals of each given number. Enter the numbers separated by a comma in the input field.
The harmonicmean command could also be applied to data with NA values ie.
The Iris Flower data set. Below are Steps to find the harmonic mean of any data. Plug the value of n and sum of reciprocal of all the entries into the formula. In terms of its calculation it is essentially the reciprocal of the average of the reciprocal values in the sample.