Difference between revisions of "Mean Command"

From GeoGebra Manual
Jump to: navigation, search
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}}
;Mean[ <List of Numbers> ]
+
 
:Calculates the arithmetic mean of the list elements.
+
;Mean[ <List of Raw Data> ]
:{{example|1=<div><code><nowiki>Mean[{1, 2, 3, 2, 4, 1, 3, 2}]</nowiki></code> yields ''2.25''.</div>}}
+
:Calculates the arithmetic mean of list elements.
 +
:{{example|1=<div>
 +
:* <code><nowiki>Mean[{1, 2, 3, 2, 4, 1, 3, 2}]</nowiki></code> yields ''a = 2.25'' and
 +
:* <code><nowiki>Mean[{1, 3, 5, 9, 13}]</nowiki></code> yields ''a = 6.2''.</div>}}
 +
 
 +
 
 
; Mean[ <List of Numbers>, <List of Frequencies> ]
 
; Mean[ <List of Numbers>, <List of Frequencies> ]
 
:Calculates the weighted mean of the list elements.
 
:Calculates the weighted mean of the list elements.
:{{example|1=<div><code><nowiki>Mean[{1, 2, 3}, {3, 2, 5}]</nowiki></code> yields ''2.2''.</div>}}
+
:{{example|1=<div>
; Mean[ <List of Class Boundaries>, <List of Frequencies> ]
+
:* <code><nowiki>Mean[{1, 2, 3, 4}, {6, 1, 3, 6}]</nowiki></code> yields ''a = 2.56'' and
:Calculates the grouped mean of a data set with given classes and frequencies.
+
:* <code><nowiki>Mean[{1, 2, 3, 4}, {1, 1, 3, 6}]</nowiki></code> yields ''a = 3.27''.</div>}}
:{{example|1=<div><code><nowiki>Mean[{10, 20, 30, 40}, {2, 2, 4}]</nowiki></code> yields ''27.5''.</div>}}
+
 
 +
 
 +
 
 
==CAS Syntax==
 
==CAS Syntax==
 
;Mean[ <List of Numbers> ]
 
;Mean[ <List of Numbers> ]
 
:Calculates the arithmetic mean of the list elements.
 
:Calculates the arithmetic mean of the list elements.
:{{example|1=<div><code><nowiki>Mean[{1, 2, 3, 5, 44}]</nowiki></code> yields ''11''.</div>}}
+
:{{example|1=<div><code><nowiki>Mean[{1, 2, 3, 5, 44}]</nowiki></code> yields ''a = 11''.</div>}}
 +
 
 +
 
 
{{note| 1=<div>See also [[MeanX Command|MeanX]], [[MeanY Command|MeanY]], and [[SD Command|SD]] commands.</div>}}
 
{{note| 1=<div>See also [[MeanX Command|MeanX]], [[MeanY Command|MeanY]], and [[SD Command|SD]] commands.</div>}}

Revision as of 10:09, 9 July 2013




Mean[ <List of Raw Data> ]
Calculates the arithmetic mean of list elements.
Example:
  • Mean[{1, 2, 3, 2, 4, 1, 3, 2}] yields a = 2.25 and
  • Mean[{1, 3, 5, 9, 13}] yields a = 6.2.


Mean[ <List of Numbers>, <List of Frequencies> ]
Calculates the weighted mean of the list elements.
Example:
  • Mean[{1, 2, 3, 4}, {6, 1, 3, 6}] yields a = 2.56 and
  • Mean[{1, 2, 3, 4}, {1, 1, 3, 6}] yields a = 3.27.



CAS Syntax

Mean[ <List of Numbers> ]
Calculates the arithmetic mean of the list elements.
Example:
Mean[{1, 2, 3, 5, 44}] yields a = 11.


Note:
See also MeanX, MeanY, and SD commands.
© 2024 International GeoGebra Institute