cumulative distribution function Trinomial Distribution

1 visualización (últimos 30 días)
Tammun filistin
Tammun filistin el 15 de Mayo de 2018
Editada: Tammun filistin el 15 de Mayo de 2018
%Hello every one,
how i can calculate cumulative distribution function(cdf) for Trinomial Distribution
function ff=myTrinomial(n,p01,p02)
sum=zeros;
for x=0:n
for y=0:n-x
ff(x+1,y+1)=(factorial(n)/(factorial(x)*factorial(y)*factorial(n-x-y)))*p01^x*p02^y*(1-p01-p02)^(n-x-y);
% ff(x+1,y+1)=1-sum(x+2,y+2) end % b=cumsum(ff) end

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by