I am using pymc3 package for Bayesian modelling in Python. Below is my code
import pymc3 as pm
with pm.Model() as model :
mu = pm.Normal("mu", mu = 0, sigma = 1)
obs = pm.Normal("obs", mu = mu, sigma = 1, observed = np.random.randn(100))
model.logp({"mu": 0})
The logp method above gives a result as array(-149.24174903)
Could you please help me to understand what this number is referring to? Is it log-likelihood function? I also checked with below but could not match this number
import scipy.stats
import numpy as np
np.log(scipy.stats.norm(0, 1).pdf(0)) ### -0.9189385332046727
logpmethod?PyMC3 expects the logp() method to return a log-probability evaluated at the passed value argument. But I am still not clear what exactly is the calculation formula for my simple case