Difference between revisions of "SampleVariance Command"

From GeoGebra Manual
Jump to: navigation, search
m (changed CAS syntax description)
(output of last example fixed)
Line 12: Line 12:
 
{{hint|1=
 
{{hint|1=
 
If the list in the [[File:Menu view spreadsheet.svg|link=|16px]] [[CAS View]] contains undefined variables, this command yields a formula for the sample variance.
 
If the list in the [[File:Menu view spreadsheet.svg|link=|16px]] [[CAS View]] contains undefined variables, this command yields a formula for the sample variance.
: {{example|1=<div><code><nowiki>SampleVariance[ {x, y, z} ]</nowiki></code> yields <math>\frac{- x y - x z + - y z + }{3}</math>.</div>}}
+
: {{example|1=<div><code><nowiki>SampleVariance[ {x, y, z} ]</nowiki></code> yields <math>\frac{1}{3} x^{2} - \frac{1}{3} x y - \frac{1}{3}xz + \frac{1}{3} y^{2} - \frac{1}{3} y z + \frac{1}{3} z^{2}</math>.</div>}}
 
}}
 
}}

Revision as of 07:45, 30 August 2015


SampleVariance[ <List of Raw Data> ]
Returns the sample variance of given list of numbers.
Example:
SampleVariance[ {1, 2, 3, 4, 5} ] yields a = 2.5.


SampleVariance[ <List of Numbers>, <List of Frequencies> ]
Returns the sample variance of given list of numbers considering the frequencies.
Example:
SampleVariance[ {1, 2, 3, 4, 5}, {3, 2, 4, 4, 1} ] yields a = 1.67.


Note Hint: If the list in the Menu view spreadsheet.svg CAS View contains undefined variables, this command yields a formula for the sample variance.
Example:
SampleVariance[ {x, y, z} ] yields \frac{1}{3} x^{2} - \frac{1}{3} x y - \frac{1}{3}xz + \frac{1}{3} y^{2} - \frac{1}{3} y z + \frac{1}{3} z^{2}.
© 2024 International GeoGebra Institute