Difference between revisions of "CorrelationCoefficient Command"
From GeoGebra Manual
Noel Lambert (talk | contribs) |
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)") |
||
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 17:17, 7 October 2017
- 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.