Difference between revisions of "CorrelationCoefficient Command"

From GeoGebra Manual
Jump to: navigation, search
(command syntax: changed [ ] into ( ))
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>
 
{{command|statistics}}
 
{{command|statistics}}
; CorrelationCoefficient[ <List of x-coordinates>, <List of y-coordinates> ]: Calculates the product moment correlation coefficient using the given ''x''- and ''y''-coordinates.
+
; CorrelationCoefficient( &lt;List of x-coordinates>, &lt;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=<code><nowiki>CorrelationCoefficient({1, 3, 2, 1, 5, 2}, {1, 6, 4, 3, 3, 2})</nowiki></code> yields ''0.36''.}}
; CorrelationCoefficient[ <List of Points> ]: Calculates the product moment correlation coefficient using the coordinates of the given points.
+
; CorrelationCoefficient( &lt;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=<code><nowiki>CorrelationCoefficient({(1, 1), (3, 6), (2, 4), (1, 3), (5, 3), (2, 2)})</nowiki></code> yields ''0.36''.}}

Latest revision as of 08:43, 12 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.
© 2024 International GeoGebra Institute