13.5 Exercises

Exercise 13.1 For both of the MCMC examples in this section, increase the number of iterations to 10000. Analyze your results from both cases. How does increasing the number of iterations affect the posterior parameter estimates and their confidence intervals? Does the log likelihood value change?

 

Exercise 13.2 Time the MCMC parameter estimate for the phosphorous dataset for 1 iteration. Then time the MCMC parameter estimate for 10, 100, 1000, and 10000 iterations, recording the times for each one. Make a scatterplot with the number of iterations on the horizontal axis and time on the vertical axis. How would you characterize the relationship between the number of iterations and the time it takes to run the code?

 

Exercise 13.3 For the parks data (Equation (13.2)) studied in this section, compare the 1:1 and the posterior parameter plots. Summarize the following:

  1. The posterior parameter estimates, with 95% confidence interval.
  2. The posterior parameter histograms.

Apply your knowledge of equifinality and other observations to determine by how much you have estimated the parameters \(a\) and \(b\) fom the data.

 

Exercise 13.4 Run an MCMC parameter estimation on the dataset yeast from Gause (1932), where the equation for the volume of yeast \(V\) over time is given by the following equation for an yeast growing in isolation is: \[\begin{equation} V = \frac{K}{1+e^{a-bt}}, \end{equation}\]

where \(K\) is the carrying capacity, \(a\) and \(b\) respective rate constants. Apply the data for Sacchromyces to do an MCMC estimate for this equation. You may assume the following prior values on your parameters:

  • \(K:\) 0 to 20
  • \(b\): 0 to 1
  • \(a\): automatically equals to \(a = \ln(K/0.45-1)\)
Be sure to report all outputs from the MCMC estimation (this includes parameter estimates, confidence intervals, log likelihood values, and any graphs).

 

Exercise 13.5 Another model for this growth of yeast is the function \(\displaystyle V= K + Ae^{-bt}\). Compute an MCMC estimate for the parameters \(K\) and \(b\) (use the same bounds as in the previous problem). You may assume that \(V(0)=0.45\), so \(A = K - 0.45\). Be sure to report all outputs from the MCMC estimation (this includes parameter estimates, confidence intervals, log likelihood values, and any graphs). Compare your results to the previous exercise.

 

Exercise 13.6 Run an MCMC parameter estimation on the dataset wilson according to the following differential equation:

\[\begin{equation} \frac{dP}{dt} = b(N-P) \end{equation}\]

Be sure to report all outputs from the MCMC estimation (this includes parameter estimates, confidence intervals, log likelihood values, and any graphs).

References

Gause, G. F. 1932. “Experimental Studies on the Struggle for Existence: I. Mixed Population of Two Species of Yeast.” Journal of Experimental Biology 9 (4): 389–402.