BINOMIALPDF : Binomial Probability Density function

BINOMIALPDF Returns the probability that X = k in sample n.
302 Downloads
Updated 30 Dec 2011

View License

Very easy function to use that helps statisticians solve all kinds of problems.
The function does not need the Statistics Toolbox. I have included the BINOMIND function which this one calls but you can
download it separately if you like. I uploaded it to MATLAB Central as well.

EX1: binomialpdf(40,6,0.1,'exact') % = bpdf(X=6) where 0.1 = 10%
% ans = 0.106756244747289

% EX2: binomialpdf(11,2,0.1,'atmost') % = bpdf(X=0)+bpdf(X=1)+bpdf(X=2)
% ans = 0.910438149150000

% EX3: binomialpdf(10,2,0.1,'atleast')% = bpdf(X=2)+...+bpdf(X=10)
% ans = 0.263901070900000

Cite As

Bruce Raine (2024). BINOMIALPDF : Binomial Probability Density function (https://www.mathworks.com/matlabcentral/fileexchange/34387-binomialpdf-binomial-probability-density-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
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!
Version Published Release Notes
1.1.0.0

Updated the binomind.m file (1 of 2 files) in the zip file with the latest version. I have also uploaded the latest binomind.m file separately.

1.0.0.0