Parametric versus Nonparametric Models
1. Parametric vs Nonparametric Models
a) Parametric Models
- Definition: Models described by a finite set of parameters, e.g., transfer functions or state-space models.
- Examples:
- Transfer function:
- Discrete-time transfer function:
- Characteristics:
- Suitable for controller design, simulation, and prediction.
- Different representations can be computed easily.
- Require a priori assumptions about model structure.
- Parameters are estimated via optimization.
- Measurement noise can be filtered out during optimization.
b) Nonparametric Models
- Definition: Models based on data or graphical representations without assuming a fixed parametric form.
- Examples:
- Step response
- Impulse response
- Frequency response
- Characteristics:
- Simple and fast; require minimal prior information.
- Generally no optimization involved; noise affects the model directly.
- Useful for controller design methods like PID, loop shaping, and robust control.
- Provide general insights such as bandwidth and system order.
- Role: Nonparametric models are often a necessary preliminary step for parametric identification.
2. Nonparametric Identification Methods
| Domain | Method | Input Signal Type | Output Identified |
|---|---|---|---|
| Time-domain | Step and impulse response | Step or impulse input | Transient response |
| Deconvolution | Any input signal | System impulse response | |
| Correlation approach | Random signal | System response | |
| Frequency-domain | Frequency response analysis | Sinusoidal input | Frequency response |
| Fourier analysis | Any input signal | Frequency response | |
| Spectral analysis | Random signal | Frequency response |
3. Step Response Identification
- Step input: Apply a step of amplitude to the system in steady state.
- Sampling: Choose sampling period as small as possible.
- Noise: Measure noise level before applying step.
a) First-Order Model (No Delay)
- Model:
- Theoretical step response:
- Parameter relation:
- Key points:
- At ,
- is steady-state gain.
b) First-Order Model with Delay (Ziegler-Nichols Approximation)
- Model:
- Parameters:
- : delay time
- : time constant
- : gain
c) Second-Order Model
- Model:
- Step response:
- Parameters:
- : damping ratio
- : natural frequency
- : steady-state gain
d) Identification Procedure for Second-Order Model
- Measure steady-state gain and compute .
- Measure peak time and peak value .
- Compute overshoot (used to estimate damping ratio ).
To retain: Parametric models require structural assumptions and optimization, allowing noise filtering and precise controller design; nonparametric models are simpler, faster, and provide general system insights but do not filter noise and serve as a basis for parametric identification.
Time-Domain Methods: Transient Response
1. Damping Factor and Natural Frequency
-
Damping factor is computed from the maximum overshoot :
-
Natural frequency is computed from the peak time and :
2. Impulse Response in Discrete and Continuous Time
-
The impulse response is the derivative of the step response.
-
In discrete time, a scaled Kronecker delta can be applied.
-
The discrete impulse response is:
-
If is the step response to a step of amplitude , then:
-
Approximation linking continuous and discrete impulse responses:
3. Numerical Deconvolution to Estimate Impulse Response
-
Output relates to input and impulse response by convolution:
-
Recursive formula for (assuming ):
-
For unit step input :
4. Matrix Formulation and Ill-Conditioning
-
Convolution can be written as a matrix equation:
where
and is a lower-triangular Toeplitz matrix built from .
-
Problem: is often ill-conditioned, making direct inversion numerically unstable.
5. Solutions to Ill-Conditioning
| Solution | Description |
|---|---|
| Finite Impulse Response (FIR) | Assume impulse response length , reducing unknowns to and enabling least squares estimation. |
| Regularization (Bias-Variance Trade-off) | Add constraints or penalties to stabilize inversion when is near singular, preventing . |
Key point: The impulse response can be estimated from step or arbitrary inputs using numerical deconvolution, but care must be taken to handle noise and ill-conditioning via FIR truncation or regularization.
Time-Domain Methods: Impulse Response
1. Numerical Deconvolution for Impulse Response Estimation
-
For stable systems without integrators, the impulse response tends to zero as . We approximate:
-
The output vector and input matrix relate to the truncated impulse response vector as:
where
-
Since , the system is overdetermined and solved via least squares:
2. Regularization: Bias-Variance Trade-off
-
To stabilize the solution and control noise amplification, use Tikhonov regularization:
-
Minimizing yields:
-
ensures invertibility and bounds the norm of .
-
Choose by trial and error, guided by expected impulse response length.
3. Correlation Approach
a) Cross-Correlation Function
-
For stochastic signals and , the cross-correlation at lag is:
-
If and are independent and one has zero mean:
b) Properties of Correlation Functions
| Property | Expression | Interpretation |
|---|---|---|
| Symmetry of autocorrelation | Autocorrelation is an even function | |
| Cross-correlation symmetry | Cross-correlation reverses with lag | |
| Boundedness | $ | R_{xx}(h) |
- These follow from the definitions and change of variables in expectation sums.
Key point: The impulse response can be estimated by solving via least squares, optionally regularized to balance bias and variance, and correlation functions provide fundamental properties useful for stochastic signal analysis.
Time-Domain Methods: Numerical Deconvolution
1. Correlation Approach in Time-Domain Numerical Deconvolution
The output of a noisy LTI system is modeled as:
where:
- is the input (random and independent of noise),
- is zero-mean noise,
- is the system impulse response.
Multiplying by and taking expectation yields the cross-correlation:
Since and are independent, , so:
This convolution relation allows numerical deconvolution to estimate from and .
2. Estimation of Correlation Functions
a) Autocorrelation Function Estimates
- Biased estimate:
This estimate is biased because:
- Unbiased estimate:
3. Key Properties of Autocorrelation
For any lag :
This follows from the non-negativity of variance and covariance expressions.
4. Cross-Correlation Function Estimate (Biased)
The biased estimate for cross-correlation between and is:
5. Summary Table: Correlation Estimates
| Correlation Type | Estimate Formula | Bias | Symmetry |
|---|---|---|---|
| Autocorrelation (biased) | Biased | ||
| Autocorrelation (unbiased) | Unbiased | ||
| Cross-correlation (biased) | Biased | No symmetry |
Key point: The system impulse response can be estimated by numerically deconvolving the measured cross-correlation with the input autocorrelation , assuming noise is independent and zero-mean.
Time-Domain Methods: Correlation Approach
1. Correlation Approach in Time-Domain Methods
a) Cross-Correlation Function (Unbiased Estimate)
- For signals and , the unbiased cross-correlation estimate at lag is:
b) Impulse Response Estimation
-
If input is white noise:
- Cross-correlation relates to impulse response as:
- Since is the input variance, estimate impulse response by:
-
If input is not white noise:
-
Use numerical deconvolution assuming for .
-
Cross-correlation expressed as convolution sum:
-
-
This leads to a linear system for :
-
Solve this system to estimate the impulse response vector .
2. Summary Table: Impulse Response Estimation Methods
| Condition on Input | Estimation Method | Formula / Approach |
|---|---|---|
| White noise | Direct correlation division | |
| Colored noise | Numerical deconvolution (linear system) | Solve system |
Key point: When is white noise, impulse response estimation reduces to dividing cross-correlation by input autocorrelation at zero lag; otherwise, solve a convolution linear system.
3. Additional Notes
-
The cross-correlation function is central to nonparametric identification in the time domain.
-
The assumption for truncates the impulse response to a finite length for practical computation.
-
The unbiased estimate accounts for the reduced number of terms at large lags to avoid bias.
Frequency-Domain Methods: Frequency Analysis
1. Frequency-Domain Methods: Frequency Analysis
a) Fourier Transform and System Response
-
For continuous-time LTI systems:
-
Taking Fourier transform:
-
Where:
-
For discrete-time LTI systems:
-
Fourier transform:
-
Where:
b) Three Types of Errors in Fourier Analysis
| Error Type | Source / Description | Key Point |
|---|---|---|
| Sampling error | Identifying instead of ; Shannon condition rarely satisfied in practice | Always present; for real systems |
| Measurement error | Noise/disturbance added to output: | Estimate: |
| Truncation error | Fourier transform computed on finite interval instead of | Causes bias unless mitigated by signal design or windowing |
c) Sampling Error
- Occurs because discrete-time frequency response is identified instead of continuous-time .
- Shannon Sampling Theorem condition: if satisfied, .
- In practice, this condition is never fully met, so sampling error always exists.
d) Measurement Error
- Model with noise:
- Frequency domain:
- Frequency response estimate:
- Unbiased estimate condition: noise is zero-mean, so
- Variance of estimate:
- Interpretation: Measurement error is large where noise power spectrum is high and input power spectrum is low.
- Increasing data length does not reduce variance caused by measurement noise.
e) Truncation Error
- Fourier transform for aperiodic discrete-time signals:
- For periodic discrete-time signals (period ):
- Source of truncation error: For aperiodic signals, the Fourier transform integral/sum is infinite but computed only on finite interval .
- Mitigation techniques:
- Use excitation signals with finite energy.
- Use periodic excitation signals.
- Apply windowing to reduce spectral leakage.
> Truncation error arises from computing Fourier transforms on finite data segments instead of infinite intervals, causing bias unless corrected by signal design or windowing.
Frequency-Domain Methods: Fourier Analysis
1. Excitation with Time-Limited Signals
-
Input signal is zero outside .
-
Fourier transform can be computed exactly without truncation error:
-
For a stable system, output for large .
-
Wait until output settles before recording data to minimize truncation error on output (only noise truncated).
2. Excitation with Periodic Signals
-
Input is periodic with period .
-
Fourier series computed exactly (no truncation error):
where
-
Output at steady-state is almost periodic (ignoring noise):
with larger than settling time.
-
Noise reduced by averaging over periods:
3. Windowing and Truncation Error
-
Truncation in time domain = multiplication by rectangular window .
-
In frequency domain, this corresponds to convolution:
-
Windowing introduces two main errors:
Error Type Cause Effect Loss of resolution Width of main lobe (MLW) Smoothing, reduced frequency resolution Spectral leakage Amplitude of secondary lobes (SLA) Energy leaks to neighboring frequencies -
Trade-off: Increasing MLW reduces spectral leakage but lowers resolution.
-
Usually prefer increasing MLW to reduce noise and leakage (e.g., Hann window).
4. Discrete Fourier Transform (DFT)
-
For a sampled signal of length , DFT is:
-
Frequency vector associated with :
Key point: Using time-limited or periodic inputs allows exact computation of Fourier transforms without truncation error, while windowing controls the trade-off between spectral leakage and resolution in frequency analysis.
Frequency-Domain Methods: Spectral Analysis
1. Discrete Fourier Transform (DFT)
- DFT approximates the Fourier transform of continuous-time signals by sampling uniformly points on the Fourier transform of an aperiodic discrete-time signal.
- For discrete-time periodic signals, DFT gives times the exact value of the Fourier transform.
- Sampling frequency is denoted by .
2. Practical Aspects of Fourier Analysis
- The input signal must be rich in frequency content to excite the system over a wide band; typical choices are discrete white noise or PRBS (Pseudo-Random Binary Sequence) with uniform spectrum.
- Applying multiple periods () of a periodic PRBS reduces measurement error by a factor of and avoids truncation errors.
- To ensure the output is periodic (deterministic part), allow the transient response to decay before measurement.
- If a periodic input is not possible, use window functions (Hamming, Hann, etc.) to reduce truncation errors.
- Prefer fewer frequency points with higher accuracy: split data into parts, compute individual frequency responses , then average.
3. Spectral Analysis for Linear Systems
For a linear system:
Using correlation functions:
Hence, the frequency response function is:
In practice, estimates are computed using DFT:
with
4. Estimating Noise Spectrum
Given the system output:
Taking the expected power spectrum:
Define the output power spectral density:
Then the noise power spectral density is:
5. Remark
- For periodic signals, Fourier analysis and spectral analysis are equivalent.
- In this case, the frequency response can be directly computed as:
Key point: Spectral analysis estimates the system frequency response by dividing the cross-spectrum of output and input by the input power spectrum, allowing nonparametric identification of linear systems.
Closed-Loop Identification
1. Closed-Loop Identification
Motivation:
- Some systems are unstable in open-loop.
- Open-loop operation can cause output drift.
- Identification should focus on the frequency range relevant for control.
2. Problem in Closed-Loop Identification
- Input and disturbance are correlated via feedback, i.e., .
- This correlation invalidates direct spectral analysis on input/output data.
- The classical spectral estimate of the system is biased:
where introduces an error term.
3. Extreme Cases in Closed-Loop Identification
| Case | Condition | Consequence |
|---|---|---|
| 1. No disturbance | → No error in spectral estimate | |
| 2. No excitation | Identification impossible (no input excitation) |
Key point: Closed-loop feedback induces correlation between input and disturbance, causing bias in spectral estimates; special methods are required to obtain unbiased system identification.
4. Summary
- Closed-loop identification is necessary when open-loop operation is not feasible.
- Direct spectral analysis fails due to feedback-induced correlation.
- Understanding the correlation structure is essential to correct or compensate the bias in estimates.
Parametric Model Estimation from Frequency Data
1. Parametric Model Estimation from Frequency Data
a) Identification of the Controller Inverse
- Given spectral densities:
- The estimated transfer function (TF) is:
- Interpretation: The inverse of the controller is identified.
b) Identification Procedure Using Excitation Signal
-
Identify TF between and :
-
Identify TF between and :
-
Divide the two models to get:
2. Parametric Model from Frequency Data
- Given a nonparametric frequency domain model:
- Goal: Find a parametric rational model:
- Minimize the cost function:
- This is a nonlinear optimization problem in the complex plane.
3. Linearization of the Error for Least Squares
- Define a linear error with respect to parameters:
- Form the system of linear equations:
- Solve in the least squares sense by separating real and imaginary parts:
- Note: The solution parameters may be complex; separating real and imaginary parts ensures a real-valued solution.
4. Problem with Frequency Weighting in Least Squares
- The linear error relates to the original error by:
- The weighting term increases with frequency, causing:
- Good fit at high frequencies (HF)
- Poor fit at low frequencies (LF)
5. Iterative Solution to Address Frequency Weighting
- Use an iterative approach minimizing at iteration :
- Here, is computed from the previous iteration.
- This balances the frequency weighting and improves fit across all frequencies.
Key point: Parametric model estimation from frequency data involves transforming a nonlinear problem into a linear least squares problem via error linearization, then correcting frequency-dependent weighting through iterative refinement.