Skip to content

Instantly share code, notes, and snippets.

View NaimKabir's full-sized avatar

Naim Kabir NaimKabir

View GitHub Profile
@NaimKabir
NaimKabir / canonical_partitions.csv
Created March 18, 2019 05:36
imperfect experiment causal analysis partitions
𝗮𝗹𝘄𝗮𝘆𝘀_𝘁𝗮𝗸𝗲𝗿 𝗰𝗼𝗺𝗽𝗹𝗶𝗲𝗿 𝗱𝗲𝗻𝗶𝗲𝗿 𝗻𝗲𝘃𝗲𝗿_𝘁𝗮𝗸𝗲𝗿
𝗮𝗹𝘄𝗮𝘆𝘀_𝗯𝗲𝘁𝘁𝗲𝗿 always_taker and always_better complier and always_better defier and always_better never_taker and always_better
𝗵𝗲𝗹𝗽𝗲𝗱 always_taker and helped complier and helped defier and helped never_taker and helped
𝗵𝘂𝗿𝘁 always_taker and hurt complier and hurt defier and hurt never_taker and hurt
𝗻𝗲𝘃𝗲𝗿_𝗯𝗲𝘁𝘁𝗲𝗿 always_taker and never_better complier and never_better defier and never_better never_taker and never_better
@NaimKabir
NaimKabir / rct.ipynb
Created March 18, 2019 17:21
rct simulation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NaimKabir
NaimKabir / rct_probas.csv
Created March 18, 2019 17:23
probas from the rct sim
probabilities
treatment/untreated/bad 0.278
treatment/untreated/good 0.174
treatment/treated/bad 0.344
treatment/treated/good 0.204
control/untreated/bad 0.336
control/untreated/good 0.182
control/treated/bad 0.316
control/treated/good 0.166
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NaimKabir
NaimKabir / toy_debuggable.ipynb
Last active August 19, 2019 11:07
Toy code snippet to demonstrate a naive debuggable function
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NaimKabir
NaimKabir / toy_debugged.ipynb
Last active August 19, 2019 18:02
Example debugged function for Causality blog post
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NaimKabir
NaimKabir / rct_sim.ipynb
Last active October 21, 2019 03:10
Simulating a randomized controlled trial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NaimKabir
NaimKabir / itt.ipynb
Last active October 21, 2019 03:11
Showing how to do a quick intention-to-treat given rct results
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NaimKabir
NaimKabir / linear_opt.ipynb
Last active October 21, 2019 03:11
Showing how to find a max ATE by optimizing an LP problem
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NaimKabir
NaimKabir / isolation_game_state.ipynb
Created April 30, 2020 06:52
isolation game code -- occlusions found via numpy functions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.