Fair warning: this was the most annoying prompt in history. I have almost never gotten this to replicate or work well or right twice in a row and my lesson was that the more specific I got the more it screwed up and the fixes it recommended just made things worse and worse until I was in a death spiral. My guess is that this kind of prompt will bedevil others, too. Backing up and keeping the prompt high level and letting it do it's own thing was better. A little black-boxy but at least one can interrogate.
So, here we go: this Post is my attempt to create a prompt for a formal Hamilton–Jacobi–Bellman approach to optimize retirement spending by age using backward induction and stochastic dynamic programing (the AI's job this time, not mine. I once did one of these in R-code but it took me a month, ran forever, and I was never sure if what I had was right or even close). This is consumption-only, btw, and I am not solving the joint consumption-allocation problem. I asked Chat once about that joint solution and it implied that it was maybe a little too computationally intensive to even bother. You can try, tho.
In the context of my prompt-project this is where we are:
- GPT Prompt 01 - Spending Strategy Comparisons
- GPT Prompt 02 - Lifetime Probability of Ruin (LPR)
- GPT Prompt 03 - Dynamic HJB Spend Optimization <-- [this post]
- GPT Prompt 04 - Portfolio Longevity Heat Map
- GPT Prompt 05 - Perfect Withdrawal Rate (PWR)
- GPT Prompt 06 - Stochastic Present Value (SPV)
