Lists: http://www2.macaulay2.com/Macaulay2/doc/Macaulay2-1.12/share/doc/Macaulay2/Macaulay2Doc/html/___List.html

Functions: https://faculty.math.illinois.edu/Macaulay2/doc/Macaulay2-1.13/share/doc/Macaulay2/Macaulay2Doc/html/_making_spfunctions.html

Loops and other expressions: https://faculty.math.illinois.edu/Macaulay2/doc/Macaulay2-1.15/share/doc/Macaulay2/Macaulay2Doc/html/___The_sp__Macaulay2_splanguage.html (see "expressions")

Packages: http://www2.macaulay2.com/Macaulay2/Packages/

(A lot of packages come pre-installed with the Macaulay2 distribution but they are not automatically loaded. For that, you need to include needsPackage "PackageName")

Exercise 1: Later in the course, we will study graphical models. Those are the statistical models where the dependencies between variables can be described using a graph. (The vertices of the graph correspond to variables and edges represent the conditional dependence structure). 

For now, let's do a warm-up exercise. 

Construct an undirected graph with edges {{1,2},{2,3},{1,3}}. Check whether it is cyclic. (You'll need the package "Graphs", undirected graphs are called Graph in Macaulay 2 and they are constructed using the function graph. There is also a function isCyclic)


Macaulay2 and algebraic statistics: check Section 3.5 "Computational Algebra Vignettes" from Sullivant's book

General tutorials: http://habanero.math.cornell.edu:3690

Last modified: Friday, 11 September 2020, 1:08 PM