"Create comprehensive Python code for a Bermuda-based fixed annuity reinsurer using the Pyliferisk module, outputting a macro-enabled Excel Workbook as a full-fledged financial model.
Key Deliverables:
A. Generate a Python code that creates a macro-enabled Excel Workbook with embedded logic, VBA, modules, functions, and formulas, well-formatted with dynamic model toggling for assumption changes (e.g., changes in FIA Policy percentages reflect across output worksheets).
B. Format and functionality similar to investment banking or private equity models should include annuity and equity portfolios, income statement, balance sheet, cash flows, sensitivity analysis, summary, assumptions, and key financial metrics.
Instructions Summary:
- Parameters and Assumptions:
- Portfolio: $1000.
- Initial Equity: $100 for a 10:1 annuities to equity ratio.
- Policy mixes: 25% MYGA 3-year, 25% MYGA 5-year, 50% FIA 10-year.
- Annual Crediting rates: 4% (MYGA 3), 4.5% (MYGA 5 and FIA).
- Ceding commissions: 3% (MYGA 3), 2.5% (MYGA 5 and FIA).
- Age range: 55-70, gender-neutral distribution.
- Withdrawal limit: 10% post-year two.
- Surrender fees: Decreasing yearly, specific to policy terms.
- Auto-renewal of policies with same surrender schedule.
- Annual return: 11%.
- Startup and annual expenses are set amounts.
- Annual Asset management fee: 100 bps on total assets.
- One-time ceding fee in the first year, amortized over 7 years.
- Incorporate IAR 2012 mortality table.
Details: Equity capital covers reinsurer expenses and receives excess spread from the annuity portfolio. Excess return calculations consider withdrawals, surrender fees, and account value to calculate the spread. Dividends from excess returns maintain leverage ratio before distribution.
- Model Overview:
- Establish reinsurer with a 10-year horizon.
- $1000 annuity investment.
- Key metrics: IRR, MOIC, ROE.
- Initialize Portfolios:
- Create annuity and equity portfolio tables with initial investment and mix.
- Yearly Loop (1-10):
- Calculate annual portfolio metrics.
- Annuity Returns:
- Determine returns with fees, mortality, and policy terms.
- Excess Return:
- Pass excess return to equity dividends.
- Equity Management: