Difference between revisions of "Covariance Command"

From GeoGebra Manual
Jump to: navigation, search
m (Bot: Automated text replacement (-{{command +{{command|cas=true))
Line 3: Line 3:
 
;Covariance[ <List 1 of Numbers>, <List 2 of Numbers> ]
 
;Covariance[ <List 1 of Numbers>, <List 2 of Numbers> ]
 
:Calculates the covariance using the elements of both lists.
 
:Calculates the covariance using the elements of both lists.
 +
:{{example| 1=<div><code><nowiki>Covariance[{1, 2, 3}, {1, 3, 7}]</nowiki></code> yields ''2'', the covariance of ''{1, 2, 3}'' and ''{1, 3, 7}''.</div>}}
 
;Covariance[ <List of Points> ]
 
;Covariance[ <List of Points> ]
 
:Calculates the covariance using the ''x''- and ''y''-coordinates of the 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> yields ''2'', the covariance of ''{1, 2, 3}'' and ''{1, 3, 7}''.</div>}}
 
==CAS Syntax==
 
==CAS Syntax==
 
;Covariance[ <List 1 of Numbers>, <List 2 of Numbers> ]
 
;Covariance[ <List 1 of Numbers>, <List 2 of Numbers> ]

Revision as of 11:33, 11 September 2012


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}] yields 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)}] yields 2, the covariance of {1, 2, 3} and {1, 3, 7}.

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}] yields 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)}] yields 2, the covariance of {1, 2, 3} and {1, 3, 7}.
© 2024 International GeoGebra Institute