{
 "SPDX-License-Identifier": "GPL-3.0-or-later",
 "license_note": "Ported from dfagnan/RBOMatlab (Fagnan et al.), GPL-3.0-or-later. Inputs of Simulations A and B of Fernandez, Stein and Lo (2012), with Udgam Labs rate sets; see the Open Megafund lab note.",
 "source": "the lab's Python simulator inputs and rate sets (private, not published)",
 "funds": {
  "A": {
   "rho": 0.2,
   "pricing": [
    [
     0.0,
     1.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0
    ],
    [
     2.354733621857371,
     0.939,
     100.0,
     2.506648325603443,
     1.253324162801722,
     1.573797446769595,
     0.785050619780075,
     20.0,
     13.0
    ],
    [
     2.97673764808124,
     0.939,
     250.0,
     7.519944976810328,
     3.759972488405164,
     2.722501027059631,
     0.732114106934504,
     50.0,
     0.0
    ],
    [
     3.996945974057142,
     0.939,
     500.0,
     20.053186604827545,
     10.026593302413772,
     3.702027419856847,
     0.795995957236353,
     120.0,
     0.0
    ],
    [
     5.802748472629424,
     0.939,
     1000.0,
     75.19944976810328,
     37.59972488405164,
     5.065276957812039,
     0.633123896262475,
     500.0,
     0.0
    ],
    [
     7.277762431143847,
     0.939,
     2500.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0
    ],
    [
     7.239151725642049,
     0.939,
     5000.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0
    ]
   ],
   "sell_in_phase": "P2",
   "sale_time": [
    1.5,
    1.5,
    1.5,
    1.5,
    1.5,
    1.5,
    1.5
   ],
   "ratio_unchanged": 1.0,
   "equity_stake": 0.85,
   "capital_structure": [
    0.25,
    0.15,
    0.6
   ],
   "ic_pers": 2,
   "interest_coverage": [
    1.75,
    3.5,
    0.0
   ],
   "amort_timing": [
    [
     5.0,
     8.0
    ],
    [
     9.0,
     12.0
    ]
   ],
   "coupon": [
    0.025,
    0.04,
    0.0
   ],
   "servicing_rate": 0.0025,
   "svc_accrual": 0.035,
   "cash_accrual": 0.005,
   "initial_cash": 5000.0,
   "initial_compounds": [
    0,
    100,
    100,
    0,
    0,
    0,
    0
   ],
   "trans_prob_by_set": {
    "2012": [
     [
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.155,
      0.5,
      0.345,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.053215560704185,
      0.0,
      0.807859886086702,
      0.133437226118754,
      0.005307429700172,
      0.000157443915296,
      2.245347489e-05
     ],
     [
      0.085093613975923,
      0.0,
      0.0,
      0.844734609586595,
      0.066750087871169,
      0.002866145785922,
      0.000555542780392
     ],
     [
      0.062545675724766,
      0.0,
      0.0,
      0.0,
      0.848420924719526,
      0.068234113621235,
      0.020799285934472
     ],
     [
      0.021663504081486,
      0.0,
      0.0,
      0.0,
      0.0,
      0.566729918370271,
      0.411606577548242
     ],
     [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0
     ]
    ],
    "wong": [
     [
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.155,
      0.5,
      0.345,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.08146740829923836,
      0.0,
      0.807859886086702,
      0.10630128730353874,
      0.0042281050484308915,
      0.00012542595017060143,
      1.788731191939267e-05
     ],
     [
      0.1044936077482216,
      0.0,
      0.0,
      0.844734609586595,
      0.04829606896579305,
      0.002073758686431551,
      0.00040195501295885514
     ],
     [
      0.094936368201981,
      0.0,
      0.0,
      0.0,
      0.848420924719526,
      0.04341028119666447,
      0.013232425881828516
     ],
     [
      0.021663504081486,
      0.0,
      0.0,
      0.0,
      0.0,
      0.566729918370271,
      0.411606577548242
     ],
     [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0
     ]
    ],
    "open": [
     [
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.155,
      0.5,
      0.345,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.04240532314066487,
      0.0,
      0.807859886086702,
      0.14382047429799955,
      0.005720420597642698,
      0.0001696952134860238,
      2.420066350483109e-05
     ],
     [
      0.088780750238385,
      0.0,
      0.0,
      0.844734609586595,
      0.06324274229710271,
      0.0027155457783791747,
      0.0005263520995381706
     ],
     [
      0.0639504140762251,
      0.0,
      0.0,
      0.0,
      0.848420924719526,
      0.0671575392484736,
      0.02047112195577527
     ],
     [
      0.021663504081486,
      0.0,
      0.0,
      0.0,
      0.0,
      0.566729918370271,
      0.411606577548242
     ],
     [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0
     ]
    ],
    "corrected": [
     [
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.155,
      0.5,
      0.345,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.04240532314066487,
      0.0,
      0.807859886086702,
      0.14382047429799955,
      0.005720420597642698,
      0.0001696952134860238,
      2.420066350483109e-05
     ],
     [
      0.088780750238385,
      0.0,
      0.0,
      0.844734609586595,
      0.06324274229710271,
      0.0027155457783791747,
      0.0005263520995381706
     ],
     [
      0.0854108199975133,
      0.0,
      0.0,
      0.0,
      0.848420924719526,
      0.05071054538663875,
      0.015457709896321932
     ],
     [
      0.021663504081486,
      0.0,
      0.0,
      0.0,
      0.0,
      0.566729918370271,
      0.411606577548242
     ],
     [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0
     ]
    ]
   },
   "inputs_sha256": "6ef3ed4baa1e00691557d6c04b2e6d7d474e297d64a9e5f8aa12ce57f840ccd0"
  },
  "B": {
   "rho": 0.2,
   "pricing": [
    [
     0.0,
     1.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0
    ],
    [
     2.354733621857371,
     0.939,
     100.0,
     2.506648325603443,
     1.253324162801722,
     1.573797446769595,
     0.785050619780075,
     20.0,
     134.0
    ],
    [
     2.97673764808124,
     0.939,
     250.0,
     7.519944976810328,
     3.759972488405164,
     2.722501027059631,
     0.732114106934504,
     50.0,
     121.0
    ],
    [
     3.996945974057142,
     0.939,
     500.0,
     20.053186604827545,
     10.026593302413772,
     3.702027419856847,
     0.795995957236353,
     120.0,
     85.0
    ],
    [
     5.802748472629424,
     0.939,
     1000.0,
     75.19944976810328,
     37.59972488405164,
     5.065276957812039,
     0.633123896262475,
     500.0,
     0.0
    ],
    [
     7.277762431143847,
     0.939,
     2500.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0
    ],
    [
     7.239151725642049,
     0.939,
     5000.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0,
     0.0
    ]
   ],
   "sell_in_phase": "APP",
   "sale_time": [
    1.5,
    1.5,
    1.5,
    1.5,
    1.5,
    1.5,
    1.5
   ],
   "ratio_unchanged": 1.0,
   "equity_stake": 0.85,
   "capital_structure": [
    0.4333333,
    0.0666667,
    0.5
   ],
   "ic_pers": 2,
   "interest_coverage": [
    1.75,
    3.5,
    0.0
   ],
   "amort_timing": [
    [
     5.0,
     8.0
    ],
    [
     9.0,
     12.0
    ]
   ],
   "coupon": [
    0.025,
    0.04,
    0.0
   ],
   "servicing_rate": 0.0025,
   "svc_accrual": 0.035,
   "cash_accrual": 0.005,
   "initial_cash": 15000.0,
   "initial_compounds": [
    0,
    0,
    0,
    100,
    0,
    0,
    0
   ],
   "trans_prob_by_set": {
    "2012": [
     [
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.155,
      0.5,
      0.345,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.053215560704185,
      0.0,
      0.807859886086702,
      0.133437226118754,
      0.005307429700172,
      0.000157443915296,
      2.245347489e-05
     ],
     [
      0.085093613975923,
      0.0,
      0.0,
      0.844734609586595,
      0.066750087871169,
      0.002866145785922,
      0.000555542780392
     ],
     [
      0.062545675724766,
      0.0,
      0.0,
      0.0,
      0.848420924719526,
      0.068234113621235,
      0.020799285934472
     ],
     [
      0.021663504081486,
      0.0,
      0.0,
      0.0,
      0.0,
      0.566729918370271,
      0.411606577548242
     ],
     [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0
     ]
    ],
    "wong": [
     [
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.155,
      0.5,
      0.345,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.08146740829923836,
      0.0,
      0.807859886086702,
      0.10630128730353874,
      0.0042281050484308915,
      0.00012542595017060143,
      1.788731191939267e-05
     ],
     [
      0.1044936077482216,
      0.0,
      0.0,
      0.844734609586595,
      0.04829606896579305,
      0.002073758686431551,
      0.00040195501295885514
     ],
     [
      0.094936368201981,
      0.0,
      0.0,
      0.0,
      0.848420924719526,
      0.04341028119666447,
      0.013232425881828516
     ],
     [
      0.021663504081486,
      0.0,
      0.0,
      0.0,
      0.0,
      0.566729918370271,
      0.411606577548242
     ],
     [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0
     ]
    ],
    "open": [
     [
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.155,
      0.5,
      0.345,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.04240532314066487,
      0.0,
      0.807859886086702,
      0.14382047429799955,
      0.005720420597642698,
      0.0001696952134860238,
      2.420066350483109e-05
     ],
     [
      0.088780750238385,
      0.0,
      0.0,
      0.844734609586595,
      0.06324274229710271,
      0.0027155457783791747,
      0.0005263520995381706
     ],
     [
      0.0639504140762251,
      0.0,
      0.0,
      0.0,
      0.848420924719526,
      0.0671575392484736,
      0.02047112195577527
     ],
     [
      0.021663504081486,
      0.0,
      0.0,
      0.0,
      0.0,
      0.566729918370271,
      0.411606577548242
     ],
     [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0
     ]
    ],
    "corrected": [
     [
      1.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.155,
      0.5,
      0.345,
      0.0,
      0.0,
      0.0,
      0.0
     ],
     [
      0.04240532314066487,
      0.0,
      0.807859886086702,
      0.14382047429799955,
      0.005720420597642698,
      0.0001696952134860238,
      2.420066350483109e-05
     ],
     [
      0.088780750238385,
      0.0,
      0.0,
      0.844734609586595,
      0.06324274229710271,
      0.0027155457783791747,
      0.0005263520995381706
     ],
     [
      0.0854108199975133,
      0.0,
      0.0,
      0.0,
      0.848420924719526,
      0.05071054538663875,
      0.015457709896321932
     ],
     [
      0.021663504081486,
      0.0,
      0.0,
      0.0,
      0.0,
      0.566729918370271,
      0.411606577548242
     ],
     [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      1.0
     ]
    ]
   },
   "inputs_sha256": "5f5371b71dff3d0bafb711103446a3cf98e45438615e06bac03092328974ee73"
  }
 },
 "rate_sets": {
  "2012": {
   "step3_name": "2012 inputs (T1)",
   "rates": null
  },
  "wong": {
   "step3_name": "Wong 2019",
   "rates": {
    "p12": 0.576,
    "p23": 0.327,
    "p3a": 0.355,
    "p1a": 0.034
   }
  },
  "open": {
   "step3_name": "open data, primary (rates not validated against Wong)",
   "rates": {
    "p12": 0.7793,
    "p23": 0.4282,
    "p3a": 0.5492
   }
  },
  "corrected": {
   "step3_name": "open data, precision-corrected (rates not validated against Wong)",
   "rates": {
    "p12": 0.7793,
    "p23": 0.4282,
    "p3a": 0.4147
   }
  }
 },
 "step3": {
  "A": {
   "2012 inputs (T1) | trans_rho=0.0": {
    "roe_ann_mean": 0.09161739803414007,
    "roe_ann_se": 0.0013207634319348212,
    "p_equity_loss": 0.1905,
    "p_default_A1": 0.0003,
    "p_default_A2": 0.0038
   },
   "2012 inputs (T1) | trans_rho=0.26": {
    "roe_ann_mean": 0.07529176216131941,
    "roe_ann_se": 0.001672299105699138,
    "p_equity_loss": 0.2461,
    "p_default_A1": 0.0001,
    "p_default_A2": 0.0101
   },
   "Wong 2019 | trans_rho=0.0": {
    "roe_ann_mean": 0.023605842764297676,
    "roe_ann_se": 0.0014538083733179727,
    "p_equity_loss": 0.3746,
    "p_default_A1": 0.0004,
    "p_default_A2": 0.0079
   },
   "Wong 2019 | trans_rho=0.26": {
    "roe_ann_mean": -0.002413884635787308,
    "roe_ann_se": 0.002001734792806547,
    "p_equity_loss": 0.4437,
    "p_default_A1": 0.0006,
    "p_default_A2": 0.0229
   },
   "open data, primary (rates not validated against Wong) | trans_rho=0.0": {
    "roe_ann_mean": 0.10783064490011193,
    "roe_ann_se": 0.0012343313910949407,
    "p_equity_loss": 0.1522,
    "p_default_A1": 0.0001,
    "p_default_A2": 0.0024
   },
   "open data, primary (rates not validated against Wong) | trans_rho=0.26": {
    "roe_ann_mean": 0.09587731573992128,
    "roe_ann_se": 0.0015028199406641142,
    "p_equity_loss": 0.1969,
    "p_default_A1": 0.0002,
    "p_default_A2": 0.0063
   },
   "open data, precision-corrected (rates not validated against Wong) | trans_rho=0.0": {
    "roe_ann_mean": 0.0979441761413949,
    "roe_ann_se": 0.0012426919808523511,
    "p_equity_loss": 0.1676,
    "p_default_A1": 0.0,
    "p_default_A2": 0.0029
   },
   "open data, precision-corrected (rates not validated against Wong) | trans_rho=0.26": {
    "roe_ann_mean": 0.08637926606469715,
    "roe_ann_se": 0.0014422845837136948,
    "p_equity_loss": 0.217,
    "p_default_A1": 0.0004,
    "p_default_A2": 0.005
   }
  },
  "B": {
   "2012 inputs (T1) | trans_rho=0.0": {
    "roe_ann_mean": 0.10643952620243753,
    "roe_ann_se": 0.0010348786376060517,
    "p_equity_loss": 0.115,
    "p_default_A1": 0.0001,
    "p_default_A2": 0.0014
   },
   "2012 inputs (T1) | trans_rho=0.26": {
    "roe_ann_mean": 0.073527216074545,
    "roe_ann_se": 0.0016130331720772247,
    "p_equity_loss": 0.2542,
    "p_default_A1": 0.0012,
    "p_default_A2": 0.0063
   },
   "Wong 2019 | trans_rho=0.0": {
    "roe_ann_mean": 0.0009065924161893114,
    "roe_ann_se": 0.001229717971389657,
    "p_equity_loss": 0.4319,
    "p_default_A1": 0.0003,
    "p_default_A2": 0.0057
   },
   "Wong 2019 | trans_rho=0.26": {
    "roe_ann_mean": -0.029265755128404326,
    "roe_ann_se": 0.001737447946917928,
    "p_equity_loss": 0.5445,
    "p_default_A1": 0.0023,
    "p_default_A2": 0.0137
   },
   "open data, primary (rates not validated against Wong) | trans_rho=0.0": {
    "roe_ann_mean": 0.09379853483008094,
    "roe_ann_se": 0.0011211449142603319,
    "p_equity_loss": 0.1401,
    "p_default_A1": 0.0005,
    "p_default_A2": 0.0025
   },
   "open data, primary (rates not validated against Wong) | trans_rho=0.26": {
    "roe_ann_mean": 0.06336056884822894,
    "roe_ann_se": 0.0015786264365999095,
    "p_equity_loss": 0.2833,
    "p_default_A1": 0.0014,
    "p_default_A2": 0.0052
   },
   "open data, precision-corrected (rates not validated against Wong) | trans_rho=0.0": {
    "roe_ann_mean": 0.056451542990999894,
    "roe_ann_se": 0.001098501471908096,
    "p_equity_loss": 0.2325,
    "p_default_A1": 0.0005,
    "p_default_A2": 0.0026
   },
   "open data, precision-corrected (rates not validated against Wong) | trans_rho=0.26": {
    "roe_ann_mean": 0.02594748795353895,
    "roe_ann_se": 0.0016737672235669699,
    "p_equity_loss": 0.3744,
    "p_default_A1": 0.0016,
    "p_default_A2": 0.0093
   }
  }
 },
 "step3_keys": {
  "2012": "2012 inputs (T1)",
  "wong": "Wong 2019",
  "open": "open data, primary (rates not validated against Wong)",
  "corrected": "open data, precision-corrected (rates not validated against Wong)"
 }
}