Sensitivity
Analysis
Explore how changing an input to a function affects its output: from rates of change to real-world decision-making.
What Is Sensitivity Analysis?
Sensitivity analysis asks one powerful question: if I change one input, how much does the output change? It is the study of how the variation in the output of a mathematical model can be attributed to variations in its inputs.
Why Does It Matter?
In the real world, inputs are never perfectly known. Sensitivity analysis helps us understand which variables matter most and how robust our conclusions are when conditions change.
The Derivative Connection
The derivative \(\frac{df}{dx}\) tells you exactly how sensitive \(f\) is to changes in \(x\). A large derivative means high sensitivity: small input changes produce large output changes.
The Core Formula
This is the first-order sensitivity approximation. It works best when \(\Delta x\) is small relative to the scale of \(x\). It is the foundation of all sensitivity reasoning.
Visualizing the Approximation
Absolute vs Relative Sensitivity
| Absolute Sensitivity | Relative Sensitivity | |
|---|---|---|
| Formula | \(\Delta f \approx f'(x) \cdot \Delta x\) | \(\frac{\Delta f / f}{\Delta x / x} \approx \frac{x \cdot f'(x)}{f(x)}\) |
| Measures | Raw change in output | Proportional (%) change |
| Best for | Same-unit comparisons | Comparing across scales |
| Example | "Revenue rises by $500" | "Revenue rises by 2%" |
Multivariate Sensitivity
When a function depends on multiple inputs, we use partial derivatives to measure sensitivity to each variable independently:
How to Apply Sensitivity Analysis
Example 1: Area of a Circle
The area of a circle is \(A(r) = \pi r^2\). How sensitive is the area when the radius is \(r = 5\) cm?
Example 2: Compound Interest
An investment grows as \(V(r) = 1000(1 + r)^{10}\), where \(r\) is the annual interest rate. How sensitive is the value to the rate at \(r = 0.05\)?
Example 3: Revenue with Two Inputs
Revenue is \(R(p, q) = p \cdot q\), where \(p\) is price and \(q\) is quantity. At \(p = 20\) and \(q = 100\):
A $1 price increase raises revenue by $100.
One extra unit sold raises revenue by $20.
Sensitivity and the Chain Rule
When variables are linked in a chain, sensitivities multiply. If \(y = f(u)\) and \(u = g(x)\):
High vs Low Sensitivity Regions
Common Mistakes
Summary of Key Concepts
| Concept | Formula | Interpretation |
|---|---|---|
| Absolute sensitivity | \(f'(x)\) | Output change per unit input change |
| Output change | \(\Delta f \approx f'(x)\Delta x\) | Linear approximation of total change |
| Elasticity | \(\frac{x \cdot f'(x)}{f(x)}\) | % output change per % input change |
| Chain sensitivity | \(\frac{dy}{dx} = f'(u) \cdot g'(x)\) | Multiply sensitivities along the chain |
| Multivariate | \(\sum \frac{\partial f}{\partial x_i}\Delta x_i\) | Sum contributions from each input |
Question 1 of 5
If \(f(x) = x^3\) and \(x = 2\), what is the absolute sensitivity of \(f\) with respect to \(x\)?
Question 2 of 5
The area of a square is \(A(s) = s^2\). If \(s = 10\) cm and \(\Delta s = 0.5\) cm, approximately how much does the area change?
Question 3 of 5
For \(f(x) = 10x\) at \(x = 10\), what is the elasticity (relative sensitivity)?
Question 4 of 5
If \(y = u^2\) and \(u = 3x + 1\), what is \(\frac{dy}{dx}\) at \(x = 1\)?
Question 5 of 5
A function has \(f'(a) = 0\). What can you say about the sensitivity of \(f\) at \(x = a\)?