Difference between revisions of "SD Command"

From GeoGebra Manual
Jump to: navigation, search
m (fix typo)
 
(4 intermediate revisions by 4 users not shown)
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}}
;SD[ &lt;List of Numbers> ]
+
;SD( &lt;List of Numbers> )
:Calculates the standard deviation of the numbers in the list.
+
:Calculates the [[w:Standard deviation|standard deviation]] of the numbers in the list.
:{{example|1=<code><nowiki>SD[{1, 2, 3, 4, 5}]</nowiki></code> yields ''1.41''}}
+
:{{example|1=<code><nowiki>SD({1, 2, 3, 4, 5})</nowiki></code> yields ''1.41''}}
  
  
;SD[ &lt;List of Numbers>, &lt;List of Frequencies> ]: Calculates the weighted standard deviation of the given numbers.
+
;SD( &lt;List of Numbers>, &lt;List of Frequencies> ): Calculates the weighted ''standard deviation'' of the given numbers.
:{{example|1=<code><nowiki>SD[{20, 40, 41, 42, 40, 54}, {20, 6, 4, 5, 2} ]</nowiki></code> yields ''5.96''}}
+
:{{example|1=<code><nowiki>SD({20, 40, 41, 42, 40, 54}, {20, 6, 4, 5, 2, 1})</nowiki></code> yields ''10.98''}}
  
  
 
==CAS Syntax==
 
==CAS Syntax==
;SD[ &lt;List of Numbers> ]
+
;SD( &lt;List of Numbers> )
:Calculates the standard deviation of the numbers in the list.
+
:Calculates the ''standard deviation'' of the numbers in the list.
 
:{{example|1=<div>
 
:{{example|1=<div>
:* <code><nowiki>SD[{1, 2, 3, 4, 5}]</nowiki></code> yields <math>\sqrt{2}</math>.
+
:* <code><nowiki>SD({1, 2, 3, 4, 5})</nowiki></code> yields <math>\sqrt{2}</math>.
:* <code><nowiki>SD[{-3 + 2 x, -1- 4 x, -2 + 5 x^2}]</nowiki></code>  is [[Evaluate Tool|evaluated]] as <math> \sqrt{2}  \frac{\sqrt{25x⁴ + 10x³ + 28x² - 18x + 3} } {  3  } </math>.
+
:* <code><nowiki>SD({-3 + 2 x, -1- 4 x, -2 + 5 x^2})</nowiki></code>  is [[Evaluate Tool|evaluated]] as <math> \sqrt{2}  \frac{\sqrt{25x⁴ + 10x³ + 28x² - 18x + 3} } {  3  } </math>.
 
</div>}}
 
</div>}}
  
  
:{{note|1=<div>See also [[Mean Command]].</div>}}
+
:{{note|1=See also [[Mean Command]].}}

Latest revision as of 08:24, 3 May 2022


SD( <List of Numbers> )
Calculates the standard deviation of the numbers in the list.
Example: SD({1, 2, 3, 4, 5}) yields 1.41


SD( <List of Numbers>, <List of Frequencies> )
Calculates the weighted standard deviation of the given numbers.
Example: SD({20, 40, 41, 42, 40, 54}, {20, 6, 4, 5, 2, 1}) yields 10.98


CAS Syntax

SD( <List of Numbers> )
Calculates the standard deviation of the numbers in the list.
Example:
  • SD({1, 2, 3, 4, 5}) yields \sqrt{2}.
  • SD({-3 + 2 x, -1- 4 x, -2 + 5 x^2}) is evaluated as \sqrt{2} \frac{\sqrt{25x⁴ + 10x³ + 28x² - 18x + 3} } { 3 } .


Note: See also Mean Command.
© 2022 International GeoGebra Institute