apoorva lal's Avatar

apoorva lal

@apoorvalal.com.bsky.social

causal inference, econometrics, ML, arsenal, loud music, unix, FOSS for scientific computing. apoorvalal.github.io (passively) maintains @paperposterbot.bsky.social

4,939 Followers  |  585 Following  |  1,403 Posts  |  Joined: 20.09.2023  |  1.8292

Latest posts by apoorvalal.com on Bluesky

Preview
Implementing Economic Models in pytorch The standard workflow for economic models is to specify a loss function (typically a negative likelihood or a quadratic form g’Wg derived from a moment condition g:= g(X;ΞΈ) = 0 to minimize), algebraic...

On the econometrics in torch point: I also have an earlier crash course
apoorvalal.github.io/lalgorithms/...

04.08.2025 02:18 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
2025-08-04 links papers Liu et al is a practical guide to proximal causal inference using regressions [the semiparametric analogue is cursed].

apoorvalal.github.io/lalgorithms/... new linklog - the proximal pentagram, econometrics in torch, benn jordan wizardry

04.08.2025 01:46 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image Post image

the bridge function h() is a solution to a conditional moment restriction [analogous to nonparametric IV] and is cursed; in general you need to let the basis (A, Z, X) get big [2nd screenshot] and then you have to handle non-uniqueness.

ref arxiv.org/abs/2208.08291

03.08.2025 22:53 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
2025-07-14 self-promotion I’m presenting my β€˜getting away with 2WFE’ paper at Polmeth on thursday afternoon ; ping me if you want to grab a beverage and/or go for a walk presented this pyensmallen poster at scip...

apoorvalal.github.io/lalgorithms/... boy do i have the rube goldberg machine for you

02.08.2025 23:48 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 1    πŸ“Œ 1

Even less of an excuse to not keep up tbh. If your fundamentals are strong, LLMs are a productivity multiplier. If you're barely hanging on, you get nothing out of them and go to dept meetings and bully juniors or RAs over slack.

02.08.2025 18:42 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

attn: associate profs in academia and L6+s in tech

[getting through to people who once could do things and labour under the misapprehension that they still can is a unique kind of hell. if you've fallen off, just delegate and go quietly into the night; you're a glorified MBA now]

02.08.2025 18:22 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

also i think computing the sandwich
M = np.einsum("ij,i,ik->jk", XX, epsi**2, XX)

is the only time i've used einstein summation correctly. what a diabolical piece of notation.

02.08.2025 03:42 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

i like them even for linear IV because the SEs are one-step [HC1 on the instrumented variable is valid] while this isn't the case for 2SLS
github.com/apoorvalal/d...

02.08.2025 03:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Typical day on the farm

02.08.2025 00:33 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

IKM had this panel data interpretation that i thought was promising apoorvalal.github.io/pdfhosting/p...
but bridge fn estimation is a minefield due to the standard CMR reasons.
I guess proximal joins the front-door-criterion at the "works in theory but nobody uses it in practice" table.

01.08.2025 19:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

meant to ask you guys at the conference: what's the simplest credible proximal causal inference application you've seen ? Like Angrist/Krueger QoB for IV or Card/Krueger for DID? Feel like theory has far outstripped practice in that design, to its detriment.

01.08.2025 17:25 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Did assa abloy get Fredrik (Savje) as part of the deal

30.07.2025 15:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Looking forward to visiting the svinsundbrua building in eng quad

30.07.2025 15:23 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Universities should return to their original mission. Yale should stop making fiddly locks with poor haptic response.

30.07.2025 14:49 β€” πŸ‘ 20    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
26.07.2025 16:39 β€” πŸ‘ 390    πŸ” 39    πŸ’¬ 18    πŸ“Œ 3
Post image

News you can use

26.07.2025 20:24 β€” πŸ‘ 7    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Or a man who frantically throws in @torch.compile / @jit

24.07.2025 14:59 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

the first person to add \mid X] to the E[Y1 - Y0] parameter got their face bitten off by the 'functional parameters absolutely cursed' tiger

23.07.2025 19:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

idk how i did this but the overplotting in the t-learner quadrant is pleasing. most literal "this is what neural-networks-go-brr gives you you dunderheads"

23.07.2025 17:09 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0

my basic teaching slides on this literature (likely already out of date)
apoorvalal.github.io/pdfhosting/p...

23.07.2025 17:01 β€” πŸ‘ 10    πŸ” 1    πŸ’¬ 3    πŸ“Œ 0

5 (V, Five!) CATE estimation+policy learning papers in a single volume. Could probably teach a good class with this issue alone.

23.07.2025 16:49 β€” πŸ‘ 13    πŸ” 5    πŸ’¬ 2    πŸ“Œ 0
Preview
ASOS Digital Experiments Dataset A novel dataset that can support the end-to-end design and running of Online Controlled Experiments (OCE) with adaptive stopping. Hosted on the Open Science Framework

osf.io/64jsb/ i think the ASOS one fits your use case? Their paper goes over some open experiments datasets with multiple metrics as of 2021
openreview.net/pdf?id=79shW...

23.07.2025 16:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

said galactic cluster should be called sherman-morrison-woodbury

22.07.2025 22:29 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

loosely related - the fact that a guy called 'Parmeter' works on nonparametrics is p funny

22.07.2025 21:24 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Getting Started with PyFixest

Boy do i have the regression library for Hari Seldon
py-econometrics.github.io/pyfixest/qui...

22.07.2025 20:56 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

EAs will turn their ire on jensen's inequality after the shrimps have been saved/cooked/eulogized

21.07.2025 23:12 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Maximum Likelihood Estimates for Gaussian Mixtures Are Transcendental Gaussian mixture models are central to classical statistics, widely used in the information sciences, and have a rich mathematical structure. We examine their maximum likelihood estimates through the ...

The fact that GMM (Generalized Method of Moments) works very poorly for estimating GMMs (Gaussian Mixture Models) is morally wrong.

arxiv.org/abs/1508.06958

21.07.2025 06:10 β€” πŸ‘ 14    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Pun Run - YouTube

For this slander, i must inflict on your Zaltzman's best
youtube.com/playlist?lis...

19.07.2025 16:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - daskol/typst-templates: A list of paper templates in the area of machine learning. A list of paper templates in the area of machine learning. - daskol/typst-templates

I like the jmlr one here
github.com/daskol/typst...

18.07.2025 19:56 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Annoying answer is typst defaults are so much better thought out that I am painfully unlearning the personal dialect of Tex I’d made for myself with a 1000 line boilerplate file.

18.07.2025 18:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@apoorvalal.com is following 20 prominent accounts