Difference between revisions of "Poisson Command"

From GeoGebra Manual
Jump to: navigation, search
(command syntax: changed [ ] into ( ))
 
(13 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|probability}}
{{command|probability}}
+
;Poisson( <Mean> )
;Poisson[ <Mean λ> ]
+
:Returns a bar graph of a [[w:Poisson distribution|Poisson distribution]] with given mean ''λ''.
: Returns a bar graph of a [[w:Poisson distribution|Poisson distribution]] with given mean λ.
+
;Poisson( <Mean>, <Boolean Cumulative> )
;Poisson[ <Mean λ>, <Boolean Cumulative> ]
 
 
:Returns a bar graph of a Poisson distribution when ''Cumulative = false''.  
 
:Returns a bar graph of a Poisson distribution when ''Cumulative = false''.  
:Returns a bar graph of a cumulative Poisson distribution when ''Cumulative = true''.
+
:Returns a graph of a cumulative Poisson distribution when ''Cumulative = true''.
 
:The first parameter is same as above.
 
:The first parameter is same as above.
;Poisson[ <Mean λ>, <Variable Value v>,<Boolean Cumulative> ]
+
;Poisson( <Mean>, <Variable Value v>, <Boolean Cumulative> )
: Let X be a Poisson random variable.
+
:Let X be a Poisson 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 parameter is same as above.
+
:First parameter is same as above.
==CAS Specific Syntax==
+
 
In [[CAS View]] only one syntax is supported:
+
:{{examples|1=<div>
;Poisson[ <Mean λ>, <Variable Value v>,<Boolean Cumulative> ]
+
:*<code><nowiki>Poisson(3, 1, true)</nowiki></code> yields ''0.2'' in the [[File:Menu view algebra.svg|link=|16px]] ''Algebra View'' and '' <math>\frac{4}{e³}</math> in the [[File:Menu view cas.svg|link=|16px]] ''CAS View''.
: Let X be a Poisson random variable.
+
:*<code><nowiki>Poisson(3, 1, false)</nowiki></code> yields ''0.15'' in the [[File:Menu view algebra.svg|link=|16px]] ''Algebra View'' and '' <math>\frac{3}{e³}</math>'' in the [[File:Menu view cas.svg|link=|16px]] ''CAS View''.</div>}}
: Returns P( X = ''v'') when ''Cumulative'' = false.
+
:{{Note|1=A simplified syntax is available to calculate P(''u'' ≤ X ≤ ''v''): e.g. <code>Poisson(1, 1..5)</code> yields ''0.63153'', that is the same as Poisson(1, {1, 2, 3, 4, 5}).}}
: Returns P( X ≤ ''v'') when ''Cumulative'' = true.
 
: First parameter is same as above.
 

Latest revision as of 11:18, 11 October 2017


Poisson( <Mean> )
Returns a bar graph of a Poisson distribution with given mean λ.
Poisson( <Mean>, <Boolean Cumulative> )
Returns a bar graph of a Poisson distribution when Cumulative = false.
Returns a graph of a cumulative Poisson distribution when Cumulative = true.
The first parameter is same as above.
Poisson( <Mean>, <Variable Value v>, <Boolean Cumulative> )
Let X be a Poisson random variable.
Returns P( X = v) when Cumulative = false.
Returns P( X ≤ v) when Cumulative = true.
First parameter is same as above.
Examples:
  • Poisson(3, 1, true) yields 0.2 in the Menu view algebra.svg Algebra View and \frac{4}{e³} in the Menu view cas.svg CAS View.
  • Poisson(3, 1, false) yields 0.15 in the Menu view algebra.svg Algebra View and \frac{3}{e³} in the Menu view cas.svg CAS View.
Note: A simplified syntax is available to calculate P(u ≤ X ≤ v): e.g. Poisson(1, 1..5) yields 0.63153, that is the same as Poisson(1, {1, 2, 3, 4, 5}).
© 2024 International GeoGebra Institute