Difference between revisions of "SampleVariance Command"
From GeoGebra Manual
(output of last example fixed) |
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)") |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|statistics}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|statistics}} | ||
− | ;SampleVariance | + | ;SampleVariance( <List of Raw Data> ) |
: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=<div><code><nowiki>SampleVariance[ {1, 2, 3, 4, 5} ]</nowiki></code> yields ''a = 2.5''.</div>}} | :{{example|1=<div><code><nowiki>SampleVariance[ {1, 2, 3, 4, 5} ]</nowiki></code> yields ''a = 2.5''.</div>}} | ||
− | ; SampleVariance | + | ; 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. | :Returns the [[w:Sample_variance#Population_variance_and_sample_variance|sample variance]] of given list of numbers considering the frequencies. | ||
:{{example|1=<div><code><nowiki>SampleVariance[ {1, 2, 3, 4, 5}, {3, 2, 4, 4, 1} ]</nowiki></code> yields ''a = 1.67''.</div>}} | :{{example|1=<div><code><nowiki>SampleVariance[ {1, 2, 3, 4, 5}, {3, 2, 4, 4, 1} ]</nowiki></code> yields ''a = 1.67''.</div>}} |
Revision as of 16:17, 7 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[ {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}.