Class MarkovCheckAndersonDarlingP

java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.MarkovCheckAndersonDarlingP
All Implemented Interfaces:
Statistic, Serializable

public class MarkovCheckAndersonDarlingP extends Object implements Statistic
Calculates the Anderson Darling P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).
Author:
josephramsey
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Calculates the Anderson Darling P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the abbreviation for the statistic.
    Returns a short one-line description of this statistic.
    double
    getNormValue(double value)
    Calculates the normalized value of a statistic.
    double
    getValue(Graph trueGraph, Graph estGraph, DataModel dataModel)
    Calculates the Anderson Darling P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MarkovCheckAndersonDarlingP

      public MarkovCheckAndersonDarlingP()
      Calculates the Anderson Darling P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).
  • Method Details

    • getAbbreviation

      public String getAbbreviation()
      Returns the abbreviation for the statistic. This will be printed at the top of each column.
      Specified by:
      getAbbreviation in interface Statistic
      Returns:
      The abbreviation for the statistic.
    • getDescription

      public String getDescription()
      Returns a short one-line description of this statistic. This will be printed at the beginning of the report.
      Specified by:
      getDescription in interface Statistic
      Returns:
      The description of the statistic.
    • getValue

      public double getValue(Graph trueGraph, Graph estGraph, DataModel dataModel)
      Calculates the Anderson Darling P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).
      Specified by:
      getValue in interface Statistic
      Parameters:
      trueGraph - The true graph (DAG, CPDAG, PAG_of_the_true_DAG).
      estGraph - The estimated graph (same type).
      dataModel - The data model.
      Returns:
      The Anderson Darling P value.
      Throws:
      IllegalArgumentException - if the data model is null.
    • getNormValue

      public double getNormValue(double value)
      Calculates the normalized value of a statistic.
      Specified by:
      getNormValue in interface Statistic
      Parameters:
      value - The value of the statistic.
      Returns:
      The normalized value of the statistic.