This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
 BUILT-IN MATHEMATICA SYMBOL

# PascalDistribution

 PascalDistribution represents a Pascal distribution with parameters n and p.
• The probability for value in a Pascal distribution is for , and is zero otherwise.
• PascalDistribution gives the distribution of the number of trials with success probability p before n successes occur.
Probability density function:
Cumulative distribution function:
Mean and variance:
Probability density function:
 Out[1]=
 Out[2]=
 Out[3]=

Cumulative distribution function:
 Out[1]=
 Out[2]=
 Out[3]=

Mean and variance:
 Out[1]=
 Out[2]=
 Scope   (7)
Generate a set of pseudorandom numbers that have a Pascal distribution:
Compare its histogram to the PDF:
Distribution parameters estimation:
Estimate the distribution parameters from sample data:
Compare the density histogram of the sample with the PDF of the estimated distribution:
Skewness:
In the limit the distribution becomes symmetric:
Limiting values:
Kurtosis:
The limiting value for large n is the kurtosis of standard NormalDistribution:
Limiting values:
Different moments with closed forms as functions of parameters:
Closed form for symbolic order:
Hazard function:
Quantile function:
 Applications   (6)
The CDF of PascalDistribution is an example of a right-continuous function:
The number of fair coin flips before 3 heads:
Plot the distribution of the number of flips:
Find the probability of getting 3 heads in no more than 6 flips:
Find the average number of flips before getting 3 heads:
Simulate the number of coin flips before getting 3 heads:
A coin was flipped 10 times and the head occurred at the 10 flip. Find the probability of such an event if the coin is fair:
Assuming the coin may not be fair, find the most likely value for p:
A basketball player shoots free throws until he hits 4 of them. His probability of scoring in any one of them is 0.7. Simulate the process:
Find the average number of throws until 4 hits:
Find the probability that the player needs exactly 4 shots:
Assume the probability of fouling for each minute interval is 0.1 independently. Simulate the fouling process for 30 minutes:
A basketball player fouls out after 6 fouls. Find the expected playing time until foul out:
A data stream containing 4 data paclets is repeatedly sent without order information. Find the distribution of the number of tries until the data stream arrives with all the paclets in the right order for the second time:
Find the probability that paclets will arrive the second time in the correct order on the 20 try or sooner:
Find the average number of tries until the second ordered data stream:
Simulate the number of tries until the second ordered data stream:
PascalDistribution converges to a normal distribution when :
Sum of variates from Pascal distribution is a Pascal distribution:
Relationships to other distributions:
GeometricDistribution is a transformation of Pascal distribution:
NegativeBinomialDistribution and Pascal distribution differ by a shift:
New in 8