Truncating Poisson distribution on desired support in Matlab
问题 I want to construct a 3-dimensional Poisson distribution in Matlab with lambda parameters [0.4, 0.2, 0.6] and I want to truncate it to have support in [0;1;2;3;4;5] . The 3 components are independent. This is what I do clear n=3; %number components of the distribution supp_marginal=0:1:5; suppsize_marginal=size(supp_marginal,2); supp_temp=repmat(supp_marginal.',1,n); supp_temp_cell=num2cell(supp_temp,1); output_temp_cell=cell(1,n); [output_temp_cell{:}] = ndgrid(supp_temp_cell{:}); supp=zeros