Package edu.cmu.tetrad.search
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,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:
- Joseph Ramsey
-
Method Summary
Modifier and TypeMethodDescriptiondefault IndependenceResultcheckIndependence(Node x, Node y, Node... z) checkIndependence(Node x, Node y, List<Node> z) default booleandetermines(List<Node> z, Node y) default doublegetAlpha()default ICovarianceMatrixgetCov()getData()default intdoublegetScore()A score that is higher with more likely models.default NodegetVariable(String name) default IndependenceTestindTestSubset(List<Node> vars) booleandefault voidsetAlpha(double alpha) Sets the significance level.voidsetVerbose(boolean verbose) toString()
-
Method Details
-
checkIndependence
- Returns:
- an IndependenceResult (see).
- See Also:
-
getVariables
- Returns:
- the list of variables over which this independence checker is capable of determinining independence relations.
-
getData
DataModel getData()- Returns:
- The data model for the independence test.
-
getScore
double getScore()A score that is higher with more likely models. -
setVerbose
void setVerbose(boolean verbose) -
isVerbose
boolean isVerbose() -
toString
String toString() -
indTestSubset
- Returns:
- an Independence test for a subset of the variables.
-
checkIndependence
- Returns:
- and IndependenceResult (see).
- See Also:
-
getSampleSize
default int getSampleSize() -
getVariable
- Returns:
- the variable by the given name.
-
getVariableNames
- Returns:
- the list of names for the variables in getNodesInEvidence.
-
determines
- Returns:
- true if y is determined the variable in z.
-
getAlpha
default double getAlpha()- Returns:
- the significance level of the independence test.
- Throws:
UnsupportedOperationException- if there is no significance level.
-
setAlpha
default void setAlpha(double alpha) Sets the significance level. -
getCov
-
getDataSets
-