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,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 Summary
Modifier and TypeMethodDescriptiondefault IndependenceResultcheckIndependence(Node x, Node y, Node... z) checkIndependence(Node x, Node y, List<Node> z) booleandetermines(List<Node> z, Node y) doublegetAlpha()getCov()getData()intdoublegetScore()A score that is higher with more likely models.getVariable(String name) indTestSubset(List<Node> vars) booleanvoidsetAlpha(double alpha) Sets the significance level.voidsetVerbose(boolean verbose) toString()
-
Method Details
-
indTestSubset
- Returns:
- an Independence test for a subset of the variables.
-
checkIndependence
- 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
- 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
- Returns:
- the list of variables over which this independence checker is capable of determinining independence relations.
-
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
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
ICovarianceMatrix getCov() -
getDataSets
-
getSampleSize
int getSampleSize() -
getCovMatrices
-
getScore
double getScore()A score that is higher with more likely models. -
setVerbose
void setVerbose(boolean verbose) -
isVerbose
boolean isVerbose() -
toString
String toString()
-