Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 5364

Macaulay2-1.3.1-8.fc15.i686.rpm

<?xml version="1.0" encoding="utf-8" ?>  <!-- for emacs: -*- coding: utf-8 -*- -->
<!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"	 "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>gaussIdeal -- correlation ideal of a Bayesian network of joint Gaussian variables</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_gauss__Minors.html">next</a> | <a href="_dot__Binary.html">previous</a> | <a href="_gauss__Minors.html">forward</a> | <a href="_dot__Binary.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div>

    </td>
  </tr>
</table>
<hr/>
<div><h1>gaussIdeal -- correlation ideal of a Bayesian network of joint Gaussian variables</h1>
<div class="single"><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>gaussIdeal(R,G)</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Inputs:<ul><li><span><tt>R</tt>, <span>a <a href="../../Macaulay2Doc/html/___Ring.html">ring</a></span>, created with <a href="_gauss__Ring.html" title="ring of gaussian correlations on n random variables">gaussRing</a></span></li>
<li><span><tt>G</tt>, <span>an object of class <tt>Graph</tt> (missing documentation<!-- tag: Graph -->)</span> or <span>a <a href="../../Macaulay2Doc/html/___List.html">list</a></span></span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span>the ideal in R of the relations in the correlations of the random variables implied by the independence statements of the graph G or the list of independence statements G</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div>These ideals were first written down by Seth Sullivant, in "Algebraic geometry of Gaussian Bayesian networks".  The routines in this package involving Gaussian variables are all based on that paper.<table class="examples"><tr><td><pre>i1 : R = gaussRing 5;</pre>
</td></tr>
<tr><td><pre>i2 : G = makeGraph {{2},{3},{4,5},{5},{}}

o2 = Graph{1 => set {2}   }
           2 => set {3}
           3 => set {4, 5}
           4 => set {5}
           5 => set {}

o2 : Graph</pre>
</td></tr>
<tr><td><pre>i3 : (globalMarkovStmts G)/print;
{{1, 2}, {4, 5}, {3}}
{{1}, {3, 4, 5}, {2}}</pre>
</td></tr>
<tr><td><pre>i4 : J = gaussIdeal(R,G)

o4 = ideal (- s   s    + s   s   , - s   s    + s   s   , - s   s    +
               1,5 2,4    1,4 2,5     1,5 3,4    1,4 3,5     2,5 3,4  
     ------------------------------------------------------------------------
     s   s   , s   s    - s   s   , s   s    - s   s   , s   s    - s   s   ,
      2,4 3,5   1,4 2,3    1,3 2,4   1,4 3,3    1,3 3,4   2,4 3,3    2,3 3,4 
     ------------------------------------------------------------------------
     s   s    - s   s   , s   s    - s   s   , s   s    - s   s   , -
      1,5 2,3    1,3 2,5   1,5 3,3    1,3 3,5   2,5 3,3    2,3 3,5   
     ------------------------------------------------------------------------
     s   s    + s   s   , - s   s    + s   s   , - s   s    + s   s   ,
      1,4 2,3    1,3 2,4     1,5 2,3    1,3 2,5     1,5 2,4    1,4 2,5 
     ------------------------------------------------------------------------
     s   s    - s   s   , s   s    - s   s   , s   s    - s   s   )
      1,3 2,2    1,2 2,3   1,4 2,2    1,2 2,4   1,5 2,2    1,2 2,5

