In Mathematica 7.0 the following input produces output -1.
Correlation[{1, 3, 5}, {6, 4, 2}]
In the Statistics tab of Fast Introduction for Math Students the same input produces output 7.
Has the definition of the Correlation function changed?
In Mathematica 7.0 the following input produces output -1.
Correlation[{1, 3, 5}, {6, 4, 2}]
In the Statistics tab of Fast Introduction for Math Students the same input produces output 7.
Has the definition of the Correlation function changed?
In[1]:= Correlation[{1, 3, 5}, {6, 4, 2}]
Out[1]= -1
In[2]:= $Version
Out[2]= "11.0.1 for Microsoft Windows (64-bit) (September 20, 2016)"
Yes, that is what I see in version 7. But check here:
http://www.wolfram.com/language/fast-introduction-for-math-students/statistics/
I think the output of 7 might be a wrong..
I’m still on version 10.3 but I get the same result
Correlation[{1, 3, 5}, {6, 4, 2}]
= -1
I also solved the correlation without using a computer and it was -1… Not sure if this helps. I’m sure someone else will chime in.. A correlation can only be between -1
Yes, I also get -1 using the definitions given in the Mathematica documentation. I agree that 7 is probably an error. My Mathematica is seven years old, and I just wanted to make sure somebody had not decided to change a definition. Thanks for your interest and help.