Skip to content

Instantly share code, notes, and snippets.

Adam Wespiser adamwespiser

View GitHub Profile
View conf intervals for point-wise prediction
# create fake data on gambling. Does prob win depend on bid size?
mydat <- data.frame(
adamwespiser / log-reg-posterior.R
Created Jan 31, 2018
Bayesian Log Reg: What is the difference between the expected pr(y==1| model) and pr(pr==1| model)[calc w/ expectation of beta] ?
View log-reg-posterior.R
options(mc.cores = parallel::detectCores())
rstan_options(auto_write = TRUE)
seed_sim = 1234
# set up data
N = 4000

Keybase proof

I hereby claim:

  • I am adamwespiser on github.
  • I am adamwespiser ( on keybase.
  • I have a public key ASDvVfiszzMDEZN4nTBPDJakWg9yqyuwpGloZCblP3xQigo

To claim this, I am signing this object:

adamwespiser / free-mtl-notes
Last active Feb 4, 2018
A comparison of performance between Free Monad and mtl transformers
View free-mtl-notes
Objective: A comparison of performance between Free Monad and mtl transformers
Free f a = { unFree :: f (Free f a) }
# construction of free monad via individual functions
adamwespiser /
Last active Dec 21, 2015
some helpful commands
adamwespiser / postgresQuick.sql
Last active Jan 5, 2016
A quick list of DBA commands for postgresql
View postgresQuick.sql
-- show tables
select * from pg_tables;
-- get all the active connections/tasks
select * from pg_stat_activity;
-- get sizes of active databases
adamwespiser / while_lang.hs
Created Dec 21, 2015
while language interpreter in haskell
View while_lang.hs
data Opa = Add
| Sub
| Mul
| Div
data Opr = Lt
| Gt
data Opb = And
| Or
adamwespiser /
Last active Jul 1, 2017
Ubuntu command line into
echo "current dir"
ls ./
echo "Root directory"
ls /
You can’t perform that action at this time.