Package edu.cmu.tetrad.search.ntad_test
Class Ark
java.lang.Object
edu.cmu.tetrad.search.ntad_test.NtadTest
edu.cmu.tetrad.search.ntad_test.Ark
The Ark class extends the NtadTest class and provides a mechanism to perform statistical operations based on tetrads
and their probabilities. It leverages covariance computation, sampling, and matrix manipulation to calculate p-values
and z-scores for tetrads. This class is specifically designed to operate on instances of SimpleMatrix for
multivariate analysis.
- Author:
- bryanandrews
-
Constructor Summary
ConstructorsConstructorDescriptionArk(org.ejml.simple.SimpleMatrix df, double sp) Constructs an Ark object based on the given data matrix and split proportion. -
Method Summary
Modifier and TypeMethodDescriptiondoubletetrad(int[][] tet) Computes the value of a statistical test based on the input tetrad configuration.doubletetrad(int[][] tet, boolean resample, double frac) Computes the value of a statistical test based on the given tetrad configuration, with optional resampling.doubletetrads(int[][]... tets) Computes the statistical test results for multiple sets of tetrad configurations.doubleComputes a statistical measure based on the input list of tetrad configurations.Methods inherited from class edu.cmu.tetrad.search.ntad_test.NtadTest
allGreaterThanAlpha, variables
-
Constructor Details
-
Ark
public Ark(org.ejml.simple.SimpleMatrix df, double sp) Constructs an Ark object based on the given data matrix and split proportion. This method initializes the Ark analysis by splitting the data matrix into two segments based on the given split proportion, and computes the covariance matrix for each segment.- Parameters:
df- the input data matrix as a SimpleMatrix object, where each row represents an observation and each column represents a variable.sp- the split proportion, a value between 0 and 1, which determines the proportion of the dataset allocated to the first segment of the split. If the given value is not valid, it is adjusted towards the complementary split (1 - sp instead of sp). Is the value is 1, the full dataset is used throughout.
-
-
Method Details
-
tetrad
public double tetrad(int[][] tet, boolean resample, double frac) Description copied from class:NtadTestComputes the value of a statistical test based on the given tetrad configuration, with optional resampling. A tetrad is a set of indices representing structural relationships among variables. This method evaluates the statistical consistency of such configurations.- Specified by:
tetradin classNtadTest- Parameters:
tet- a 2D integer array where each inner array defines a tetrad configuration. Each configuration specifies indices representing structural relationships among variables.resample- a boolean indicating whether resampling should be applied to the data matrix for the computation.frac- a double value representing the fraction of data to use during resampling, ignored if resample is false.- Returns:
- a double value representing the computed result of the statistical tetrad test.
-
tetrad
public double tetrad(int[][] tet) Description copied from class:NtadTestComputes the value of a statistical test based on the input tetrad configuration. A tetrad is a set of indices specifying structural relationships between variables, and this method evaluates the statistical consistency of such configurations.- Specified by:
tetradin classNtadTest- Parameters:
tet- a 2D integer array where each inner array defines a tetrad configuration. Each tetrad specifies indices representing a structural relationship among variables.- Returns:
- a double value representing the computed result of the statistical tetrad test.
-
tetrads
public double tetrads(int[][]... tets) Description copied from class:NtadTestComputes the statistical test results for multiple sets of tetrad configurations. A tetrad is a set of indices specifying structural relationships among variables, and this method evaluates the statistical consistency for each provided configuration.- Specified by:
tetradsin classNtadTest- Parameters:
tets- a series of 2D integer arrays, where each array contains multiple tetrad configurations. Each configuration specifies a set of indices representing structural relationships among variables.- Returns:
- a double value representing the aggregated or combined result of the statistical tests applied to the provided tetrad configurations.
-
tetrads
Description copied from class:NtadTestComputes a statistical measure based on the input list of tetrad configurations. Each tetrad configuration represents a set of structural relationships among variables. This method evaluates and combines the statistical results of all provided configurations.- Specified by:
tetradsin classNtadTest- Parameters:
tets- a list of 2D integer arrays where each array contains multiple tetrad configurations. Each configuration is a set of integer indices representing structural relationships.- Returns:
- a double value representing the combined statistical measure for the provided tetrad configurations.
-