SlideShare une entreprise Scribd logo
1  sur  11
Télécharger pour lire hors ligne
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

Contenu connexe

Dernier

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

En vedette

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)
 

En vedette (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