Hi
I am trying to create a likelihood statement where a small number of observations are weighted much more heavily than the rest (eg, 203 observations but the last 3 are weighted more). Can anyone advise on how to try this?
code snippet:
with pm.Model():
x = pm.Normal('x',mu=0, sd=10, shape=100)
y = pm.Normal('y',mu=0, sd=10, shape=100)
F = pm.Deterministic('F', func) # returns values with shape=3
like = pm.Deterministic('like', pm.math.concatenate([x, y, F]))
obs = pm.Normal('obs', mu=like, observed = np.concatenate([x_obs, y_obs, F_obs]))
Many thanks
Richard