Difference between revisions of "Manuals/calci/PEARSON"

From ZCubes Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
*Here +1 indicates the perfect positive correlation, 0 indicates no correlation and -1 indicates the perfect negative correlation.
 
*Here +1 indicates the perfect positive correlation, 0 indicates no correlation and -1 indicates the perfect negative correlation.
 
*The formula for PPMC,r is defined by:
 
*The formula for PPMC,r is defined by:
<math> r= \frac{ \Sigma(x-\bar{x})(y-\bar{y})}{\sqrt \Sigma(x-\bar{x})^2(y-\bar{y})^2}</math>     
+
<math> r= \frac{ \Sigma(x-\bar{x})(y-\bar{y})}{\sqrt {\Sigma(x-\bar{x})^2(y-\bar{y})^2}}</math>     
  
where <math>\bar{x} and \bar{y})</math> are Average of the two Samples x and y.
+
where <math>\bar{x} and \bar{y} </math> are Average of the two Samples x and y.
 
*In  <math>PEARSON(ar1,ar2)</math> , the value of <math> ar1</math> and <math> ar2</math> must be either numbers or names, array,constants or references that contain numbers.  
 
*In  <math>PEARSON(ar1,ar2)</math> , the value of <math> ar1</math> and <math> ar2</math> must be either numbers or names, array,constants or references that contain numbers.  
 
*Suppose the array contains text,logicl values or empty cells, like that values are not considered.
 
*Suppose the array contains text,logicl values or empty cells, like that values are not considered.
Line 17: Line 17:
  
 
==Examples==
 
==Examples==
#Array1          Array2
+
*1.Array1          Array2
 
5                        8
 
5                        8
 
9                        12
 
9                        12
 
10                      15
 
10                      15
 
PEARSON(B1:B3,C1:C3)=0.968619605
 
PEARSON(B1:B3,C1:C3)=0.968619605
#Array1            Array2
+
*2.Array1            Array2
 
  17                    10
 
  17                    10
 
0                        11
 
0                        11
Line 28: Line 28:
 
25                      13
 
25                      13
 
PEARSON(D1:D4,E1:E4)=-0.759206026
 
PEARSON(D1:D4,E1:E4)=-0.759206026
#Array1            Array2
+
*3.Array1            Array2
 
1                        4
 
1                        4
 
2                        5
 
2                        5
Line 40: Line 40:
  
 
==References==
 
==References==
 
 
'''Array1,''' -  represents a set of independent values.
 
 
'''Array2''' - represents a of dependent values.
 
 
</div>
 
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
 
Returns the Pearson product momment correlation coefficient(P).
 
 
Formula :-
 
 
P =
 
 
</div>
 
----
 
<div id="7SpaceContent" class="zcontent" align="left">If Length of Array1 =! Length of Array2 , PEARSON returns the #ERROR.</div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
 
PEARSON
 
 
</div></div>
 
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
 
Lets see an example in (Column3, Row1)
 
 
UNIQa9cacf80da78a549-nowiki-00000002-QINU
 
 
PEARSON returns -0.015.811.
 
 
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| class="  " | Column1
 
| class="  " | Column2
 
| class="  " | Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 5
 
| class="                sshl_f " | 1
 
| class="sshl_f" | -0.015811
 
|
 
|- class="even"
 
| class="  " | Row2
 
| class=" " | 8
 
| class=" " | 2
 
| class=" SelectTD ChangeBGColor SelectTD" |
 
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]  </div>
 
|
 
|- class="odd"
 
| Row3
 
| class=" " | 9
 
| class=" " | 5
 
|
 
|
 
|- class="even"
 
| Row4
 
| class=" " | 7
 
| class=" " | 8
 
|
 
|
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " | 1
 
| class=" " | 4
 
|
 
|
 
|- class="even"
 
| Row6
 
| class=" " | 2
 
| class=" " | 6
 
|
 
|
 
|}
 
 
<div align="left">[[Image:calci1.gif]]</div></div>
 
----
 

Revision as of 00:16, 6 January 2014

PEARSON (ar1,ar2)


  • is the array of independent values and is the array of dependent values.

Description

  • This function gives the Pearson productmoment correlaton coefficient.
  • It is denoted by PPMC, which shows the linear relationship between two variables.
  • It is a measure of the strength of a linear association between two variables .
  • The two variables X and Y, giving a value between +1 and −1 inclusive.
  • Here +1 indicates the perfect positive correlation, 0 indicates no correlation and -1 indicates the perfect negative correlation.
  • The formula for PPMC,r is defined by:

where are Average of the two Samples x and y.

  • In , the value of and must be either numbers or names, array,constants or references that contain numbers.
  • Suppose the array contains text,logicl values or empty cells, like that values are not considered.
  • This function will return the result as error when the number of values are different for ar1 and ar2.

Examples

  • 1.Array1 Array2

5 8 9 12 10 15 PEARSON(B1:B3,C1:C3)=0.968619605

  • 2.Array1 Array2
17                    10

0 11 19 7 25 13 PEARSON(D1:D4,E1:E4)=-0.759206026

  • 3.Array1 Array2

1 4 2 5 3 PEARSON(A1:A3,B1:B2)=NAN


See Also

References