Skip to content

Working with bounds instead of point observations in RxInfer #312

Answered by wouterwln
lionelkiel asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Lionel, I have been playing around with your model and got some sensible results. However, I did use some dirty tricks that I'll try to explain here:
First of all, I used this model:

@model function lionels_model(lower_lims, upper_lims)
    α ~ GammaShapeRate(1.0, 1.0)
    β ~ GammaShapeRate(1.0, 1.0)
    for i in 1:length(lower_lims)
        y[i] ~ GammaShapeRate(α, β)
        y[i] ~ Uniform(lower_lims[i], upper_lims[i])
    end
end

Now, the problem with this model is that a Gamma distribution does not have a nice closed-form conjugate prior to its shape parameter. Therefore, the message towards this variable is a bit weird to handle. What I did is that I approximated the product betw…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@Nimrais
Comment options

@Nimrais
Comment options

Comment options

You must be logged in to vote
4 replies
@lionelkiel
Comment options

@wouterwln
Comment options

@Nimrais
Comment options

@lionelkiel
Comment options

Comment options

You must be logged in to vote
1 reply
@lionelkiel
Comment options

Answer selected by wouterwln
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants