Model Identification — Second-order fit by regression, with validation

App Exercises

Model and Control Exercise 21 of 40. BYU class 22 · PDC class 28. 15 minutes.

Model Identification lecture cover
Open the Model Identification App

Learning Outcomes

  • Fit a second-order model to a record by regression.
  • Read the shape of the residual to decide the model order.
  • Use a validation record to guard against fitting noise.

Book Chapter

Process Dynamics, Modeling, and Identification (Volume 1), Chapter 12, Multivariable Plant Identification Workbench with Exact Structural Zeros. Read online · Chapter PDF · Lecture slides

Theory in Brief

A model fit estimates parameters from training data. Use a held-out record to compare candidate orders. A residual is measured output minus model prediction.

$$\min_p\sum_k(y_k-\hat y_k(p))^2$$

$$y_k=a_1y_{k-1}+a_2y_{k-2}+b_1u_{k-1-d}+b_2u_{k-2-d}$$

$$\mathrm{fit}=100(1-\|y-\hat y\|/\|y-\bar y\|)$$

Model to Controller

An identified second-order model can retain ringing or resonance that a first-order tuning omits.

Exercise

Read (2 min). Review the model and identify which signals you will compare.

Predict (1 min). Predict what the residual of a first-order fit looks like on ringing data.

Run (8 min).

  1. Open the app and select the following lessons in order.
  2. 5 · Ringing needs a second order.
  3. 9 · Keep the final test honest.
  4. In lesson 5, fit first and second order to the ringing example. Use Validate to compare fit and residuals. Use lesson 9 to repeat the check on data held out of fitting.
  5. Record fit of each order on the training and validation records.

Explain (2 min). Which observation supports or changes your prediction? Which assumption or limit explains the gap between calculation and observation?

Generative AI Learning (2 min)

"I predicted {prediction} and measured {results} for fit of each order on the training and validation records. Ask me to explain the model first. Check my method and units, then suggest one claim I can test on my trend."

Verify the suggested claim using a second point on your trend or an independent calculation from the equations. Cite the signal, units and case that support your conclusion.

What to Turn In

Submit a screenshot of the relevant trend or scorecard and three sentences covering your prediction, the measured result with units, and the model's explanation. Course guidelines for AI use.

A repeating oscillation in the residual suggests a missing mode. Prefer the more complex model only if its advantage carries over to validation.

Which part of the model connects the measured signal to the exercise?

An identified second-order model can retain ringing or resonance that a first-order tuning omits.

How should the observations be interpreted?

A repeating oscillation in the residual suggests a missing mode. Prefer the more complex model only if its advantage carries over to validation.

How could you check that a result is comparable across cases?

Use the same signal, units and reference point. When comparing integrated quantities, use the same interval.

Related

Second Order Optimization · Quiz T · Second Order Estimation: Optimization · Second Order Regression

20 · Suspension · 22 · Cascade, Feedforward

Course Information

Assignments

Projects

Exams

Dynamic Modeling

Equipment Design

Control Design

Optimal Control

Exercises

Related Courses

Admin