Thanks. A quick follow up question on your comment:
Moreover,
weightwill be a tensor with value set tod2['weight'].
Since, mu_height is determined by:
mu_height = alpha + beta * (d2[‘weight’]-np.mean(d2[‘weight’]))
I’m assuming mu_height will also be a tensor (not tensor) during sampling? Is my understanding correct?
In that case, what does mu=mu_height imply in:
height = pm.Normal(‘height’, mu=mu_height, sd=sigma_height, observed=d2[‘height’])
My assumption was that mu took a scalar value. How is mu_height tensor treated? (Also sigma_height isn’t a tensor and I’m not sure why that won’t cause a problem)