The likelihood function for the ordered arrival times of a Poisson process, including the absence of further arrivals before , is
The arrival-time constraint does not depend on . Equivalently, the Poisson distribution of the total count gives , which differs by a parameter-independent factor. Conditional on the count, the Poisson process conditional arrival times have density , independent of . Thus the total count contains all the information about the rate when the exposure is known; it is a sufficient statistic.
A conjugate prior is a family of prior distributions whose members remain in that family after updating by the likelihood function. Here multiplying a shape-rate gamma distribution density by the Poisson process likelihood changes its power of and its exponential rate, leaving a gamma distribution. The parameters change with the observations; conjugate prior does not mean that the Bayesian posterior equals the prior distribution.
By Poisson-gamma conjugacy, the posterior density is proportional to
Thus the shape-rate posterior is
Its posterior mean is and its variance is . The parameter is a rate, rather than a scale.
Independent increments of the Poisson process give for a one-hour interval. The Poisson distribution therefore gives
This conditional probability still depends on the unknown rate.
The posterior predictive probability averages the conditional probability over the Bayesian posterior. Using its gamma distribution density,
For fixed and ,
Consequently , and both tend to . This is reasonable because the posterior mean tends to the observed rate and the posterior variance tends to zero. Averaging then approaches evaluating it at the estimated rate: with abundant observations, predictive uncertainty about the rate vanishes.
There is a notation problem here. The posterior predictive probability calculated above is already a fixed number conditional on . Literally,
No simulation is needed for that interpretation. The known exposure is also necessary, despite its omission from this part's list of inputs.
The natural uncertain quantity is instead . For its posterior probability of being below one half, draw the rate from its gamma distribution Bayesian posterior and average an indicator. Rough BUGS code is
model {
  lambda ~ dgamma(a+n, b+T)
  q <- exp(-lambda)
  belowHalf <- step(lambda-log(2))
}
The monitored average of belowHalf estimates , equivalently . The equality boundary has zero probability. This code samples the already updated Bayesian posterior; adding the count likelihood function again would count the data twice.
For an Inhomogeneous Poisson process, the likelihood function is the product of the intensities at arrivals times the exponential of minus the integrated intensity. The integrated intensity is . There are arrivals at rate one and at rate two, so
Set and to include changes before the first or after the last arrival. An arrival exactly at the change has probability zero, so the convention for at that point does not affect the Bayesian posterior.
A uniform prior on makes the posterior density proportional to the Poisson change-point posterior likelihood above. The zeros trick introduces an observed zero with Poisson distribution mean , making its likelihood function equal to . Choose ; since , this mean is strictly positive. Rough BUGS code, with zero=0 supplied as data, is
model {
  theta ~ dunif(0,T)
  for (i in 1:n) {
    before[i] <- step(theta-time[i])
  }
  j <- sum(before[])
  logL <- theta-2*T+(n-j)*log(2)
  zero ~ dpois(K-logL)
}
For , omit the array and set j <- 0. Monitor the sampled theta to obtain its posterior mean, credible interval and interval probabilities.
There is also an exact sampling method. On the posterior density is proportional to , so choose the interval with weights
Then draw from a uniform distribution on and set . These weighted interval draws sample the posterior directly, without asking a local Markov chain Monte Carlo update to cross its discontinuities.

Articles by others on the same topic (0)

There are currently no matching articles.