Difference between revisions of "FrequencyTable Command"

From GeoGebra Manual
Jump to: navigation, search
(command syntax: changed [ ] into ( ))
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|chart}}
{{command|chart}}
+
;FrequencyTable( &lt;List of Raw Data> )
;FrequencyTable[ <List of Raw Data> ]
 
 
: Returns a table (as text) whose first column contains sorted list of unique elements of list ''L'' and second column contains the count of the occurrences of value in the first column. List ''L'' can be numbers or text.  
 
: Returns a table (as text) whose first column contains sorted list of unique elements of list ''L'' and second column contains the count of the occurrences of value in the first column. List ''L'' can be numbers or text.  
 
+
;FrequencyTable( <Boolean Cumulative>, &lt;List of Raw Data> )
;FrequencyTable[ <Chart> ]
+
:  If ''Cumulative = false'',  returns the same table as Frequency( &lt;List of Raw Data> )
: Returns a table (as text) representing the [[Histogram]] or [[BarChart]].
+
:  If ''Cumulative = true'',  returns a table whose first column is the same as in FrequencyTable( &lt;List of Raw Data> ) and the second contains cumulative frequencies of values in the first column.
 
+
;FrequencyTable( &lt;List of Class Boundaries>, &lt;List of Raw Data> )
;FrequencyTable[ <Boolean Cumulative>, <List of Raw Data>]
 
:  If ''Cumulative = false'',  returns the same table as Frequency[ <List of Raw Data> ]
 
:  If ''Cumulative = true'',  returns a table whose first column is the same as in FrequencyTable[ <List of Raw Data> ] and the second contains cumulative frequencies of values in the first column.
 
 
 
;FrequencyTable[ <List of Class Boundaries>, <List of Raw Data> ]
 
 
: Returns a table (as text) whose first column contains intervals (classes) and second column contains the count of numbers in ''List of Raw Data'', which belong to the interval in the first column. All intervals except the highest interval are of the form [a, b). The highest interval has the form  [a, b].
 
: Returns a table (as text) whose first column contains intervals (classes) and second column contains the count of numbers in ''List of Raw Data'', which belong to the interval in the first column. All intervals except the highest interval are of the form [a, b). The highest interval has the form  [a, b].
 
+
;FrequencyTable( <Boolean Cumulative>, &lt;List of Class Boundaries>, &lt;List of Raw Data> )
;FrequencyTable[ <Boolean Cumulative>, <List of Class Boundaries>, <List of Raw Data> ]
+
:  If ''Cumulative = false'',  returns the same table as FrequencyTable( &lt;List of Class Boundaries>, &lt;List of Raw Data> )
:  If ''Cumulative = false'',  returns the same table as FrequencyTable[ <List of Class Boundaries>, <List of Raw Data> ]
+
:  If ''Cumulative = true'', returns a table whose first column is the same as in FrequencyTable( &lt;List of Raw Data> ) and the second contains cumulative frequencies of values in the first column.
:  If ''Cumulative = true'', returns a table whose first column is the same as in FrequencyTable[ <List of Raw Data> ] and the second contains cumulative frequencies of values in the first column.
+
;FrequencyTable( &lt;List of Class Boundaries>, &lt;List of Raw Data>, <Use Density> , <Density Scale Factor (optional)> )
 
+
:Returns a table (as text) whose first column contains intervals (classes) and second contains frequencies for the corresponding [[Histogram Command]].
;FrequencyTable[ <List of Class Boundaries>, <List of Raw Data>, <Use Density> , <Density Scale Factor> (optional) ]
+
;FrequencyTable( <Boolean Cumulative>, &lt;List of Class Boundaries>, &lt;List of Raw Data>, <Use Density> , <Density Scale Factor (optional)> )
 
:Returns a table (as text) whose first column contains intervals (classes) and second contains frequencies for the corresponding [[Histogram Command]].
 
:Returns a table (as text) whose first column contains intervals (classes) and second contains frequencies for the corresponding [[Histogram Command]].
  
