SlideShare a Scribd company logo
13
Consider an object falling under a constant gravitational field. Let y(t) denote
the height of the object, then
y t g
y t y t g t t
y t y t y t t t
g
t t
..
. .
.
( )
( ) ( ) ( )
( ) ( ) ( )( ) ( )
= −
⇒ = − −
⇒ = + − − −
0 0
0 0 0 0
2
2
As a discrete time system with time increment of t-t0=1
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
Kalman Filter and Particle Filter
14
y k y k y k
g
( ) ( ) ( )
.
+ = + −1
2
the height y(k+1) depends on the previous velocity and height at time k.
We can define the state as
x(k) [y(k) y(k)]'
.
≡
and then the state equation becomes
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
15
x x
F x G u
(k +1) =
1 1
0 1
(k)+
0.5










 −
= +
1
( )
( )
g
k
Assuming we observe or measure the height of the ball directly. The
measurement equation is:
z x
H x
(k) = [1 0] (k) + w(k)
= +( ) ( )k w k
The variance of w(k) needs to be known for implementing a Kalman filter.
Given the initial state and covariance, we have sufficient information to find the
optimal state estimate using the Kalman filter equations.
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
16
Kalman Filter Equations
The Kalman filter maintains the estimates of the state:
$( | ) ( ) ( ), ( ),...
$( | ) ( ) ( ), ( ),...
x x
x x
k k k z k z k
k k k z k z k
− −
+ − + −
estimateof given measurements
estimateof given measurements
1
1 1 1
and the error covariance matrix of the state estimate
P x
P x
( | ) ( ) ( ), ( ),...
( | ) ( ) ( ), ( ),...
k k k z k z k
k k k z k z k
− −
+ − + −
covarianceof given
estimateof given
1
1 1 1
We shall partition the Kalman filter recursive processing into several simple
stages with a physical interpretation:
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
17
State Estimation
0. Known are $( | ), ( ), ( | )x u Pk k k k k and the new measurement z(k+1).
1. State Prediction $( | ) ( ) $( | ) ( ) ( )x F x G uk k k k k k k+ = +1
2. Measurement Prediction: $( | ) ( ) $( | )z H xk k k k k+ = +1 1
3. Measurement Residual: v z z( ) ( ) $( | )k k k k+ = + − +1 1 1
4. Updated State Estimate: $( | ) $( | ) ( ) ( )x x W vk k k k k k+ + = + + + +1 1 1 1 1
where W(k+1) is called the Kalman Gain defined next in the state
covariance estimation.
Time update
measurement
update
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
18
State Covariance Estimation
1. State prediction covariance: P F P F Q( | ) ( ) ( | ) ( )' ( )k k k k k k k+ = +1
2. Measurement prediction covariance:
S H P H R( ) ( ) ( | ) ( )' ( )k k k k k k+ = + + + + +1 1 1 1 1
3. Filter Gain W P H S 1
( ) ( | ) ( )' ( )k k k k k+ = + + + −
1 1 1 1
4. Updated state covariance
P P W S W( | ) ( | ) ( ) ( ) ( )'k k k k k k k+ + = + − + + +1 1 1 1 1 1
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
19
Page 219 Bar-Shalom ANATOMY OF KALMAN FILTER
State at tk
x(k)
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
20
Matrix Riccati Equation
The covariance calculations are independent of state (not so for EKF later)
=> can be performed offline and are given by:
[ ]P F
P P H H P H R
H P
F Q( | ) ( )
( | ) ( | ) ( )' ( ) ( | ) ( )' ( )
. ( ) ( | )
( )' (k k k
k k k k k k k k k k
k k k
k+ =
− − − − +
−








+
−
1
1 1 1
1
1
This is the Riccati equation and can be obtained from the Kalman filter
equations above.
The solution of the Riccati equation in a time invariant system converges to
steady state (finite) covariance if the pair {F, H} is completely observable (ie
the state is visible from the measurements alone).
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
21
{F, H} is completely observable if and only if the observability matrix
Q
F
FH
FH nx
0
1
=











−
...
has full rank of nx.
The convergent solution to the Riccati equation yields the steady state gain for
the Kalman Filter.
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
22
FALLING BODY KALMAN
FILTER (continued)
Assume an initial true state of position = 100 and velocity = 0, g=1.
We choose an initial estimate state estimate $( )x 0 and initial state covariance
P( )0 based on mainly intuition. The state noise covariance Q is all zeros.
The measurement noise covariance R is estimated from knowledge of predicted
observation errors, chosen as 1 here.
F, G, H are known the Kalman filter equations can be applied:
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
23
85
87
89
91
93
95
97
99
101
1 2 3 4 5 6
True position
Estimate
measurement
www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215

