Learn R Programming

SCCI (version 1.2)

stochasticComplexity: Stochastic Complexity for Multinomials

Description

Efficient implementation of the exact computation of stochastic complexity for multinomials (Silander et al. 2008) for data over a discrete random variable \(X\).

Usage

stochasticComplexity(x)

Arguments

x

A discrete vector.

References

Tomi Silander, Teemu Roos, Petri Kontkanen and Petri Myllym<U+00E4>ki; Factorized Normalized Maximum Likelihood Criterion for Learning Bayesian Network Structures, Proceedings of the 4th European Workshop on Probabilistic Graphical Models, 2008

Examples

Run this code
# NOT RUN {
set.seed(1)
x = round((runif(1000, min=0, max=5)))
stochasticComplexity(x=x)	## 2544.698
# }

Run the code above in your browser using DataLab