Skip to content

Instantly share code, notes, and snippets.

View junpenglao's full-sized avatar
🏠
Working from home

Junpeng Lao junpenglao

🏠
Working from home
View GitHub Profile
@junpenglao
junpenglao / pymc3_sampling_difficulty.ipynb
Last active February 16, 2016 15:20
I am trying to adapt a pymc2 code to pymc3. However, there is a problem in the pymc3 model, one of the stochastic variable is not being sampled properly. In the new branch of pymc3 this problem is resolved.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@junpenglao
junpenglao / Arcsine_Laws_numerical.ipynb
Last active August 17, 2016 13:16
This is a numerical demonstration of the three arcsine laws for random walks.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@junpenglao
junpenglao / Mixture_model_estimation_as_hypothesis_testing.ipynb
Last active March 20, 2017 09:49
Testing hypotheses via a mixture estimation model in PyMC3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@junpenglao
junpenglao / GP_vs_MvNormal.ipynb
Created May 26, 2017 20:43
GP vs MvNormal in PyMC3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@junpenglao
junpenglao / Check_rLKJCorr.py
Last active August 3, 2017 06:22
Random Correlation matrix using the algorithm in LKJ 2009 (vine method based on a C-vine)
"""
Random Correlation matrix (LKJ 2009) output checking
Created on Wed Aug 2 09:09:02 2017
@author: junpenglao
"""
import numpy as np
from scipy import stats
@junpenglao
junpenglao / Mixture_discourse.ipynb
Created November 9, 2017 12:14
mixture regression
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@junpenglao
junpenglao / HMC_in_pyro.ipynb
Last active January 23, 2018 17:18
Testing the HMC in Pyro (recently merged to dev branch)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.