In python's pymc3
package, a typical model building works as follows (imported from https://nbviewer.jupyter.org/github/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/Chapter2_MorePyMC/Ch2_MorePyMC_PyMC3.ipynb -
import pymc3 as pm
import theano.tensor as T
with pm.Model() as model:
... ... ...
obs = pm.Bernoulli("obs", p, observed=occurrences)
step = pm.Metropolis()
trace = pm.sample(18000, step=step)
burned_trace = trace[1000:]
However I have come across additional parameters for pm.sample that can be supplied to like chains=1, tune=1000, and draws=1000
. In the above documentation there is no mention of these 3 parameters.
Can anyone please help me to understand these 3parameters like what purpose they solve, how their values influence accuracy of the converge of posterior distribution etc.
Any pointer will be highly appreciated.