Difference between revisions of "SampleVariance Command"
From GeoGebra Manual
(Changed last example with un-reserved variables + command syntax: changed [ ] into ( )) |
|||
(9 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|statistics}} |
− | {{command|cas=true|statistics}} | + | ;SampleVariance( <List of Raw Data> ) |
− | ;SampleVariance | ||
:Returns the [[w:Sample_variance#Population_variance_and_sample_variance|sample variance]] of given list of numbers. | :Returns the [[w:Sample_variance#Population_variance_and_sample_variance|sample variance]] of given list of numbers. | ||
− | + | :{{example|1=<code><nowiki>SampleVariance({1, 2, 3, 4, 5})</nowiki></code> yields ''a = 2.5''.}} | |
− | |||
− | |||
− | : {{example|1= | ||
− | {{ | + | |
− | 1= | + | ; SampleVariance( <List of Numbers>, <List of Frequencies> ) |
+ | :Returns the [[w:Sample_variance#Population_variance_and_sample_variance|sample variance]] of given list of numbers considering the frequencies. | ||
+ | :{{example|1=<code><nowiki>SampleVariance({1, 2, 3, 4, 5}, {3, 2, 4, 4, 1})</nowiki></code> yields ''a = 1.67''.}} | ||
+ | |||
+ | |||
+ | {{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. | ||
+ | : {{example|1=<code><nowiki>SampleVariance({a, b, c})</nowiki></code> yields <math>\frac{1}{3} a^{2} - \frac{1}{3} ab - \frac{1}{3}ac + \frac{1}{3} b^{2} - \frac{1}{3} bc + \frac{1}{3} c^{2}</math>.}} | ||
}} | }} |
Latest revision as of 10:07, 12 October 2017
- 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.
Hint: If the list in the CAS View contains undefined variables, this command yields a formula for the sample variance.
- Example:
SampleVariance({a, b, c})
yields \frac{1}{3} a^{2} - \frac{1}{3} ab - \frac{1}{3}ac + \frac{1}{3} b^{2} - \frac{1}{3} bc + \frac{1}{3} c^{2}.