Just to make sure (I will have to generate random samples from this): the parametrisation you use is this?
https://pdfs.semanticscholar.org/bdb7/0423cea3717783ad5e6ac5c4f5577d257d01.pdf
Just to make sure (I will have to generate random samples from this): the parametrisation you use is this?
https://pdfs.semanticscholar.org/bdb7/0423cea3717783ad5e6ac5c4f5577d257d01.pdf
It goes back to this paper:
âSize-biased discrete two parameter Poisson-Lindley Distribution
for modeling and waiting survival times dataâ by âTanka Raj Adhikari, R.S. Srivastavaâ
http://iosrjournals.org/iosr-jm/papers/Vol10-issue1/Version-3/F010133945.pdf
Wasnât the original posting a dirichlet-multinomial alternative?
Thanks
Indeed. I am following both the routes
As strange as it sounds, nothing seems to have been implemented for MCMC/HMC samplers that models long tail count data, that is most of real-world count data. Implementing from scratch is not a trivial task.
I let do the math my âalgebra softwareâ, check if the distributions sum up to 1. The problems arise
in multinomial models, log_sum_exp
doesnât perform really good. Thereâs no array based vector function.
I not yet wrote a script to combine the calculation of the derivatives with this expression optimization
package:
Even its not guaranteed that it results in the minimum expression terms, it performs quite good. Maybe worth a try to have a script to auto-generate Stan functions.