|
65 | 65 | % Solid black line indicate posterior mean |
66 | 66 | subplot(4,2,3); |
67 | 67 | hist(thhat(nBurnIn:nRuns,1), floor(sqrt(nRuns-nBurnIn)) ); |
68 | | -xlabel('phi'); ylabel('posterior density estimate'); |
| 68 | +xlabel('mu'); ylabel('posterior density estimate'); |
69 | 69 |
|
70 | 70 | h = findobj(gca,'Type','patch'); |
71 | 71 | set(h,'FaceColor',[117 112 179]/256,'EdgeColor','w'); |
|
74 | 74 | subplot(4,2,4); |
75 | 75 | plot(nBurnIn:nRuns,thhat(nBurnIn:nRuns,1), 'Color', [117 112 179]/256); |
76 | 76 | hold on; plot([nBurnIn nRuns],[1 1] * mean(thhat(nBurnIn:nRuns,1)), 'k'); hold off; |
77 | | -xlabel('iteration'); ylabel('trace of phi'); |
| 77 | +xlabel('iteration'); ylabel('trace of mu'); |
78 | 78 |
|
79 | 79 | subplot(4,2,5); |
80 | 80 | hist(thhat(nBurnIn:nRuns,2), floor(sqrt(nRuns-nBurnIn)) ); |
81 | | -xlabel('sigmav'); ylabel('posterior density estimate'); |
| 81 | +xlabel('phi'); ylabel('posterior density estimate'); |
82 | 82 |
|
83 | 83 | h = findobj(gca,'Type','patch'); |
84 | 84 | set(h,'FaceColor',[231 41 138]/256,'EdgeColor','w'); |
85 | 85 | hold on; plot([1 1] * mean(thhat(nBurnIn:nRuns,2)), [0 500], 'k'); hold off; |
86 | 86 |
|
87 | 87 | subplot(4,2,6); |
88 | 88 | plot(nBurnIn:nRuns,thhat(nBurnIn:nRuns,2), 'Color', [231 41 138]/256); |
89 | | -xlabel('iteration'); ylabel('trace of sigmav'); |
| 89 | +xlabel('iteration'); ylabel('trace of phi'); |
90 | 90 | hold on; plot([nBurnIn nRuns],[1 1] * mean(thhat(nBurnIn:nRuns,2)), 'k'); hold off; |
91 | 91 |
|
92 | 92 | subplot(4,2,7); |
93 | 93 | hist(thhat(nBurnIn:nRuns,3), floor(sqrt(nRuns-nBurnIn)) ); |
94 | | -xlabel('beta'); ylabel('posterior density estimate'); |
| 94 | +xlabel('sigmav'); ylabel('posterior density estimate'); |
95 | 95 |
|
96 | 96 | h = findobj(gca,'Type','patch'); |
97 | 97 | set(h,'FaceColor',[102 166 30]/256,'EdgeColor','w'); |
|
100 | 100 | subplot(4,2,8); |
101 | 101 | plot(nBurnIn:nRuns,thhat(nBurnIn:nRuns,3), 'Color', [102 166 30]/256); |
102 | 102 | hold on; plot([nBurnIn nRuns],[1 1] * mean(thhat(nBurnIn:nRuns,3)), 'k'); hold off; |
103 | | -xlabel('iteration'); ylabel('trace of beta'); |
| 103 | +xlabel('iteration'); ylabel('trace of sigmav'); |
104 | 104 |
|
105 | 105 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
106 | 106 | % End of file |
|
0 commit comments