When can I be sure that the state values estimated from the Kalman Filter have approached the actual values?...
$begingroup$
Below are the equations for state estimation using Kalman Filter. Here are the first few equations, and the rest follows in a link below:
$$
newcommand{blue}{color{blue}}
newcommand{grey}{color{darkgrey}}
newcommand{red}{color{red}}
newcommand{orange}{color{orange}}
begin{align}
&
left.
begin{array}{ll}
text{State Prediction} & grey{X_{predicted}}=Agrey{X_{n-1}}+Bblue{u_n}\
text{Covariance Prediction} &grey{P_{predicted}}=Agrey{P_{n-1}}A^{rm T}+Q
end{array}
right}red{text{Prediction Step}}
\
quad\
&
left.
begin{array}{ll}
text{Innovation} & grey{y}=blue{z_n}-Hgrey{X_{predicted}}\
text{Innovation Covariance} &grey{S}=Hgrey{P_{predicted}}H^{rm T}+R\
text{Kalman Gain} & grey{K}=grey{P_{predicted}}H^{rm T}grey{S^{rm -1}}\
text{State Update} & orange{X_n}=grey{X_{predicted}}+grey{Ky}\
text{Covariance Update} & orange{P_n}=(grey{I}-grey{K}H)grey{P_{predicted}}
end{array}
right}red{text{Measurement Update}}
end{align}
$$
Kalman Filter Equations
So, in the prediction stage, the filter predicts the states and the co-variance matrix of the states using a linear model.
Then in the measurement or sensor stage, the filter takes the sensor readings into accounts and updates the states and it's covariance matrix.
My question is, do I need to run the Kalman Filter just once or in a loop? And how do I be sure that the states estimated (X) from the Kalman Filter have approached the real or actual values? Shouldn't we need to take a look into the co-variance matrix P?
The reason I am asking this question is, I wrote a code for tracking objects using Kalman Filter. After some iterations using the same sensor reading, I found out that the covariance matrix after the measurement update isn't updating anymore i.e. the covariance matrix, P, is retaining the same value over the next iterations onward. Is this the indication that the Kalman Filter has done the best it could?
bayesian covariance kalman-filter
$endgroup$
add a comment |
$begingroup$
Below are the equations for state estimation using Kalman Filter. Here are the first few equations, and the rest follows in a link below:
$$
newcommand{blue}{color{blue}}
newcommand{grey}{color{darkgrey}}
newcommand{red}{color{red}}
newcommand{orange}{color{orange}}
begin{align}
&
left.
begin{array}{ll}
text{State Prediction} & grey{X_{predicted}}=Agrey{X_{n-1}}+Bblue{u_n}\
text{Covariance Prediction} &grey{P_{predicted}}=Agrey{P_{n-1}}A^{rm T}+Q
end{array}
right}red{text{Prediction Step}}
\
quad\
&
left.
begin{array}{ll}
text{Innovation} & grey{y}=blue{z_n}-Hgrey{X_{predicted}}\
text{Innovation Covariance} &grey{S}=Hgrey{P_{predicted}}H^{rm T}+R\
text{Kalman Gain} & grey{K}=grey{P_{predicted}}H^{rm T}grey{S^{rm -1}}\
text{State Update} & orange{X_n}=grey{X_{predicted}}+grey{Ky}\
text{Covariance Update} & orange{P_n}=(grey{I}-grey{K}H)grey{P_{predicted}}
end{array}
right}red{text{Measurement Update}}
end{align}
$$
Kalman Filter Equations
So, in the prediction stage, the filter predicts the states and the co-variance matrix of the states using a linear model.
Then in the measurement or sensor stage, the filter takes the sensor readings into accounts and updates the states and it's covariance matrix.
My question is, do I need to run the Kalman Filter just once or in a loop? And how do I be sure that the states estimated (X) from the Kalman Filter have approached the real or actual values? Shouldn't we need to take a look into the co-variance matrix P?
The reason I am asking this question is, I wrote a code for tracking objects using Kalman Filter. After some iterations using the same sensor reading, I found out that the covariance matrix after the measurement update isn't updating anymore i.e. the covariance matrix, P, is retaining the same value over the next iterations onward. Is this the indication that the Kalman Filter has done the best it could?
bayesian covariance kalman-filter
$endgroup$
$begingroup$
Since you are new to this site, I suppose you do not know how to type math symbols here using MathJaX. Perhaps someone would be kind enough to edit the equations into your post, to get you started.
$endgroup$
– String
Nov 20 '16 at 15:47
$begingroup$
I have put in the first few to get your started - can you take it from there? If you click edit, you should be able to see, what I have done.
$endgroup$
– String
Nov 20 '16 at 15:53
$begingroup$
Thanks @String, for the edit. Yes, I didn't know MathJaX. I copied your code and updated the equations. I think I got it but there are two sets of equations now, and I don't know how to combine them into a single set. Thanks for your help though.
$endgroup$
– benjamin
Nov 20 '16 at 17:55
$begingroup$
Is my last edit what you intended? I usedbegin{align} ... end{align}
which is an environment that then aligns at the inserted &-symbols of each line. Look up examples by searching for $LaTeX$ and 'align'.
$endgroup$
– String
Nov 20 '16 at 20:16
$begingroup$
Yes, that's what I wanted. Thanks!
$endgroup$
– benjamin
Nov 20 '16 at 21:13
add a comment |
$begingroup$
Below are the equations for state estimation using Kalman Filter. Here are the first few equations, and the rest follows in a link below:
$$
newcommand{blue}{color{blue}}
newcommand{grey}{color{darkgrey}}
newcommand{red}{color{red}}
newcommand{orange}{color{orange}}
begin{align}
&
left.
begin{array}{ll}
text{State Prediction} & grey{X_{predicted}}=Agrey{X_{n-1}}+Bblue{u_n}\
text{Covariance Prediction} &grey{P_{predicted}}=Agrey{P_{n-1}}A^{rm T}+Q
end{array}
right}red{text{Prediction Step}}
\
quad\
&
left.
begin{array}{ll}
text{Innovation} & grey{y}=blue{z_n}-Hgrey{X_{predicted}}\
text{Innovation Covariance} &grey{S}=Hgrey{P_{predicted}}H^{rm T}+R\
text{Kalman Gain} & grey{K}=grey{P_{predicted}}H^{rm T}grey{S^{rm -1}}\
text{State Update} & orange{X_n}=grey{X_{predicted}}+grey{Ky}\
text{Covariance Update} & orange{P_n}=(grey{I}-grey{K}H)grey{P_{predicted}}
end{array}
right}red{text{Measurement Update}}
end{align}
$$
Kalman Filter Equations
So, in the prediction stage, the filter predicts the states and the co-variance matrix of the states using a linear model.
Then in the measurement or sensor stage, the filter takes the sensor readings into accounts and updates the states and it's covariance matrix.
My question is, do I need to run the Kalman Filter just once or in a loop? And how do I be sure that the states estimated (X) from the Kalman Filter have approached the real or actual values? Shouldn't we need to take a look into the co-variance matrix P?
The reason I am asking this question is, I wrote a code for tracking objects using Kalman Filter. After some iterations using the same sensor reading, I found out that the covariance matrix after the measurement update isn't updating anymore i.e. the covariance matrix, P, is retaining the same value over the next iterations onward. Is this the indication that the Kalman Filter has done the best it could?
bayesian covariance kalman-filter
$endgroup$
Below are the equations for state estimation using Kalman Filter. Here are the first few equations, and the rest follows in a link below:
$$
newcommand{blue}{color{blue}}
newcommand{grey}{color{darkgrey}}
newcommand{red}{color{red}}
newcommand{orange}{color{orange}}
begin{align}
&
left.
begin{array}{ll}
text{State Prediction} & grey{X_{predicted}}=Agrey{X_{n-1}}+Bblue{u_n}\
text{Covariance Prediction} &grey{P_{predicted}}=Agrey{P_{n-1}}A^{rm T}+Q
end{array}
right}red{text{Prediction Step}}
\
quad\
&
left.
begin{array}{ll}
text{Innovation} & grey{y}=blue{z_n}-Hgrey{X_{predicted}}\
text{Innovation Covariance} &grey{S}=Hgrey{P_{predicted}}H^{rm T}+R\
text{Kalman Gain} & grey{K}=grey{P_{predicted}}H^{rm T}grey{S^{rm -1}}\
text{State Update} & orange{X_n}=grey{X_{predicted}}+grey{Ky}\
text{Covariance Update} & orange{P_n}=(grey{I}-grey{K}H)grey{P_{predicted}}
end{array}
right}red{text{Measurement Update}}
end{align}
$$
Kalman Filter Equations
So, in the prediction stage, the filter predicts the states and the co-variance matrix of the states using a linear model.
Then in the measurement or sensor stage, the filter takes the sensor readings into accounts and updates the states and it's covariance matrix.
My question is, do I need to run the Kalman Filter just once or in a loop? And how do I be sure that the states estimated (X) from the Kalman Filter have approached the real or actual values? Shouldn't we need to take a look into the co-variance matrix P?
The reason I am asking this question is, I wrote a code for tracking objects using Kalman Filter. After some iterations using the same sensor reading, I found out that the covariance matrix after the measurement update isn't updating anymore i.e. the covariance matrix, P, is retaining the same value over the next iterations onward. Is this the indication that the Kalman Filter has done the best it could?
bayesian covariance kalman-filter
bayesian covariance kalman-filter
edited Nov 20 '16 at 20:20


