Beta-Bernoulli model #434
-
Hi all, Why is the prediction of y in the Beta-Bernoulli model below different from a/(a+b), when y is missing?
Beta{Float64}(α=2.0, β=1.0) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, yes this is a consequence of default variational factorization for the data points, RxInfer treats julia> result = infer(
model = beta_bernoulli(a = 2, b = 1),
data = (y = UnfactorizedData(missing), )
)
Inference results:
Posteriors | available for (θ)
Predictions | available for (y)
julia> println(result.posteriors[:θ])
Beta{Float64}(α=2.0, β=1.0)
julia> println(result.predictions[:y])
Bernoulli{Float64}(p=0.6666666666666666) Long story short |
Beta Was this translation helpful? Give feedback.
Hey, yes this is a consequence of default variational factorization for the data points, RxInfer treats
y
as actual data point, thus it is not being included in the resulting variational distributions and you get "worse" estimate. If you want to change that you should usey = UnfactorizedData(missing)
, e.g.Long st…