Macaulay2 » Documentation
Packages » GraphicalModelsMLE :: MLdegree
next | previous | forward | backward | up | index | toc

MLdegree -- ML-degree of a graphical model

Synopsis

Description

This function computes the ML-degree of a graphical model. It takes as input a gaussianRing of a Graph, or a Digraph, or a Bigraph, or a MixedGraph. It computes the degree of the score equation ideal given by scoreEquations with a random sample data matrix.

We compute the ML-degree of the 4-cycle:

i1 : G=graph{{1,2},{2,3},{3,4},{4,1}}

o1 = Graph{1 => {2, 4}}
           2 => {1, 3}
           3 => {2, 4}
           4 => {1, 3}

o1 : Graph
i2 : MLdegree(gaussianRing G)

o2 = 5

Ways to use MLdegree :

For the programmer

The object MLdegree is a method function.