Difference between revisions of "Zipf Command"
From GeoGebra Manual
(bar graph is a just a graph when cumulative==true) |
m |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5}}</noinclude> |
{{command|cas=true|probability}} | {{command|cas=true|probability}} | ||
;Zipf[ <Number of Elements>, <Exponent> ] | ;Zipf[ <Number of Elements>, <Exponent> ] |
Revision as of 13:05, 9 July 2015
- 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.
CAS Syntax
- 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.
- Example:
Zipf[ 10, 1 , 5, false]
yields \frac{504}{7381}.