Skip to content

Instantly share code, notes, and snippets.

View MaxGhenis's full-sized avatar

Max Ghenis MaxGhenis

View GitHub Profile
@MaxGhenis
MaxGhenis / README.md
Last active April 11, 2026 00:21
Historical PolicyEngine US CTC reform reproduction for Nov 1 2025 package + HF snapshot

Historical PolicyEngine US CTC Reform Reproduction

This directory contains an executed notebook reproducing the reform run against the historical PolicyEngine US stack current by the end of November 1, 2025 in America/New_York.

It includes both the main credit aggregates and the federal/state/payroll tax decomposition behind the household_net_income change.

Re-execution

Run the notebook from a clean environment with:

@MaxGhenis
MaxGhenis / org_validation_2024.ipynb
Last active March 31, 2026 12:01
ORG validation for policyengine-us-data PR
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / top_income_thresholds.ipynb
Created March 24, 2026 20:05
PolicyEngine 2025 top income thresholds (top 1% and 0.1% AGI minimums)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / ca_wealth_tax_income_share_executed.ipynb
Created March 17, 2026 13:23
CA vs federal income tax share among high earners — PolicyEngine microsimulation showing LTCG treatment makes billionaires contribute 1.34x more to CA state income tax relative to federal
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / watca_zero_tax_thresholds.ipynb
Created March 6, 2026 02:18
WATCA zero-tax threshold correction: divide by 2.333 not 1.333
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / sparse_calibrator_vs_hardconcrete.ipynb
Created February 10, 2026 14:01
SparseCalibrator (L1, convex) vs HardConcrete (L0, non-convex) reweighting frontier comparison
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / value-forecasting-post.md
Created February 2, 2026 04:27
Draft: Can LLMs Forecast Human Value Evolution?

Can LLMs Forecast Human Value Evolution? (And Why We Can't Tell Yet)

Draft for EA Forum — feedback welcome

The Hypothesis

Human values change. Sometimes predictably — generational replacement, exposure effects, information cascades. If LLMs have learned these patterns from their training data, they might predict value trajectories better than simple extrapolation.

This matters for alignment. If we could forecast where human values are heading, we'd have a tool for:

  • Anticipating moral circle expansion
@MaxGhenis
MaxGhenis / state_ui_child_poverty.ipynb
Created January 31, 2026 21:19
Impact of UI on child poverty by state: repeal vs. doubling (PolicyEngine-US 2026, state-level microsims)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / ui_child_poverty_repeal_and_doubling_executed.ipynb
Created January 31, 2026 20:32
Impact of unemployment insurance on child poverty: repeal vs. doubling (PolicyEngine-US 2026)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / README.md
Created January 28, 2026 20:22
Using PolicyEngine tax-benefit calculations from Stata

Using PolicyEngine from Stata

Three approaches for integrating PolicyEngine tax-benefit calculations with Stata:

1. Direct Python integration (Stata 16+)

Stata 16+ has native Python integration. Install policyengine-us and call it directly:

python: