Difference between revisions of "CorrelationCoefficient Command"
From GeoGebra Manual
m |
Noel Lambert (talk | contribs) |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude> | <noinclude>{{Manual Page|version=5.0}}</noinclude> | ||
{{command|statistics}} | {{command|statistics}} | ||
− | ; CorrelationCoefficient[ | + | ; CorrelationCoefficient[ <List of x-coordinates>, <List of y-coordinates> ]: Calculates the product moment correlation coefficient using the given ''x''- and ''y''-coordinates. |
:{{example|1=<div><code><nowiki>CorrelationCoefficient[{1, 3, 2, 1, 5, 2}, {1, 6, 4, 3, 3, 2}]</nowiki></code> yields ''0.36''.</div>}} | :{{example|1=<div><code><nowiki>CorrelationCoefficient[{1, 3, 2, 1, 5, 2}, {1, 6, 4, 3, 3, 2}]</nowiki></code> yields ''0.36''.</div>}} | ||
− | ; CorrelationCoefficient[ | + | ; CorrelationCoefficient[ <List of Points> ]: Calculates the product moment correlation coefficient using the coordinates of the given points. |
:{{example|1=<div><code><nowiki>CorrelationCoefficient[{(1, 1), (3, 6), (2, 4), (1, 3), (5, 3), (2, 2)}]</nowiki></code> yields ''0.36''.</div>}} | :{{example|1=<div><code><nowiki>CorrelationCoefficient[{(1, 1), (3, 6), (2, 4), (1, 3), (5, 3), (2, 2)}]</nowiki></code> yields ''0.36''.</div>}} |
Revision as of 18:06, 22 August 2015
- CorrelationCoefficient[ <List of x-coordinates>, <List of y-coordinates> ]
- Calculates the product moment correlation coefficient using the given x- and y-coordinates.
- Example:
CorrelationCoefficient[{1, 3, 2, 1, 5, 2}, {1, 6, 4, 3, 3, 2}]
yields 0.36.
- CorrelationCoefficient[ <List of Points> ]
- Calculates the product moment correlation coefficient using the coordinates of the given points.
- Example:
CorrelationCoefficient[{(1, 1), (3, 6), (2, 4), (1, 3), (5, 3), (2, 2)}]
yields 0.36.