StatSNMoE-class {meteorits}R Documentation

A Reference Class which contains statistics of a SNMoE model.

Description

StatSNMoE contains all the statistics associated to a SNMoE model. It mainly includes the E-Step of the ECM algorithm calculating the posterior distribution of the hidden variables, as well as the calculation of the log-likelhood.

Fields

piik

Matrix of size (n,K)(n, K) representing the probabilities πk(xi;Ψ)=P(zi=kx;Ψ)\pi_{k}(x_{i}; \boldsymbol{\Psi}) = P(z_{i} = k | \boldsymbol{x}; \Psi) of the latent variable zi,i=1,,nz_{i}, i = 1,\dots,n.

z_ik

Hard segmentation logical matrix of dimension (n,K)(n, K) obtained by the Maximum a posteriori (MAP) rule: z_ik=1 if z_ik=arg maxs τis; 0 otherwisez\_ik = 1 \ \textrm{if} \ z\_ik = \textrm{arg} \ \textrm{max}_{s} \ \tau_{is};\ 0 \ \textrm{otherwise}, k=1,,Kk = 1,\dots,K.

klas

Column matrix of the labels issued from z_ik. Its elements are klas(i)=kklas(i) = k, k=1,,Kk = 1,\dots,K.

tik

Matrix of size (n,K)(n, K) giving the posterior probability τik\tau_{ik} that the observation yiy_{i} originates from the kk-th expert.

Ey_k

Matrix of dimension (n, K) giving the estimated means of the experts.

Ey

Column matrix of dimension n giving the estimated mean of the SNMoE.

Var_yk

Column matrix of dimension K giving the estimated means of the experts.

Vary

Column matrix of dimension n giving the estimated variance of the response.

loglik

Numeric. Observed-data log-likelihood of the SNMoE model.

com_loglik

Numeric. Complete-data log-likelihood of the SNMoE model.

stored_loglik

Numeric vector. Stored values of the log-likelihood at each ECM iteration.

BIC

Numeric. Value of BIC (Bayesian Information Criterion).

ICL

Numeric. Value of ICL (Integrated Completed Likelihood).

AIC

Numeric. Value of AIC (Akaike Information Criterion).

log_piik_fik

Matrix of size (n,K)(n, K) giving the values of the logarithm of the joint probability P(yi, zi=kx,Ψ)P(y_{i}, \ z_{i} = k | \boldsymbol{x}, \boldsymbol{\Psi}), i=1,,ni = 1,\dots,n.

log_sum_piik_fik

Column matrix of size m giving the values of logk=1KP(yi, zi=kx,Ψ)\textrm{log} \sum_{k = 1}^{K} P(y_{i}, \ z_{i} = k | \boldsymbol{x}, \boldsymbol{\Psi}), i=1,,ni = 1,\dots,n.

E1ik

Conditional expectations of UiU_{i} (Matrix of size (n,K)(n, K)).

E2ik

Conditional expectations of Ui2U_{i}^{2} (Matrix of size (n,K)(n, K)).

Methods

computeLikelihood(reg_irls)

Method to compute the log-likelihood. reg_irls is the value of the regularization part in the IRLS algorithm.

computeStats(paramSNMoE)

Method used in the ECM algorithm to compute statistics based on parameters provided by the object paramSNMoE of class ParamSNMoE.

EStep(paramSNMoE)

Method used in the ECM algorithm to update statistics based on parameters provided by the object paramSNMoE of class ParamSNMoE (prior and posterior probabilities).

MAP()

MAP calculates values of the fields z_ik and klas by applying the Maximum A Posteriori Bayes allocation rule.

zik=1 if k=arg maxs τis; 0 otherwisez_{ik} = 1 \ \textrm{if} \ k = \textrm{arg} \ \textrm{max}_{s} \ \tau_{is};\ 0 \ \textrm{otherwise}

See Also

ParamSNMoE


[Package meteorits version 0.1.1 Index]