Homework 6.2: Simulating distributions (40 pts)
In a previous problem, you worked with a data set of measured times for microtubule catastrophe. In this problem, we will develop a model for microtubule catastrophe.
a) In the Gardner, Zanic, et al. paper, the authors assumed that the microtubule catatrophe times are Gamma distributed. Discuss how the story behind the Gamma distribution might work for modeling microtubule catastrophe.
b) As an alternative model, we assert that two biochemical processes have to happen in succession to trigger catastrophe. That is, the first process happens, and only after the first process happens can the second one happen. We model each of the two process as a Poisson process (as is very often done with (bio)chemical dynamics). The rate of arrivals for the first one is \(\beta_1\) and the rate of arrivals for the second one is \(\beta_2\).
In a typical experiment, Gardner and Zanic measured about 150 catastrophe events. Use random number generation to simulate one of these experiments with this successive Poisson process model and plot the ECDF of times to catastrophe. That is, generate 150 random numbers that are distributed according to the story of the model. You are simulating the story to do this. You can plot the time axis of the ECDF in units of \(\beta_1^{-1}\). Do this for several values of \(\beta_2/\beta_1\).
c) By using random number generation, you have shown how you might expect the experimental results to be distributed. You can derive the distribution for the time \(t\) to catastrophe analytically. Show analytically that the PDF of the distribution matching this story is
\begin{align} f(t;\beta_1, \beta_2) = \frac{\beta_1 \beta_2}{\beta_2 - \beta_1}\left(\mathrm{e}^{-\beta_1 t} - \mathrm{e}^{-\beta_2 t}\right) \end{align}
for \(\beta_1 \ne \beta_2\). The CDF for this distribution is
\begin{align} F(t; \beta_1, \beta_2) = \frac{\beta_1 \beta_2}{\beta_2-\beta_1}\left[ \frac{1}{\beta_1}\left(1-\mathrm{e}^{- \beta_1 t}\right)- \frac{1}{\beta_2}\left(1-\mathrm{e}^{-\beta_2 t}\right) \right]. \end{align}
Overlay this analytical CDF with an ECDF from your simulation to verify that they match.