Difference between revisions of "Covariance Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | <noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | ||
{{command|statistics}} | {{command|statistics}} | ||
− | ; Covariance[List 1 of Numbers, List 2 of Numbers]: Calculates the covariance using the elements of both lists. | + | ; Covariance[List 1 of Numbers, List 2 of Numbers] |
− | ; Covariance[List of Points]: Calculates the covariance using the ''x''- and ''y''-coordinates of the points. | + | : Calculates the covariance using the elements of both lists. |
+ | ; Covariance[List of Points] | ||
+ | : Calculates the covariance using the ''x''- and ''y''-coordinates of the points. | ||
==CAS Syntax== | ==CAS Syntax== | ||
+ | ; Covariance[List 1 of Numbers, List 2 of Numbers] | ||
+ | : Calculates the covariance using the elements of both lists. | ||
+ | :{{example| 1=<div><code><nowiki>Covariance[{1, 2, 3},{1, 3, 7}]</nowiki></code> gives ''2'', the covariance of ''{1, 2, 3}'' and ''{1, 3, 7}''.</div>}} | ||
+ | ; Covariance[List of Points] | ||
+ | : Calculates the covariance using the ''x''- and ''y''-coordinates of the points. | ||
+ | :{{example| 1=<div><code><nowiki>Covariance[{(1, 1), (2, 3), (3, 7)}]</nowiki></code> gives ''2'', the covariance of ''{1, 2, 3}'' and ''{1, 3, 7}''.</div>}} |
Revision as of 13:33, 4 August 2011
- Covariance[List 1 of Numbers, List 2 of Numbers]
- Calculates the covariance using the elements of both lists.
- Covariance[List of Points]
- Calculates the covariance using the x- and y-coordinates of the points.
CAS Syntax
- Covariance[List 1 of Numbers, List 2 of Numbers]
- Calculates the covariance using the elements of both lists.
- Example:
Covariance[{1, 2, 3},{1, 3, 7}]
gives 2, the covariance of {1, 2, 3} and {1, 3, 7}.
- Covariance[List of Points]
- Calculates the covariance using the x- and y-coordinates of the points.
- Example:
Covariance[{(1, 1), (2, 3), (3, 7)}]
gives 2, the covariance of {1, 2, 3} and {1, 3, 7}.