commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Gant <john.g...@gmail.com>
Subject Re: DO NOT REPLY [Bug 36331] - [math] spearman rank cross correlation
Date Wed, 24 Aug 2005 14:04:56 GMT
Specifically testTwo() in
http://issues.apache.org/bugzilla/attachment.cgi?id=16172  takes care
of data with equal value (ie equal rank), is this the type of
situation to which you are referring? Yes I agree, we should implement
routines to sort in more diverse ways, but for right now I depend upon
Arrays.sort() to perform the sorting.

Thanks,
John

On 8/24/05, bugzilla@apache.org <bugzilla@apache.org> wrote:
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=36331>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
> INSERTED IN THE BUG DATABASE.
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=36331
> 
> 
> 
> 
> 
> ------- Additional Comments From brent@worden.org  2005-08-24 15:43 -------
> I noticed you implementation does not take into account ties in the data.  Ties
> can effect the correlation coefficeint to a great degree.
> 
> A nice approach to address ties is to rank the data adjusting the ranks of tied
> elements and then compute the Pearson's correlation coefficient on the rankings.
> 
> See http://web.uccs.edu/lbecker/SPSS/ctabs2.htm#5E.%20Spearman%20Correlation,%
> 20rs for a brief explaination.
> 
> If we get into adding more non-parametric routines, I for one would like to see
> some general, ranking utililies such as taking an array of data and returning
> the ranking array.  The ranking could be driven by a tie ranking policy for
> dealing with ties in the data.  The default policy would be to use the mean
> rank for ties.  Other policies could be to omit the data, use the highest rank
> or, use the lowest rank.
> 
> 
> --
> Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
> 


-- 
John Gant

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message