Class IndTestBlocksLemma10

java.lang.Object
edu.cmu.tetrad.search.test.IndTestBlocksLemma10
All Implemented Interfaces:
BlockTest, IndependenceTest, EffectiveSampleSizeSettable

@Deprecated(since="7.9", forRemoval=false) public class IndTestBlocksLemma10 extends Object implements IndependenceTest, BlockTest, EffectiveSampleSizeSettable
Deprecated.
Block-level CI test using Dong et al. (2024) Lemma 10:

C d-separates A and B iff rank( Σ_{A∪C, B∪C} ) = |C|

Finite-sample surrogate: use RankTests.estimateWilksRank(...) on (A∪C, B∪C). Decision can be EQ/LE/GE with integer tolerance 'tol'.

p-value is reported via RankTests.pValueIndepConditioned(S, A∪C, B∪C, ∅, n), so it is at least monotone with the same Wilks machinery you already use.

Thread-safe LRU caches (like IndTestBlocks).

  • Constructor Details

    • IndTestBlocksLemma10

      public IndTestBlocksLemma10(BlockSpec blockSpec)
      Deprecated.
      Constructs an instance of IndTestBlocksLemma10 using the provided block specification. Performs initialization, validation of inputs, and precomputes necessary structures for block-based independence tests.
      Parameters:
      blockSpec - The block specification containing details about variables, dataset, and block definitions. Must not be null.
      Throws:
      IllegalArgumentException - If blockSpec is null, if any variable or block in blockSpec is invalid, if there are duplicate variables, or if a block references a column outside the dataset dimensions.
  • Method Details

    • checkIndependence

      public IndependenceResult checkIndependence(Node x, Node y, Set<Node> z)
      Deprecated.
      Description copied from interface: IndependenceTest
      Checks the independence between two variables x and y given a conditioning set z.
      Specified by:
      checkIndependence in interface IndependenceTest
      Parameters:
      x - The first variable to test, represented as a Node object.
      y - The second variable to test, represented as a Node object.
      z - The set of conditioning variables, represented as a Set of Node objects.
      Returns:
      An IndependenceResult object representing the outcome of the independence test.
    • getVariables

      public List<Node> getVariables()
      Deprecated.
      Description copied from interface: IndependenceTest
      Retrieves the list of variables associated with this independence test.
      Specified by:
      getVariables in interface IndependenceTest
      Returns:
      A list of Node objects representing the variables.
    • getData

      public DataModel getData()
      Deprecated.
      Description copied from interface: IndependenceTest
      Retrieves the data model associated with this test.
      Specified by:
      getData in interface IndependenceTest
      Returns:
      A DataModel object representing the data model.
    • isVerbose

      public boolean isVerbose()
      Deprecated.
      Description copied from interface: IndependenceTest
      Returns true if the test prints verbose output.
      Specified by:
      isVerbose in interface IndependenceTest
      Returns:
      True if the case.
    • setVerbose

      public void setVerbose(boolean verbose)
      Deprecated.
      Description copied from interface: IndependenceTest
      Sets whether this test will print verbose output.
      Specified by:
      setVerbose in interface IndependenceTest
      Parameters:
      verbose - True, if so.
    • getAlpha

      public double getAlpha()
      Deprecated.
      Description copied from interface: IndependenceTest
      Returns the significance level of the independence test.
      Specified by:
      getAlpha in interface IndependenceTest
      Returns:
      This level.
    • setAlpha

      public void setAlpha(double alpha)
      Deprecated.
      Description copied from interface: IndependenceTest
      Sets the significance level.
      Specified by:
      setAlpha in interface IndependenceTest
      Parameters:
      alpha - This level.
    • setTolerance

      public void setTolerance(int tol)
      Deprecated.
      Integer tolerance on equality (e.g., 1 to allow off-by-one). Default 0.
      Parameters:
      tol - The tolerance value.
    • getBlockSpec

      public BlockSpec getBlockSpec()
      Deprecated.
      Description copied from interface: BlockTest
      Retrieves the BlockSpec associated with this block-based independence test.
      Specified by:
      getBlockSpec in interface BlockTest
      Returns:
      the BlockSpec containing the block configuration details for the test.
    • getEffectiveSampleSize

      public int getEffectiveSampleSize()
      Deprecated.
      Description copied from interface: EffectiveSampleSizeSettable
      Returns the effective sample size.
      Specified by:
      getEffectiveSampleSize in interface EffectiveSampleSizeSettable
      Returns:
      the effective sample size
    • setEffectiveSampleSize

      public void setEffectiveSampleSize(int nEff)
      Deprecated.
      Description copied from interface: EffectiveSampleSizeSettable
      Sets the effective sample size, or -1 if the actual sample size should be used.
      Specified by:
      setEffectiveSampleSize in interface EffectiveSampleSizeSettable
      Parameters:
      nEff - the effective sample size