Skip to content

Instantly share code, notes, and snippets.

View englianhu's full-sized avatar

®γσ, ξηg Lιαη Ημ(雷欧) englianhu

View GitHub Profile
@englianhu
englianhu / bivar_pois.R
Created August 21, 2017 03:24 — forked from mbjoseph/bivar_pois.R
Initial pass at a bivariate Poisson model in Stan
## Simple bivariate Poisson model in stan
## following parameterization in Karlis and Ntzoufras 2003
## Simulate data
n <- 50
# indpendent Poisson components
theta <- c(2, 3, 1)
X_i <- array(dim=c(n, 3))
for (i in 1:3){
# Mini Project 2 for An Introduction to Interactive Programming in Python
# template for "Guess the number" mini-project
# input will come from buttons and an input field
# all output for the game will be printed in the console
# url http://www.codeskulptor.org/#user6-irmTc4hgQqb60Du.py
import random
import simplegui
# initialize global variables used in your code