Scenario Planning with What-If Analysis
What-if analysis answers questions like: "If unemployment spikes to 6%, how does my thesis change?" or "What happens to my portfolio if diplomatic talks succeed?"
How It Works
You temporarily override one or more node probabilities and see how it affects:
- The root probability (thesis-implied price)
- Edge calculations across all linked markets
- Strategy trigger conditions
- Portfolio-level P&L
Use Cases
Pre-event planning: Before a CPI release, run scenarios for CPI = 3.0%, 3.5%, and 4.0%. Pre-plan your trades for each outcome.
Risk assessment: "If my most uncertain node (n3, Fed policy error) turns out to be 0%, what happens to my portfolio?"
Position stress testing: "What's my worst-case P&L if nodes n1 AND n2 both go to 0%?"
What-If in SimpleFunctions
The sf what-if command lets you run scenarios interactively:
sf what-if --node n1.1 --prob 0.80
This temporarily sets "unemployment > 5%" to 80% and shows you the cascading effect on every linked market and strategy.
Systematic Scenario Generation
For important events, the agent can auto-generate scenarios based on historical data ranges and show you the full spectrum of outcomes. This is especially useful before FOMC meetings, jobs reports, and CPI releases.