Difference between revisions of "Zipf 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 )
(command syntax: changed [ ] into ( ))
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|probability}}
{{command|cas=true|probability}}
+
;Zipf( <Number of Elements>, <Exponent> )
;Zipf[ <Number of Elements>, <Exponent> ]
 
 
:Returns a bar graph of a [[w:Zipf's law|Zipf distribution]].
 
:Returns a bar graph of a [[w:Zipf's law|Zipf distribution]].
 
: Parameters:
 
: Parameters:
:*''Number of Elements'': number of elements whose rank we study
+
:''Number of Elements'': number of elements whose rank we study
:*''Exponent'': exponent characterizing the distribution
+
:''Exponent'': exponent characterizing the distribution
;Zipf[ <Number of Elements>, <Exponent> , <Boolean Cumulative> ]
+
;Zipf( <Number of Elements>, <Exponent> , <Boolean Cumulative> )
:Returns a bar graph of a Zipf distribution when ''Cumulative'' = false.
+
:Returns a bar graph of a ''Zipf distribution'' when ''Cumulative'' = false.
:Returns a bar graph of a cumulative Pascal distribution when ''Cumulative'' = true.
+
:Returns a graph of a cumulative Zipf distribution when ''Cumulative'' = true.
 
:First two parameters are same as above.
 
:First two parameters are same as above.
;Zipf[ <Number of Elements>, <Exponent> , <Variable Value v>, <Boolean Cumulative> ]
+
;Zipf( <Number of Elements>, <Exponent> , <Variable Value v>, <Boolean Cumulative> )
 
:Let X be a Zipf random variable.
 
:Let X be a Zipf random variable.
 
:Returns P( X = ''v'') when ''Cumulative'' = false.   
 
:Returns P( X = ''v'') when ''Cumulative'' = false.   
 
:Returns P( X ≤ ''v'') when ''Cumulative'' = true.
 
:Returns P( X ≤ ''v'') when ''Cumulative'' = true.
 
:First two parameters are same as above.
 
:First two parameters are same as above.
==CAS Syntax==
+
 
;Zipf[ <Number of Elements>, <Exponent> , <Variable Value v>, <Boolean Cumulative> ]
+
:{{example|1=<code><nowiki>Zipf(10, 1 , 5, false)</nowiki></code> yields ''0.07'' in the [[File:Menu view algebra.svg|link=|16px]] ''Algebra View'' and ''<math>\frac{504}{7381}</math>'' in the [[File:Menu view cas.svg|link=|16px]] ''CAS View''.}}
:Let X be a Zipf random variable.
 
:Returns P( X = ''v'') when ''Cumulative'' = false. 
 
:Returns P( X ≤ ''v'') when ''Cumulative'' = true.
 
:{{example|1=<div><code><nowiki>Zipf[ 10, 1 , 5, false]</nowiki></code> yields ''<math>\frac{504}{7381}</math>''.</div>}}
 

Latest revision as of 11:26, 11 October 2017


Zipf( <Number of Elements>, <Exponent> )
Returns a bar graph of a Zipf distribution.
Parameters:
Number of Elements: number of elements whose rank we study
Exponent: exponent characterizing the distribution
Zipf( <Number of Elements>, <Exponent> , <Boolean Cumulative> )
Returns a bar graph of a Zipf distribution when Cumulative = false.
Returns a graph of a cumulative Zipf distribution when Cumulative = true.
First two parameters are same as above.
Zipf( <Number of Elements>, <Exponent> , <Variable Value v>, <Boolean Cumulative> )
Let X be a Zipf random variable.
Returns P( X = v) when Cumulative = false.
Returns P( X ≤ v) when Cumulative = true.
First two parameters are same as above.
Example: Zipf(10, 1 , 5, false) yields 0.07 in the Menu view algebra.svg Algebra View and \frac{504}{7381} in the Menu view cas.svg CAS View.
© 2024 International GeoGebra Institute