More Related Content

Recently uploaded

ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
ashishpaul799
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Kalman Filter And Particle Filter

  • 1. 13 Consider an object falling under a constant gravitational field. Let y(t) denote the height of the object, then y t g y t y t g t t y t y t y t t t g t t .. . . . ( ) ( ) ( ) ( ) ( ) ( ) ( )( ) ( ) = − ⇒ = − − ⇒ = + − − − 0 0 0 0 0 0 2 2 As a discrete time system with time increment of t-t0=1 www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215 Kalman Filter and Particle Filter
  • 2. 14 y k y k y k g ( ) ( ) ( ) . + = + −1 2 the height y(k+1) depends on the previous velocity and height at time k. We can define the state as x(k) [y(k) y(k)]' . ≡ and then the state equation becomes www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 3. 15 x x F x G u (k +1) = 1 1 0 1 (k)+ 0.5            − = + 1 ( ) ( ) g k Assuming we observe or measure the height of the ball directly. The measurement equation is: z x H x (k) = [1 0] (k) + w(k) = +( ) ( )k w k The variance of w(k) needs to be known for implementing a Kalman filter. Given the initial state and covariance, we have sufficient information to find the optimal state estimate using the Kalman filter equations. www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 4. 16 Kalman Filter Equations The Kalman filter maintains the estimates of the state: $( | ) ( ) ( ), ( ),... $( | ) ( ) ( ), ( ),... x x x x k k k z k z k k k k z k z k − − + − + − estimateof given measurements estimateof given measurements 1 1 1 1 and the error covariance matrix of the state estimate P x P x ( | ) ( ) ( ), ( ),... ( | ) ( ) ( ), ( ),... k k k z k z k k k k z k z k − − + − + − covarianceof given estimateof given 1 1 1 1 We shall partition the Kalman filter recursive processing into several simple stages with a physical interpretation: www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 5. 17 State Estimation 0. Known are $( | ), ( ), ( | )x u Pk k k k k and the new measurement z(k+1). 1. State Prediction $( | ) ( ) $( | ) ( ) ( )x F x G uk k k k k k k+ = +1 2. Measurement Prediction: $( | ) ( ) $( | )z H xk k k k k+ = +1 1 3. Measurement Residual: v z z( ) ( ) $( | )k k k k+ = + − +1 1 1 4. Updated State Estimate: $( | ) $( | ) ( ) ( )x x W vk k k k k k+ + = + + + +1 1 1 1 1 where W(k+1) is called the Kalman Gain defined next in the state covariance estimation. Time update measurement update www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 6. 18 State Covariance Estimation 1. State prediction covariance: P F P F Q( | ) ( ) ( | ) ( )' ( )k k k k k k k+ = +1 2. Measurement prediction covariance: S H P H R( ) ( ) ( | ) ( )' ( )k k k k k k+ = + + + + +1 1 1 1 1 3. Filter Gain W P H S 1 ( ) ( | ) ( )' ( )k k k k k+ = + + + − 1 1 1 1 4. Updated state covariance P P W S W( | ) ( | ) ( ) ( ) ( )'k k k k k k k+ + = + − + + +1 1 1 1 1 1 www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 7. 19 Page 219 Bar-Shalom ANATOMY OF KALMAN FILTER State at tk x(k) www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 8. 20 Matrix Riccati Equation The covariance calculations are independent of state (not so for EKF later) => can be performed offline and are given by: [ ]P F P P H H P H R H P F Q( | ) ( ) ( | ) ( | ) ( )' ( ) ( | ) ( )' ( ) . ( ) ( | ) ( )' (k k k k k k k k k k k k k k k k k+ = − − − − + −         + − 1 1 1 1 1 1 This is the Riccati equation and can be obtained from the Kalman filter equations above. The solution of the Riccati equation in a time invariant system converges to steady state (finite) covariance if the pair {F, H} is completely observable (ie the state is visible from the measurements alone). www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 9. 21 {F, H} is completely observable if and only if the observability matrix Q F FH FH nx 0 1 =            − ... has full rank of nx. The convergent solution to the Riccati equation yields the steady state gain for the Kalman Filter. www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 10. 22 FALLING BODY KALMAN FILTER (continued) Assume an initial true state of position = 100 and velocity = 0, g=1. We choose an initial estimate state estimate $( )x 0 and initial state covariance P( )0 based on mainly intuition. The state noise covariance Q is all zeros. The measurement noise covariance R is estimated from knowledge of predicted observation errors, chosen as 1 here. F, G, H are known the Kalman filter equations can be applied: www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 11. 23 85 87 89 91 93 95 97 99 101 1 2 3 4 5 6 True position Estimate measurement www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215