Weighted Linear Regression using GLM

Since the weights are usually element-wise multiply to the observed likelihood, I dont see a straightforward way to do it with GLM object. You can try either:

  1. Writing a custom distribution to express the weighted likelihood
  2. Express it as an additional term and use pm.Potential to add it to the model.
1 Like