| Statistics Toolbox | Search  Help Desk |
| binocdf | Examples |
Binomial cumulative distribution function (cdf).
Syntax
Y = binocdf(X,N,P)
Description
binocdf(X,N,P) computes the binomial cdf with parameters N and P at the values in X. The arguments X, N, and P must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments. The parameter N must be a positive integer and P must lie on the interval [0 1]. The binomial cdf is:
Examples
If a baseball team plays 162 games in a season and has a 50-50 chance of winning any game, then the probability of that team winning more than 100 games in a season is:1 - binocdf(100,162,0.5)The result is 0.001 (i.e., 1 - 0.999). If a team wins 100 or more games in a season, this result suggests that it is likely that the team's true probability of winning any game is greater than 0.5.