On 4/26/12 9:23 PM, Jiqiang Guo wrote:
> Do we get the joint of (a, b) correctly?
>
> I suppose you meant that the joint of (a, b) is
> p(a,b) = 1/(high - low) * 1/(high - a) I(low < a < b < high)
Indeed -- I just assumed the support meeting the constraint.
> If it is correct, we then have conditional dsnof a given b as
> p(a|b) \propto 1/(high -a) I(low < a < b),
>
> which is not as specified by a ~ dunif(low, b) [if this means a given b].
That's why BUGS will get the wrong probability.
> The joint of (a, b) could be derived by
>
> p(a,b) = p(b|a) / (\int p(b|a) / p(a|b) db).
Intuitively this makes no sense, but that integral
sure does evaluate to 1/p(a).
But this can't possibly be what BUGS is doing.
Having said that, we're only going to get the probability
up to a proportion.
- Bob