Skip to content

Is it possible to index a vector-valued randomvar? #233

Answered by albertpod
mvsoom asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @mvsoom. You have quite a peculiar likelihood. I'm unsure how to specify it yet, but let me answer your questions regardless of this likelihood.

So, first of all, what helps to understand what you can or cannot do within RxInfer.jl is to think of your model in terms of a graph. I know that this isn't something you want to dive in, and we try to hide this from the user so that you have a seamless experience.
So when you say h[1] what does it mean in terms of the graph? Well, one way of taking the index is to do something like:

h ~ MvNormal(mean=m, cov=V)
h_1 ~ dot(h, c) # where c is a basis vector (1, 0, ..., 0)

So, by doing this, you can extract h[1] from h.

Another thing you can loo…

Replies: 1 comment 2 replies

Comment options

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

@mvsoom
Comment options

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