In this paper we study parameter estimation via the Expectation Maximization (EM) algorithm for a continuous-time hidden Markov model with diffusion and point process observation. Inference problems of this type arise for instance in credit risk modelling. A key step in the application of the EM algorithm is the derivation of finite-dimensional filters for the quantities that are needed in the E-Step of the algorithm. In this context we obtain exact, unnormalized and robust filters, and we discuss their numerical implementation. Moreover, we propose several goodness-of-fit tests for hidden Markov models with Gaussian noise and point process observation. We run an extensive simulation study to test speed and accuracy of our methodology. The paper closes with an application to credit risk: we estimate the parameters of a hidden Markov model for credit quality where the observations consist of rating transitions and credit spreads for US corporations.
The Bitcoin market exhibits characteristics of a market with pricing bubbles. The price is very volatile, and it inherits the risk of quickly increasing to a peak and decreasing from the peak even faster. In this context, it is vital for investors to close their long positions optimally. In this study, we investigate the performance of the partially observable digital-drift model of Ekström and Lindberg and the corresponding optimal exit strategy on a Bitcoin trade. In order to estimate the unknown intensity of the random drift change time, we refer to Bitcoin halving events, which are considered as pivotal events that push the price up. The out-of-sample performance analysis of the model yields returns values ranging between 9% and 1153%. We conclude that the return of the initiated Bitcoin momentum trades heavily depends on the entry date: the earlier we entered, the higher the expected return at the optimal exit time suggested by the model. Overall, to the extent of our analysis, the model provides a supporting framework for exit decisions, but is by far not the ultimate tool to succeed in every trade.