How to use this calculator
Estimate a simple sampled plant from an actual paired command and output record.
- Enter Input samples, Output samples. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
First order ARX plant identification explained
The default time series includes input changes and output decay; this fit estimates a one-step ARX model from those aligned samples and does not establish that the model predicts outside the observed range.
Inputs, symbols, and units
u— Input samples- Uniformly sampled actuator history, same length as output. Use comma-separated values in the stated order.
y— Output samples- Observed outputs; model uses y[k]=a y[k−1]+b u[k−1]+c. Use comma-separated values in the stated order.
Formula and method
Fit yₖ=a yₖ₋₁+b uₖ₋₁+c by ordinary least squares: θ=(XᵀX)⁻¹Xᵀy.
The one-sample input delay is explicit. Include informative input changes; a constant input or collinear regressors cannot identify all three parameters.
A worked scenario
Input samples = [0, 1, 1, 0, 0, 1, 1]; Output samples = [0, 0, 0.8, 1.3, 0.75, 0.5, 1.1].
- Estimated autoregressive coefficient: 0.593352 ratio
- Estimated delayed input coefficient: 0.798338 output/input
- Estimated offset: 0.011209 output
- Residual RMS: 0.024088 output
The default seven-sample record includes both actuator changes and decay intervals; fit its lag coefficient, input coefficient and offset.
Assumptions and edge cases
No instrumental variables, closed-loop bias correction or errors-in-variables model. Poorly conditioned histories are rejected.
Reading the outputs
Residual RMS uses all fitted one-step errors with divisor n−1; it is not an unbiased measurement-noise estimate.
Frequently asked questions
Why use previous input?
This ARX model assumes one sample of causal input delay.
Can these coefficients define a simulator?
Yes, but validate on a separate record before trusting long predictions.
Why does constant input fail?
The input column becomes collinear with the offset column.
How do I use the First order ARX plant identification calculator?
Enter Input samples, Output samples. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of First order ARX plant identification?
Input samples = [0, 1, 1, 0, 0, 1, 1]; Output samples = [0, 0, 0.8, 1.3, 0.75, 0.5, 1.1]. Estimated autoregressive coefficient: 0.593352 ratio Estimated delayed input coefficient: 0.798338 output/input Estimated offset: 0.011209 output Residual RMS: 0.024088 output The default seven-sample record includes both actuator changes and decay intervals; fit its lag coefficient, input coefficient and offset.
Read our calculation methodology.