Difference between revisions of "Documentation/How Tos/Calc: PEARSON function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m (→Syntax:) |
(→Syntax:) |
||
Line 5: | Line 5: | ||
=== Syntax: === | === Syntax: === | ||
− | <tt>'''PEARSON( | + | <tt>'''PEARSON(x; y)'''</tt> |
− | : where <tt>''' | + | : where <tt>'''x'''</tt> and <tt>'''y'''</tt> are ranges or arrays containing the two sets of data. |
: Any text or empty entries are ignored. | : Any text or empty entries are ignored. | ||
+ | |||
+ | :<tt>'''PEARSON'''</tt> calculates: | ||
+ | ::[[Image:Calc_pearson_equation.png]] | ||
: <i>Advanced topic:</i> | : <i>Advanced topic:</i> | ||
− | : The parameters <tt>''' | + | : The parameters <tt>'''x'''</tt> and <tt>'''y'''</tt> are always evaluated as [[Documentation/How_Tos/Using Arrays|array formulas]]. |
=== Example: === | === Example: === |
Revision as of 18:47, 1 June 2008
PEARSON
Returns the Pearson correlation coefficient of two sets of data.
Syntax:
PEARSON(x; y)
- where x and y are ranges or arrays containing the two sets of data.
- Any text or empty entries are ignored.
- Advanced topic:
- The parameters x and y are always evaluated as array formulas.
Example:
PEARSON(A1:A30; B1:B30)
- returns the Pearson correlation coefficient for the two sets of data in A1:A30 and B1:B30.