Message Boards Message Boards

0
|
4545 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Correlation - definition changed?

Posted 8 years ago

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?

POSTED BY: Thomas Howell
4 Replies
Posted 8 years ago

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.

POSTED BY: Thomas Howell
Posted 8 years ago

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

POSTED BY: Brandon Davis
Posted 8 years ago

Yes, that is what I see in version 7. But check here: http://www.wolfram.com/language/fast-introduction-for-math-students/statistics/

POSTED BY: Thomas Howell
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)"
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract