Linear in the Model Parameters
A linear model relates a known input to an observed response through unknown parameters :
The important word is linear in the parameters. For fixed , the map from to is linear. The dependence on may contain powers, logarithms, sines, or other nonlinear basis functions.
From measurements to a design matrix
Suppose we collect input-response pairs and model each observation as
The error contains measurement noise and model mismatch. Stacking all responses and model blocks gives
The matrix is the design matrix. When the observations do not satisfy one parameter vector exactly, estimate with least squares or another residual model. The data determine the parameters uniquely when has full column rank. The condition number of separately measures the numerical sensitivity of that estimate.
Basis functions create many model shapes
Let be known basis functions. A scalar-response model can be written as
Different choices of basis functions create different shapes while preserving linearity in .
An affine line:
A polynomial of degree :
A Fourier basis:
An interaction between two inputs:
Terms such as , , and may be nonlinear in the inputs. They are known coefficients once the inputs are observed, so the model remains linear in its unknown parameters.
Take the observations and the basis . Each observed input gives one row of the design matrix.
The third observation agrees with the first two: one parameter vector explains all three values.
Multiple responses
If every input produces several responses, place their parameter vectors in a matrix . For a row of basis values ,
Each column of describes one response. This is still a linear model because every output is a linear combination of the same known basis values.
The Ideal Gas Law
At known temperature and volume , solving for pressure gives
Pressure is linear in the unknown amount of substance , measured in moles. The quantity is not itself the number of molecules. The number of specified entities is .
Repeated pressure measurements at several known values yield one design-matrix row per observation.
Local linearization of a nonlinear model
A genuinely nonlinear parameter model has the form
In this model, parameters may occur inside exponentials, powers, or products with one another. Near a current parameter value , a first-order Taylor approximation gives
The Jacobian is known after choosing , so the correction appears linearly. This approximation is accurate only near . Iterative methods such as Gauss-Newton repeatedly update the linearization point.
Checks before fitting
Before interpreting fitted parameters, verify that:
- the design matrix columns represent the intended basis functions and units
- the data contain enough independent information for the parameters, typically
- feature scales and the condition number do not make the solve numerically fragile
- the chosen residual loss matches the noise and outlier assumptions
- a local linearization is checked again against the original nonlinear model
A flexible basis can fit many shapes, but flexibility alone does not guarantee identifiability, numerical stability, or useful predictions.