Description Fields Methods See Also
StatHMMR contains all the statistics associated to a HMMR model. It mainly includes the E-Step of the EM algorithm calculating the posterior distribution of the hidden variables (ie the smoothing probabilities), as well as the calculation of the prediction and filtering probabilities, the log-likelhood at each step of the algorithm and the obtained values of model selection criteria..
tau_tkMatrix of size (m, K) giving the posterior probability that the observation Y_{i} originates from the k-th regression model.
alpha_tkMatrix of size (m, K) giving the forwards probabilities: P(Y_{1},…,Y_{t}, z_{t} = k).
beta_tkMatrix of size (m, K), giving the backwards probabilities: P(Y_{t+1},…,Y_{m} | z_{t} = k).
xi_tklArray of size (m - 1, K, K) giving the joint post probabilities: xi_tk[t, k, l] = P(z_{t} = k, z_{t-1} = l | Y) for t = 2,…,m.
f_tkMatrix of size (m, K) giving the cumulative distribution function f(y_{t} | z_{t} = k).
log_f_tkMatrix of size (m, K) giving the logarithm of the
cumulative distribution f_tk.
loglikNumeric. Log-likelihood of the HMMR model.
stored_loglikNumeric vector. Stored values of the log-likelihood at each iteration of the EM algorithm.
klasColumn matrix of the labels issued from z_ik. Its elements are
klas(i) = k, k = 1,…,K.
z_ikHard segmentation logical matrix of dimension (m, K) obtained by the Maximum a posteriori (MAP) rule: z_ik = 1 if z_ik = arg max_s P(z_{i} = s | Y) = tau_tk; 0 otherwise, k = 1,…,K.
state_probsMatrix of size (m, K) giving the distribution of the
Markov chain.
P(z_{1},…,z_{m};π,A)
with π the prior probabilities (field prior of the class
ParamHMMR) and A the transition matrix
(field trans_mat of the class ParamHMMR) of the Markov
chain.
BICNumeric. Value of BIC (Bayesian Information Criterion).
AICNumeric. Value of AIC (Akaike Information Criterion).
regressorsMatrix of size (m, K) giving the values of the estimated polynomial regression components.
predict_probMatrix of size (m, K) giving the prediction probabilities: P(z_{t} = k | y_{1},…,y_{t-1}).
predictedRow matrix of size (m, 1) giving the sum of the
polynomial components weighted by the prediction probabilities
predict_prob.
filter_probMatrix of size (m, K) giving the filtering probabilities Pr(z_{t} = k | y_{1},…,y_{t}).
filteredRow matrix of size (m, 1) giving the sum of the polynomial components weighted by the filtering probabilities.
smoothed_regressorsMatrix of size (m, K) giving the polynomial
components weighted by the posterior probability tau_tk.
smoothedRow matrix of size (m, 1) giving the sum of the
polynomial components weighted by the posterior probability tau_tk.
computeLikelihood(paramHMMR)Method to compute the log-likelihood based on some parameters given by
the object paramHMMR of class ParamHMMR.
computeStats(paramHMMR)Method used in the EM algorithm to compute statistics based on
parameters provided by the object paramHMMR of class
ParamHMMR.
EStep(paramHMMR)Method used in the EM algorithm to update statistics based on parameters
provided by the object paramHMMR of class ParamHMMR
(prior and posterior probabilities).
MAP()MAP calculates values of the fields z_ik and klas
by applying the Maximum A Posteriori Bayes allocation rule.
z_ik = 1 if z_ik = arg max_s P(z_{i} = s | Y) = tau_tk; 0 otherwise
ParamHMMR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.