How to use this calculator
Refine a one-parameter plant estimate from a new input-output pair without retaining the complete record.
- Enter Prior parameter estimate, Prior inverse information, New regressor, Observed output, then complete the remaining labeled fields. 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.
Scalar recursive least squares parameter update explained
Use Prior parameter estimate with Prior inverse information to reproduce the sample calculation, then review the stated limits before carrying the result into another scenario.
A numerical walkthrough
Prior parameter estimate = 1.5; Prior inverse information = 5; New regressor = 2; Observed output = 3.4; Forgetting factor = 0.98.
- Updated parameter: 1.690658 output/regressor
- Updated inverse information: 0.238322 scaled variance
- Prediction residual: 0.4 output units
The previous coefficient is 1.5; a regressor of two predicts three, while the observed output is 3.4.
The model behind the numbers
K=Pφ/(λ+φ²P); θ⁺=θ+K(y−φθ); P⁺=P/(λ+φ²P).
The prior estimate and inverse information summarize past weighted least squares. Forgetting reduces the weight of older observations.
What to enter
theta— Prior parameter estimate- Current coefficient in y=theta times phi.
P— Prior inverse information- Positive parameter covariance scale.
phi— New regressor- Known input multiplying the unknown parameter.
y— Observed output- Output paired with the regressor.
lambda— Forgetting factor- Weight retained from past information; one means no forgetting.
Interpreting the result
A scalar, no-intercept linear model. Persistent excitation and noise assumptions are outside this single-update calculation.
Reading the outputs
Updated parameter multiplies future regressors; inverse information is a scale measure, not a confidence interval without a noise model.
Frequently asked questions
What does a zero regressor contribute?
It cannot directly identify the parameter; forgetting can still change the information scale.
Can lambda exceed one?
This implementation uses conventional forgetting factors in (0,1].
Is P the measurement variance?
No; it measures uncertainty or inverse information about the parameter.
How do I use the Scalar recursive least squares parameter update calculator?
Enter Prior parameter estimate, Prior inverse information, New regressor, Observed output, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Scalar recursive least squares parameter update?
Prior parameter estimate = 1.5; Prior inverse information = 5; New regressor = 2; Observed output = 3.4; Forgetting factor = 0.98. Updated parameter: 1.690658 output/regressor Updated inverse information: 0.238322 scaled variance Prediction residual: 0.4 output units The previous coefficient is 1.5; a regressor of two predicts three, while the observed output is 3.4.
Read our calculation methodology.