Difference between revisions of "Frequency Command"

From GeoGebra Manual
Jump to: navigation, search
m (1 revision: new commands)
Line 2: Line 2:
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
{{command|statistics}}
 
{{command|statistics}}
;Frequency[ <List of Data> ]
+
 
:{{description}}
+
;Frequency[ <List of Raw Data> ]
;Frequency[ <List of Data>, <Cumulative> ]
+
: Returns a list with a count of the occurrences of each unique value in the given list of data. This input list can be numbers or text. The list is sorted in ascending order of the unique values. To get a list of the corresponding unique values use the command Unique[ <List of Raw Data> ]  
:{{description}}
+
 
;Frequency[ <List of Data>, <List of Class Boundaries> ]
+
:{{Example| 1= Enter list1 = { "a", "a", "x", "x", "x", "b" }.  Frequency[list1] returns the list { 2, 1, 3 }.  Unique[list1] returns the list { "a", "b", "x" }.
:{{description}}
+
}}
;Frequency[ <List of Data>, <List of Class Boundaries>, <Cumulative> ]
+
 
:{{description}}
+
;Frequency[ <Cumulative>, <List of Raw Data>]
 +
:  If Cumulative = false, returns the same list as Frequency[ <List of Raw Data> ]
 +
:  If Cumulative = true,  returns a list of cumulative frequencies for Frequency[ <List of Raw Data> ]  
 +
 
 +
:{{Example| 1= Enter list1 = { 0, 0, 0, 1 , 1, 2 }.  Frequency[true, list1] returns the list { 3, 5, 6 }. Frequency[false, list1] returns the list { 3, 2, 1}. Unique[list1] returns the list { 0, 1, 2 }
 +
}}
 +
 
 +
;Frequency[<List of Class Boundaries>, <List of Raw Data> ]
 +
: Returns a list of the counts of values from the given data list that lie within the intervals formed by the given class boundaries.  All intervals except the highest interval are of the form [a, b). The highest interval has the form  [a, b].
 +
 
 +
:{{Example| 1= Frequency[{1,2,3},  {1,1,2,3}] returns the list { 2, 2 }. }}
 +
 
 +
 
 +
;Frequency[ <Cumulative>,<List of Class Boundaries>,<List of Raw Data>]
 +
:  If Cumulative = false, returns the same list as Frequency[ <List of Class Boundaries>, <List of Raw Data> ]
 +
:  If Cumulative = true,  returns a list of cumulative frequencies for Frequency[ <List of Class Boundaries>, <List of Raw Data> ]  
 +
 
 +
;Frequency[<List of Class Boundaries>, <List of Raw Data>, <Use Density> , <Density Scale Factor> (optional) ]
 +
:Returns a list of frequencies for the corresponding [http://wiki.geogebra.org/en/Histogram_Command  Histogram command].
 +
 
 +
;Frequency[ <Boolean Cumulative>, <List of Class Boundaries>, <List of Raw Data>, <Use Density> , <Density Scale Factor> (optional) ]
 +
:Returns a list of frequencies for the corresponding [http://wiki.geogebra.org/en/Histogram_Command  Histogram command].

Revision as of 07:58, 11 June 2011




Frequency[ <List of Raw Data> ]
Returns a list with a count of the occurrences of each unique value in the given list of data. This input list can be numbers or text. The list is sorted in ascending order of the unique values. To get a list of the corresponding unique values use the command Unique[ <List of Raw Data> ]
Example: Enter list1 = { "a", "a", "x", "x", "x", "b" }. Frequency[list1] returns the list { 2, 1, 3 }. Unique[list1] returns the list { "a", "b", "x" }.


Frequency[ <Cumulative>, <List of Raw Data>]
If Cumulative = false, returns the same list as Frequency[ <List of Raw Data> ]
If Cumulative = true, returns a list of cumulative frequencies for Frequency[ <List of Raw Data> ]
Example: Enter list1 = { 0, 0, 0, 1 , 1, 2 }. Frequency[true, list1] returns the list { 3, 5, 6 }. Frequency[false, list1] returns the list { 3, 2, 1}. Unique[list1] returns the list { 0, 1, 2 }


Frequency[<List of Class Boundaries>, <List of Raw Data> ]
Returns a list of the counts of values from the given data list that lie within the intervals formed by the given class boundaries. All intervals except the highest interval are of the form [a, b). The highest interval has the form [a, b].
Example: Frequency[{1,2,3}, {1,1,2,3}] returns the list { 2, 2 }.


Frequency[ <Cumulative>,<List of Class Boundaries>,<List of Raw Data>]
If Cumulative = false, returns the same list as Frequency[ <List of Class Boundaries>, <List of Raw Data> ]
If Cumulative = true, returns a list of cumulative frequencies for Frequency[ <List of Class Boundaries>, <List of Raw Data> ]
Frequency[<List of Class Boundaries>, <List of Raw Data>, <Use Density> , <Density Scale Factor> (optional) ]
Returns a list of frequencies for the corresponding Histogram command.
Frequency[ <Boolean Cumulative>, <List of Class Boundaries>, <List of Raw Data>, <Use Density> , <Density Scale Factor> (optional) ]
Returns a list of frequencies for the corresponding Histogram command.
© 2024 International GeoGebra Institute