Skip to content

Instantly share code, notes, and snippets.

View adamwespiser's full-sized avatar

Adam Wespiser adamwespiser

View GitHub Profile
#https://stats.stackexchange.com/questions/29044/plotting-confidence-intervals-for-the-predicted-probabilities-from-a-logistic-re
library(tidyverse)
library(magrittr)
set.seed(1234)
# create fake data on gambling. Does prob win depend on bid size?
mydat <- data.frame(
@adamwespiser
adamwespiser / log-reg-posterior.R
Created January 31, 2018 06:49
Bayesian Log Reg: What is the difference between the expected pr(y==1| model) and pr(pr==1| model)[calc w/ expectation of beta] ?
library(rstan)
library(dplyr)
options(mc.cores = parallel::detectCores())
rstan_options(auto_write = TRUE)
seed_sim = 1234
set.seed(seed_sim)
# set up data
N = 4000

Keybase proof

I hereby claim:

  • I am adamwespiser on github.
  • I am adamwespiser (https://keybase.io/adamwespiser) on keybase.
  • I have a public key ASDvVfiszzMDEZN4nTBPDJakWg9yqyuwpGloZCblP3xQigo

To claim this, I am signing this object:

@adamwespiser
adamwespiser / free-mtl-notes
Last active February 4, 2018 21:54
A comparison of performance between Free Monad and mtl transformers
Objective: A comparison of performance between Free Monad and mtl transformers
```Haskell
Free f a = { unFree :: f (Free f a) }
```
http://softwareengineering.stackexchange.com/questions/242795/what-is-the-free-monad-interpreter-pattern
# construction of free monad via individual functions
http://www.atamo.com/articles/free-monads-wont-detox-your-colon/
@adamwespiser
adamwespiser / notes.md
Last active January 22, 2016 06:27
Mandelbrot Set in Haskell
@adamwespiser
adamwespiser / gitGuide.md
Last active March 2, 2023 18:59
some helpful commands
@adamwespiser
adamwespiser / gitMergeGuide.md
Created December 21, 2015 21:33
git merge guide
@adamwespiser
adamwespiser / postgresQuick.sql
Last active January 5, 2016 19:11
A quick list of DBA commands for postgresql
-- http://pentestmonkey.net/cheat-sheet/sql-injection/postgres-sql-injection-cheat-sheet
-- show tables
select * from pg_tables;
-- get all the active connections/tasks
select * from pg_stat_activity;
-- get sizes of active databases
\l+
@adamwespiser
adamwespiser / while_lang.hs
Created December 21, 2015 03:58
while language interpreter in haskell
data Opa = Add
| Sub
| Mul
| Div
data Opr = Lt
| Gt
data Opb = And
| Or
@adamwespiser
adamwespiser / first_script.sh
Last active July 1, 2017 16:04
Ubuntu command line into
#!/bin/bash
echo "current dir"
ls ./
echo
echo "Root directory"
ls /