Interface IndependenceTest

All Known Implementing Classes:
IndTestChiSquare, IndTestCodec, IndTestConditionalCorrelation, IndTestConditionalCorrelationLingam, IndTestConditionalGaussianLRT, IndTestCramerT, IndTestDegenerateGaussianLRT, IndTestDSep, IndTestFisherZ, IndTestFisherZConcatenateResiduals, IndTestFisherZFisherPValue, IndTestFisherZGeneralizedInverse, IndTestFisherZPercentIndependent, IndTestFisherZRecursive, IndTestGSquare, IndTestHsic, IndTestIndependenceFacts, IndTestMixedMultipleTTest, IndTestMNLRLRT, IndTestMulti, IndTestMultinomialLogisticRegression, IndTestMultinomialLogisticRegressionWald, IndTestMVPLRT, IndTestPositiveCorr, IndTestProbabilistic, IndTestRegression, IndTestScore, IndTestSepset, IndTestTeyssier, IndTestTrekSep, Kci, ProbabilisticMAPIndependence

public interface IndependenceTest
Interface implemented by classes that do conditional independence testing. These classes are capable of serving as conditional independence "oracles" for constraint-based searches.
Author:
Don Crimbchin (djc2@andrew.cmu.edu), Joseph Ramsey
  • Method Details

    • indTestSubset

      IndependenceTest indTestSubset(List<Node> vars)
      Returns:
      an Independence test for a subset of the variables.
    • checkIndependence

      IndependenceResult checkIndependence(Node x, Node y, List<Node> z)
      Returns:
      true if the given independence question is judged true, false if not. The independence question is of the form x _||_ y | z, z = <z1,...,zn>, where x, y, z1,...,zn are variables in the list returned by getVariableNames().
    • checkIndependence

      default IndependenceResult checkIndependence(Node x, Node y, Node... z)
      Returns:
      true if the given independence question is judged true, false if not. The independence question is of the form x _||_ y | z, z = <z1,...,zn>, where x, y, z1,...,zn are variables in the list returned by getVariableNames().
    • getVariables

      List<Node> getVariables()
      Returns:
      the list of variables over which this independence checker is capable of determinining independence relations.
    • getVariable

      Node getVariable(String name)
      Returns:
      the variable by the given name.
    • getVariableNames

      List<String> getVariableNames()
      Returns:
      the list of names for the variables in getNodesInEvidence.
    • determines

      boolean determines(List<Node> z, Node y)
      Returns:
      true if y is determined the variable in z.
    • getAlpha

      double getAlpha()
      Returns:
      the significance level of the independence test.
      Throws:
      UnsupportedOperationException - if there is no significance level.
    • setAlpha

      void setAlpha(double alpha)
      Sets the significance level.
    • getData

      DataModel getData()
      Returns:
      The data model for the independence test.
    • getCov

    • getDataSets

      List<DataSet> getDataSets()
    • getSampleSize

      int getSampleSize()
    • getCovMatrices

      List<Matrix> getCovMatrices()
    • getScore

      double getScore()
      A score that is higher with more likely models.
    • setVerbose

      void setVerbose(boolean verbose)
    • isVerbose

      boolean isVerbose()
    • toString

      String toString()
      Overrides:
      toString in class Object