SMML codelength for data from the binomial distribution
Version 1.0.1 (3,65 KB) von
Statovic
This is an implementation of the polynomial time algorithm for computing the SMML codelength for data from the binomial distribution.
Strict Minimum Message Length (SMML) is criterion for statistical inference based on information theory. For general statistical models computing the SMML codelength of a model is NP-hard. This function implements the dynamic programming algorithm of Farr and Wallace (see [1]) that computes the SMML codelength for the binomial distribution in polynomial time. We assume a uniform prior on the probability of success. The algorithm is equivalent to Dijkstra's shortest path algorithm. For details on the algorithm and SMML, please see [1].
Code examples:
smml_binomial(5);
[P, msglen] = smml_binomial(10);
References:
[1] Farr, G. E.; Wallace, C. S.
The Complexity of Strict Minimum Message Length Inference
Computer Journal; May 2002, Vol. 45 Issue 3, p285
Kompatibilität der MATLAB-Version
Erstellt mit
R2020a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.1 | -added implementation of lognchoosek() that was missing in the initial upload |
||
1.0.0 |