Class EmBayesProperties

java.lang.Object
edu.cmu.tetrad.bayes.EmBayesProperties

public final class EmBayesProperties extends Object
Calculates some scores for Bayes nets as a whole.
Version:
$Id: $Id
Author:
josephramsey
  • Constructor Details

    • EmBayesProperties

      public EmBayesProperties(DataSet dataSet, Graph graph)

      Constructor for EmBayesProperties.

      Parameters:
      dataSet - a DataSet object
      graph - a Graph object
  • Method Details

    • getBic

      public double getBic()
      Calculates the BIC (Bayes Information Criterion) score for a BayesPM with respect to a given discrete data set. Following formulas of Andrew Moore, www.cs.cmu.edu/~awm.
      Returns:
      a double
    • getLikelihoodRatioP

      public double getLikelihoodRatioP()
      Calculates the p-value of the graph with respect to the given data.
      Returns:
      a double
    • getBayesPm

      public BayesPm getBayesPm()

      Getter for the field bayesPm.

      Returns:
      a BayesPm object
    • getPValueDf

      public int getPValueDf()

      Getter for the field pValueDf.

      Returns:
      a int
    • getPValueChisq

      public double getPValueChisq()

      getPValueChisq.

      Returns:
      a double
    • getEstimator

      public EmBayesProperties.Estimator getEstimator()

      Getter for the field estimator.

      Returns:
      a EmBayesProperties.Estimator object
    • setEstimator

      public void setEstimator(EmBayesProperties.Estimator estimator)

      Setter for the field estimator.

      Parameters:
      estimator - a EmBayesProperties.Estimator object
    • setGraph

      public void setGraph(Graph graph)

      Setter for the field graph.

      Parameters:
      graph - a Graph object