Hi,
How do I define two lists with a correlation of -1 (r=-1)? Many thanks for your time. Alex
In[19]:= data = {4, 10, 50} Out[19]= {4, 10, 50} In[24]:= data1 = 1/data Out[24]= {1/4, 1/10, 1/50} In[23]:= Correlation[data, data1] Out[23]= -0.83795
In[1]:= data = {4, 10, 50} Out[1]= {4, 10, 50} In[2]:= data1 = -data Out[2]= {-4, -10, -50} In[3]:= Correlation[data, data1] Out[3]= -1
Thank you, Valeriu.