Class YulesQ

  • All Implemented Interfaces:
    InterestingnessMeasure

    @Reference(authors="G. U. Yule",title="On the association of attributes in statistics",booktitle="Philosophical Transactions of the Royal Society A 194",url="https://doi.org/10.1098/rsta.1900.0019",bibkey="doi:10.1098/rsta.1900.0019") @Reference(authors="P.-N. Tan, V. Kumar, J. Srivastava",title="Selecting the right objective measure for association analysis",booktitle="Information Systems 29.4",url="https://doi.org/10.1016/S0306-4379(03)00072-3",bibkey="DBLP:journals/is/TanKS04")
    public class YulesQ
    extends OddsRatio
    Yule's Q interestingness measure.

    \[\frac{P(X \cap Y) P(\neg X \cap \neg Y) - P(X \cap \neg Y) P(\neg X \cap Y)}{P(X \cap Y) P(\neg X \cap \neg Y) + P(X \cap \neg Y) P(\neg X \cap Y)} = \frac{\alpha - 1}{\alpha + 1} \]

    Reference:

    G. U. Yule
    On the association of attributes in statistics
    Philosophical Transactions of the Royal Society A 194

    The use for association rule mining was studied in:

    P.-N. Tan, V. Kumar, J. Srivastava
    Selecting the right objective measure for association analysis
    Information Systems 29.4

    Since:
    0.8.0
    Author:
    Abhishek Sharma
    • Constructor Summary

      Constructors 
      Constructor Description
      YulesQ()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double measure​(int t, int sX, int sY, int sXY)
      Computes the value of the measure for a given support values
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • YulesQ

        public YulesQ()
        Constructor.
    • Method Detail

      • measure

        public double measure​(int t,
                              int sX,
                              int sY,
                              int sXY)
        Description copied from interface: InterestingnessMeasure
        Computes the value of the measure for a given support values
        Specified by:
        measure in interface InterestingnessMeasure
        Overrides:
        measure in class OddsRatio
        Parameters:
        t - Total number of transaction
        sX - Support of the antecedent
        sY - Support of the consequent
        sXY - Support of the union of antecedent and consequent
        Returns:
        value of the measure