Difference between revisions of "SampleVariance Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|cas=true|statistics}}
 
{{command|cas=true|statistics}}
;SampleVariance[ <List of Numbers> ]
+
;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>}}
 +
  
 
; SampleVariance[ <List of Numbers>, <List of Frequencies> ]
 
; 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 ''1.29''.</div>}}
+
:{{example|1=<div><code><nowiki>SampleVariance[ {1, 2, 3, 4, 5}, {3, 2, 4, 4, 1} ]</nowiki></code> yields ''a = 1.29''.</div>}}
 +
 
  
 
==CAS Syntax==
 
==CAS Syntax==
 
;SampleVariance[ <List of Numbers> ]
 
;SampleVariance[ <List of Numbers> ]
 
:Returns the [[w:Sample_variance#Population_variance_and_sample_variance|sample variance]] of given list of numbers. If the list contains undefined variables, it yields a formula for the sample variance.
 
:Returns the [[w:Sample_variance#Population_variance_and_sample_variance|sample variance]] of given list of numbers. If the list contains undefined variables, it yields a formula for the sample variance.
: {{example|1=<div><code><nowiki>SampleVariance[{x, y, z}]</nowiki></code> yields <math>\frac{x² - x y - x z + y² - y z + z²}{3}</math>.</div>}}
+
: {{example|1=<div><code><nowiki>SampleVariance[ {x, y, z} ]</nowiki></code> yields <math>\frac{x² - x y - x z + y² - y z + z²}{3}</math>.</div>}}

Revision as of 08:48, 18 July 2013



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.29.


CAS Syntax

SampleVariance[ <List of Numbers> ]
Returns the sample variance of given list of numbers. If the list contains undefined variables, it yields a formula for the sample variance.
Example:
SampleVariance[ {x, y, z} ] yields \frac{x² - x y - x z + y² - y z + z²}{3}.
© 2024 International GeoGebra Institute