270 likes | 415 Views
Estimation and the Kalman Filter. David Johnson. The Mean of a Discrete Distribution. “I have more legs than average”. p. (. x. ). ~. Ν. (. μ. ,. Σ. ). :. 1. 1. -. t. 1. -. -. -. x. μ. Σ. x. μ. (. ). (. ). =. p. (. x. ). e. 2. 1. /. 2. p. d. /. 2. (.
E N D
Estimation and the Kalman Filter David Johnson
The Mean of a Discrete Distribution • “I have more legs than average”
p ( x ) ~ Ν ( μ , Σ ) : 1 1 - t 1 - - - x μ Σ x μ ( ) ( ) = p ( x ) e 2 1 / 2 p d / 2 ( 2 ) Σ Gaussian Definition m s 2 p ( x ) ~ N ( , ) : 2 - m 1 ( ) x 1 m - = 2 s 2 p ( x ) e p s 2 Univariate -s s m Multivariate
Back to the non-evolving case • Two different processes measure the same thing • Want to combine into one better measurement • Estimation
Estimation Estimator Data + noise Data + noise Data + noise Estimation What is meant by estimation? z estimate H ŷ Stochastic process
A Least-Squares Approach • We want to fuse these measurements to obtain a new estimate for the range • Using a weighted least-squares approach, the resulting sum of squares error will be • Minimizing this error with respect to yields
A Least-Squares Approach • Rearranging we have • If we choose the weight to be we obtain
A Least-Squares Approach • For merging Gaussian distributions, the update rule is Show for N(0,a) N(0,b)
What happens when you move? derive
Moving • As you move • Uncertainty grows • Need to make new measurements • Combine measurements using Kalman gain
The Kalman Filter • OPTIMAL: • Linear dynamics • Measurements linear w/r to state • Errors in sensors and dynamics must be zero-mean (un-bias) white Gaussian • RECURSIVE: • Does not require all previous data • Incoming measurements ‘modify’ current estimate DATA PROCESSING ALGORITHM: The Kalman filter is essentially a technique of estimation given a system model and concurrent measurements (not a function of frequency) “an optimal recursive data processing algorithm”
Estimate the state of a discrete-time controlled process that is governed by the linear stochastic difference equation: with a measurement: The random variables wk and vk represent the process and measurement noise (respectively). They are assumed to be independent (of each other), white, and with normal probability distributions In practice, the process noise covariance and measurement noise covariance matrices might change with each time step or measurement. The Discrete Kalman Filter (PDFs)
The Discrete Kalman Filter State transition Control signal State prediction “prior” estimate First part – model forecast: prediction Process noise covariance Error covariance prediction Prediction is based only the model of the system dynamics.
The Discrete Kalman Filter actual measurement “prior” state prediction state correction Kalman gain predicted measurement “posterior” estimate Second part – measurement update: correction update error covariance matrix (posterior)
The Discrete Kalman Filter variance of the predicted states = ------------------------------------------------------------ variance of the predicted + measured states measurement sensitivity matrix measurement noise covariance The Kalman gain, K:“Do I trust my model or measurements?”
Estimate a constant voltage • Measurements have noise • Update step is • Measurement step is
Kalman Filter Extended Kalman Filter The Extended Kalman Filter (EKF) • The Extended Kalman (EKF) is a sub-optimal extension of the original KF algorithm • The EKF allows for estimation of non-linear processes or measurement relationships • This is accomplished by linearizing the current mean and covariance estimates (similar to a first order Taylor series approximation) • Suppose our process and measurement equations are the non-linear functions