Description: 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 on title('Probability distribution') subplot(2,1,2), plot(S,C), grid on title('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.
License: Shareware Related: p23d3, n23d7, spc dsumpdfx, subplot, n13d10, p13d1, outcomes, outcome, showing, x13d1 O/S:BSD, Linux, Solaris, Mac OS X File Size: 10.0 KB Downloads: 3

