apaMarkov.Hidden.MVN.LogLikelihoodSamples
Excel
=apaMarkov.Hidden.MVN.LogLikelihoodSamplesResult
Returns the per-sample log-likelihoods under an estimated multivariate normal hidden Markov model.
Syntax
DataMatrix:
data
matrix used in HMM estimation.
ModelOutput: MVN HMM estimation result (parameters and states).
Algorithm
For each observation, the emission and transition structure of the fitted model is evaluated to obtain the individual log-likelihood contribution.
Return a vector of per‑sample log‑likelihoods for diagnostics.
Related functions
apaMarkov.Hidden.MVC.EstimateEstimates a hidden Markov model with multivariate categorical emissions and returns the emission probabilities, the transition matrix and the state probabilities.apaMarkov.Hidden.MVC.StateProbabilitiesReturns the smoothed posterior (or filtered) state probabilities of a multivariate categorical hidden Markov model.apaMarkov.Hidden.MVN.EstimateEstimates a hidden Markov model with multivariate normal emissions and returns the parameters and the state probabilities.apaMarkov.Hidden.MVN.nObsRecommendedReturns the minimum number of observations recommended for estimating a multivariate normal hidden Markov model.apaMarkov.Hidden.MVN.SimulateSimulates Gaussian emissions from a Markov regime switching process, i.e. multivariate normally distributed returns whose means, volatilities and correlations depend on a hidden state following a…apaMarkov.Hidden.MVN.StateProbabilitiesReturns the smoothed posterior (or filtered) state probabilities of a multivariate normal hidden Markov model.apaMarkov.Hidden.MVT.EstimateEstimates a hidden Markov model with multivariate Student t emissions and state-specific degrees of freedom, and returns the parameters and the state probabilities.apaMarkov.Hidden.MVT.StateProbabilitiesReturns the smoothed posterior (or filtered) state probabilities of a multivariate Student t hidden Markov model.apaMarkov.Hidden.MVT.LogLikelihoodSamplesReturns the per-sample log-likelihoods under an estimated multivariate Student t hidden Markov model with state-specific degrees of freedom.apaMarkov.HigherOrder.StatePath.FromStatePathDerives the higher-order state path from a state path and an order.apaMarkov.HigherOrder.StatePath.Labels.FromStatePathDerives the higher-order state path from a state path and an order, returning formatted state labels.apaMarkov.IsIrreducibleChecks whether a Markov chain is irreducible.apaMarkov.IsAperiodicChecks whether a Markov chain is aperiodic.apaMarkov.IsErgodicChecks whether a Markov chain is ergodic.apaMarkov.PathProbability.ConditionalCalculates the probability of an observed state path, given a transition probability matrix and conditional on the first state.apaMarkov.PathProbability.UnconditionalCalculates the unconditional probability of an observed state path.apaMarkov.SemiHidden.Gaussian.EstimateEstimates a Gaussian hidden semi-Markov model (HSMM) with explicit state duration distributions and returns the parameters, the duration statistics and the state probabilities.apaMarkov.SecondOrder.TestTests a first-order state path for the presence of second-order Markov dependence.apaMarkov.SimulateSimulates a state path from a Markov chain defined by a transition probability matrix.apaMarkov.StateDuration.AnalysisCompares the empirical state durations with the geometric duration distribution implied by an estimated Markov chain.apaMarkov.StateDurations.ExpectedCalculates the expected state durations implied by a transition probability matrix.apaMarkov.StatePath.FromConditionsReturns the Markov state path from conditioning variables and threshold values.apaMarkov.StatePath.LabelsAndLocalStatesReturns the Markov state path labels derived from conditioning variables and threshold values, plus all local states.apaMarkov.StationaryDistributionCalculates the stationary (steady state) distribution implied by a transition probability matrix.apaMarkov.StationaryDistribution.ConfidenceIntervalsCalculates confidence intervals for the stationary (steady state) distribution by resampling from an observed state path.apaMarkov.TransitionProbabilityMatrix.FromStatePathDerives the transition probability matrix from an observed trajectory of states.
