The support factor measures the coverage of a rule, which is the ratio of the number of instances covered by the rule to the total number of instances. The confidence factor measures the accuracy of a rule. The “odds” of an event is the fraction of the probability that the event will happen to the probability that it will not happen. For a rule ‘‘IF X THEN Y’’ and a training set of N instances, the support factor and confidence factor are defined as