Reviewed learning material · Video analysis · EnglishRead the full overview
This video segment explains how to propagate uncertainty through nonlinear models using the linear tangent approximation and the Taylor series expansion. The speaker uses a graph to illustrate the concept of a linear tangent and displays the Taylor series formula to provide the mathematical foundation for the approximation.
This lecture segment explains how to propagate uncertainty through nonlinear models using a first-order Taylor series expansion. It derives the approximate variance of the model output, showing that it consists of two main parts: the sum of individual parameter variances weighted by the square of their partial derivatives (sensitivity), and the sum of pairwise covariances weighted by the product of their respective partial derivatives (interaction effects). The speaker emphasizes that unlike linear models with constant slopes, nonlinear models require evaluating derivatives at specific points in the parameter space.
Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.
Generated from the video's visuals and explanation; not verbatim speech.
In the previous video, we discussed the trade-offs between different methods for propagating uncertainty into forecasts, focusing on analytical approaches that use statistical moments like means, variances, and covariances.
We found that exact analytical solutions are possible only for strictly linear models, which is limiting because many ecological models are nonlinear, involving interactions like multiplications, divisions, exponential growth, and saturating functions.
For nonlinear functions, while there is a way to propagate uncertainty analytically, it is difficult to achieve in exact closed form.
Instead, we approximate the nonlinear model by taking its linear tangent, estimating an approximate slope around the mean.
Once the nonlinear model is approximated by a linear one, we can use the same rules for propagating uncertainty in linear models.
Mathematically, this involves replacing the function with a Taylor series expansion, focusing on the first few terms that describe the mean and a linear approximation.
This approach leads to a solution for propagating uncertainty through nonlinear models.
When dealing with nonlinear models, we cannot simply use constant slopes as we did in linear regression. Instead, we rely on calculus. By taking a first-order Taylor series expansion of the model function around the mean parameter values, we create a local linear approximation. This allows us to treat the complex nonlinear relationship as a linear one for the purpose of calculating uncertainty, provided we stay close to the expansion point.
With this linearized approximation, we can determine how much each individual parameter contributes to the overall uncertainty of the prediction. This 'direct component' is found by taking the variance of the parameter itself and multiplying it by the square of the partial derivative of the model output with respect to that parameter. The partial derivative acts as a sensitivity factor, telling us how strongly the output reacts to changes in that specific input.
However, parameters in real-world models are rarely completely independent; they often exhibit correlations. To account for this, we must add interaction terms to our variance calculation. These terms are formed by taking the product of the partial derivatives for two different parameters and multiplying them by the covariance between those two parameters. Summing these over all unique pairs gives us the total contribution of parameter interactions to the forecast uncertainty.
Ultimately, this mathematical framework allows us to decompose the total predictive uncertainty into two fundamental sources: the inherent uncertainty in our input data and parameters, and the structural sensitivity of our model to those inputs. Understanding this partition is crucial for model improvement, as it tells us whether we should focus on gathering better data or refining the model's functional form.
Knowledge cards
01
Linear Tangent Approximation
To propagate uncertainty through a nonlinear model, the model is approximated by its linear tangent at the mean value of the input parameter. This allows the use of rules for linear models to estimate the variance of the output.
Var[y]∼(dy/dΘ)2Var[Θ]
02
Taylor Series Expansion
The nonlinear function f(x∣Θ) is expanded using a Taylor series around the mean value Θˉ. The first few terms of this expansion are used to approximate the function as a linear model.
Var[f(x∣Θ)]≈Var[f(x∣Θˉ)+dΘdf(x∣Θˉ)(Θ−Θˉ)+…]
03
First-Order Taylor Expansion for Nonlinear Models
To handle uncertainty in nonlinear models, we approximate the model function locally using a first-order Taylor series expansion around the mean parameter values. This converts the nonlinear problem into a linear one for calculation purposes.
Var[f(x∣θ)]≈Var[f(x∣θˉ)+1!dθdf(x∣θˉ)(θ−θˉ)+…]
04
Direct Variance Component
The contribution of a single parameter's uncertainty to the output variance is the parameter's variance multiplied by the square of the model's partial derivative with respect to that parameter. This measures the model's sensitivity to that specific input.
var[f(x)]≈(∂θi∂f)2var[θi]
05
Interaction Terms via Covariance
When parameters are correlated, their joint uncertainty affects the output variance. This is captured by summing the products of their partial derivatives multiplied by their pairwise covariances.
Total forecast uncertainty can be partitioned into two key components: the uncertainties inherent in the model inputs/parameters, and the sensitivities of the model structure responding to those inputs.
Detailed learning notes
Explore conditions, steps and evidence. Supplementary explanations are labeled separately from content shown in the video.
Symbols · 12
Y
Clear evidence
Shown in the video
Evidence
Diagram
Observation
The vertical axis of the graph is labeled Y.
Symbol
Y
Meaning
Output variable or dependent variable in the nonlinear model.
Domain
Real numbers
Θ
Clear evidence
Shown in the video
Evidence
Diagram
Observation
The horizontal axis of the graph is labeled Θ.
Symbol
Θ
Meaning
Input variable or parameter with uncertainty.
Domain
Real numbers
f(x|Θ)
Clear evidence
Shown in the video
Evidence
Formula
Observation
The equation y=f(x∣Θ) is displayed on the graph.
Symbol
f(x|Θ)
Meaning
Nonlinear function relating output y to input x and parameter Θ.
Domain
Real-valued function
Var[y]
Clear evidence
Shown in the video
Evidence
Formula
Observation
The expression Var[y]∼(dy/dΘ)2Var[Θ] is shown.
Symbol
Var[y]
Meaning
Variance of the output variable y.
Domain
Non-negative real numbers
dy/dΘ
Clear evidence
Shown in the video
Evidence
Formula
Observation
The derivative term (dy/dΘ) appears in the variance approximation formula.
Symbol
dy/dΘ
Meaning
Derivative of y with respect to Θ, representing the slope of the linear tangent.
Domain
Real numbers
Var[Θ]
Clear evidence
Shown in the video
Evidence
Formula
Observation
The term Var[Θ] appears in the variance approximation formula.
Symbol
Var[Θ]
Meaning
Variance of the input parameter Θ.
Domain
Non-negative real numbers
Var[f(x|Θ)]
Clear evidence
Shown in the video
Evidence
Formula
Observation
The Taylor series expansion Var[f(x∣Θ)]≈Var[f(x∣Θˉ)+dΘdf(x∣Θˉ)(Θ−Θˉ)+…] is displayed.
Symbol
Var[f(x|Θ)]
Meaning
Variance of the function f(x∣Θ) approximated using a Taylor series expansion.
Domain
Non-negative real numbers
Var[f(x|θ)]
Clear evidence
Shown in the video
Evidence
Formula
Observation
Var[f(x|θ)]
Symbol
Var[f(x|θ)]
Meaning
Variance of the model output f given input x and parameter θ
Domain
Statistical variance
f(x|θ̄) + 1!dθdf(x∣θˉ)(θ−θˉ) + ...
Clear evidence
Shown in the video
Evidence
Formula
Observation
f(x|θ̄) + (df/dθ)(x|θ̄)/1! (θ - θ̄) + ...
Symbol
f(x|θ̄) + 1!dθdf(x∣θˉ)(θ−θˉ) + ...
Meaning
First-order Taylor series expansion of the function f around the mean parameter value θ̄
Domain
Calculus
(∂θi∂f)2
Clear evidence
Shown in the video
Evidence
Formula
Observation
(∂f/∂θi)^2
Symbol
(∂θi∂f)2
Meaning
Square of the partial derivative of the function f with respect to the i-th parameter θi
Domain
Calculus
var[θi]
Clear evidence
Shown in the video
Evidence
Formula
Observation
var[θi]
Symbol
var[θi]
Meaning
Variance of the i-th parameter θi
Domain
Statistics
cov[θi, θj]
Clear evidence
Shown in the video
Evidence
Formula
Observation
cov[θi, θj]
Symbol
cov[θi, θj]
Meaning
Covariance between the i-th and j-th parameters
Domain
Statistics
Knowledge points · 5
Linear Tangent Approximation
Clear evidence
Shown in the video
Evidence
Audio
Observation
The speaker explains that for nonlinear models, uncertainty can be propagated by taking the linear tangent of the model.
Diagram
Observation
A graph shows a nonlinear curve with a linear tangent line drawn at a specific point.
Method
Explanation
To propagate uncertainty through a nonlinear model, the model is approximated by its linear tangent at the mean value of the input parameter. This allows the use of rules for linear models to estimate the variance of the output.
Formula
Var[y]∼(dy/dΘ)2Var[Θ]
Conditions
The input parameter Θ has a known mean and variance.
The function f(x∣Θ) is differentiable with respect to Θ.
Taylor Series Expansion
Clear evidence
Shown in the video
Evidence
Audio
Observation
The speaker mentions replacing the function with a Taylor series expansion focusing on the first few terms.
Formula
Observation
The Taylor series expansion formula is displayed on the screen.
Formula
Explanation
The nonlinear function f(x∣Θ) is expanded using a Taylor series around the mean value Θˉ. The first few terms of this expansion are used to approximate the function as a linear model.
Formula
Var[f(x∣Θ)]≈Var[f(x∣Θˉ)+dΘdf(x∣Θˉ)(Θ−Θˉ)+…]
Conditions
The function f(x∣Θ) is infinitely differentiable with respect to Θ.
The speaker explains that in a nonlinear model, we use derivatives instead of specific slopes, and these derivatives may change depending on where you are in parameter space.
Formula
Explanation
To propagate uncertainty through a nonlinear model, the model function is approximated using a first-order Taylor series expansion around the mean parameter values. This linearizes the function locally, allowing the use of standard variance propagation rules.
Formula
Var[f(x∣θ)]≈Var[f(x∣θˉ)+1!dθdf(x∣θˉ)(θ−θˉ)+…]
Conditions
The model must be differentiable with respect to its parameters.
The expansion is valid locally around the mean parameter values θ̄.
Direct Variance Component in Uncertainty Propagation
Clear evidence
Shown in the video
Evidence
Formula
Observation
var[f(x)] ≈ (∂f/∂θi)^2 var[θi]
Audio
Observation
Each source of uncertainty... is represented in terms of its direct component where there's the variance of that term multiplied by the square of the derivative of how our output responds to our input.
Formula
Explanation
The contribution of a single parameter's uncertainty to the total output variance is calculated as the product of the parameter's variance and the square of the partial derivative of the model output with respect to that parameter. This represents the sensitivity of the output to that specific input.
Formula
var[f(x)]≈(∂θi∂f)2var[θi]
Conditions
Assumes first-order Taylor approximation.
Applies to independent parameters or isolates the direct effect of one parameter.
Prerequisites
First-Order Taylor Expansion for Nonlinear Models
Interaction Terms via Covariance in Uncertainty Propagation
We also need to include terms that account for the interactions that arise as the product of the partial derivatives of each of two factors and then the covariance between those two factors.
Formula
Explanation
When parameters are correlated, their joint uncertainty contributes to the output variance. This interaction effect is captured by summing over all pairs of distinct parameters, multiplying their respective partial derivatives by their covariance.
Requires calculation of pairwise covariances and partial derivatives.
Prerequisites
Direct Variance Component in Uncertainty Propagation
Derivations and proofs · 2
Derivation of Linear Tangent Approximation
Clear evidence
Shown in the video
Evidence
Audio
Observation
The speaker describes the process of approximating a nonlinear model with its linear tangent to propagate uncertainty.
Diagram
Observation
The graph visually demonstrates the concept of a linear tangent to a nonlinear curve.
Intuitive argument
Steps
Expression
Explanation
Identify the nonlinear function f(x∣Θ) and the mean value Θˉ of the input parameter.
Justification
The goal is to approximate the function locally around the mean value.
Shown in the video
Expression
Explanation
Compute the derivative of the function with respect to Θ at the mean value, (dy/dΘ)∣Θ=Θˉ.
Justification
The derivative represents the slope of the linear tangent at the mean value.
Shown in the video
Expression
Explanation
Use the linear tangent approximation to estimate the variance of the output y: Var[y]∼(dy/dΘ)2Var[Θ].
Justification
For a linear function, the variance of the output is the square of the slope times the variance of the input.
Shown in the video
Conclusion
The variance of the output of a nonlinear function can be approximated by using the linear tangent at the mean value of the input parameter.
Derivation of Approximate Variance for Nonlinear Models
Clear evidence
Shown in the video
Evidence
Formula
Observation
Sequence of formulas showing Taylor expansion leading to variance decomposition.
Audio
Observation
Speaker narrates the transition from linear models to nonlinear models using derivatives and explains the components of the final variance equation.
Proof
Steps
Expression
Var[f(x∣θ)]≈Var[f(x∣θˉ)+1!dθdf(x∣θˉ)(θ−θˉ)+…]
Explanation
Start with the nonlinear function f(x|θ) and apply a first-order Taylor expansion around the mean parameter vector θ̄ to linearize it locally.
Justification
Definition of Taylor series expansion.
Shown in the video
Expression
var[f(x)]≈(∂θi∂f)2var[θi]
Explanation
Identify the direct contribution of the i-th parameter's variance to the output variance, scaled by the square of its sensitivity (partial derivative).
Justification
Standard rule for propagating variance through a linear transformation.
Sum the direct variance contributions for all parameters and add the interaction terms arising from parameter correlations, represented by covariances.
Justification
Properties of variance for sums of random variables, including covariance terms for dependent variables.
Shown in the video
Conclusion
The approximate variance of a nonlinear model's output can be decomposed into a sum of individual parameter variance contributions weighted by squared sensitivities, plus interaction terms weighted by parameter covariances.
Visual events · 5
Graph of Linear Tangent Approximation
Clear evidence
Shown in the video
Evidence
Diagram
Observation
A graph shows a nonlinear curve with a linear tangent line drawn at a specific point. The axes are labeled Y and Θ.
Objects
Nonlinear curve
Linear tangent line
Axes labeled Y and Θ
Changes
The linear tangent line is drawn at a specific point on the nonlinear curve.
Invariants
The nonlinear curve remains unchanged.
The axes labels remain unchanged.
Interpretation
The graph illustrates how a nonlinear function can be locally approximated by a linear tangent line to estimate the propagation of uncertainty.
Display of Taylor Series Expansion Formula
Clear evidence
Shown in the video
Evidence
Formula
Observation
The Taylor series expansion formula is displayed on the screen.
Objects
Taylor series expansion formula
Changes
The formula appears on the screen.
Invariants
No other visual elements change.
Interpretation
The formula provides the mathematical basis for approximating a nonlinear function using a series expansion around a mean value.
Display of First-Order Taylor Expansion Formula
Clear evidence
Shown in the video
Evidence
Diagram
Observation
Static display of the Taylor expansion formula inside a variance operator.
Objects
Mathematical formula
Invariants
The formula remains static on screen while the speaker introduces the concept.
Interpretation
Visually anchors the mathematical definition of linearizing a nonlinear model using a Taylor series.
Display of Direct Variance Component Formula
Clear evidence
Shown in the video
Evidence
Diagram
Observation
Static display of the single-parameter variance propagation formula.
Objects
Mathematical formula
Invariants
The formula remains static on screen during explanation.
Interpretation
Highlights the core mechanism of how a single parameter's uncertainty scales by model sensitivity.
Display of Full Variance Propagation Formula
Clear evidence
Shown in the video
Evidence
Diagram
Observation
Static display of the full variance propagation formula including summations and covariance terms.
Objects
Mathematical formula
Invariants
The formula remains static on screen during explanation.
Interpretation
Presents the complete analytical expression for approximating output variance, combining direct and interaction effects.
Misconceptions · 1
Misconception about Constant Slopes in Nonlinear Models
Clear evidence
Shown in the video
Evidence
Audio
Observation
The key difference is in our linear model we had specific slopes and in we do a nonlinear model we have instead the derivatives and those derivatives may change depending on where you are in parameter space.
Misconception
Learners might assume that nonlinear models have constant slopes like linear models.
Clarification
In nonlinear models, the 'slope' is replaced by derivatives which vary depending on the location in the parameter space.
Concept relations · 3
Linear Tangent Approximation → Taylor Series Expansion
Clear evidence
Shown in the video
Evidence
Audio
Observation
The speaker connects the linear tangent approximation to the Taylor series expansion.
Application
Explanation
The linear tangent approximation is a specific application of the first-order term in the Taylor series expansion of a nonlinear function.
First-Order Taylor Expansion for Nonlinear Models → Direct Variance Component in Uncertainty Propagation
Clear evidence
Shown in the video
Evidence
Audio
Observation
Speaker transitions from discussing the Taylor expansion to explaining the direct variance component.
Prerequisite
Explanation
The first-order Taylor expansion provides the linear approximation necessary to apply standard variance propagation rules to individual parameters.
Direct Variance Component in Uncertainty Propagation → Interaction Terms via Covariance in Uncertainty Propagation
Clear evidence
Shown in the video
Evidence
Audio
Observation
Speaker says 'And as before, we also need to include terms that account for the interactions...' after explaining the direct component.
Contains
Explanation
The full variance propagation formula contains the direct variance components as its first summation term, augmented by the covariance interaction terms.
Find an answer · 4
How is uncertainty propagated through a nonlinear model using the linear tangent approximation?
Clear evidence
Shown in the video
Evidence
Audio
Observation
The speaker discusses the linear tangent approximation for propagating uncertainty in nonlinear models.
Knowledge points
Linear Tangent Approximation
What is the role of the Taylor series expansion in approximating nonlinear functions for uncertainty propagation?
Clear evidence
Shown in the video
Evidence
Audio
Observation
The speaker mentions the Taylor series expansion as a method to approximate nonlinear functions.
Knowledge points
Taylor Series Expansion
How do you propagate uncertainty through a nonlinear model?
Clear evidence
Shown in the video
Evidence
Audio
Observation
Explanation of using derivatives instead of slopes for nonlinear models.
Knowledge points
First-Order Taylor Expansion for Nonlinear Models
What role does covariance play in uncertainty propagation?
Clear evidence
Shown in the video
Evidence
Formula
Observation
Formula showing the covariance summation term.
Knowledge points
Interaction Terms via Covariance in Uncertainty Propagation
Coverage and review notes
Covered · Introduction and background information provided by the speaker.
Covered · Explanation and visual demonstration of the linear tangent approximation.
Covered · Speaker continues to explain the context and transition to the next topic.
Covered · Display and explanation of the Taylor series expansion formula.
Covered · Introduction of Taylor expansion for nonlinear models.
Covered · Speaker transition and general commentary on parameter space.
Covered · Explanation of the direct variance component.
Covered · Speaker transition to interaction terms.
Covered · Presentation of the full variance formula with covariance.
Reviewed English material v1: knowledge_item/formula "Direct Variance Component in Uncertainty Propagation" from 2:30 to 2:48 — The contribution of a single parameter's uncertainty to the total output variance is calculated as the product of the parameter's variance and the square of the partial derivative of the model output with respect to that parameter. This represents the sensitivity of the output to that specific input. var[f(x)] ≈(∂θi∂f)2 var[θi] Assumes first-order Taylor approximation.; Applies to independent parameters or isolates the direct effect of one parameter.