Difference between revisions of "Poisson Command"

From GeoGebra Manual
Jump to: navigation, search
m (removed extra CAS syntax)
(added short syntax)
Line 15: Line 15:
 
:*<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''.
 
:*<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''.
 
:*<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>}}
 
:*<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>}}
 +
:{{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}].}}

Revision as of 09:53, 30 October 2015


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}].
© 2021 International GeoGebra Institute