[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #8052] Harmonic means for descriptive statistics

From: Teppo Jussmäki
Subject: [patch #8052] Harmonic means for descriptive statistics
Date: Sat, 25 May 2013 08:50:13 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:21.0) Gecko/20100101 Firefox/21.0

Follow-up Comment #3, patch #8052 (project pspp):

I must admit I was a bit confused about the definition of harmonic mean of
sets with non-positive values. Wikipedia gives the definition of harmonic mean
for positive real numbers. OpenOffice also produces errors with sets including
zeros and negatives.

WolframAlpha does calculations for sets such as {2, -2, 3} -> 9, and also {2,
-2, 0} -> 0, which should be handled as an exeption. In the Wikipedia
definition, harmonic mean should always be less or equal with arithmetic mean.
The zero handling in the Wolfram version is quite intuitive if you consider
the resistance of parallel resistors: if even one resistor is zero, the
circuit is equivalent of all-zero resistors in parallel.

There seems to be different types of implementations in applications. Which
one to follow?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]