Class BayesProperties

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

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

    • BayesProperties

      public BayesProperties(DataSet dataSet)
  • Method Details

    • getLikelihoodRatioP

      public BayesProperties.LikelihoodRet getLikelihoodRatioP(Graph graph)
      Calculates the p-value of the graph with respect to the given data.
      Parameters:
      graph - The graph.
    • getChisq

      public double getChisq()
      Call after calling getLikelihoodP().
      Returns:
      The chi-squared statistic.
    • getDof

      public double getDof()
      Call after calling getLikelihoodP().
      Returns:
      The degrees of freedom.
    • getBic

      public double getBic()
      Call after calling getLikelihoodP().
      Returns:
      The BIC.
    • getLikelihood

      public double getLikelihood()
      Call after calling getLikelihoodP().
      Returns:
      The likelihood.
    • getSampleSize

      public int getSampleSize()
    • getVariable

      public Node getVariable(String targetName)