Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

# Sum of probability distributions 1.0

Date Added: August 22, 2013  |  Visits: 206

SUMPDF Probability distribution of the sum of distributions[S,P,C]=SUMPDF(X1,P1,N1,X2,P2,N2,...) will return the distribution of the sum of distribution P1, at values at X1, N1 times plus the distribution P2, at values in X2, N2 times... The output vectors, S, P, and C, are respectively the list of unique totals, probability of yielding that sum, and the count distribution of obtaining that sum among all combinations. Example:Two distributions, on different intervals, each repeated a different number of times. What is the distribution of the possible outcomes? Plot the outcome, showing the distribution. X1=[-1 0 2]; P1=[.1 .2 .7]; N1=10;X2=[ 0 1 2]; P2=[.3 .5 .2]; N2=7;[S,P,C]=sumpdf(X1,P1,N1,X2,P2,N2); subplot(2,1,1), plot(S,P), grid ontitle('Probability distribution')subplot(2,1,2), plot(S,C), grid ontitle('Number of combinations possible to obtain each outcome') This illustrates that while an outcome of 10 has the most combinations of ways to happen, due to the given probability distributions it is an outcome of 20 that is actually most likely.

 Requirements: No special requirements Platforms: Matlab Keyword: N13d10,  N23d7,  Outcome,  Outcomes,  P13d1,  P23d3,  Showing,  Spc Dsumpdfx,  Subplot,  X13d1 Users rating: 0/10