2025-07-14_LLMs-for-Imputation
Wrote a second blog post! This time it's about using LLMs as part of an ensemble imputation method, relying on their "knowledge" of the world to provide additional prediction signal. Seems to work well, especially for bigger models!
jamesbrandecon.github.io/blog/posts_h...
15.07.2025 13:49 β π 2 π 0 π¬ 0 π 0
P.S. I also tried to make plotting easier. Here, for example, are estimates from a model with two product characteristics and correlated preferences. More to come, including docs to make it easier to dig through the "problem" objects to extract results.
01.05.2025 22:25 β π 1 π 0 π¬ 0 π 0
As with FRACDemand (which is now registered!), the coolest thing here is that it's fast. less than a minute to define the problem, estimate it, and calculate price elasticities for 500 markets with 20 products each
01.05.2025 22:25 β π 1 π 0 π¬ 1 π 0
GitHub - jamesbrandecon/FKRBDemand.jl
Contribute to jamesbrandecon/FKRBDemand.jl development by creating an account on GitHub.
Have a day off so I made some small updates to FKRBDemand.jl (new name!). Hopefully it's now easier to use the Fox-Kim-Ryan-Bajari method to estimate a random coefficient model with market-level data (2-step approach described here: www.jamesbrandecon.com/blog/0jxkvfr...)
github.com/jamesbrandec...
01.05.2025 22:25 β π 7 π 2 π¬ 1 π 0
Congratulations, Jeff!
08.03.2025 02:44 β π 2 π 0 π¬ 1 π 0
Nice, thanks for explaining! Agreed, it seems useful to help see how I'm using memory while building something (which I still wish I understood better)
20.01.2025 00:50 β π 1 π 0 π¬ 1 π 0
Is the goal just that GC can catch when to run? Or is there another performance benefit I don't understand? Seems like a lot of additional code so I'm assuming there's more value
19.01.2025 19:30 β π 1 π 0 π¬ 1 π 0
This point you've been on has stuck with me as an industry guy. How do firms succeed while being terrible at stats reasoning? Because some big ideas are robust to that bad logic and (like VCs?) you get a lot of shots and only need a few to pay off. That changes how to think of data work for the firm
18.01.2025 15:52 β π 2 π 0 π¬ 1 π 0
Finally, we put this all in a Julia package! Trying to take seriously that these complex methods cost a lot of time and effort to implement, we tried to make it as easy as possible to use our methods for estimation, inference, and some basic counterfactuals 6/6
17.01.2025 15:46 β π 1 π 0 π¬ 0 π 0
Third, we apply our method to real demand from 12 categories of products at a large retail food chain. Our estimates agree with our simulations β constraints matter, and imposing them generates more reasonable elasticities and counterfactuals (below) 5/
17.01.2025 15:46 β π 0 π 0 π¬ 1 π 0
Second, we show in simulations that our method improves upon the previous state of the art for this model, both because we can fully enforce constraints and because doing so gives us more accurate estimates of price elasticities. 4/
17.01.2025 15:46 β π 0 π 0 π¬ 1 π 0
This two-step approach not only helps us impose new constraints -- it also guarantees that our constraints are satisfied *everywhere*, which we show is often not true of the best previous approach 3/
17.01.2025 15:46 β π 0 π 0 π¬ 1 π 0
First, we develop a new quasi-Bayes approach to solve this (hard!) problem. We show that imposing constraints on nonparametric demand curves is better suited to MCMC sampling approaches than frequentist optimization, and develop a two-step process for sampling in our setting 2/
17.01.2025 15:46 β π 1 π 0 π¬ 1 π 0
New paper with @adam-n-smith.bsky.social
papers.ssrn.com/sol3/papers....
Our paper develops a new approach for estimating demand nonparametrically while imposing economic constraints and comes with a new package, NPDemand.jl! Some things we do in the paper 1/
17.01.2025 15:46 β π 36 π 10 π¬ 3 π 1
The paper looks really nice, but Prop 2 (no ME) feels stronger than is useful in practice... do we hold ourselves to that standard for any other measurement tool? Or am I being unfair/missing something
11.12.2024 17:43 β π 1 π 0 π¬ 0 π 0
Ditto, my brain hurts enough switching between the languages themselves. Adding UI as another thing to switch is a pain
08.12.2024 18:55 β π 0 π 0 π¬ 0 π 0
Wow, as an increasingly frequent R user I wish I'd known this was possible months ago -- thanks for figuring this out in public
08.12.2024 17:57 β π 5 π 0 π¬ 1 π 0
Been (finally) reading through it in detail recently -- great paper!
27.11.2024 15:28 β π 1 π 0 π¬ 0 π 0
Agreed (and I get this argument from ML people a lot), but funny enough we'll never know the counterfactual there either! I could walk around in the dark and get where I'm going but it'd still be nice to have the lights on
26.11.2024 04:43 β π 1 π 0 π¬ 0 π 0
My experience is that the former often dominates, and is the default even in settings where academics would lean toward the latter (when estimating the value in the world is statistically hard) but folks are surprisingly open to understanding the issues with "ML everything" when demonstrated
26.11.2024 04:36 β π 0 π 0 π¬ 1 π 0
There's definitely some of "just do whatever works" in my experience but there are also a ton of people (often PhDs) trying to do things as right as possible under constraints, including experimentation and causal inference
26.11.2024 04:30 β π 1 π 0 π¬ 1 π 0
Agreed, I wondered how reallocating regular up to premium is being counted. New planes with 50% premium seems high! Curious to see how premium margins decline (seems like they have to?) as lower WTP customers are forced into it just by prevalence
23.11.2024 23:33 β π 0 π 0 π¬ 1 π 0
Awesome find. Silly question -- what does "incremental" here really mean? Net new seats mostly come from new planes/routes (I assume) and I don't see how 85% can be premium. Any idea?
23.11.2024 20:01 β π 1 π 0 π¬ 1 π 0
Search Jobs | Microsoft Careers
My group at Microsoft is hiring again! This time looking for junior candidates specifically wanting to study advertising. Academic friends (econ or business school especially), please let me know if you have PhD students we should look at!
Listing here: jobs.careers.microsoft.com/global/en/jo...
12.11.2024 02:47 β π 3 π 1 π¬ 0 π 0
Oh yeah? Well where else can you get a "taco" with a hot dog in it?
23.10.2024 01:48 β π 0 π 0 π¬ 1 π 0
If y_i are just means, doesnβt going full or empirical Bayes make sense? Feels like that kind of structure
18.12.2023 19:58 β π 2 π 0 π¬ 0 π 0
Sorry, Iβm not familiar with any guides! The particulars are an odd mix of very general (simulate the DGP you care about and do your estimation many times) and DGP specific (e.g. realistic IV strength in nonlinear models)
29.11.2023 01:14 β π 0 π 0 π¬ 0 π 0
Isnβt the norm to do it via simulation? For most non-RCTs Iβve seen its hard to do anything else
28.11.2023 23:36 β π 0 π 0 π¬ 1 π 0
A one-file implementation of Fox, Kim, Ryan, Bajari (2011)'s linear estimator for the mixed logit de...
A one-file implementation of Fox, Kim, Ryan, Bajari (2011)'s linear estimator for the mixed logit demand model, in the style of FRAC.jl and NPDemand.jl. - FKRB.jl
In case non-twitterers are interested: A demand estimation approach that I've always liked but never tried is Fox-Kim-Ryan-Bajari 2011. Wanted to see how easy it'd be to package + whether it would perform better than FRAC.jl, so I wrote a quick gist. Works well! gist.github.com/jamesbrandec...
24.11.2023 21:20 β π 6 π 1 π¬ 0 π 0
Co-host of @onthemedia.bsky.social from WNYC
mloewinger(at)wnyc,org Signal: (646) 753-2373
President of Signal, Chief Advisor to AI Now Institute
economist. Posts Reflect Me Only! collects/analyzes: poll, market, social media/online data, to study: news, public opinion, ads, market design
Founder MPP (yeah you know me), UT Austin Prof, former chief economist various financial firms, Fed economist, Prez NABE. Passionate about family, macro, cats and freedom
Economist at Princeton. IO, information in matching markets, mostly education. All my jokes are βwhat if concept applied to itselfβ
Professor of Economics at UCL, IFS. East London Carioca. Arsenal and Flamengo!
Aspiring philosopher; tolerable human; "amusing combination of sardonic detachment & literally all the feelings felt entirely unironically all at once" [he/his]
Economist at Carnegie Mellon focusing on organizations and incentives, markets, competition, and antitrust, and health care. Formerly at the Antitrust Division, DOJ and at the FTC. Daf Yomi learner. Antitrust, Economics, Talmud puns.
Economist @ Georgetown University. Also NBER and CESifo.
Trade, Spatial, and Industrial Organization.
Abstraction machine. Runs on matcha and chocolate.
IO economist. Assistant Director of Econometrics at the CMA. Reposts!=endorsements, all views are my own.
Economics professor UT-Austin.
probstats4econ.com
Development economist at Tufts University. I'm interested in direct and indirect effects of financial inclusion, risk, social networks & B2B networks in developing settings.
Β· Economist @univlorraine.bsky.social, en franΓ§ais and in English
Β· I use computers, network theory, and data to study how humans behave at work, in organizations and communities #Rstats
Β· He/Him π³οΈβπ
π https://o.simardcasanova.net
π Nancy, Lorraine, France πͺπΊ
Paulistano, economist, immigrant. Marketing professor at the Kellogg School of Management.
Assistant Professor of Marketing
UCL School of Management
www.adamnsmith.com
Assistant Professor of Management Science at Chapman University, Digital Fellow at Stanford Digital Economy Lab.
JEL: J24
she/her/hers
Economist studying labor markets, inequality, and economics of social problems