SMCsamplers.FFBS!Function
Xdraws = FFBS!(Draws, U, Y, A, B, C, Σₑ, Σₙ, μ₀, Σ₀, nSim = 1)

Forward filtering and backward sampling from the joint smoothing posterior p(x1,...xT | y1,...,yT) of the state space model:

yₜ = Cxₜ + εₜ, εₜ ~ N(0,Σₑ) Measurement equation

xₜ = Axₜ₋₁+ Buₜ + ηₜ, ηₜ ~ N(0,Σₙ) State equation

where

xₜ is the n-dim state

uₜ is the m-dim control

yₜ is the k-dim observed data.

The observed data observations are the rows of the T×k matrix Y The control signals are the rows of the T×m matrix U μ₀ and Σ₀ are the mean and covariance of the initial state vector x₀. A, C, Σₑ and Σₙ can be deterministically time-varying by passing 3D arrays of size n×n×T.

Note: If nSim == 1, the returned Xdraws is matrix, otherwise it is a 3D array of size T×n×nSim.

source
SMCsamplers.FFBSx!Function
FFBSx!(Draws, U, Y, A, B, C, ∂C, Cargs, Σₑ, Σₙ, μ₀, Σ₀)

Forward filtering and backward sampling from the joint smoothing posterior p(x1,...xT | y1,...,yT) of the state space model with nonlinear measurement equation:

yₜ = C(xₜ) + εₜ, εₜ ~ N(0,Σₑ) Measurement equation

xₜ = Axₜ₋₁+ Buₜ + ηₜ, ηₜ ~ N(0,Σₙ) State equation

where

C(xₜ) is a non-linear function that we can ForwardDiff.jl to get the Jacobian

xₜ is the n-dim state

uₜ is the m-dim control

yₜ is the k-dim observed data.

The observed data observations are the rows of the T×k matrix Y The control signals are the rows of the T×m matrix U μ₀ and Σ₀ are the mean and covariance of the initial state vector x₀

Note: If nSim == 1, the returned Xdraws is matrix, otherwise it is a 3D array of size T×n×nSim.

source
SMCsamplers.FFBS_unscented!Function
FFBS_unscented!(Draws, U, Y, A, B, C, Cargs, Σₑ, Σₙ, μ₀, Σ₀)

Forward filtering and backward sampling from the joint smoothing posterior p(x1,...xT | y1,...,yT) of the state space model with nonlinear measurement equation:

yₜ = C(xₜ) + εₜ, εₜ ~ N(0,Σₑ) Measurement equation

xₜ = Axₜ₋₁+ Buₜ + ηₜ, ηₜ ~ N(0,Σₙ) State equation

where

C(xₜ) is a non-linear function

xₜ is the n-dim state

uₜ is the m-dim control

yₜ is the k-dim observed data.

The observed data observations are the rows of the T×k matrix Y The control signals are the rows of the T×m matrix U μ₀ and Σ₀ are the mean and covariance of the initial state vector x₀

Note: If nSim == 1, the returned Xdraws is matrix, otherwise it is a 3D array of size T×n×nSim.

source
SMCsamplers.FFBS_SLR!Function
FFBS_SLR!(Draws, U, Y, A, B, Σₙ, μ₀, Σ₀, observation, θ; 
    filter_output = false, sample_t0 = true, nFailure = Ref(0))

Forward filtering using Statistical Linear Regression for linearizing, followed by backward sampling from the joint smoothing posterior: p(x1,...xT | y1,...,yT) of the general state space model:

yₜ ~ p(yₜ | xₜ) Measurement model

xₜ ~ q(xₜ | xₜ₋₁) State transition model

The observed data observations are the rows of the T×k matrix Y The control signals are the rows of the T×m matrix U μ₀ and Σ₀ are the mean and covariance of the initial state vector x₀

source
SMCsamplers.FFBS_laplace!Function
FFBS_laplace!(Draws, U, Y, A, B, Σₙ, μ₀, Σ₀, observation, θ; 
    filter_output = false, sample_t0 = true, μ_init = nothing, max_iter = 100,
    nFailure = Ref(0))

Forward filtering and backward sampling from the joint smoothing posterior p(x1,...xT | y1,...,yT) of the general state space model:

yₜ ~ p(yₜ | xₜ) Measurement model

xₜ ~ p(xₜ | xₜ₋₁) State transition model

The observed data observations are the rows of the T×k matrix Y The control signals are the rows of the T×m matrix U μ₀ and Σ₀ are the mean and covariance of the initial state vector x₀

source
SMCsamplers.FFBS_montecarlo!Function
FFBS_laplace!(Draws, U, Y, A, B, Σₙ, μ₀, Σ₀, observation, θ; 
    filter_output = false, sample_t0 = true, μ_init = nothing, max_iter = 100,
    nFailure = Ref(0))

Forward filtering and backward sampling from the joint smoothing posterior p(x1,...xT | y1,...,yT) of the general state space model:

yₜ ~ p(yₜ | xₜ) Measurement model

xₜ ~ p(xₜ | xₜ₋₁) State transition model

The observed data observations are the rows of the T×k matrix Y The control signals are the rows of the T×m matrix U μ₀ and Σ₀ are the mean and covariance of the initial state vector x₀

source