Class OddsRatio

  • All Implemented Interfaces:
    Direct Known Subclasses:
    YulesQ, YulesY

    @Reference(authors="F. Mosteller",title="Association and Estimation in Contingency Tables",booktitle="Journal of the American Statistical Association 63:321",url="",bibkey="doi:10.1080/01621459.1968.11009219") @Reference(authors="P.-N. Tan, V. Kumar, J. Srivastava",title="Selecting the right objective measure for association analysis",booktitle="Information Systems 29.4",url="",bibkey="DBLP:journals/is/TanKS04")
    public class OddsRatio
    extends java.lang.Object
    implements InterestingnessMeasure
    Odds ratio interestingness measure.

    \[\frac{P(X\cap Y) P(\neg X\cap\neg Y)}{P(X\cap\neg Y) P(\neg X\cap Y)}\]

    Popularized for association by:

    F. Mosteller
    Association and Estimation in Contingency Tables
    Journal of the American Statistical Association 63:321

    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

    Abhishek Sharma
    • Constructor Summary

      Constructor Description
    • 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

      • OddsRatio

        public OddsRatio()
    • 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
        t - Total number of transaction
        sX - Support of the antecedent
        sY - Support of the consequent
        sXY - Support of the union of antecedent and consequent
        value of the measure