Sensitivity¶
collegeplan.sensitivity
¶
Scenario sweep engine for sensitivity analysis.
run_sensitivity(children, assumptions, grid, household_fund=None, target_funding_ratio=1.0, include_projection=False)
¶
Run a sensitivity sweep across assumption/cost dimensions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
list[Child]
|
List of children to plan for. |
required |
assumptions
|
Assumptions
|
Base assumptions to vary. |
required |
grid
|
dict[str, list[float]]
|
Mapping of parameter names to lists of values to sweep. Supported keys: - "expected_return_nominal" - "expected_return_real" - "general_inflation" - "annual_cost_growth" (applied to all children) - "scholarship_pct" (applied to all children) - "contribution_growth_rate" (applied to all children) - "target_funding_ratio" |
required |
household_fund
|
HouseholdFund | None
|
Optional shared pool. |
None
|
target_funding_ratio
|
float
|
Default target if not varied in grid. |
1.0
|
include_projection
|
bool
|
If True, include full household projection results. |
False
|