image thumbnail


version (455 Bytes) by Michael Robbins
Probability of surviving k of n trials where the outcome is to win or to lose.


Updated 23 Oct 2008

No License

This function provides the probability of surviving k of n trials for which the probability of each trial is p (for success) or 1-p for failure.

So, if one has a 60% chance of surviving each event, there are 10 events, and you want to know the chance of surviving 4, and only 4, events then n=10, k=4, p=0.60

Cite As

Michael Robbins (2022). BinomialProbability (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!