Difference between revisions of "Pascal 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 )
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}</noinclude>
+
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|cas=true|probability}}
 
{{command|cas=true|probability}}
 
;Pascal[ <Number of Successes r>, <Probability of Success p> ]
 
;Pascal[ <Number of Successes r>, <Probability of Success p> ]

Revision as of 21:19, 9 March 2013



Pascal[ <Number of Successes r>, <Probability of Success p> ]
Returns a bar graph of a Pascal distribution.
Parameters:
Number of Successes: number of independent Bernoulli trials that must be successful
Probability of Success: probability of success in one trial
Pascal[ <Number of Successes>, <Probability of Success>, <Boolean Cumulative> ]
Returns a bar graph of a Pascal distribution when Cumulative = false.
Returns a bar graph of a cumulative Pascal distribution when Cumulative = true.
First two parameters are same as above.
Pascal[ <Number of Successes>, <Probability of Success>, <Variable Value v>, <Boolean Cumulative> ]
Let X be a Pascal 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

Pascal[ <Number of Successes>, <Probability of Success>, <Variable Value v>, <Boolean Cumulative> ]
Let X be a Pascal random variable.
Returns P( X = v) when Cumulative = false.
Returns P( X ≤ v) when Cumulative = true.
Example:
The number of independent Bernoulli trials that must be successful is n = 1, the probability of success in one trial is p = \frac{1}{6}, the variable value is v = 2 and "Cumulative" = false.
Pascal[ n, p, v, false] yields \frac{25}{216}
© 2024 International GeoGebra Institute