Statistics Toolbox
  Go to function:
    Search    Help Desk 
binocdf    Examples

Binomial cumulative distribution function (cdf).

Syntax

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:


The result, y, is the probability of observing up to x successes in n independent trials of where the probability of success in any given trial is p.

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:

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.



[ Previous | Help Desk | Next ]