;FrequencyTable[ <Boolean Cumulative>, <List of Class Boundaries>, <List of Raw Data>, <Use Density> , <Density Scale Factor> (optional) ]
+
;FrequencyTable( &lt;List of Raw Data>,<Scale Factor (optional)> )
:Returns a table (as text) whose first column contains intervals (classes) and second contains frequencies for the corresponding [[Histogram Command]].
+
:Returns a table (as text) whose first column <b>Value</b> contains a sorted list of unique elements of the ''&lt;List of Raw Data>'' and second column <b>Frequency</b> contains the count of the occurrences of value in the first column multiplied by the ''<Scale Factor>''. The list can be numbers or text.
 +
:{{Example|1=<div><code>FrequencyTable({1, 1, 1, 2, 2, 3, 3, 4, 5}, 2)</code> returns a table with first column ''Value'' with entries 1, 2, 3, 4, 5 and second column ''Frequency'' with entries 6, 4, 4, 2, 2.</div>{{note|1=In the list there appears 1 three-times, so the count of the occurences of 1 (=3) has to be multiplied by the scale factor 2 to get entry 6 in the second column.}}
 +
:{{Example|1= <div><code>FrequencyTable({"red", "red", "green", "green", "blue"}, 5)</code> returns a table with first column ''Value'' with entries blue, green, red (alphabetical order) and second column ''Frequency'' with entries 5, 10, 10.</div> }}
 +
}}
  
 
{{note|This command is similar to [[Frequency Command]] and [[Histogram Command]]. Articles about these commands contain some related examples.}}
 
{{note|This command is similar to [[Frequency Command]] and [[Histogram Command]]. Articles about these commands contain some related examples.}}

Latest revision as of 10:15, 3 October 2017


FrequencyTable( <List of Raw Data> )
Returns a table (as text) whose first column contains sorted list of unique elements of list L and second column contains the count of the occurrences of value in the first column. List L can be numbers or text.
FrequencyTable( <Boolean Cumulative>, <List of Raw Data> )
If Cumulative = false, returns the same table as Frequency( <List of Raw Data> )
If Cumulative = true, returns a table whose first column is the same as in FrequencyTable( <List of Raw Data> ) and the second contains cumulative frequencies of values in the first column.
FrequencyTable( <List of Class Boundaries>, <List of Raw Data> )
Returns a table (as text) whose first column contains intervals (classes) and second column contains the count of numbers in List of Raw Data, which belong to the interval in the first column. All intervals except the highest interval are of the form [a, b). The highest interval has the form [a, b].
FrequencyTable( <Boolean Cumulative>, <List of Class Boundaries>, <List of Raw Data> )
If Cumulative = false, returns the same table as FrequencyTable( <List of Class Boundaries>, <List of Raw Data> )
If Cumulative = true, returns a table whose first column is the same as in FrequencyTable( <List of Raw Data> ) and the second contains cumulative frequencies of values in the first column.
FrequencyTable( <List of Class Boundaries>, <List of Raw Data>, <Use Density> , <Density Scale Factor (optional)> )
Returns a table (as text) whose first column contains intervals (classes) and second contains frequencies for the corresponding Histogram Command.
FrequencyTable( <Boolean Cumulative>, <List of Class Boundaries>, <List of Raw Data>, <Use Density> , <Density Scale Factor (optional)> )
Returns a table (as text) whose first column contains intervals (classes) and second contains frequencies for the corresponding Histogram Command.
FrequencyTable( <List of Raw Data>,<Scale Factor (optional)> )
Returns a table (as text) whose first column Value contains a sorted list of unique elements of the <List of Raw Data> and second column Frequency contains the count of the occurrences of value in the first column multiplied by the <Scale Factor>. The list can be numbers or text.
Example:
FrequencyTable({1, 1, 1, 2, 2, 3, 3, 4, 5}, 2) returns a table with first column Value with entries 1, 2, 3, 4, 5 and second column Frequency with entries 6, 4, 4, 2, 2.
Note: In the list there appears 1 three-times, so the count of the occurences of 1 (=3) has to be multiplied by the scale factor 2 to get entry 6 in the second column.
Example:
FrequencyTable({"red", "red", "green", "green", "blue"}, 5) returns a table with first column Value with entries blue, green, red (alphabetical order) and second column Frequency with entries 5, 10, 10.


Note: This command is similar to Frequency Command and Histogram Command. Articles about these commands contain some related examples.
© 2024 International GeoGebra Institute