Class BidirectedLatentPrecision

java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.BidirectedLatentPrecision
All Implemented Interfaces:
Statistic, Serializable

public class BidirectedLatentPrecision extends Object implements Statistic
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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    Returns 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.
    double
    getNormValue(double value)
    Calculates the normalized value of a given statistic value.
    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.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Statistic

    getValue, getValue, getValue, getValue, usesTruth
  • 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

      public String 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:
      getAbbreviation in interface Statistic
      Returns:
      The abbreviation for the statistic.
    • getDescription

      public String getDescription()
      Returns a short description of the statistic, which is the percentage of bidirected edges for which a latent confounder exists.
      Specified by:
      getDescription in interface Statistic
      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:
      getValue in interface Statistic
      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:
      getNormValue in interface Statistic
      Parameters:
      value - The value of the statistic.
      Returns:
      The normalized value of the statistic.