The harmonic mean of a set of observations is the reciprocal of the arithmetic mean of the reciprocal of the…