# Correlation - definition changed?

**URL:** <https://community.wolfram.com/t/correlation-definition-changed/9447>\
**Category:** Questions\
**Tags:** mathematica, statistics-and-probability\
**Created:** [October 15, 2016, 7:16pm UTC](https://community.wolfram.com/t/correlation-definition-changed/9447 "2016-10-15T19:16:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasdhowell](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@thomasdhowell](https://community.wolfram.com/u/thomasdhowell)\
**Post date:** [October 15, 2016, 7:16pm UTC](https://community.wolfram.com/t/correlation-definition-changed/9447/1 "2016-10-15T19:16:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [October 15, 2016, 7:19pm UTC](https://community.wolfram.com/t/correlation-definition-changed/9447/2 "2016-10-15T19:19:54Z")

</div>

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)"

```

---

<div class="post-metadata">

**Author:** ![thomasdhowell](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@thomasdhowell](https://community.wolfram.com/u/thomasdhowell)\
**Post date:** [October 15, 2016, 7:26pm UTC](https://community.wolfram.com/t/correlation-definition-changed/9447/3 "2016-10-15T19:26:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bdavis8594](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bdavis8594](https://community.wolfram.com/u/bdavis8594)\
**Post date:** [October 15, 2016, 7:36pm UTC](https://community.wolfram.com/t/correlation-definition-changed/9447/4 "2016-10-15T19:36:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![thomasdhowell](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@thomasdhowell](https://community.wolfram.com/u/thomasdhowell)\
**Post date:** [October 15, 2016, 7:43pm UTC](https://community.wolfram.com/t/correlation-definition-changed/9447/5 "2016-10-15T19:43:19Z")

</div>

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.
