{
  "version": "2026.1",
  "generated_at": "2026-07-22",
  "generated_by": "backend/tools/withdrawal_study_dump.c (JSONL) -> scripts/gen_withdrawal_order_study.mjs",
  "study": "withdrawal-order-tax-2026",
  "engine": "monte_carlo.c run_monte_carlo_tax_aware (per-year single-year tax-cost order vs independent trad-first baseline)",
  "tax_year": 2026,
  "method": {
    "num_sims": 4000,
    "seed": 4242,
    "sampling": "seeded pseudo-random (use_qmc=0; env-robust, no Sobol dependency)",
    "allocation": [
      0.4,
      0.15,
      0.35,
      0.05,
      0.05
    ],
    "asset_classes": [
      "us_equity",
      "intl_equity",
      "bonds",
      "real_estate",
      "cash"
    ],
    "inflation_rate": 0.025,
    "headline_statistic": "paired_median_savings = median over paths of (trad_first_i - tax_aware_i); p10-p90 band of that same per-path difference",
    "baseline": "independent traditional-first simulation on its own balances/ledger sharing the market path (common random numbers)",
    "per_lot_accounting": "HIFO, short/long-term character tracked"
  },
  "verification": "The tax-aware per-year order comes from optimize_withdrawal, cross-checked against an independent grid replica and a hand-computed 2026 federal-tax anchor by backend/tools/withdrawal_verify.c. Every figure here is emitted directly by the engine via backend/tools/withdrawal_study_dump.c.",
  "determinism": [
    {
      "type": "determinism",
      "persona": "corridor_62_balanced_fl",
      "paired_savings_diff": 0,
      "lifetime_tax_aware_diff": 0,
      "lifetime_trad_first_diff": 0,
      "success_rate_diff": 0,
      "identical": true
    }
  ],
  "headline": {
    "helps_representative_persona": "corridor_62_balanced_fl",
    "helps_representative_median": 28806.77,
    "helps_representative_p10": 8180.28,
    "helps_representative_p90": 41535.03,
    "backfires_representative_persona": "straddle_70_trad_heavy_ca",
    "backfires_representative_median": -10613.44,
    "backfires_representative_p10": -22375.67,
    "backfires_representative_p90": 2312.49,
    "n_helps": 5,
    "n_backfires": 2
  },
  "personas": [
    {
      "persona": "corridor_62_balanced_fl",
      "verdict": "helps",
      "demographics": {
        "account_mix": "balanced",
        "case_class": "corridor",
        "state": "FL",
        "filing": "single",
        "current_age": 62,
        "end_age": 80,
        "horizon_years": 18,
        "bal_trad": 500000,
        "bal_roth": 200000,
        "bal_taxable": 300000,
        "total_balance": 1000000,
        "annual_withdrawal": 60000,
        "social_security_monthly": 2500,
        "social_security_start_age": 67
      },
      "result": {
        "lifetime_tax_tax_aware": 30089.33,
        "lifetime_tax_trad_first": 65560.86,
        "paired_median_savings": 28806.77,
        "paired_savings_p10": 8180.28,
        "paired_savings_p90": 41535.03,
        "success_rate": 0.99925,
        "success_rate_ci_low": 0.997797,
        "success_rate_ci_high": 0.999745,
        "mortality_adjusted_success_rate": 0.999476,
        "order_snapshot": {
          "trad_withdrawal": [
            0,
            0,
            0,
            0,
            0
          ],
          "roth_withdrawal": [
            0,
            0,
            0,
            0,
            0
          ],
          "taxable_withdrawal": [
            60000,
            60000,
            60000,
            60000,
            60000
          ],
          "tax_paid": [
            0,
            0,
            0,
            0,
            0
          ],
          "irmaa": [
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    },
    {
      "persona": "corridor_62_taxable_heavy_ca",
      "verdict": "helps",
      "demographics": {
        "account_mix": "taxable_heavy",
        "case_class": "corridor",
        "state": "CA",
        "filing": "single",
        "current_age": 62,
        "end_age": 80,
        "horizon_years": 18,
        "bal_trad": 300000,
        "bal_roth": 150000,
        "bal_taxable": 550000,
        "total_balance": 1000000,
        "annual_withdrawal": 66000,
        "social_security_monthly": 2400,
        "social_security_start_age": 67
      },
      "result": {
        "lifetime_tax_tax_aware": 28537.31,
        "lifetime_tax_trad_first": 44568.6,
        "paired_median_savings": 16363.54,
        "paired_savings_p10": 5125.92,
        "paired_savings_p90": 25003.54,
        "success_rate": 0.9925,
        "success_rate_ci_low": 0.989314,
        "success_rate_ci_high": 0.994741,
        "mortality_adjusted_success_rate": 0.994559,
        "order_snapshot": {
          "trad_withdrawal": [
            0,
            0,
            0,
            0,
            0
          ],
          "roth_withdrawal": [
            59400,
            59400,
            39600,
            0,
            0
          ],
          "taxable_withdrawal": [
            6600,
            6600,
            26400,
            66000,
            66000
          ],
          "tax_paid": [
            0,
            0,
            150.33,
            1118.65,
            1259.82
          ],
          "irmaa": [
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    },
    {
      "persona": "corridor_62_trad_heavy_fl",
      "verdict": "helps",
      "demographics": {
        "account_mix": "trad_heavy",
        "case_class": "corridor",
        "state": "FL",
        "filing": "single",
        "current_age": 62,
        "end_age": 82,
        "horizon_years": 20,
        "bal_trad": 750000,
        "bal_roth": 100000,
        "bal_taxable": 150000,
        "total_balance": 1000000,
        "annual_withdrawal": 60000,
        "social_security_monthly": 2500,
        "social_security_start_age": 67
      },
      "result": {
        "lifetime_tax_tax_aware": 71018.93,
        "lifetime_tax_trad_first": 77293.56,
        "paired_median_savings": 5445.18,
        "paired_savings_p10": -26725.2,
        "paired_savings_p90": 21427.1,
        "success_rate": 0.9985,
        "success_rate_ci_low": 0.996731,
        "success_rate_ci_high": 0.999312,
        "mortality_adjusted_success_rate": 0.998995,
        "order_snapshot": {
          "trad_withdrawal": [
            0,
            0,
            0,
            0,
            24000
          ],
          "roth_withdrawal": [
            0,
            0,
            18000,
            60000,
            36000
          ],
          "taxable_withdrawal": [
            60000,
            60000,
            42000,
            0,
            0
          ],
          "tax_paid": [
            0,
            0,
            0,
            0,
            585
          ],
          "irmaa": [
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    },
    {
      "persona": "corridor_62_roth_heavy_fl",
      "verdict": "helps",
      "demographics": {
        "account_mix": "roth_heavy",
        "case_class": "corridor",
        "state": "FL",
        "filing": "single",
        "current_age": 62,
        "end_age": 82,
        "horizon_years": 20,
        "bal_trad": 200000,
        "bal_roth": 600000,
        "bal_taxable": 200000,
        "total_balance": 1000000,
        "annual_withdrawal": 60000,
        "social_security_monthly": 2500,
        "social_security_start_age": 67
      },
      "result": {
        "lifetime_tax_tax_aware": 4531.56,
        "lifetime_tax_trad_first": 16690.9,
        "paired_median_savings": 11971.31,
        "paired_savings_p10": -2203.62,
        "paired_savings_p90": 16867.07,
        "success_rate": 0.9985,
        "success_rate_ci_low": 0.996731,
        "success_rate_ci_high": 0.999312,
        "mortality_adjusted_success_rate": 0.998995,
        "order_snapshot": {
          "trad_withdrawal": [
            0,
            0,
            0,
            0,
            0
          ],
          "roth_withdrawal": [
            0,
            0,
            0,
            24000,
            60000
          ],
          "taxable_withdrawal": [
            60000,
            60000,
            60000,
            36000,
            0
          ],
          "tax_paid": [
            0,
            0,
            0,
            0,
            0
          ],
          "irmaa": [
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    },
    {
      "persona": "straddle_70_balanced_fl",
      "verdict": "helps",
      "demographics": {
        "account_mix": "balanced",
        "case_class": "rmd_straddle",
        "state": "FL",
        "filing": "single",
        "current_age": 70,
        "end_age": 88,
        "horizon_years": 18,
        "bal_trad": 650000,
        "bal_roth": 250000,
        "bal_taxable": 300000,
        "total_balance": 1200000,
        "annual_withdrawal": 72000,
        "social_security_monthly": 3000,
        "social_security_start_age": 70
      },
      "result": {
        "lifetime_tax_tax_aware": 79132.26,
        "lifetime_tax_trad_first": 88050.94,
        "paired_median_savings": 9123.86,
        "paired_savings_p10": -10477.72,
        "paired_savings_p90": 43753.39,
        "success_rate": 1,
        "success_rate_ci_low": 0.999041,
        "success_rate_ci_high": 1,
        "mortality_adjusted_success_rate": 1,
        "order_snapshot": {
          "trad_withdrawal": [
            0,
            0,
            28083.79,
            29187.73,
            30062.91
          ],
          "roth_withdrawal": [
            0,
            0,
            7915.68,
            6801.17,
            5930.81
          ],
          "taxable_withdrawal": [
            36000,
            36000,
            0,
            0,
            0
          ],
          "tax_paid": [
            0,
            0,
            2172.38,
            3170.74,
            3431.34
          ],
          "irmaa": [
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    },
    {
      "persona": "straddle_70_trad_heavy_ca",
      "verdict": "backfires",
      "demographics": {
        "account_mix": "trad_heavy",
        "case_class": "rmd_straddle",
        "state": "CA",
        "filing": "single",
        "current_age": 70,
        "end_age": 90,
        "horizon_years": 20,
        "bal_trad": 900000,
        "bal_roth": 120000,
        "bal_taxable": 180000,
        "total_balance": 1200000,
        "annual_withdrawal": 72000,
        "social_security_monthly": 3200,
        "social_security_start_age": 70
      },
      "result": {
        "lifetime_tax_tax_aware": 180600.76,
        "lifetime_tax_trad_first": 169820.67,
        "paired_median_savings": -10613.44,
        "paired_savings_p10": -22375.67,
        "paired_savings_p90": 2312.49,
        "success_rate": 1,
        "success_rate_ci_low": 0.999041,
        "success_rate_ci_high": 1,
        "mortality_adjusted_success_rate": 1,
        "order_snapshot": {
          "trad_withdrawal": [
            0,
            0,
            38445.31,
            39817.18,
            41230.48
          ],
          "roth_withdrawal": [
            26880,
            26880,
            0,
            0,
            0
          ],
          "taxable_withdrawal": [
            6720,
            6720,
            0,
            0,
            0
          ],
          "tax_paid": [
            0,
            0,
            5268.54,
            6381.25,
            7011.97
          ],
          "irmaa": [
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    },
    {
      "persona": "rmd_tail_75_trad_heavy_fl",
      "verdict": "neutral",
      "demographics": {
        "account_mix": "trad_heavy",
        "case_class": "rmd_tail",
        "state": "FL",
        "filing": "single",
        "current_age": 75,
        "end_age": 95,
        "horizon_years": 20,
        "bal_trad": 900000,
        "bal_roth": 100000,
        "bal_taxable": 150000,
        "total_balance": 1150000,
        "annual_withdrawal": 66000,
        "social_security_monthly": 3500,
        "social_security_start_age": 70
      },
      "result": {
        "lifetime_tax_tax_aware": 189438.34,
        "lifetime_tax_trad_first": 189438.34,
        "paired_median_savings": 0,
        "paired_savings_p10": 0,
        "paired_savings_p90": 0,
        "success_rate": 1,
        "success_rate_ci_low": 0.999041,
        "success_rate_ci_high": 1,
        "mortality_adjusted_success_rate": 1,
        "order_snapshot": {
          "trad_withdrawal": [
            40291.99,
            41297.32,
            42418.25,
            43723.68,
            45235.38
          ],
          "roth_withdrawal": [
            0,
            0,
            0,
            0,
            0
          ],
          "taxable_withdrawal": [
            0,
            0,
            0,
            0,
            0
          ],
          "tax_paid": [
            5012.82,
            5324.98,
            5672.97,
            7456.81,
            8193.66
          ],
          "irmaa": [
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    },
    {
      "persona": "rmd_tail_75_balanced_ca",
      "verdict": "neutral",
      "demographics": {
        "account_mix": "balanced",
        "case_class": "rmd_tail",
        "state": "CA",
        "filing": "single",
        "current_age": 75,
        "end_age": 93,
        "horizon_years": 18,
        "bal_trad": 700000,
        "bal_roth": 250000,
        "bal_taxable": 250000,
        "total_balance": 1200000,
        "annual_withdrawal": 72000,
        "social_security_monthly": 3400,
        "social_security_start_age": 70
      },
      "result": {
        "lifetime_tax_tax_aware": 126473.56,
        "lifetime_tax_trad_first": 126148.87,
        "paired_median_savings": 0,
        "paired_savings_p10": -701.72,
        "paired_savings_p90": 11592.8,
        "success_rate": 1,
        "success_rate_ci_low": 0.999041,
        "success_rate_ci_high": 1,
        "mortality_adjusted_success_rate": 1,
        "order_snapshot": {
          "trad_withdrawal": [
            31427.73,
            32306.5,
            33369.5,
            34516.85,
            35520.22
          ],
          "roth_withdrawal": [
            0,
            0,
            0,
            0,
            0
          ],
          "taxable_withdrawal": [
            0,
            0,
            0,
            0,
            0
          ],
          "tax_paid": [
            3387.4,
            3695.77,
            4061.08,
            5114.97,
            5444.16
          ],
          "irmaa": [
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    },
    {
      "persona": "highbal_irmaa_70_ca_mfj",
      "verdict": "backfires",
      "demographics": {
        "account_mix": "trad_heavy",
        "case_class": "irmaa",
        "state": "CA",
        "filing": "mfj",
        "current_age": 70,
        "end_age": 90,
        "horizon_years": 20,
        "bal_trad": 1800000,
        "bal_roth": 400000,
        "bal_taxable": 600000,
        "total_balance": 2800000,
        "annual_withdrawal": 144000,
        "social_security_monthly": 4000,
        "social_security_start_age": 70
      },
      "result": {
        "lifetime_tax_tax_aware": 284155.48,
        "lifetime_tax_trad_first": 275161.46,
        "paired_median_savings": -7128.91,
        "paired_savings_p10": -65910.34,
        "paired_savings_p90": 80987.39,
        "success_rate": 0.99925,
        "success_rate_ci_low": 0.997797,
        "success_rate_ci_high": 0.999745,
        "mortality_adjusted_success_rate": 0.999697,
        "order_snapshot": {
          "trad_withdrawal": [
            0,
            0,
            76890.62,
            79634.36,
            82460.95
          ],
          "roth_withdrawal": [
            86400,
            86400,
            19078.77,
            16365.64,
            13524.86
          ],
          "taxable_withdrawal": [
            9600,
            9600,
            0,
            0,
            0
          ],
          "tax_paid": [
            0,
            0,
            9343.27,
            11152.88,
            11605.13
          ],
          "irmaa": [
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    }
  ],
  "crossover": [
    {
      "type": "crossover",
      "persona": "corridor_62_balanced_fl",
      "current_age": 62,
      "end_age": 78,
      "horizon_years": 16,
      "lifetime_tax_tax_aware": 19972.67,
      "lifetime_tax_trad_first": 61843.08,
      "paired_median_savings": 37482.98,
      "paired_savings_p10": 19742.81,
      "paired_savings_p90": 45942.19,
      "sequencing_helps": true,
      "success_rate": 1
    },
    {
      "type": "crossover",
      "persona": "corridor_62_balanced_fl",
      "current_age": 62,
      "end_age": 80,
      "horizon_years": 18,
      "lifetime_tax_tax_aware": 30089.33,
      "lifetime_tax_trad_first": 65560.86,
      "paired_median_savings": 28806.77,
      "paired_savings_p10": 8180.28,
      "paired_savings_p90": 41535.03,
      "sequencing_helps": true,
      "success_rate": 0.99925
    },
    {
      "type": "crossover",
      "persona": "corridor_62_balanced_fl",
      "current_age": 62,
      "end_age": 82,
      "horizon_years": 20,
      "lifetime_tax_tax_aware": 40539.97,
      "lifetime_tax_trad_first": 63272.3,
      "paired_median_savings": 19256.73,
      "paired_savings_p10": -5748.52,
      "paired_savings_p90": 35225.29,
      "sequencing_helps": true,
      "success_rate": 0.9985
    },
    {
      "type": "crossover",
      "persona": "corridor_62_balanced_fl",
      "current_age": 62,
      "end_age": 85,
      "horizon_years": 23,
      "lifetime_tax_tax_aware": 57866.95,
      "lifetime_tax_trad_first": 64909.29,
      "paired_median_savings": 2189.47,
      "paired_savings_p10": -33297.44,
      "paired_savings_p90": 22846.59,
      "sequencing_helps": true,
      "success_rate": 0.989
    },
    {
      "type": "crossover",
      "persona": "corridor_62_balanced_fl",
      "current_age": 62,
      "end_age": 88,
      "horizon_years": 26,
      "lifetime_tax_tax_aware": 78080.69,
      "lifetime_tax_trad_first": 65017.2,
      "paired_median_savings": -15254.37,
      "paired_savings_p10": -71273.8,
      "paired_savings_p90": 8407.31,
      "sequencing_helps": false,
      "success_rate": 0.9745
    },
    {
      "type": "crossover",
      "persona": "corridor_62_balanced_fl",
      "current_age": 62,
      "end_age": 90,
      "horizon_years": 28,
      "lifetime_tax_tax_aware": 92481.93,
      "lifetime_tax_trad_first": 65175.49,
      "paired_median_savings": -28061.93,
      "paired_savings_p10": -102282.37,
      "paired_savings_p90": -415.98,
      "sequencing_helps": false,
      "success_rate": 0.96475
    }
  ]
}
