All labs

Support, Confidence, and Lift

A rule with 90% confidence can be worthless. Lift tells you which of your discovered rules carry any information at all.

Ch 7 7.6
Misconception
Unsupervised Learning & Text
18 mindifficulty 3/5

Controls

4000
0.600

Pushes milk toward appearing in nearly every basket.

2.500

The one genuine dependence in the data. Below 1 it becomes a repulsion.

2.0%
50%
Rank rules by
Random seed

Every result on this page is a deterministic function of the seed and the controls.

Confidence against lift

Everything above the horizontal line at lift = 1 carries information. Everything below it is a warning.

00.5011.5022.50300.200.400.600.801independencemin confbread → milk conf=0.730 lift=1.013 supp=0.249bread → eggs conf=0.258 lift=1.028 supp=0.088bread → coffee conf=0.189 lift=0.973 supp=0.065bread → diapers conf=0.090 lift=1.059 supp=0.030bread → beer conf=0.110 lift=0.953 supp=0.037bread → batteries conf=0.057 lift=1.070 supp=0.019milk → bread conf=0.345 lift=1.013 supp=0.249milk → eggs conf=0.246 lift=0.983 supp=0.177milk → coffee conf=0.193 lift=0.992 supp=0.139milk → diapers conf=0.086 lift=1.018 supp=0.062milk → beer conf=0.117 lift=1.009 supp=0.084milk → batteries conf=0.051 lift=0.960 supp=0.037eggs → bread conf=0.350 lift=1.028 supp=0.088eggs → milk conf=0.709 lift=0.983 supp=0.177eggs → coffee conf=0.180 lift=0.924 supp=0.045eggs → diapers conf=0.076 lift=0.898 supp=0.019eggs → beer conf=0.091 lift=0.786 supp=0.023eggs → batteries conf=0.055 lift=1.026 supp=0.014coffee → bread conf=0.332 lift=0.973 supp=0.065coffee → milk conf=0.715 lift=0.992 supp=0.139coffee → eggs conf=0.231 lift=0.924 supp=0.045coffee → diapers conf=0.077 lift=0.913 supp=0.015coffee → beer conf=0.105 lift=0.913 supp=0.021coffee → batteries conf=0.062 lift=1.153 supp=0.012diapers → bread conf=0.361 lift=1.059 supp=0.030diapers → milk conf=0.734 lift=1.018 supp=0.062diapers → eggs conf=0.225 lift=0.898 supp=0.019diapers → coffee conf=0.178 lift=0.913 supp=0.015diapers → beer conf=0.219 lift=1.896 supp=0.018diapers → batteries conf=0.059 lift=1.106 supp=0.005beer → bread conf=0.325 lift=0.953 supp=0.037beer → milk conf=0.727 lift=1.009 supp=0.084beer → eggs conf=0.197 lift=0.786 supp=0.023beer → coffee conf=0.177 lift=0.913 supp=0.021beer → diapers conf=0.160 lift=1.896 supp=0.018beer → batteries conf=0.063 lift=1.173 supp=0.007batteries → bread conf=0.364 lift=1.070 supp=0.019batteries → milk conf=0.692 lift=0.960 supp=0.037batteries → eggs conf=0.257 lift=1.026 supp=0.014batteries → coffee conf=0.224 lift=1.153 supp=0.012batteries → diapers conf=0.093 lift=1.106 supp=0.005batteries → beer conf=0.136 lift=1.173 supp=0.007confidence P(B | A)lift
planted diapers → beerrule concluding “milk”passes both thresholdsfiltered out
Rules passing filters
6
of 42 candidates
Passing but lift < 1
3
A is evidence against B
Planted rule confidence
21.9%
lift 1.90
Top rule by your ranking
diapers → milk
lift 1.02

Top rules by confidence

Sort by confidence and by lift, and compare the two lists.

rulesupportconfidenceliftleverageconviction
diapersmilk0.0620.7341.0180.00111.05
breadmilk0.2490.7301.0130.00321.04
beermilk0.0840.7271.0097.82e-41.02
coffeemilk0.1390.7150.992-0.00110.98
eggsmilk0.1770.7090.983-0.00300.96
batteriesmilk0.0370.6920.960-0.00150.91
Confidence rewards popularity, not association

diapers → milk” has confidence 73.4% and lift 1.02. Milk is simply in most baskets, so almost any antecedent predicts it. Lift divides by P(milk) and the apparent finding collapses.