Calculating confidence intervals for parameter estimates #145
-
Hi, I'm using POMP for MLE of the parameters in an SEIR epi model. In order to calculate the CI's for these parameters, I'm applying the Monte Carlo profile (MCAP) method (described in this paper). However, I'm getting a very flat likelihood surface, at least near the optimum parameters, for example: This results in very side CIs... Do you have any general recommendations/comments about this? I can provide more details if needed, the code is here. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
At first glance, it seems the problem may lie with the profile likelihood calculation, rather than with the MCAP. Why do you think you see what, to a very high precision, is flatness? |
Beta Was this translation helpful? Give feedback.
-
Yes, it could be the case that's a problem with the likelihood calculation... or how the values are collected in my MCAP code. I will take a closer look and report back. At this point I don't have any good guesses, judging from the plot I posted (for other parameters, they look similar) the likelihood values do change along what seems to be a "cliff"... |
Beta Was this translation helpful? Give feedback.
-
Ok so I looked closer into it, and I think I found some causes for for the problem of the "flat" loglik surface.
|
Beta Was this translation helpful? Give feedback.
-
@ionides Thank you so much for your suggestion! Removing the values in the bottom of the likelihood cliff seem to solve the problem (together with the fix I mentioned earlier of using the length of each subdivision it the parameter range). The loglik values I posted were from a quick test run, but I will re-run it with the "production" parameters I will report back. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
The MCAP calculation of the CIs is working pretty nicely! However, I have some questions regarding the quadratic fit when the maximum of the loglik is near the edge of the parameter range. Consider the following extreme case, where the parameter is bounded to the [0, 1] interval and the loglik maximum is very close to 0. Using a lambda smoothing of 1, the maximum of the quadratic function falls outside the range: so the CI is undefined. Lowering lambda to 0.75 starts to look better: but the CI is too wide. Only lowering a lot, to 0.3, I get a reasonable 95% CI of (0.02, 0.12): I also thought of applying the logit transformation to extend the range to -inf, +inf. So here you have the corresponding plots for lambda = 1, 0.75, and 0.3: The final 95% CI applying the logit transform with 0.3 smoothing is a bit tighter at (0.02 0.09) So I guess my question is what do you recommend to do in these cases? It looks like parameters where the loglik maximum is near the edges of the range cause trouble to the MCAP method, at least you need to tweak the lambda parameter manually until getting a good fit. Applying a variable transformation such as the logit for bounded variables seems to help as well. But then there is the question (at least for me) of how to interpret the CI after these manipulations. Thank you! |
Beta Was this translation helpful? Give feedback.
The MCAP calculation of the CIs is working pretty nicely! However, I have some questions regarding the quadratic fit when the maximum of the loglik is near the edge of the parameter range. Consider the following extreme case, where the parameter is bounded to the [0, 1] interval and the loglik maximum is very close to 0. Using a lambda smoothing of 1, the maximum of the quadratic function falls outside the range:
so the CI is undefined. Lowering lambda to 0.75 starts to look better:
but the CI is too wide. Only lowering a lot, to 0.3, I get a reasonable 95% CI of (0.02, 0.12):
I also thought of applying the logit transformation to extend the range to -inf, +inf. So here you have the co…