Difference between revisions of "Variance Command"
From GeoGebra Manual
Line 9: | Line 9: | ||
;Variance[ <List of Numbers> ] | ;Variance[ <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> |
+ | :*<code><nowiki>Variance[{1, 2, a}]</nowiki></code> yields ''<math>\frac{2 a^{2} - 6 a + 6}{9}</math>''. | ||
+ | :*<code>Variance[{1, 2, a} {20, 3, 1}]</code> yields '' <math>\frac{2 \; a² - 52 \; a + 632}{9}</math>'' | ||
+ | }} |
Revision as of 05:06, 8 January 2013
- Variance[ <List of Numbers> ]
- Calculates the variance of list elements.
- Example:
Variance[{1, 2, 3}]
yields 0.67.
- Variance[ <List of Numbers>, <List of 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.
- Examples:
Variance[{1, 2, a}]
yields \frac{2 a^{2} - 6 a + 6}{9}.Variance[{1, 2, a} {20, 3, 1}]
yields \frac{2 \; a² - 52 \; a + 632}{9}