Difference between revisions of "Variance Command"
From GeoGebra Manual
Line 12: | Line 12: | ||
:{{examples|1=<br> | :{{examples|1=<br> | ||
:*<code><nowiki>Variance[{1, 2, a}]</nowiki></code> yields ''<math>\frac{2 a^{2} - 6 a + 6}{9}</math>''. | :*<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>'' | + | :*<code>Variance[{1, 2, a} {20, 3, 1}]</code> yields '' <math>\frac{2 \; a² - 52 \; a + 632}{9}</math>''. |
}} | }} |
Revision as of 13:46, 31 July 2013
- 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.
- 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}.