Difference between revisions of "Variance Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)")
(command syntax: changed [ ] into ( ))
 
Line 2: Line 2:
 
;Variance( <List of Raw Data> )
 
;Variance( <List of Raw Data> )
 
:Calculates the variance of list elements.
 
:Calculates the variance of list elements.
:{{example|1=<div><code><nowiki>Variance[{1, 2, 3}]</nowiki></code> yields ''0.67''.</div>}}
+
:{{example|1=<code><nowiki>Variance({1, 2, 3})</nowiki></code> yields ''0.67''.}}
 
;Variance( &lt;List of Numbers>, &lt;List of Frequencies> )
 
;Variance( &lt;List of Numbers>, &lt;List of Frequencies> )
 
:Calculates the variance of list elements, considering the frequencies.
 
:Calculates the variance of list elements, considering the frequencies.
:{{example|1=<div><code><nowiki>Variance[{1, 2, 3} , {1, 2, 1}]</nowiki></code> yields ''0.5''.</div>}}
+
:{{example|1=<code><nowiki>Variance({1, 2, 3} , {1, 2, 1})</nowiki></code> yields ''0.5''.}}
 
==CAS Syntax==
 
==CAS Syntax==
 
;Variance( &lt;List of Numbers> )
 
;Variance( &lt;List of Numbers> )
 
:Calculates the variance of list elements. If the list contains undefined variables, it yields a formula for the variance.
 
:Calculates the variance of list elements. If the list contains undefined variables, it yields a formula for the variance.
:{{examples|1=<br>
+
:{{example|1=<code><nowiki>Variance({1, 2, a})</nowiki></code> yields ''<math>\frac{2}{9} a^{2} - \frac{2}{3} a + \frac{2}{3}</math>''.
:*<code><nowiki>Variance[{1, 2, a}]</nowiki></code> yields ''<math>\frac{2}{9} a^{2} - \frac{2}{3} a + \frac{2}{3}</math>''.
 
 
}}
 
}}

Latest revision as of 09:27, 12 October 2017


Variance( <List of Raw Data> )
Calculates the variance of list elements.
Example: Variance({1, 2, 3}) yields 0.67.
Variance( <List of Numbers>, <List of Frequencies> )
Calculates the variance of list elements, considering the frequencies.
Example: Variance({1, 2, 3} , {1, 2, 1}) yields 0.5.

CAS Syntax

Variance( <List of Numbers> )
Calculates the variance of list elements. If the list contains undefined variables, it yields a formula for the variance.
Example: Variance({1, 2, a}) yields \frac{2}{9} a^{2} - \frac{2}{3} a + \frac{2}{3}.
© 2024 International GeoGebra Institute