stats[describe, harmonicmean]
Harmonic mean of a statistical list
Calling Sequence
Parameters
Description
Examples
stats[describe, harmonicmean](data)
describe[harmonicmean](data)
data
-
statistical list
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function harmonicmean of the subpackage stats[describe, ...] computes the harmonic mean of the given data.
Classes are assumed to be represented by the class mark, for example 10..12 has the value 11. Missing data are ignored.
The harmonic mean is defined to be the reciprocal of the mean of the reciprocals of the data. A mnemonic formula is 1H=sum⁡1XN.
The harmonic mean is a measure of central tendency. For more information about such measures, refer to the information for the (arithmetic) mean. The harmonic mean is often appropriate when one is dealing with velocities or rates.
The command with(stats[describe],harmonicmean) allows the use of the abbreviated form of this command.
with⁡stats:
The harmonic mean of 1/3 and 1/5 is
describeharmonicmean⁡13,15
14
When I purchase gasoline for my automobile, I always pay 1 Sim. Of course the price is never the same. One time it was 3 Sim/bucket, at another time it was 5 Sim/bucket. The ``average price'' is then obtained as follows: The first time I obtained 1/3 buckets. The second time, it was 1/5 buckets. In total I obtained 1/3+1/5 buckets for a cost of 2 Sim. The average price I paid was then 2/ (1/3+1/5)=15/4=3.75 Sim/bucket.
describeharmonicmean⁡3,5=213+15
154=154
Note that the arithmetic mean is not appropriate in this case, since it is equal to
describemean⁡3,5≠154
4≠154
If the first time, since the price was low, I bought for 2 Sim of fuel, the average price becomes
describeharmonicmean⁡Weight⁡3,2,5=323+15
4513=4513
See Also
describe(deprecated)[geometricmean]
describe(deprecated)[mean]
describe(deprecated)[quadraticmean]
Statistics
Statistics[HarmonicMean]
stats(deprecated)[data]
transform(deprecated)[classmark]
Download Help Document