Difference between revisions of "Covariance Command"

From GeoGebra Manual
Jump to: navigation, search
m
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>
 
{{command|cas=true|statistics}}
 
{{command|cas=true|statistics}}
;Covariance[ <List of Numbers>, <List of Numbers> ]
+
;Covariance[ &lt;List of Numbers>, &lt;List of Numbers> ]
 
:Calculates the covariance between the elements of the specified lists.
 
:Calculates the covariance between the elements of the specified 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>}}
 
:{{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[ &lt;List of Points> ]
 
:Calculates the covariance between the ''x'' and ''y'' coordinates of the specified points.
 
:Calculates the covariance between the ''x'' and ''y'' coordinates of the specified 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>}}
 
:{{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 of Numbers>, <List of Numbers> ]
+
;Covariance[ &lt;List of Numbers>, &lt;List of Numbers> ]
 
:Calculates the covariance between the elements of the specified lists.
 
:Calculates the covariance between the elements of the specified 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>}}
 
:{{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[ &lt;List of Points> ]
 
:Calculates the covariance between the ''x'' and ''y'' coordinates of the specified points.
 
:Calculates the covariance between the ''x'' and ''y'' coordinates of the specified 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>}}
 
:{{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>}}

Revision as of 17:07, 22 August 2015



Covariance[ <List of Numbers>, <List of Numbers> ]
Calculates the covariance between the elements of the specified 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 between the x and y coordinates of the specified 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 of Numbers>, <List of Numbers> ]
Calculates the covariance between the elements of the specified 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 between the x and y coordinates of the specified 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