tensorflow / tensorflow/probability

LinearGaussianStateSpaceModel distribution and 1D time series

Open
#1,158 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Is there a way to create a LinearGaussianStateSpaceModel for a 1D time series using the function tfd.JointDistributionSequential?

The model I want to create is as follow:

z0 = 0
z[t] = z[t-1] + epsilon[t], with epsilon[t] ~ N(0, state_std)
y[t] = z[t] + eta[t], with eta[t] ~ N(0, obs_std)

For example in JAGS I can write:

# State equation
z0 <- 0
state.precision <- 1 / (state_std * state_std)
obs.precision <- 1 / (obs_std * obs_std)

z[1] ~ dnorm(z0, state.precision)
for(t in 2:T) {
    z[t] ~ dnorm(z[t-1], state.precision)
}

# Observation equation
for(t in 1:T)  {
    y[t] ~ dnorm(z[t], obs.precision)
}

Thanks in advance !

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the LinearGaussianStateSpaceModel and tfd.JointDistributionSequential entry points mentioned in the issue, then compare their expected inputs with the supplied JAGS state and observation equations. No repository file or test is named; done would be a documented, working construction for the requested 1D time series, with its behavior verified against the stated model.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.