GIBBS SAMPLING FOR N DISCRETE VARIABLES IN A N-SPACE
Dear all,
I would like to ask how can be perfomed a Gibbs sampling for a space constituted by n discrete distributions. As an example, I provide 5 distributions with different data, different size, and different p(data), which represent the posterior probability:
– data1 = [50 70 100 130 170 230 300 400]; p(data1) = [0.20 0.05 0.05 0.10 0.09 0.01 0.28 0.22];
– data2 = [1 2 3 4 5 6 7 8]; p(data2) = [0.05 0.1 0.25 0.1 0.05 0.05 0.2 0.2];
– data3 = [1 2 3 4]; p(data3) = [0.3 0.5 0.1 0.1];
– data4 = [1 2]; p(data4) = [0.85 0.15];
– data5 = [1 2]; p(data5) = [0.9 0.1];Dear all,
I would like to ask how can be perfomed a Gibbs sampling for a space constituted by n discrete distributions. As an example, I provide 5 distributions with different data, different size, and different p(data), which represent the posterior probability:
– data1 = [50 70 100 130 170 230 300 400]; p(data1) = [0.20 0.05 0.05 0.10 0.09 0.01 0.28 0.22];
– data2 = [1 2 3 4 5 6 7 8]; p(data2) = [0.05 0.1 0.25 0.1 0.05 0.05 0.2 0.2];
– data3 = [1 2 3 4]; p(data3) = [0.3 0.5 0.1 0.1];
– data4 = [1 2]; p(data4) = [0.85 0.15];
– data5 = [1 2]; p(data5) = [0.9 0.1]; Dear all,
I would like to ask how can be perfomed a Gibbs sampling for a space constituted by n discrete distributions. As an example, I provide 5 distributions with different data, different size, and different p(data), which represent the posterior probability:
– data1 = [50 70 100 130 170 230 300 400]; p(data1) = [0.20 0.05 0.05 0.10 0.09 0.01 0.28 0.22];
– data2 = [1 2 3 4 5 6 7 8]; p(data2) = [0.05 0.1 0.25 0.1 0.05 0.05 0.2 0.2];
– data3 = [1 2 3 4]; p(data3) = [0.3 0.5 0.1 0.1];
– data4 = [1 2]; p(data4) = [0.85 0.15];
– data5 = [1 2]; p(data5) = [0.9 0.1]; sampling, statistics, gibbs, discrete variables MATLAB Answers — New Questions