Hi, @Elenchus! Thank you for getting back to me so quickly.
I like the second way you set up the parameters, as this allows increased flexibility! However, the parameters of the first example may also change. Let say you use only a simple normal distribution as your prior:
mu = pm.Normal(“mu”, mu=mean, sd=std)
pm.Normal(“likelihood”,mu=mu)
In this case the posterior mu may no longer have a mu=mean and sd=std, so that even also here, the parameters of the prior are learned and changed. How is this different from the latter case?
1 Like