[ROOT] correlation coefficient in ROOT

From: Thomas Schietinger (schieti@SLAC.stanford.edu)
Date: Thu Sep 20 2001 - 19:40:32 MEST


Hi rooters,

given two columns of numbers, x[i] and y[i] (stored, for instance,
in a TGraph) I would like to know the correlation between the two
variables. Is there an easy way to do that in ROOT? I couldn't find
anything appropriate. There is a method GetCorrelationFactor in TH2,
but if possible I don't want to bin my data.

Thanks, Thomas

----------------------------------------------------------
 Thomas.Schietinger@SLAC.Stanford.edu
 SLAC, Mail Stop 95, PO Box 20450, Stanford CA 94309, USA
 Tel: (650)-926-2707  Fax: (650)-926-2657
----------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET