The following Matlab project contains the source code and Matlab examples used for calculate the probability of a run or streak of k consecutive successes in n bernoulli trials. .
% RESULT = PROBOFSTREAK(N, K, P)
% Function to calculate the probability of getting a run or streak of K
% consecutive successes in N Bernoulli trials with probability P.

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

## Project Files:

File Name | Size |
---|---|

license.txt | 1313 |

probOfStreak.m | 3282 |