Algorithm 3.
Updating rule in the ODE-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 ,,, based on ODE integration. | |
| 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 of obtain and get the updated and will be deterministically updated to according to ,,, based on ODE integration. |