bernpdf
Version 1.0.0.0 (2.28 KB) by
Peter Cotton
Distribution of the sum of independent non-identical Bernoulli random variables using convolution
Y = BERNPDF(P) where P is an N x 1 vector returns the distribution of the sum of N Bernoulli random variables. Y is of length N+1 and Y(j) is equal to the probability that the sum adds to j+1. The vector P comprises the means of Bernoulli random variables, which is to say that P(k) is the probability that the k'th random variable being 1 (and it is otherwise 0).
Cite As
Peter Cotton (2026). bernpdf (https://uk.mathworks.com/matlabcentral/fileexchange/28488-bernpdf), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Continuous Distributions > Extreme Value Distribution >
Find more on Extreme Value Distribution in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
