Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Advanced Applied Math
Reply
 
Thread Tools Display Modes
  #46  
Old April 4th, 2009, 09:10 AM
CaptainBlack's Avatar
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 12,267
Country:
Thanks: 777
Thanked 3,990 Times in 3,222 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by atlove View Post
hello CaptainBlack,
With your assistance before, i have build a basic model and programmed with vb.net already. Later on i will post some result of the estimation estimated by my program. Thank you very much.

Besides that, I was asked to do some modification about to optimize my model. My consultant said that there is forgetting factor for kalman filtering. What exact this means? Do you have related information?
The plant noise or process (if you have implemented it) is the only forgetting term in the KF.

CB
Reply With Quote
Advertisement
 
  #47  
Old April 4th, 2009, 05:34 PM
Junior Member
 
Join Date: Feb 2009
Posts: 33
Country:
Thanks: 9
Thanked 0 Times in 0 Posts
atlove is on a distinguished road
Default

Quote:
Originally Posted by CaptainBlack View Post
The plant noise or process (if you have implemented it) is the only forgetting term in the KF.

CB
For my model, I used a moving windows say 60 sets of data, then calculated the a,b,c,d,e for these data sets. Use these a,b,c,d,e and the measurement of 61set of data to estimation the power at t=61. So a,b,c,d,e calculated from 2-61sets of data sets and measurement of 62 set of data are used to determine the power at t=62 and so on.

I need to handle all 60 sets in the moving windows each time. It seems strange. He told me that Kalman filtering teaches to use some forgetting
factor so as to shorten the computation time as I only need to include
the latest set of data to find out the solution. I don't need to handle
all 60 sets of data every time.
Reply With Quote
  #48  
Old April 5th, 2009, 12:37 PM
CaptainBlack's Avatar
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 12,267
Country:
Thanks: 777
Thanked 3,990 Times in 3,222 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by atlove View Post
For my model, I used a moving windows say 60 sets of data, then calculated the a,b,c,d,e for these data sets. Use these a,b,c,d,e and the measurement of 61set of data to estimation the power at t=61. So a,b,c,d,e calculated from 2-61sets of data sets and measurement of 62 set of data are used to determine the power at t=62 and so on.

I need to handle all 60 sets in the moving windows each time. It seems strange. He told me that Kalman filtering teaches to use some forgetting
factor so as to shorten the computation time as I only need to include
the latest set of data to find out the solution. I don't need to handle
all 60 sets of data every time.
You should not need to use a moving window. Update the estimate with each measurement as it comes. Between measurements add in a plant noise matrix to the covariance matrix which is diagonal with diagonal elements 1/60 of those in the covariance (or something of that order)

CB
Reply With Quote
The following users thank CaptainBlack for this useful post:
Donate to MHF
  #49  
Old April 5th, 2009, 07:56 PM
Junior Member
 
Join Date: Feb 2009
Posts: 33
Country:
Thanks: 9
Thanked 0 Times in 0 Posts
atlove is on a distinguished road
Default

Quote:
Originally Posted by CaptainBlack View Post
You should not need to use a moving window. Update the estimate with each measurement as it comes. Between measurements add in a plant noise matrix to the covariance matrix which is diagonal with diagonal elements 1/60 of those in the covariance (or something of that order)

CB

Is the covariance matrix you mean the P?

Thank you for your suggestion in not using a moving window. But i want to see what will be the result to use moving window with forgetting factor. Do you have related information? I have searched some from the internet. It's seems that "time-weighted-error kalman filtering" is doing in this way. Do you know that?

The attachment is one of my trial in estimating the power consumption.
The green line is the real while blue is estimation
Attached Thumbnails
kalman-filtering-application-untitled.bmp  
Reply With Quote
  #50  
Old April 5th, 2009, 08:05 PM
CaptainBlack's Avatar
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 12,267
Country:
Thanks: 777
Thanked 3,990 Times in 3,222 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

[quote=atlove;294175]Is the covariance matrix you mean the P?

Thank you for your suggestion in not using a moving window. But i want to see what will be the result to use moving window with forgetting factor. Do you have related information? I have searched some from the internet. It's seems that "time-weighted-error kalman filtering" is doing in this way. Do you know that?[\quote]

No

Quote:
The attachment is one of my trial in estimating the power consumption.
The green line is the real while blue is estimation
That looks pretty good.

CB
Reply With Quote
  #51  
Old April 6th, 2009, 11:28 PM
Junior Member
 
Join Date: Feb 2009
Posts: 33
Country:
Thanks: 9
Thanked 0 Times in 0 Posts
atlove is on a distinguished road
Default

I've found sth about the forgetting factor of KF. Please check the attachment. The lamda is the forgetting factor which is said to have a value between 0.97-0.995. For more detail please visit
System Identification Toolbox - Documentation=

Do you know how to determine the lamda?
Attached Thumbnails
kalman-filtering-application-untitled1.jpg  
Reply With Quote
  #52  
Old April 7th, 2009, 05:53 AM
CaptainBlack's Avatar
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 12,267
Country:
Thanks: 777
Thanked 3,990 Times in 3,222 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by atlove View Post
I've found sth about the forgetting factor of KF. Please check the attachment. The lamda is the forgetting factor which is said to have a value between 0.97-0.995. For more detail please visit
System Identification Toolbox - Documentation=

Do you know how to determine the lamda?
Well if you are required to use that then fine. But I have an opinion about mixing such a factor with the E/KF algorithms which are probably unprintable.

CB
Reply With Quote
The following users thank CaptainBlack for this useful post:
Donate to MHF
  #53  
Old April 7th, 2009, 08:20 PM
Junior Member
 
Join Date: Feb 2009
Posts: 33
Country:
Thanks: 9
Thanked 0 Times in 0 Posts
atlove is on a distinguished road
Default

Do you mean to use the extended kalman filter? EKF is for non-linear application, isn't is? If i mix the EKF with forgetting factor. Am i need to rebuild a new kalman filter model?
Reply With Quote
  #54  
Old April 7th, 2009, 08:56 PM
CaptainBlack's Avatar
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 12,267
Country:
Thanks: 777
Thanked 3,990 Times in 3,222 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by atlove View Post
Do you mean to use the extended kalman filter? EKF is for non-linear application, isn't is? If i mix the EKF with forgetting factor. Am i need to rebuild a new kalman filter model?
EKF is not relevant here, your problem is entirly linear. I just mentioned it with the KF here because fading memory seems ill concieved when using either of these approaches because the design methodology has build in means of doing the equivalent without an ad-hoc modification.

CB
Reply With Quote
  #55  
Old April 7th, 2009, 09:08 PM
Junior Member
 
Join Date: Feb 2009
Posts: 33
Country:
Thanks: 9
Thanked 0 Times in 0 Posts
atlove is on a distinguished road
Default

I think so. Actually i don't know why he suggested me to use moving window. May be i need a talk with my consultant.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 04:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.