Difference between revisions of "Zipf Command"

From GeoGebra Manual
Jump to: navigation, search
m (Bot: Automated text replacement (-{{command +{{command|cas=true))
Line 16: Line 16:
 
:First two parameters are same as above.
 
:First two parameters are same as above.
 
==CAS Syntax==
 
==CAS Syntax==
In [[CAS View]] only one syntax is allowed:
 
 
;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.
 +
:{{example|1=<div><code><nowiki>Zipf[ 10, 1 , 5, false]</nowiki></code> yields ''<math>\frac{504}{7381}</math>''.</div>}}

Revision as of 12:16, 19 December 2012



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 bar graph of a cumulative Pascal 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}.
© 2024 International GeoGebra Institute