Difference between revisions of "Pascal Command"

From GeoGebra Manual
Jump to: navigation, search
(Autogenerated from properties)
Line 1: Line 1:
 
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
{{command|probability}}
 
{{command|probability}}
;Pascal[ <Number of Successes>, <Probability of Success>, <Variable Value> ]
+
;Pascal[ <Number of Successes r>, <Probability of Success p> ]:
:{{description}}
+
: Returns a bar graph of a [[w:Pascal distribution|Pascal distribution]]. Each bar in the bar
 +
graph shows probability of having given number of failures before <math>r</math> successes.
 +
:''Parameters:''
 +
::''Number of Succeses'': 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 Specific Syntax==
 +
In [[CAS View]] only one syntax is allowed:
 +
;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.

Revision as of 17:35, 19 July 2011



Pascal[ <Number of Successes r>, <Probability of Success p> ]
Returns a bar graph of a Pascal distribution. Each bar in the bar

graph shows probability of having given number of failures before r successes.

Parameters:
Number of Succeses: 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 Specific Syntax

In CAS View only one syntax is allowed:

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.
© 2024 International GeoGebra Institute