Probabilisticgraphicalmodels(PGM,alsoknownasgraphicalmodels)areamarriagebetweenprobabilitytheoryandgraphtheory.Generally,PGMsuseagraph-basedrepresentation.Twobranchesofgraphicalrepresentationsofdistributionsarecommonlyused,namelyBayesiannetworksandMarkovnetworks.Rhasmanypackagestoimplemen