Re: Definition of the similarity in a set of integers

*To*: mathgroup at smc.vnet.net*Subject*: [mg96417] Re: Definition of the similarity in a set of integers*From*: dh <dh at metrohm.com>*Date*: Fri, 13 Feb 2009 03:42:50 -0500 (EST)*References*: <gn11rc$8bq$1@smc.vnet.net>

Hi Ryan, what about the difference of the ordered sets? Daniel Ryan Markley wrote: > Hello I have two sets of integers eg > > S1 = (25,14,32,45) and S2 = (26,12,31,48) > > I want to define an operation similar to the variance that give me how > similar both sets are, for example in the above example for both sets > the results I have to get need to be similar because both sets are > similar. > > The problem with the variance is this > > S1 = (25,1,1,1) and S2 = (1,1,25,1) these two sets have the same > variance but they are completly different. What mathematical operation > can I use to do what I am looking for. > > Thanks a lot in advance. >