Skip to content

Add an implementation of forward-backward algorithm for HMM models #330

@yebai

Description

@yebai

Hidden Markov Models are quite common in time series analysis. Since they involve discrete variables, HMC is not always appropriate, although we can still apply HMC for continuous parameters of an HMM model. It would be nice to add

  1. a customised HMM distribution that accepts transition_matrix, emit_parameters, and emit_distribution as inputs, and returns a parameterised distribution.
  2. an implementation of the forward-backwards algorithm, which computes the marginal probability of transimition_matrix, emit_parameters given some data.

References: https://mc-stan.org/docs/2_18/stan-users-guide/hmms-section.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions