A gentle tutorial on accelerated parameter and confidence interval estimation for hidden Markov models using Template Model Builder

05/07/2022
by   Timothée Bacri, et al.
0

A very common way to estimate the parameters of a hidden Markov model (HMM) is the relatively straightforward computation of maximum likelihood (ML) estimates. For this task, most users rely on user-friendly implementation of the estimation routines via an interpreted programming language such as the statistical software environment R (R Core Team, 2021). Such an approach can easily require time-consuming computations, in particular for longer sequences of observations. In addition, selecting a suitable approach for deriving confidence intervals for the estimated parameters is not entirely obvious (see, e.g., Zucchini et al., 2016; Lystig and Hughes, 2002; Visser et al., 2000), and often the computationally intensive bootstrap methods have to be applied. In this tutorial, we illustrate how to speed up the computation of ML estimates significantly via the R package TMB. Moreover, this approach permits simple retrieval of standard errors at the same time. We illustrate the performance of our routines using different data sets. First, two smaller samples from a mobile application for tinnitus patients and a well-known data set of fetal lamb movements with 87 and 240 data points, respectively. Second, we rely on larger data sets of simulated data of sizes 2000 and 5000 for further analysis. This tutorial is accompanied by a collection of scripts which are all available on GitHub. These scripts allow any user with moderate programming experience to benefit quickly from the computational advantages of TMB.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/21/2023

Computational issues in parameter estimation for hidden Markov models with Template Model Builder

A popular way to estimate the parameters of a hidden Markov model (HMM) ...
research
06/27/2018

An Introduction to Animal Movement Modeling with Hidden Markov Models using Stan for Bayesian Inference

Hidden Markov models (HMMs) are popular time series model in many fields...
research
05/31/2022

Confidence Intervals for Recursive Journal Impact Factors

We compute confidence intervals for recursive impact factors, that take ...
research
12/16/2013

Comparative Analysis of Viterbi Training and Maximum Likelihood Estimation for HMMs

We present an asymptotic analysis of Viterbi Training (VT) and contrast ...
research
03/23/2023

sparseDFM: An R Package to Estimate Dynamic Factor Models with Sparse Loadings

sparseDFM is an R package for the implementation of popular estimation m...
research
06/27/2019

How response designs and class proportions affect the accuracy of validation data

Reference data collected to validate land cover maps are generally consi...

Please sign up or login with your details

Forgot password? Click here to reset