o4 : Ideal of R</pre>
</td></tr>
</table>
<p/>
A list of independence statments (as for example returned by globalMarkovStmts) can be provided instead of a graph.<p/>
The ideal corresponding to a conditional independence statement {A,B,C} (where A,B,C, are disjoint lists of integers in the range 1..n (n is the number of random variables) is the #C+1 x #C+1 minors of the submatrix of the generic symmetric matrix M = (s_(i,j)), whose rows are in A union C, and whose columns are in B union C.  In general, this does not need to be a prime ideal.<table class="examples"><tr><td><pre>i5 : I = gaussIdeal(R,{{{1,2},{4,5},{3}}, {{1},{2},{3,4,5}}})

                                                                      
o5 = ideal (- s   s    + s   s   , - s   s    + s   s   , - s   s    +
               1,5 2,4    1,4 2,5     1,5 3,4    1,4 3,5     2,5 3,4  
     ------------------------------------------------------------------------
                                                                             
     s   s   , s   s    - s   s   , s   s    - s   s   , s   s    - s   s   ,
      2,4 3,5   1,4 2,3    1,3 2,4   1,4 3,3    1,3 3,4   2,4 3,3    2,3 3,4 
     ------------------------------------------------------------------------
                                                                   
     s   s    - s   s   , s   s    - s   s   , s   s    - s   s   ,
      1,5 2,3    1,3 2,5   1,5 3,3    1,3 3,5   2,5 3,3    2,3 3,5 
     ------------------------------------------------------------------------
              2                                                    2    
     s   s   s    - s   s   s   s    - s   s   s   s    + s   s   s    -
      1,5 2,5 3,4    1,5 2,4 3,4 3,5    1,4 2,5 3,4 3,5    1,4 2,4 3,5  
     ------------------------------------------------------------------------
                                                                   2        
     s   s   s   s    + s   s   s   s    + s   s   s   s    - s   s   s    +
      1,5 2,5 3,3 4,4    1,5 2,3 3,5 4,4    1,3 2,5 3,5 4,4    1,2 3,5 4,4  
     ------------------------------------------------------------------------
                                                             
     s   s   s   s    + s   s   s   s    - s   s   s   s    -
      1,5 2,4 3,3 4,5    1,4 2,5 3,3 4,5    1,5 2,3 3,4 4,5  
     ------------------------------------------------------------------------
                                                             
     s   s   s   s    - s   s   s   s    - s   s   s   s    +
      1,3 2,5 3,4 4,5    1,4 2,3 3,5 4,5    1,3 2,4 3,5 4,5  
     ------------------------------------------------------------------------
                                  2              2                       
     2s   s   s   s    + s   s   s    - s   s   s    - s   s   s   s    +
       1,2 3,4 3,5 4,5    1,3 2,3 4,5    1,2 3,3 4,5    1,4 2,4 3,3 5,5  
     ------------------------------------------------------------------------
                                                2
     s   s   s   s    + s   s   s   s    - s   s   s    - s   s   s   s    +
      1,4 2,3 3,4 5,5    1,3 2,4 3,4 5,5    1,2 3,4 5,5    1,3 2,3 4,4 5,5  
     ------------------------------------------------------------------------
     s   s   s   s   )
      1,2 3,3 4,4 5,5

o5 : Ideal of R</pre>
</td></tr>
<tr><td><pre>i6 : codim I

o6 = 5</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><tt>makeGraph</tt> (missing documentation<!-- tag: makeGraph -->)</span></li>
<li><span><tt>globalMarkovStmts</tt> (missing documentation<!-- tag: globalMarkovStmts -->)</span></li>
<li><span><tt>localMarkovStmts</tt> (missing documentation<!-- tag: localMarkovStmts -->)</span></li>
<li><span><a href="_gauss__Ring.html" title="ring of gaussian correlations on n random variables">gaussRing</a> -- ring of gaussian correlations on n random variables</span></li>
<li><span><tt>gaussMinors</tt> (missing documentation<!-- tag: gaussMinors -->)</span></li>
<li><span><tt>gaussTrekIdeal</tt> (missing documentation<!-- tag: gaussTrekIdeal -->)</span></li>
</ul>
</div>
<div class="waystouse"><h2>Ways to use <tt>gaussIdeal</tt> :</h2>
<ul><li>gaussIdeal(Ring,Graph)</li>
<li>gaussIdeal(Ring,List)</li>
</ul>
</div>
</div>
</body>
</html>