Algorithm 2.
Updating rule in the LNA-based MCMC algorithm
| 1: | Input: Parameter values from the previous interation ,,,,, geneology g. Proposal density , for updating the initial number of infected individuals and the removal rate. | |
| 2: | Output Updated parameters values | |
| 3: | Calculate based on ,,,,. | |
| 4: | Propose based on , then will be deterministically updated to according to ,,,,. | |
| 5: | Accept with acceptance probability | |
|
|
||
| 6: | Propose based on , then will be deterministically updated to according to ,,,,. | |
| 7: | Accept with acceptance probability | |
|
|
||
| 8: | Let , then a priori follows a multivariate normal distribution. Use elliptical slice sampler to obtain and get the updated and will be deterministically updated to according to ,,,. | |
| 9: | Since a priori follows a multivariate normal distribution, we use the elliptical slice sampler to obtain will be deterministically updated to according to ,,,,. |