Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi,
In Matlab it is possible to get the uncertainty of the parameters in the estimated parameter vector. I was wondering if it is possible to do the same for state space models obtained using newpem? I see that the PredictionStateSpace structure has fields for dynamic covariance, measurement covariance, and cross covariance, so I guess that is a good starting point.

You must be logged in to vote

This is not currently possible, but it would be relatively easy to add when abs2 is used as metric (nonlinear_pem supports this)

Replies: 4 comments · 4 replies

Comment options

This is not currently possible, but it would be relatively easy to add when abs2 is used as metric (nonlinear_pem supports this)

You must be logged in to vote
0 replies
Answer selected by Hofsmo
Comment options

Thanks for the quick answer :) . Does this mean that nonlinear_pem, already supports parameter uncertainty, and that it is relatively easy to add to newpem?

You must be logged in to vote
3 replies
@baggepinnen
Comment options

Correct. I'm traveling at the moment but can have a look at it in a few days

@baggepinnen
Comment options

@Hofsmo
Comment options

Many thanks for the clarification and the quick answer :-) .

Comment options

I had a look at it. It's not very hard to compute the Hessian, but since newpem uses a non-minimal parameterization the Hessian will be indefinite and interpreting it as an inverse covariance matrix is not possible. One could possible transform the model to a minimal canonical form and compute the covariance of the parameters in that formulation, but it seems a bit messy. One could also add regularization to the parameter vector, but doing this in a nice way is non-trivial. structured_pem would not suffer from this problem as long as the user-chosen parameterization is minimal

You must be logged in to vote
0 replies
Comment options

Here's an experimental implementation of this for structured_pem
#188

You must be logged in to vote
1 reply
@Hofsmo
Comment options

Wow thanks, that looks very good. I have been using structured_pem a bit and I will check it out :) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.