Difference between revisions of "Variance Command"
From GeoGebra Manual
Noel Lambert (talk | contribs) (\; don't work in LaTeX ?) |
m (corrected example output) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|statistics}} |
− | {{command|cas=true|statistics}} | ||
;Variance[ <List of Raw Data> ] | ;Variance[ <List of Raw Data> ] | ||
:Calculates the variance of list elements. | :Calculates the variance of list elements. | ||
Line 11: | Line 10: | ||
: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> | :{{examples|1=<br> | ||
− | :*<code><nowiki>Variance[{1, 2, a}]</nowiki></code> yields ''<math>\frac{2 a^{2} - | + | :*<code><nowiki>Variance[{1, 2, a}]</nowiki></code> yields ''<math>\frac{2}{9} a^{2} - \frac{2}{3} a + \frac{2}{3}</math>''. |
− | :*<code>Variance[{1, 2, a} {20, 3, 1}]</code> yields '' | + | :*<code>Variance[{1, 2, a} {20, 3, 1}]</code> yields ''0''. |
}} | }} |
Revision as of 15:30, 11 August 2015
- 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}{9} a^{2} - \frac{2}{3} a + \frac{2}{3}.Variance[{1, 2, a} {20, 3, 1}]
yields 0.