Sub topic 13
Sensitivity Analysis on the Structured Model
Assume you know basic spreadsheet formulas, percentages, and the purpose of the inputs, calculations, and outputs layers. This chapter shows how to test how changes in assumptions affect model results.
Why sensitivity analysis belongs on top of the structure
Sensitivity analysis measures how an output changes when one or more inputs change. For example, you might test how net income changes when revenue growth changes from 5% to 15%.
A well-structured model makes this test safer:
- The inputs layer contains the assumptions being changed.
- The calculations layer applies the model logic.
- The outputs layer displays the result being measured.
The sensitivity table should read from the model. It should not contain a second copy of the calculation logic.
One-variable sensitivity analysis
Start with one assumption at a time. Common variables include:
- Revenue growth
- Gross margin
- Operating expenses
- Tax rate
- Discount rate
- Exit multiple
Suppose the base model uses 10% revenue growth. You can test 5%, 10%, and 15%. Record the resulting net income or cash flow in an outputs section.
| Revenue growth | Year 3 revenue | Year 3 net income |
|---|---|---|
| 5% | 1,102,500 | 164,375 |
| 10% | 1,210,000 | 245,000 |
| 15% | 1,322,500 | 335,625 |
The table shows the relationship between the assumption and the selected output. It does not prove that any assumption is likely. It only shows the model's response.
In a spreadsheet, keep the tested values in a separate sensitivity area. Link each result to the output cell or use a spreadsheet data table feature. Do not replace the main input with a test value and forget to restore it.
Two-variable sensitivity analysis
A two-variable table changes two assumptions at once. For example, rows can contain revenue growth rates and columns can contain gross margins. Each cell then shows the resulting Year 3 net income.
This helps identify combinations that produce an acceptable or unacceptable result. It also shows whether the model depends heavily on an optimistic pair of assumptions.
Two-variable analysis has a risk: the variables may not be independent. A higher growth rate might require higher marketing costs. If the model does not reflect that relationship, the table can present unrealistic combinations.
Automating a sensitivity test
The following Python example keeps the base calculation in one function. The sensitivity loop changes only the selected input and stores the output.
def calculate_net_income(revenue_year1, growth_rate, cogs_pct, opex, tax_rate, years=3):
revenue = revenue_year1
net_income = 0
for year in range(1, years + 1):
if year > 1:
revenue *= 1 + growth_rate
gross_profit = revenue * (1 - cogs_pct)
ebit = gross_profit - opex
tax = max(ebit, 0) * tax_rate
net_income = ebit - tax
return net_income
base_inputs = {
"revenue_year1": 1_000_000,
"growth_rate": 0.10,
"cogs_pct": 0.60,
"opex": 150_000,
"tax_rate": 0.25,
}
for growth_rate in [0.05, 0.10, 0.15]:
result = calculate_net_income(**base_inputs, growth_rate=growth_rate)
print(f"Growth {growth_rate:.0%}: net income = {result:,.0f}")This example has a duplicate keyword problem because base_inputs already contains growth_rate. A safe version creates a copy before changing the assumption:
for growth_rate in [0.05, 0.10, 0.15]:
test_inputs = base_inputs.copy()
test_inputs["growth_rate"] = growth_rate
result = calculate_net_income(**test_inputs)
print(f"Growth {growth_rate:.0%}: net income = {result:,.0f}")The same principle applies in a spreadsheet. Change the input value or scenario selector, then let the calculation layer recalculate the output.
Interpreting results and avoiding false confidence
Look for the size and direction of the change:
- A large output change from a small input change indicates high sensitivity.
- A small output change suggests the assumption has less influence.
- A change in the wrong direction may reveal a formula or sign error.
- Extreme results may indicate unrealistic assumptions rather than a useful forecast.
Label the base case clearly. Record the tested ranges and the date of the analysis. If a sensitivity result supports a decision, document why those ranges were selected.
Exercise
Why should a sensitivity table link to the existing calculation and output layers instead of repeating the model formulas?
Show answer
Linking to the existing layers keeps one source of calculation logic. Changes to the model then flow into the sensitivity analysis, reducing the risk of inconsistent or hardcoded results.