Code covered by the BSD License  

Highlights from
bernpdf

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 2.28 KB File ID: #28488
image thumbnail

bernpdf

by Peter Cotton

 

16 Aug 2010

Distribution of the sum of independent non-identical Bernoulli random variables using convolution

| Watch this File

File Information
Description

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).

Required Products Statistics Toolbox
MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Peter Cotton 16 Aug 2010 10:12:04
probability Peter Cotton 16 Aug 2010 10:12:04
simulation Peter Cotton 16 Aug 2010 10:12:04
bernoulli Peter Cotton 16 Aug 2010 10:12:04
convolution Peter Cotton 16 Aug 2010 10:12:04
conv Peter Cotton 16 Aug 2010 10:12:04

Contact us at files@mathworks.com