Posterior Distribution for Number for Grouped Poissons

  • Thread starter Thread starter SpringPhysics
  • Start date Start date
  • Tags Tags
    Distribution
SpringPhysics
Messages
104
Reaction score
0

Homework Statement


I am trying to determine the posterior distribution of N where given a sequence of n independence Poisson random variables, the first N come from Poisson(a1) and the next N+1st to the nth ones come from Poisson(a2). The prior distribution on N is discrete uniform on the integers from 1 to n-1.


Homework Equations





The Attempt at a Solution


I found the likelihood (which is the same as the posterior):

P(N|a1, a2) \alpha e-N(a1-a2)(a1/a2)ƩXi where i goes from 1 to N

No matter how much I try to rearrange the terms, I can't find out what this distribution is. Any help would be appreciated. Thanks.
 
Physics news on Phys.org
SpringPhysics said:

Homework Statement


I am trying to determine the posterior distribution of N where given a sequence of n independence Poisson random variables, the first N come from Poisson(a1) and the next N+1st to the nth ones come from Poisson(a2). The prior distribution on N is discrete uniform on the integers from 1 to n-1.


Homework Equations





The Attempt at a Solution


I found the likelihood (which is the same as the posterior):

P(N|a1, a2) \alpha e-N(a1-a2)(a1/a2)ƩXi where i goes from 1 to N

No matter how much I try to rearrange the terms, I can't find out what this distribution is. Any help would be appreciated. Thanks.

"Posterior" means "after an observation". What is the observation? Is it the sum of the random variables, or what?
 
Ray Vickson said:
"Posterior" means "after an observation". What is the observation? Is it the sum of the random variables, or what?
The way I read the question, though it sounds a little weird, is that a number N is selected according to a distribution, then that number is used to produce a sequence of n terms in which the first N are selected from one Poisson distribution of known parameter, and the rest from a Poisson of known, different parameter. But we don't know what N was. The sequence obtained conveys information about N, so it now has a posterior distribution.
And the way I read the OP, SpringPhysics has figured out the relative probabilities for values of N, but needs to normalise them by dividing by the total. If so, SpringPhysics has done the hard work and it's a simple matter of summing a finite geometric series.
P(N|a1, a2) α e-N(a1-a2)(a1/a2)ƩXi where i goes from 1 to N
Everything is constant in the sum except N.
 
haruspex:
Yes, I've already figured out the relative probabilities. I don't see how this is a sum of a geometric series though. Do you mean to simplify as

exp(Ʃ[Xi * (log(a1) - log(a2)) - (a1 - a2)]}
where the sum goes from i = 1 to N

I still don't recognize the distribution.

EDIT: I understand what you mean now, but I don't need to find the normalizing constant. I need to figure out what this distribution is so that I can perform Gibbs sampling.

EDIT 2: Oh, I see. So I actually have to compute the probability for each possible value of N by dividing the sum, which is actually doable since it's discrete? Thanks so much!
 
Last edited:
SpringPhysics said:
haruspex:
Yes, I've already figured out the relative probabilities. I don't see how this is a sum of a geometric series though. Do you mean to simplify as

exp(Ʃ[Xi * (log(a1) - log(a2)) - (a1 - a2)]}
where the sum goes from i = 1 to N

I still don't recognize the distribution.

EDIT: I understand what you mean now, but I don't need to find the normalizing constant. I need to figure out what this distribution is so that I can perform Gibbs sampling.

EDIT 2: Oh, I see. So I actually have to compute the probability for each possible value of N by dividing the sum, which is actually doable since it's discrete? Thanks so much!
Good job I was offline for a while:smile:
 
  • Like
Likes 1 person
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...

Similar threads

Replies
8
Views
1K
Replies
7
Views
2K
Replies
2
Views
3K
Replies
4
Views
2K
Replies
6
Views
2K
Replies
10
Views
2K
Back
Top