State prediction equation for Kalman filter

In summary, the conversation discusses using a Kalman filter to filter data, with a known process error covariance Q and measurement error covariance R. The problem lies in determining the state transition matrix A, control matrix B, and observation matrix H. The individual is struggling with translating a transfer function to matrix form and finding the appropriate functions for the transfer function in this case. They have also found the A, B, and C matrices using MATLAB and are attempting to simulate filtering data from a barometer with the Kalman filter. However, they are unsure of how to incorporate the transfer function into the simulation. The conversation concludes with the suggestion to work on the model and calculate state and covariance predictions before updating the values for the next iteration.
  • #1
evol_w10lv
71
0
I have to filter data with Kalman filter. I know process error covariance Q and measurment error covariance R. Problem is with state transition matrix A, control matrix B and observation matrix H.

First of all, data goes through this transfer function:
##W(s) = \frac{4s}{4s+1}##
I can't get it how to write state prediction equation from transfer function. Maybe to write state prediction equation for Kalman filter, I need to write state space representation like HERE?
 
  • #3
You need to first find out what your A,B,C, and D matricies are.
It can help to generate a block diagram of your system with the proposed measurements (ie kalman filter)
 
  • Like
Likes evol_w10lv
  • #4
If you are working with kalman filters, you should be able to translate a transfer function to matrix form no problem. If not, you need to take a very good look at linear algebra
 
  • Like
Likes evol_w10lv
  • #5
Sorry for late response.
I don't work in the engineering sector. I prefer programming. I am familiar with Kalman filter in programming level. Here my problem is in basics of engineering.
I found out ##A, B, C, D## with MATLAB built in function:
##x(k+1)=-0.25*x(k) + 1*u(k)##
##y(k)=1*x(k)##
##A= -0.25, B = 1, C = 1, D = 0##
Let's say I want to simulate filtering data from barometer with Kalman filter, then calculate change of height, derive it to get vertical speed. It's just imitation.. no real device.
My idea was to generate random pressure data from barometer, then calculate height using formula and use Kalman filter with parameters:
$$ A = \begin{bmatrix}
1 & dt \\
0 & 1 \
\end{bmatrix}
H=
\begin{bmatrix}
1 \\
0
\end{bmatrix}
$$
But there isn't transfer function inculded. It's not clear what are functions of TF in this case. Is it shows how barometer data changes in each iteration? So no need to use random pressure data (but use data from TF if I give initial value before) or ...?
 
  • #6
evol_w10lv said:
But there isn't transfer function inculded. It's not clear what are functions of TF in this case. Is it shows how barometer data changes in each iteration? So no need to use random pressure data (but use data from TF if I give initial value before) or ...?
To be honest I have no idea what you are asking?
You already listed the transfer function W(s) above. Why are you asking me what it is?
You should have some idea of the covarience matrix of your noise. If you don't, you need to work on your model before you can make a measurement filter

You worked out what the A and B matrixes are. You should now be able to calculate your state and covarience predictions.

Then you can calculate your observations, then update the values to use in the next iteration.
 

1. What is a state prediction equation for Kalman filter?

The state prediction equation for Kalman filter is a mathematical formula used in control systems and data analysis to estimate the current state of a system based on previous measurements and predictions. It is a key component of the Kalman filter algorithm, which is widely used in various fields such as signal processing, navigation, and robotics.

2. How does the state prediction equation work?

The state prediction equation works by combining two sets of information: the current state estimate and the system model. The equation uses the system model to predict the next state of the system and then combines this prediction with the current state estimate to produce a more accurate estimate of the current state.

3. What are the inputs and outputs of the state prediction equation?

The inputs of the state prediction equation include the current state estimate, the system model, and the process noise. The outputs of the equation are the predicted state and the error covariance, which represents the uncertainty in the predicted state.

4. What is the significance of the state prediction equation in Kalman filter?

The state prediction equation is crucial in Kalman filter as it allows for the estimation of the current state of a system even when there is noise or uncertainty in the measurements. It also allows for the incorporation of new measurements over time to continuously update the state estimate and improve its accuracy.

5. Are there any limitations of the state prediction equation?

Like any mathematical model, the state prediction equation has its limitations. It assumes that the system model is accurate and that the process noise is known and follows a certain distribution. In reality, these assumptions may not always hold, leading to errors in the state estimate. Additionally, the accuracy of the state prediction also depends on the quality of the initial state estimate.

Similar threads

  • General Engineering
Replies
1
Views
2K
  • General Engineering
Replies
2
Views
3K
  • General Engineering
Replies
6
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
749
  • General Engineering
Replies
2
Views
2K
Replies
6
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
814
Replies
9
Views
6K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • General Engineering
Replies
1
Views
8K
Back
Top