On Jan 5, 8:32 am, Delphine Pessoa <
delphinepes...@gmail.com> wrote:
> Thank you for your response Chris.
>
> We count event by comparing the state of the individuals at two consecutive
> sampling times.
> What we observe in the simulation is that the individuals might change state
> more than once between these sampling times and therefore the "apparent"
> number of events (transitions) is less than what is expected from the model.
> We can simulate using chosen parameter values and sampling frequencies to
> get an idea of this observation bias (counting the number of apparent
> transitions by sampling the individual's states at chosen sampling times and
> comparing to the number of simulated transitions).
>
> The problem when using this probability of observation is the same as with
> the number of unobserved events.
> If I set p with a Beta distribution, this will be its prior probability
> distribution, and pymc will try to estimate it from the data.
> It's not possible to differentiate between a low detection of events and
> high rate or the opposite. So extreme values for both are accepted and the
> posterior distributions are very wide.
You are exactly right -- given just counts of events, you do not have
the information to separately estimate the two parameters. Typically,
you need a sequence of observations in order to get at the observation
process. If you look at the salamander occupancy model example on the
PyMC main page, it will give you an idea of what is required -- in
this case they have a sequence of capture occasions for marked
individuals, and the sequences of observations of capture events holds
independent information regarding the observation process. You may be
stuck with having to fix hyperparameters for the beta distribution
based on any prior information you may have.
Are you saying that some individuals are infected, recover, then are
infected again within the same time step? In that case, should you not
be accounting for a recovery rate? You might be able to set up a
latent variable model that predicts unobserved transitions in the same
model. If rates of infection and recovery are high, you might expect
lots of mutliple transitions, whereas if one or the other are low, you
would not. I guess i dont know enought about the system to say for
sure.
cf