[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #8052] Harmonic means for descriptive statistics
From: |
John Darrington |
Subject: |
[patch #8052] Harmonic means for descriptive statistics |
Date: |
Sun, 26 May 2013 08:16:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20100101 Firefox/10.0.12 Iceweasel/10.0.12 |
Follow-up Comment #4, patch #8052 (project pspp):
The SPSS documentation doesn't mention any limits on the domain of the input.
http://publib.boulder.ibm.com/infocenter/spssstat/v20r0m0/index.jsp?topic=%2Fcom.ibm.spss.statistics.help%2Fidh_mean.htm
(it says the weights must be positive, but does not mention the values).
In the special case, where a value is zero. It can be shown algebraically that
the harmonic mean is also zero:
h = a.b / (a+b)
= a.0 / a
So I retract my previous statement. I think now that if the
sum-of-reciprocals method is used, there should be a special case when one or
more values are zero. But I still don't see why negative values should be
treated specially.
I cannot find in the academic literature any indication that harmonic means
are defined only for positive values.
This would also fit with the parallel resistor analogy (yes negative resistors
do exist - kindof - see Horowitz and Hill).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8052>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/