Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Created February 9, 2018 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillKoehrsen/ec1bd17a1c6c2733cdabdaa36d709d49 to your computer and use it in GitHub Desktop.
Save WillKoehrsen/ec1bd17a1c6c2733cdabdaa36d709d49 to your computer and use it in GitHub Desktop.
# pandas and numpy for data manipulation
import pandas as pd
import numpy as np
# scipy for algorithms
import scipy
from scipy import stats
# pymc3 for Bayesian Inference, pymc built on t
import pymc3 as pm
import theano.tensor as tt
import scipy
# matplotlib for plotting
import matplotlib.pyplot as plt
%matplotlib inline
from IPython.core.pylabtools import figsize
import matplotlib
import json
s = json.load(open('style/bmh_matplotlibrc.json'))
matplotlib.rcParams.update(s)
matplotlib.rcParams['figure.figsize'] = (10, 3)
matplotlib.rcParams['font.size'] = 14
# Number of samples for Markov Chain Monte Carlo
N_SAMPLES = 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment