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);}")


INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_c119d6069f0316b80eefa9c12c3ce343 NOW.

In [6]:
samples = fit.extract(permuted=True)
plt.hist(samples['theta'], 50);