String
13.8k32756
13.8k32756
asked Nov 20 '16 at 15:43
benjaminbenjamin
113
113
$begingroup$
Since you are new to this site, I suppose you do not know how to type math symbols here using MathJaX. Perhaps someone would be kind enough to edit the equations into your post, to get you started.
$endgroup$
– String
Nov 20 '16 at 15:47
$begingroup$
I have put in the first few to get your started - can you take it from there? If you click edit, you should be able to see, what I have done.
$endgroup$
– String
Nov 20 '16 at 15:53
$begingroup$
Thanks @String, for the edit. Yes, I didn't know MathJaX. I copied your code and updated the equations. I think I got it but there are two sets of equations now, and I don't know how to combine them into a single set. Thanks for your help though.
$endgroup$
– benjamin
Nov 20 '16 at 17:55
$begingroup$
Is my last edit what you intended? I usedbegin{align} ... end{align}
which is an environment that then aligns at the inserted &-symbols of each line. Look up examples by searching for $LaTeX$ and 'align'.
$endgroup$
– String
Nov 20 '16 at 20:16
$begingroup$
Yes, that's what I wanted. Thanks!
$endgroup$
– benjamin
Nov 20 '16 at 21:13
add a comment |
$begingroup$
Since you are new to this site, I suppose you do not know how to type math symbols here using MathJaX. Perhaps someone would be kind enough to edit the equations into your post, to get you started.
$endgroup$
– String
Nov 20 '16 at 15:47
$begingroup$
I have put in the first few to get your started - can you take it from there? If you click edit, you should be able to see, what I have done.
$endgroup$
– String
Nov 20 '16 at 15:53
$begingroup$
Thanks @String, for the edit. Yes, I didn't know MathJaX. I copied your code and updated the equations. I think I got it but there are two sets of equations now, and I don't know how to combine them into a single set. Thanks for your help though.
$endgroup$
– benjamin
Nov 20 '16 at 17:55
$begingroup$
Is my last edit what you intended? I usedbegin{align} ... end{align}
which is an environment that then aligns at the inserted &-symbols of each line. Look up examples by searching for $LaTeX$ and 'align'.
$endgroup$
– String
Nov 20 '16 at 20:16
$begingroup$
Yes, that's what I wanted. Thanks!
$endgroup$
– benjamin
Nov 20 '16 at 21:13
$begingroup$
Since you are new to this site, I suppose you do not know how to type math symbols here using MathJaX. Perhaps someone would be kind enough to edit the equations into your post, to get you started.
$endgroup$
– String
Nov 20 '16 at 15:47
$begingroup$
Since you are new to this site, I suppose you do not know how to type math symbols here using MathJaX. Perhaps someone would be kind enough to edit the equations into your post, to get you started.
$endgroup$
– String
Nov 20 '16 at 15:47
$begingroup$
I have put in the first few to get your started - can you take it from there? If you click edit, you should be able to see, what I have done.
$endgroup$
– String
Nov 20 '16 at 15:53
$begingroup$
I have put in the first few to get your started - can you take it from there? If you click edit, you should be able to see, what I have done.
$endgroup$
– String
Nov 20 '16 at 15:53
$begingroup$
Thanks @String, for the edit. Yes, I didn't know MathJaX. I copied your code and updated the equations. I think I got it but there are two sets of equations now, and I don't know how to combine them into a single set. Thanks for your help though.
$endgroup$
– benjamin
Nov 20 '16 at 17:55
$begingroup$
Thanks @String, for the edit. Yes, I didn't know MathJaX. I copied your code and updated the equations. I think I got it but there are two sets of equations now, and I don't know how to combine them into a single set. Thanks for your help though.
$endgroup$
– benjamin
Nov 20 '16 at 17:55
$begingroup$
Is my last edit what you intended? I used
begin{align} ... end{align}
which is an environment that then aligns at the inserted &-symbols of each line. Look up examples by searching for $LaTeX$ and 'align'.$endgroup$
– String
Nov 20 '16 at 20:16
$begingroup$
Is my last edit what you intended? I used
begin{align} ... end{align}
which is an environment that then aligns at the inserted &-symbols of each line. Look up examples by searching for $LaTeX$ and 'align'.$endgroup$
– String
Nov 20 '16 at 20:16
$begingroup$
Yes, that's what I wanted. Thanks!
$endgroup$
– benjamin
Nov 20 '16 at 21:13
$begingroup$
Yes, that's what I wanted. Thanks!
$endgroup$
– benjamin
Nov 20 '16 at 21:13
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2022802%2fwhen-can-i-be-sure-that-the-state-values-estimated-from-the-kalman-filter-have-a%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2022802%2fwhen-can-i-be-sure-that-the-state-values-estimated-from-the-kalman-filter-have-a%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Since you are new to this site, I suppose you do not know how to type math symbols here using MathJaX. Perhaps someone would be kind enough to edit the equations into your post, to get you started.
$endgroup$
– String
Nov 20 '16 at 15:47
$begingroup$
I have put in the first few to get your started - can you take it from there? If you click edit, you should be able to see, what I have done.
$endgroup$
– String
Nov 20 '16 at 15:53
$begingroup$
Thanks @String, for the edit. Yes, I didn't know MathJaX. I copied your code and updated the equations. I think I got it but there are two sets of equations now, and I don't know how to combine them into a single set. Thanks for your help though.
$endgroup$
– benjamin
Nov 20 '16 at 17:55
$begingroup$
Is my last edit what you intended? I used
begin{align} ... end{align}
which is an environment that then aligns at the inserted &-symbols of each line. Look up examples by searching for $LaTeX$ and 'align'.$endgroup$
– String
Nov 20 '16 at 20:16
$begingroup$
Yes, that's what I wanted. Thanks!
$endgroup$
– benjamin
Nov 20 '16 at 21:13