Class BidirectedLatentPrecision
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.BidirectedLatentPrecision
- All Implemented Interfaces:
Statistic, Serializable
The BidirectedLatentPrecision class implements the Statistic interface and represents a statistic that calculates the
percentage of bidirected edges in an estimated graph for which a latent confounder exists in the true graph.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThe BidirectedLatentPrecision class implements the Statistic interface and represents a statistic that calculates the percentage of bidirected edges in an estimated graph for which a latent confounder exists in the true graph. -
Method Summary
Modifier and TypeMethodDescriptionReturns the abbreviation for the statistic.Returns a short description of the statistic, which is the percentage of bidirected edges for which a latent confounder exists.doublegetNormValue(double value) Calculates the normalized value of a given statistic value.doublegetValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the percentage of correctly identified bidirected edges in an estimated graph for which a latent confounder exists in the true graph.
-
Constructor Details
-
BidirectedLatentPrecision
public BidirectedLatentPrecision()The BidirectedLatentPrecision class implements the Statistic interface and represents a statistic that calculates the percentage of bidirected edges in an estimated graph for which a latent confounder exists in the true graph.
-
-
Method Details
-
getAbbreviation
Returns the abbreviation for the statistic. The abbreviation is a short string that represents the statistic. For this statistic, the abbreviation is "<->-Lat-Prec".- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation for the statistic.
-
getDescription
Returns a short description of the statistic, which is the percentage of bidirected edges for which a latent confounder exists.- Specified by:
getDescriptionin interfaceStatistic- Returns:
- The description of the statistic.
-
getValue
public double getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the percentage of correctly identified bidirected edges in an estimated graph for which a latent confounder exists in the true graph. This includes bidirected edges that are uncovered by the estimated graph. That is, this finds latent L for x<~~L~~>Y where the paths to x or y may include measures, but not all measure-to-measure edges exist in the estimated graph.- Specified by:
getValuein interfaceStatistic- Parameters:
trueDag- The true graph (DAG, CPDAG, PAG_of_the_true_DAG).trueGraph- The true graph (DAG, CPDAG, PAG_of_the_true_DAG).estGraph- The estimated graph (same type).dataModel- The data model.parameters- The parameters- Returns:
- The percentage of correctly identified bidirected edges.
-
getNormValue
public double getNormValue(double value) Calculates the normalized value of a given statistic value.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-