This simple notebook can be used to test that PyStan has been succesfully installed.
In [5]:
import pystan
%matplotlib inline
import matplotlib.pyplot as plt
In [3]:
fit = pystan.stan(model_code="parameters {real theta;} model {theta ~ normal(0,1);}")
In [6]:
samples = fit.extract(permuted=True)
plt.hist(samples['theta'], 50);