Hello all, I am relatively new to PyMC and have a question about the result of some code that i have drafted up. Essentially my code is as follows:
Neville_thesis_8.py (6.7 KB)
(hopefully this attachment works)
So my question is that i am using a numpy blackbox function for the likelihood where it takes in a given value for my hyperparameters to produce the probabilities p that dictate the multinomial function. But a came across this page in the example gallery:
which suggests that this approach shouldn’t work but when i run my code i get a plot out so I am curious if it is the use of the shape argument of the likelihood in the model context manager that is meaning it still works or if it is just sampling the priors I am not 100% sure!
Any help would be appreciated and am happy to answer further questions to help explain the process if need be. Thanks in advance!