Class ProbabilisticMapIndependence
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.ProbabilisticMapIndependence
- All Implemented Interfaces:
IndependenceTest
Uses BCInference by Cooper and Bui to calculate probabilistic conditional independence judgments.
- Author:
- josephramsey 3/2014
-
Constructor Summary
ConstructorsConstructorDescriptionProbabilisticMapIndependence(DataSet dataSet) Initializes the test using a discrete data sets. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Node... z) Checks the independence fact in question and returns and independence result.checkIndependence(Node x, Node y, Set<Node> _z) booleandetermines(Set<Node> z, Node y) Returns true if y is determined the variable in z.doublegetAlpha()Returns the significance level of the independence test.getData()getH()doublegetVariable(String name) Returns The variable by the given name.indTestSubset(List<Node> vars) Returns an Independence test for a sublist of the variables.booleanReturns true if the test prints verbose output.doubleprobConstraint(BCInference.OP op, Node x, Node y, Node[] z) voidsetAlpha(double alpha) Sets the significance level.voidsetVerbose(boolean verbose) Sets whether this test will print verbose output.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTest
getCov, getDataSets, getSampleSize, getVariableNames, toString
-
Constructor Details
-
ProbabilisticMapIndependence
Initializes the test using a discrete data sets.
-
-
Method Details
-
indTestSubset
Description copied from interface:IndependenceTestReturns an Independence test for a sublist of the variables.- Specified by:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of variables.
-
checkIndependence
- Specified by:
checkIndependencein interfaceIndependenceTest- Returns:
- an IndependenceResult (see).
- See Also:
-
checkIndependence
Description copied from interface:IndependenceTestChecks the independence fact in question and returns and independence result.- Specified by:
checkIndependencein interfaceIndependenceTest- Returns:
- The independence result.
- See Also:
-
probConstraint
-
getVariables
- Specified by:
getVariablesin interfaceIndependenceTest- Returns:
- the list of variables over which this independence checker is capable of determining independence relations.
-
getVariable
Description copied from interface:IndependenceTestReturns The variable by the given name.- Specified by:
getVariablein interfaceIndependenceTest- Returns:
- This variable.
-
determines
Description copied from interface:IndependenceTestReturns true if y is determined the variable in z.- Specified by:
determinesin interfaceIndependenceTest- Returns:
- True, if so.
-
getAlpha
public double getAlpha()Description copied from interface:IndependenceTestReturns the significance level of the independence test.- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- This level.
-
setAlpha
public void setAlpha(double alpha) Description copied from interface:IndependenceTestSets the significance level.- Specified by:
setAlphain interfaceIndependenceTest- Parameters:
alpha- This level.
-
getData
- Specified by:
getDatain interfaceIndependenceTest- Returns:
- The data model for the independence test, either a DataSet or a CovarianceMatrix.
- See Also:
-
getH
-
getPosterior
public double getPosterior() -
isVerbose
public boolean isVerbose()Description copied from interface:IndependenceTestReturns true if the test prints verbose output.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- True if the case.
-
setVerbose
public void setVerbose(boolean verbose) Description copied from interface:IndependenceTestSets whether this test will print verbose output.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True, if so.
-