An Optimization Approach to Learning Falling Rule Lists

Chaofan Chen, Cynthia Rudin

INTRODUCTION

In many real-life scenarios, we want to learn a predictive model that allows us to easily identify the most significant conditions that are predictive of a certain outcome. For example, in health care, doctors often want to know the conditions that signify a high risk of stroke, so that patients with such conditions can be prioritized in receiving treatment. A falling rule list, whose form was first proposed by Wang and Rudin (2015), is a type of model that serves this purpose.

Table 1 shows a falling rule list we learned from the bank-full dataset, which was used by Moro et al. (2011) in their study of applying data mining techniques to direct marketing. As we can see, a falling rule list is a probabilistic decision list for binary classification, consisting of a series of if-then rules with antecedents in the if clauses and probabilities of the desired outcome (“1”) in the then clauses, where the probabilities of the desired outcome (“1”) are monotonically decreasing down the list (hence the name “falling” rule list). The falling rule list in Table 1 has identified clients for whom the previous marketing campaign was successful (“poutcome=success”), and who have no credit in default (“default=no”), as individuals who are most likely to subscribe to a term deposit in the current marketing campaign. Their probability of subscribing is 0.650.65. Of the remaining clients, those who are next most likely to sign up for a term deposit are older people (aged between 60 and 100) with no credit in default. Their probability of subscribing is 0.280.28. The two rightmost columns in Table 1, labeled ++ and −-, show the number of positive training examples (i.e. clients who subscribe to a term deposit in the current campaign) and of negative training examples, respectively, that satisfy the antecedent in each rule of the falling rule list.

Falling rule lists can provide valuable insight into data – if we know how to construct them well. In this paper, we propose an optimization approach to learning falling rule lists and “softly” falling rule lists, along with Monte-Carlo search algorithms that use bounds on the optimal solution to prune the search space. The falling rule list shown in Table 1 was produced using Algorithm FRL, which we shall introduce later.

Our work lives within several well-established fields, but is the first work we know of to use an optimization approach to handling monotonicity constraints in rule-based models. It relates closely to associative classification (e.g. the RIPPERkk algorithm (Cohen,, 1995) and the CBA algorithm (Liu et al.,, 1998); see Thabtah, (2007) for a comprehensive review) and inductive logic programming (Muggleton and De Raedt,, 1994). The proposed algorithms are competitors for decision tree methods like CART (Breiman et al.,, 1984), ID3 (Quinlan,, 1986), C4.5 (Quinlan,, 1993), and C5.0 (Quinlan,, 2004), and decision list learning (Rivest,, 1987). Almost all methods from this class build decision trees from the top down using greedy splitting criteria. Greedy splitting criteria do not lend naturally to constrained models like falling rule lists. There are some works on decision trees with monotonicity constraints (e.g. Altendorf et al.,, 2005; Ben-David,, 1995; Feelders and Pardoel,, 2003), but they focus mostly on enforcing the monotonic relationship between certain attributes and ordinal class labels. In addition, our work also relates to those that underline the importance of the interpretability of models (Freitas,, 2014; Huysmans et al.,, 2011; Kodratoff,, 1994; Martens and Baesens,, 2010).

Wang and Rudin (2015) proposed the form of a falling rule list, and a Bayesian approach to learning falling rule lists (extending the ideas of Letham et al., (2015) and Yang et al., (2017)). The Bayesian approach offers some advantages: e.g. a full posterior over rule lists allows model averaging. However, the optimization perspective has an important computational advantage: the search space is made substantially smaller by the tight bounds presented here. The concept of softly falling rule lists is novel to this paper and has not been done in the Bayesian setting.

PROBLEM FORMULATION

We first formalize the notion of an antecedent, of a rule list, of a falling rule list, and of a prefix.

An antecedent aa on an input domain X\mathcal{X} is a Boolean function that outputs true or false. Given an input x∈X\mathbf{x}\in\mathcal{X}, we say that x\mathbf{x} satisfies the antecedent aa if a(x)a(\mathbf{x}) evaluates to true. For example, (poutcome=success AND default=no) in Table 1 is an antecedent.

A rule list d:X→d:\mathcal{X}\rightarrow on an input domain X\mathcal{X} is a probabilistic decision list of the following form: “if x\mathbf{x} satisfies a0(d)a_{0}^{(d)}, then Pr(y=1∣x)=α^0(d)\text{Pr}(y=1|\mathbf{x})=\hat{\alpha}_{0}^{(d)}; else if x\mathbf{x} satisfies a1(d)a_{1}^{(d)}, then Pr(y=1∣x)=α^1(d)\text{Pr}(y=1|\mathbf{x})=\hat{\alpha}_{1}^{(d)}; ......; else if x\mathbf{x} satisfies a∣d∣−1(d)a_{|d|-1}^{(d)}, then Pr(y=1∣x)=α^∣d∣−1(d)\text{Pr}(y=1|\mathbf{x})=\hat{\alpha}_{|d|-1}^{(d)}; else Pr(y=1∣x)=α^∣d∣(d)\text{Pr}(y=1|\mathbf{x})=\hat{\alpha}_{|d|}^{(d)}” where aj(d)a_{j}^{(d)} is the jj-th antecedent in dd, j∈{0,1,...,∣d∣−1}j\in\{0,1,...,|d|-1\}, and ∣d∣|d| denotes the size of the rule list, which is defined as the number of rules, excluding the final else clause, in the rule list. We can denote the rule list dd as follows:

The rule list dd of Equation (1) is a falling rule list if the following inequalities hold:

For convenience, we sometimes refer to the final else clause in dd as the ∣d∣|d|-th antecedent a∣d∣(d)a_{|d|}^{(d)} in dd, which is satisfied by all x∈X\mathbf{x}\in\mathcal{X}. We denote the space of all possible rule lists on X\mathcal{X} by D(X)\mathcal{D}(\mathcal{X}).

A prefix ee on an input domain X\mathcal{X} is a rule list without the final else clause. We can denote the prefix ee as follows:

where aj(e)a_{j}^{(e)} is the jj-th antecedent in ee, j∈{0,1,...,∣e∣−1}j\in\{0,1,...,|e|-1\}, and ∣e∣|e| denotes the size of the prefix, which is defined as the number of rules in the prefix.

Given the rule list dd of Equation (1) (or the prefix ee of Equation (3)), we say that an input x∈X\mathbf{x}\in\mathcal{X} is captured by the jj-th antecedent in dd (or ee) if x\mathbf{x} satisfies aj(d)a_{j}^{(d)} (or aj(e)a_{j}^{(e)}, respectively), and for all k∈{0,1,...,∣d∣}k\in\{0,1,...,|d|\} (or k∈{0,1,...,∣e∣−1}k\in\{0,1,...,|e|-1\}, respectively) such that x\mathbf{x} satisfies ak(d)a_{k}^{(d)} (or ak(e)a_{k}^{(e)}, respectively), j≤kj\leq k holds – in other words, aj(d)a_{j}^{(d)} (or aj(e)a_{j}^{(e)}, respectively) is the first antecedent that x\mathbf{x} satisfies. We define the function capt by capt(x,d)=j\text{capt}(\mathbf{x},d)=j (or capt(x,e)=j\text{capt}(\mathbf{x},e)=j) if x\mathbf{x} is captured by the jj-th antecedent in dd (or ee). Moreover, given the prefix ee of Equation (3), we say that an input x∈X\mathbf{x}\in\mathcal{X} is captured by the prefix ee if x\mathbf{x} is captured by some antecedent in ee, and we define capt(x,e)=∣e∣\text{capt}(\mathbf{x},e)=|e| if x\mathbf{x} is not captured by the prefix ee.

Let D={(xi,yi)}i=1nD=\{(\mathbf{x}_{i},y_{i})\}_{i=1}^{n} be the training data, with xi∈X\mathbf{x}_{i}\in\mathcal{X} and yi∈{1,−1}y_{i}\in\{1,-1\} for each i∈{1,2,...,n}i\in\{1,2,...,n\}. We now define the empirical positive proportion of an antecedent, and introduce the notion of a rule list (or a prefix) that is compatible with DD.

Given the training data DD and the rule list dd of Equation (1) (or the prefix ee of Equation (3)), we denote by nj,d,D+n^{+}_{j,d,D}, nj,d,D−n^{-}_{j,d,D}, nj,d,Dn_{j,d,D} (or nj,e,D+n^{+}_{j,e,D}, nj,e,D−n^{-}_{j,e,D}, nj,e,Dn_{j,e,D}), the number of positive, negative, and all training inputs captured by the jj-th antecedent in dd (or ee), respectively, and define the empirical positive proportion of the jj-th antecedent in dd (or ee), denoted by αj(d,D)\alpha_{j}^{(d,D)} (or αj(e,D)\alpha_{j}^{(e,D)}), as:

Given the training data DD and the rule list dd of Equation (1) (or the prefix ee of Equation (3)), we say that the rule list dd (or the prefix ee) is compatible with DD if for all j∈{0,1,...,∣d∣}j\in\{0,1,...,|d|\} (or j∈{0,1,...,∣e∣−1}j\in\{0,1,...,|e|-1\}, respectively), the equation α^j(d)=αj(d,D)\hat{\alpha}_{j}^{(d)}=\alpha_{j}^{(d,D)} (α^j(e)=αj(e,D)\hat{\alpha}_{j}^{(e)}=\alpha_{j}^{(e,D)}, respectively) holds. We denote the space of all possible rule lists on X\mathcal{X} that are compatible with the training data DD by D(X,D)\mathcal{D}(\mathcal{X},D).

Given the training data DD, the rule list dd of Equation (1), a threshold τ\tau, and the weight ww for the positive class, the empirical risk of misclassification by the rule list dd on the training data DD with threshold τ\tau and with weight ww for the positive class, denoted by R(d,D,τ,w)R(d,D,\tau,w), is:

If dd is compatible with DD, we can replace α^capt(xi,d)(d)\hat{\alpha}_{\text{capt}(\mathbf{x}_{i},d)}^{(d)} in Equation (4) with αcapt(xi,d)(d,D)\alpha_{\text{capt}(\mathbf{x}_{i},d)}^{(d,D)}. We define the empirical risk of misclassification by the prefix ee on the training data DD with threshold τ\tau and with weight ww for the positive class, denoted by R(e,D,τ,w)R(e,D,\tau,w), analogously:

If ee is compatible with DD, we can replace α^capt(xi,e)(e)\hat{\alpha}_{\text{capt}(\mathbf{x}_{i},e)}^{(e)} in Equation (5) with αcapt(xi,e)(e,D)\alpha_{\text{capt}(\mathbf{x}_{i},e)}^{(e,D)}. Note that for any rule list dd that begins with a given prefix ee, R(e,D,τ,w)R(e,D,\tau,w) is the contribution by the prefix ee to R(d,D,τ,w)R(d,D,\tau,w).

We can formulate the problem of learning falling rule lists as a minimization program of the empirical risk of misclassification, given by Equation (4), with a regularization term C∣d∣C|d| that penalizes each rule in dd with a cost of CC to limit the number of rules, subject to the monotonicity constraint (2). For now, we focus on the problem of learning falling rule lists that are compatible with the training data DD.

Let L(d,D,τ,w,C)=R(d,D,τ,w)+C∣d∣L(d,D,\tau,w,C)=R(d,D,\tau,w)+C|d| and L(e,D,τ,w,C)=R(e,D,τ,w)+C∣e∣L(e,D,\tau,w,C)=R(e,D,\tau,w)+C|e| be the regularized empirical risk of misclassification by the rule list dd and by the prefix ee, respectively, on the training data DD. The former defines the objective of the minimization program, and the latter gives the contribution by the prefix ee to L(d,D,τ,w,C)L(d,D,\tau,w,C) for any rule list dd that begins with ee. The following theorem provides a motivation for setting the threshold τ\tau to 1/(1+w)1/(1+w) in the minimization program – the empirical risk of misclassification by a given rule list dd is minimized when τ\tau is set in this way.

Given the training data DD, a rule list dd that is compatible with DD, and the weight ww for the positive class, we have R(d,D,1/(1+w),w)≤R(d,D,τ,w)R(d,D,1/(1+w),w)\leq R(d,D,\tau,w) for all τ≥0\tau\geq 0.

For reasons of computational tractability and model interpretability, we further restrict our attention to learning compatible falling rule lists whose antecedents must come from a pre-determined set of antecedents A={Al}l=1mA=\{A_{l}\}_{l=1}^{m}. We now present the optimization program for learning falling rule lists, which forms the basis of the rest of this paper.

The constraint (6) is exactly the monotonicity constraint (2) for the falling rule lists that are compatible with DD. The constraint (7) limits the choice of antecedents. An instance of Program 2.9 is defined by the tuple (D,A,w,C)(D,A,w,C).

ALGORITHM

In this section, we outline a Monte-Carlo search algorithm, Algorithm FRL, based on Program 2.9, for learning compatible falling rule lists from data. Given an instance (D,A,w,C)(D,A,w,C) of Program 2.9, the algorithm constructs a compatible falling rule list dd in each iteration, while keeping track of the falling rule list d∗d^{*} that has the smallest objective value Lbest=L(d∗,D,τ,w,C)L_{\text{best}}=L(d^{*},D,\tau,w,C) among all the falling rule lists that the algorithm has constructed so far. At the end of TT iterations, the algorithm outputs the falling rule list that has the smallest objective value out of the TT lists it has constructed.

In the process of constructing a falling rule list dd, the algorithm chooses the antecedents successively, and uses various properties of Program 2.9, presented in Section 4, to prune the search space. In particular, when the algorithm is choosing the pp-th antecedent in dd, it considers only those antecedents Al∈AA_{l}\in A satisfying the following conditions: (1) the inclusion of AlA_{l} as the pp-th antecedent in dd gives rise to a rule (ap(d),αp(d,D))(a_{p}^{(d)},\alpha_{p}^{(d,D)}) that respects the monotonicity constraint αp(d,D)≤αp−1(d,D)\alpha_{p}^{(d,D)}\leq\alpha_{p-1}^{(d,D)} and the necessary condition for optimality αp(d,D)>1/(1+w)\alpha_{p}^{(d,D)}>1/(1+w) (Corollary 4.5), and (2) the inclusion of AlA_{l} as the pp-th antecedent in dd gives rise to a prefix e′e^{\prime} such that e′e^{\prime} is feasible for Program 2.9 under the training data DD (Proposition 4.2), and the best possible objective value L∗(e′,D,w,C)L^{*}(e^{\prime},D,w,C) achievable by any falling rule list that begins with e′e^{\prime} and is compatible with DD (Theorem 4.6) is less than the current best objective value LbestL_{\text{best}}. The algorithm terminates the construction of dd if Inequality (9) in Theorem 4.6 holds. The details of the algorithm can be found in the supplementary material.

PREFIX BOUND

The goal of this section is to find a lower bound on the objective value of any compatible falling rule list that begins with a given compatible prefix, which we call a prefix bound, and to prove the various results used in the algorithm. To derive this prefix bound, we first introduce the concept of a feasible prefix, with which it is possible to construct a compatible falling rule list from data.

Given the training data DD and the set of antecedents AA, a prefix ee is feasible for Program 2.9 under the training data DD and the set of antecedents AA if ee is compatible with DD, and there exists a falling rule list dd such that dd is compatible with DD, the antecedents of dd come from AA, and dd begins with ee.

The following proposition gives necessary and sufficient conditions for a prefix ee to be feasible.

We now introduce the concept of a hypothetical rule list, whose antecedents do not need to come from the pre-determined set of antecedents AA.

Given a pre-determined set of antecedents AA, a hypothetical rule list with respect to AA is a rule list that contains an antecedent that is not in AA.

We need the following lemma to prove the necessary condition for optimality (Corollary 4.5), and to derive a prefix bound (Theorem 4.6).

Suppose that we are given an instance (D,A,w,C)(D,A,w,C) of Program 2.9, a prefix ee that is feasible for Program 2.9 under DD and AA, and a (possibly hypothetical) falling rule list dd that begins with ee and is compatible with DD. Then there exists a falling rule list d′d^{\prime}, possibly hypothetical with respect to AA, such that d′d^{\prime} begins with ee, has at most one more rule (excluding the final else clause) following ee, is compatible with DD, and satisfies

A consequence of the above lemma is that an optimal solution for a given instance (D,A,w,C)(D,A,w,C) of Program 2.9 should not have any antecedent whose empirical positive proportion falls below 1/(1+w)1/(1+w).

If d∗d^{*} is an optimal solution for a given instance (D,A,w,C)(D,A,w,C) of Program 2.9, then we must have αj(d∗,D)>1/(1+w)\alpha_{j}^{(d^{*},D)}>1/(1+w) for all j∈{0,1,...,∣d∗∣−1}j\in\{0,1,...,|d^{*}|-1\}.

Another implication of Lemma 4.4 is that the objective value of any compatible falling rule list that begins with a given prefix ee cannot be less than a lower bound on the objective value of any compatible falling rule list that begins with the same prefix ee, and has at most one more rule (excluding the final else clause) following ee. This leads to the following theorem.

Suppose that we are given an instance (D,A,w,C)(D,A,w,C) of Program 2.9 and a prefix ee that is feasible for Program 2.9 under DD and AA. Then any falling rule list dd that begins with ee and is compatible with DD satisfies

is a lower bound on the objective value of any compatible falling rule list that begins with ee, under the instance (D,A,w,C)(D,A,w,C) of Program 2.9. We call L∗(e,D,w,C)L^{*}(e,D,w,C) the prefix bound for ee. Further, if

The results presented in this section are used in Algorithm FRL to prune the search space. The proofs can be found in the supplementary material.

SOFTLY FALLING RULE LISTS

An instance of Program 5.1 is defined by the tuple (D,A,w,C,C1)(D,A,w,C,C_{1}). Similarly, we have a Monte-Carlo search algorithm, Algorithm softFRL, based on Program 5.1, for learning softly falling rule lists from data. Given an instance (D,A,w,C,C1)(D,A,w,C,C_{1}) of Program 5.1, this algorithm searches through the space of rule lists that are compatible with DD and finds a compatible rule list whose antecedents come from AA, and whose objective value is the smallest among all the rule lists that the algorithm explores. It then turns this compatible rule list into a softly falling rule list. In the search phase, the algorithm uses the following prefix bound (Theorem 5.2) to prune the search space of compatible rule lists. The details of Algorithm softFRL and the proof of Theorem 5.2 can be found in the supplementary material.

Suppose that we are given an instance (D,A,w,C,C1)(D,A,w,C,C_{1}) of Program 5.1 and a prefix ee that is compatible with DD. Then any rule list dd that begins with ee and is compatible with DD satisfies

is a lower bound on the objective value of any compatible rule list that begins with ee, under the instance (D,A,w,C,C1)(D,A,w,C,C_{1}) of Program 5.1. In Equation (10), αmin⁡(e,D)\alpha_{\min}^{(e,D)}, ζ\zeta, and gg are defined by

EXPERIMENTS

In this section, we demonstrate our algorithms for learning falling rule lists using a real-world application – learning the conditions that are predictive of the success of a bank marketing effort, from previous bank marketing campaign data. We used the public bank-full dataset (Moro et al.,, 2011), which contains 4521145211 observations, with 1212 predictor variables that were discretized. We used the frequent pattern growth (FP-growth) algorithm (Han and Pei,, 2000) to generate the set of antecedents AA from the dataset. For reasons of model interpretability and generalizability, we included in AA the antecedents that have at most 22 predicates, and have at least 10%10\% support within the data that are labeled positive or within the data that are labeled negative. Besides the FP-growth algorithm, there is a vast literature on rule mining algorithms (e.g. Agrawal and Srikant,, 1994; Han et al.,, 2000; Landwehr et al.,, 2005), and any of these can be used to produce antecedents for our algorithms.

The bank-full dataset is imbalanced – there are only 52895289 positive instances out of 4521145211 observations. A trivial model that always predicts the negative outcome for a bank marketing campaign will achieve close to 90%90\% accuracy on this dataset, but it will not be useful for the bank to understand what makes a marketing campaign successful. Moreover, when predicting if a future campaign will be successful in finding a client, the bank cares more about “getting the positive right” than about “getting the negative right” – a false negative means a substantial loss in revenue, while a false positive incurs little more than some phone calls.

We also plotted the number of antecedents considered by Algorithm FRL and Algorithm softFRL in the process of constructing a rule list at each iteration (Figures 1(b) and 1(c)), when we applied the two algorithms to the entire dataset. Each curve in either plot corresponds to a rule list constructed in an iteration of the appropriate algorithm. The intensity of the curve is inversely proportional to the iteration number – the larger the iteration number, the lighter the curve is. The number of antecedents considered by Algorithm FRL stays below 6060 in all but a few early iterations (despite a choice of 276276 antecedents available), and the number considered by either algorithm generally decreases drastically in each iteration after three or four antecedents have been chosen. The curves generally become lighter as we move vertically down the plots, indicating that as we find better rule lists, there are less antecedents to consider at each level. Algorithm softFRL needs to consider more antecedents in general since the search space is less constrained. All of these demonstrate that the prefix bounds we have derived for our algorithms are effective in excluding a large portion of the search space of rule lists. The supplementary material contains more rule lists created using our algorithms with different parameter values.

Since this paper was directly inspired by Wang and Rudin (2015), who proposed a Bayesian approach to learning falling rule lists, we conducted a set of experiments comparing their work to ours. We trained falling rule lists on the entire bank-full dataset using both the Bayesian approach and our optimization approach, and plotted the weighted training loss over real runtime for each positive class weight w∈{1,3,5,7}w\in\{1,3,5,7\} with the threshold set to 1/(1+w)1/(1+w) (By Theorem 2.8, this is the threshold with the least weighted training loss for any given rule list). Since we want to focus our experiments on the efficiency of searching the model space, the runtimes recorded do not include the time for mining the antecedents. Note that the Bayesian approach is not cost-sensitive, and does not optimize the weighted training loss directly. However, in many real-life applications such as predicting the success of a future marketing campaign, it is desirable to minimize the expected weighted loss. Therefore, it is reasonable to compare the two approaches using the weighted training loss to demonstrate the advantages of our optimization approach. We compared the Bayesian approach only with Algorithm FRL, because both methods strictly enforce the monotonicity constraint on the positive proportions of the training data that are classified into each rule. Softly falling rule lists do not strictly enforce the monotonicity constraint, and are therefore not used for comparison. Figure 2 shows the plots of the weighted training loss over real runtime. Due to the random nature of both approaches, the experiments were repeated several times – more plots of the weighted training loss over real runtime for different trials of the same experiment, along with falling rule lists created using both approaches, can be found in the supplementary material. As shown in Figure 2, our optimization approach tends to find a falling rule list with a smaller weighted training loss faster than the Bayesian approach. This is not too surprising because in our approach, the search space is made substantially smaller by the tight bounds presented here, whereas in the original Bayesian approach, there are no tight bounds on optimal solutions to restrict the search space – even if we constructed bounds for the original Bayesian approach, they would involve loose approximations to gamma functions.

CONCLUSION

We have proposed an optimization approach to learning falling rule lists and softly falling rule lists, along with Monte-Carlo search algorithms that use bounds on the optimal solution to prune the search space. A recent work by Angelino et al., (2017) on (non-falling) rule lists showed that it is possible to exhaustively optimize an objective over rule lists, indicating that the space of lists is not as large as one might think. Our search space is a dramatically constrained version of their search space, allowing us to reasonably believe that it can be searched exhaustively. Unfortunately, almost none of the logic of Angelino et al., (2017) can be used here. Indeed, introducing the falling constraint or the monotonicity penalty changes the nature of the problem, and the bounds in our work are entirely different. The algorithm of Angelino et al., (2017) is not cost-sensitive, which led in this work to another level of complexity for the bounds.

Falling rule lists are optimized for ease-of-use – users only need to check a small number of conditions to determine whether an observation is in a high risk or high probability subgroup. As pointed out by Wang and Rudin, (2015), the monotonicity in probabilities in falling rule lists allows doctors to identify the most at-risk patients easily. Typical decision tree methods (CART, C4.5, C5.0) do not have the added interpretability that comes from the falling constraint in falling rule lists: one may have to check many conditions in a decision tree to determine whether an observation is in a high risk or high probability subgroup – even if the decision tree has a small depth, it is possible that high risk subgroups are in different parts of the tree, so that one still has to check many conditions in order to find high risk subgroups. In this sense, falling rule lists and softly falling rule lists are as sparse as we need them to be, and they can provide valuable insight into data.

Supplementary Material and Code: The supplementary material and code are available at https://github.com/cfchen-duke/FRLOptimization.

This work was sponsored in part by MIT Lincoln Laboratory.

References

References

Supplementary Material

Algorithm FRL

In this section, we present Algorithm FRL in detail. Given an instance (D,A,w,C)(D,A,w,C) of Program 2.9, the algorithm searches through the space of falling rule lists that are compatible with DD and outputs a compatible falling rule list that respects the constraints of Program 2.9, and whose objective value is the smallest among all the falling rule lists that the algorithm explores. It does so by iterating over TT steps, in each of which the algorithm constructs a compatible falling rule list dd, while keeping track of the falling rule list d∗d^{*} that has the smallest objective value Lbest=L(d∗,D,1/(1+w),w,C)L_{\text{best}}=L(d^{*},D,1/(1+w),w,C) among all the falling rule lists that the algorithm has constructed so far. At the end of TT iterations, the algorithm outputs the falling rule list that has the smallest objective value out of the TT lists it has constructed.

The algorithm uses various properties of Program 2.9, which are presented in Section 4, to prune the search space. More specifically, the algorithm terminates the construction of dd if Inequality (9) in Theorem 4.6 holds. Otherwise it either terminates the construction of dd with some probability, or proceeds to construct a candidate set SS of possible next antecedents, as follows. For every antecedent Al∈AA_{l}\in A that has not been chosen before, it constructs a candidate next rule (ap(d),αp(d,D))(a_{p}^{(d)},\alpha_{p}^{(d,D)}) by setting ap(d)=Ala_{p}^{(d)}=A_{l} and computing αp(d,D)\alpha_{p}^{(d,D)} using Definition 2.5. The algorithm then checks if the monotonicity constraint αp(d,D)≤αp−1(d,D)\alpha_{p}^{(d,D)}\leq\alpha_{p-1}^{(d,D)} and the necessary condition for optimality αp(d,D)>1/(1+w)\alpha_{p}^{(d,D)}>1/(1+w) (Corollary 4.5) are satisfied, if the prefix e′={e,(ap(d),αp(d,D))}e^{\prime}=\{e,(a_{p}^{(d)},\alpha_{p}^{(d,D)})\} is feasible under Program 2.9 (i.e. whether there exists a compatible falling rule list that begins with the prefix e′e^{\prime}) using Proposition 4.2, and if the best possible objective value L∗(e′,D,w,C)L^{*}(e^{\prime},D,w,C) achievable by any falling rule list that begins with e′e^{\prime} and is compatible with DD (Theorem 4.6) is less than the current best objective value Lbest=L(d∗,D,1/(1+w),w,C)L_{\text{best}}=L(d^{*},D,1/(1+w),w,C). If all of the above conditions are satisfied, the algorithm adds AlA_{l} to SS. Once the construction of SS is complete, the algorithm randomly chooses an antecedent Al∈SA_{l}\in S with probability P(Al∣S,e,D)P(A_{l}|S,e,D) and uses this antecedent, together with its empirical positive proportion, as the next rule (ap(d),αp(d,D))(a_{p}^{(d)},\alpha_{p}^{(d,D)}) for dd. If SS is empty, the algorithm terminates the construction of dd.

A possible choice of the curiosity function fS,e,Df_{S,e,D} for use in Algorithm FRL is given by

The pseudocode of Algorithm FRL is shown in Algorithm 1.

Algorithm softFRL

A possible choice of the curiosity function fS,e,Df_{S,e,D} for use in Algorithm softFRL is given by

The pseudocode of Algorithm softFRL is shown in Algorithm 2.

Proofs of Theorem 2.8, Proposition 4.2, Lemma 4.4, Corollary 4.5, and Theorem 4.6

Theorem 2.8. Given the training data DD, a rule list dd that is compatible with DD, and the weight ww for the positive class, we have

Suppose τ>1/(1+w)\tau>1/(1+w). Consider the jj-th rule (aj(d),αj(d,D))(a_{j}^{(d)},\alpha_{j}^{(d,D)}) in dd, whose antecedent captures αj(d,D)nj,d,D\alpha_{j}^{(d,D)}n_{j,d,D} positive training inputs and (1−αj(d,D))nj,d,D(1-\alpha_{j}^{(d,D)})n_{j,d,D} negative training inputs. Let Rj(d,D,τ,w)R_{j}(d,D,\tau,w) denote the contribution by the jj-th rule to R(d,D,τ,w)R(d,D,\tau,w), i.e.

Case 1. 1/(1+w)<αj(d,D)≤τ1/(1+w)<\alpha_{j}^{(d,D)}\leq\tau. In this case, we have

Case 2. αj(d,D)>τ\alpha_{j}^{(d,D)}>\tau. In this case, both Rj(d,D,1/(1+w),w)R_{j}(d,D,1/(1+w),w) and Rj(d,D,τ,w)R_{j}(d,D,\tau,w) are equal to 1nnj,d,D−\frac{1}{n}n^{-}_{j,d,D}.

Case 3. αj(d,D)≤1/(1+w)\alpha_{j}^{(d,D)}\leq 1/(1+w). In this case, both Rj(d,D,1/(1+w),w)R_{j}(d,D,1/(1+w),w) and Rj(d,D,τ,w)R_{j}(d,D,\tau,w) are equal to wnnj,d,D+\frac{w}{n}n^{+}_{j,d,D}.

The proof for R(d,D,1/(1+w),w)≤R(d,D,τ,w)R(d,D,1/(1+w),w)\leq R(d,D,\tau,w) given τ<1/(1+w)\tau<1/(1+w) is similar. ∎

(1) ⇒\Rightarrow (3): Suppose that Statement (1) holds. Then there exists a falling rule list

(3) ⇒\Rightarrow (2): Suppose that Statement (3) holds. Then we have

Before we proceed with proving Lemma 4.4, we make the following observation.

that begins with a given prefix ee, we have

We can establish Equations (15) and (16) using essentially the same argument. ∎

Lemma 4.4. Suppose that we are given an instance (D,A,w,C)(D,A,w,C) of Program 2.9, a prefix ee that is feasible for Program 2.9 under the training data DD and the set of antecedents AA, and a (possibly hypothetical) falling rule list dd that begins with ee and is compatible with DD. Then there exists a falling rule list d′d^{\prime}, possibly hypothetical with respect to AA, such that d′d^{\prime} begins with ee, has at most one more rule (excluding the final else clause) following ee, is compatible with DD, and satisfies

Case 1. There exists some k∈{∣e∣+1,...,∣d∣}k\in\{|e|+1,...,|d|\} that satisfies αk−1(d,D)>1/(1+w)\alpha_{k-1}^{(d,D)}>1/(1+w) but αk(d,D)≤1/(1+w)\alpha_{k}^{(d,D)}\leq 1/(1+w). For any j∈{∣e∣,...,k−1}j\in\{|e|,...,k-1\}, we have αj(d,D)>1/(1+w)\alpha_{j}^{(d,D)}>1/(1+w), and the contribution Rj(d,D,1/(1+w),w)R_{j}(d,D,1/(1+w),w) by the jj-th rule to R(d,D,1/(1+w),w)R(d,D,1/(1+w),w), defined by Equation (13) with τ=1/(1+w)\tau=1/(1+w), is given by

For any j∈{k,...,∣d∣}j\in\{k,...,|d|\}, we have αj(d,D)≤1/(1+w)\alpha_{j}^{(d,D)}\leq 1/(1+w), and the contribution Rj(d,D,1/(1+w),w)R_{j}(d,D,1/(1+w),w) by the jj-th rule to R(d,D,1/(1+w),w)R(d,D,1/(1+w),w) is given by

The rest of the proof for this case proceeds in three steps.

Step 1. Construct a hypothetical falling rule list d′d^{\prime} that begins with ee, has exactly one more rule (excluding the final else clause) following ee, and is compatible with DD. In later steps, we shall show that the falling rule list d′d^{\prime} constructed in this step satisfies L(d′,D,1/(1+w),w,C)≤L(d,D,1/(1+w),w,C)L(d^{\prime},D,1/(1+w),w,C)\leq L(d,D,1/(1+w),w,C).

Let d′={e,(a∣e∣(d′),α^∣e∣(d′)),α^∣e∣+1(d′)}d^{\prime}=\{e,(a_{|e|}^{(d^{\prime})},\hat{\alpha}_{|e|}^{(d^{\prime})}),\hat{\alpha}_{|e|+1}^{(d^{\prime})}\} be the falling rule list of size ∣d′∣=∣e∣+1|d^{\prime}|=|e|+1 that is compatible with DD, such that

is the antecedent given by the logical or’s of the antecedents a∣e∣(d)a_{|e|}^{(d)} through ak−1(d)a_{k-1}^{(d)} in dd.

Step 2. Show that the empirical risk of misclassification by the falling rule list d′d^{\prime} is the same as that by the falling rule list dd.

To see this, we observe that the training instances captured by a∣e∣(d′)a_{|e|}^{(d^{\prime})} in d′d^{\prime} are exactly those captured by the antecedents a∣e∣(d)a_{|e|}^{(d)} through ak−1(d)a_{k-1}^{(d)} in dd, and the training instances captured by a∣e∣+1(d′)a_{|e|+1}^{(d^{\prime})} (i.e. the final else clause) in d′d^{\prime} are exactly those captured by the antecedents ak(d)a_{k}^{(d)} through a∣d∣(d)a_{|d|}^{(d)} in dd. This observation implies

Since d′d^{\prime} is compatible with DD, using the definition of a compatible rule list in Definition 2.6 and the definition of the empirical positive proportion in Definition 2.5, together with (19), (21), (22), and (23), we must have

This means that the contribution R∣e∣(d′,D,1/(1+w),w)R_{|e|}(d^{\prime},D,1/(1+w),w) by the ∣e∣|e|-th rule to R(d′,D,1/(1+w),w)R(d^{\prime},D,1/(1+w),w) is given by

where we have used (20), and the contribution R∣e∣+1(d′,D,1/(1+w),w)R_{|e|+1}(d^{\prime},D,1/(1+w),w) by the (∣e∣+1)(|e|+1)-st “rule” (i.e. the final else clause) to R(d′,D,1/(1+w),w)R(d^{\prime},D,1/(1+w),w) is given by

It then follows that the empirical risk of misclassification by the rule list d′d^{\prime} is the same as that by the rule list dd:

Using (24), together with the observation ∣d′∣=∣e∣+1≤∣d∣|d^{\prime}|=|e|+1\leq|d|, we must also have

Case 2. αj(d,D)>1/(1+w)\alpha_{j}^{(d,D)}>1/(1+w) holds for all j∈{∣e∣,∣e∣+1,...,∣d∣}j\in\{|e|,|e|+1,...,|d|\}. Then the contribution Rj(d,D,1/(1+w),w)R_{j}(d,D,1/(1+w),w) by the jj-th rule to R(d,D,1/(1+w),w)R(d,D,1/(1+w),w), for all j∈{∣e∣,∣e∣+1,...,∣d∣}j\in\{|e|,|e|+1,...,|d|\}, is given by Equation (17). Let d′={e,α^∣e∣(d′)}d^{\prime}=\{e,\hat{\alpha}_{|e|}^{(d^{\prime})}\} be the falling rule list of size ∣d′∣=∣e∣|d^{\prime}|=|e| that is compatible with DD. Then the instances captured by a∣e∣(d′)a_{|e|}^{(d^{\prime})} (i.e. the final else clause) in d′d^{\prime} are exactly those that are not captured by ee, or equivalently, those that are captured by a∣e∣(d)a_{|e|}^{(d)} through a∣d∣(d)a_{|d|}^{(d)}. This implies

Since d′d^{\prime} is compatible with DD, using the definition of a compatible rule list in Definition 2.6 and the definition of the empirical positive proportion in Definition 2.5, together with (25) and (27), we must have

Inequality (29) implies that the contribution R∣e∣(d′,D,1/(1+w),w)R_{|e|}(d^{\prime},D,1/(1+w),w) by the ∣e∣|e|-th “rule” (i.e. the final else clause) to R(d′,D,1/(1+w),w)R(d^{\prime},D,1/(1+w),w) is given by

It then follows that the empirical risk of misclassification by the rule list d′d^{\prime} is the same as that by the rule list dd:

Since we clearly have ∣d′∣=∣e∣≤∣d∣|d^{\prime}|=|e|\leq|d|, we must also have

Case 3. αj(d,D)≤1/(1+w)\alpha_{j}^{(d,D)}\leq 1/(1+w) holds for all j∈{∣e∣,∣e∣+1,...,∣d∣}j\in\{|e|,|e|+1,...,|d|\}. The proof is similar to Case 2, with Rj(d,D,1/(1+w),w)R_{j}(d,D,1/(1+w),w) for all j∈{∣e∣,∣e∣+1,...,∣d∣}j\in\{|e|,|e|+1,...,|d|\} given by Equation (18), the “greater than” in Inequality 29 replaced by “less than or equal to”, and R∣e∣(d′,D,1/(1+w),w)R_{|e|}(d^{\prime},D,1/(1+w),w) given by

Corollary 4.5. If d∗d^{*} is an optimal solution for a given instance (D,A,w,C)(D,A,w,C) of Program 2.9, then we must have αj(d∗,D)>1/(1+w)\alpha_{j}^{(d^{*},D)}>1/(1+w) for all j∈{0,1,...,∣d∗∣−1}j\in\{0,1,...,|d^{*}|-1\}.

Suppose that d∗d^{*} were an optimal solution for a given instance (D,A,w,C)(D,A,w,C) of Program 2.9, such that αk(d∗,D)≤1/(1+w)\alpha_{k}^{(d^{*},D)}\leq 1/(1+w) form some k∈{0,1,...,∣d∗∣−1}k\in\{0,1,...,|d^{*}|-1\}. Let

Before we proceed with proving Theorem 4.6, we make two other observations.

Observation 10.2. For any rule list d′d^{\prime}, we have

Since n∣e∣,d′,Dn_{|e|,d^{\prime},D} denotes the total number of training inputs captured by the ∣e∣|e|-th antecedent in d′d^{\prime}, which is exactly the sum of the number of positive training inputs captured by that antecedent (denoted n∣e∣,d′,D+n^{+}_{|e|,d^{\prime},D}), and the number of negative training inputs captured by the same antecedent (denoted n∣e∣,d′,D−n^{-}_{|e|,d^{\prime},D}), we have

The desired equation follows from rearranging the terms. ∎

that has exactly one rule (excluding the final else clause) following a given prefix ee, we have

Applying Observation 10.1 with ∣d′∣=∣e∣+1|d^{\prime}|=|e|+1, we have

Equations (31), (32), and (33) follow from rearranging the terms in the above equations. ∎

Theorem 4.6. Suppose that we are given an instance (D,A,w,C)(D,A,w,C) of Program 2.9 and a prefix ee that is feasible for Program 2.9 under the training data DD and the set of antecedents AA. Then any falling rule list dd that begins with ee and is compatible with DD satisfies

is a lower bound on the objective value of any compatible falling rule list that begins with ee, which we call a prefix bound for ee, under the instance (D,A,w,C)(D,A,w,C) of Program 2.9. Furthermore, if

Let F(X,D,e)\mathcal{F}(\mathcal{X},D,e) be the set of (hypothetical and non-hypothetical) falling rule lists that begin with ee and are compatible with DD, and let F(X,D,e,k)\mathcal{F}(\mathcal{X},D,e,k) be the subset of F(X,D,e)\mathcal{F}(\mathcal{X},D,e), consisting of those falling rule lists in F(X,D,e)\mathcal{F}(\mathcal{X},D,e) that have exactly kk rules (excluding the final else clause) following the prefix ee.

Case 1. α∣e∣−1(e,D)>1/(1+w)\alpha_{|e|-1}^{(e,D)}>1/(1+w).

which implies that eˉ\bar{e} is indeed compatible with DD.

Conversely, for any d0={e,α^∣e∣(d0)}∈F(X,D,e,0)d_{0}=\{e,\hat{\alpha}_{|e|}^{(d_{0})}\}\in\mathcal{F}(\mathcal{X},D,e,0), we must have

which implies d0=eˉd_{0}=\bar{e}. This establishes F(X,D,e,0)={eˉ}\mathcal{F}(\mathcal{X},D,e,0)=\{\bar{e}\}.

Let F′(X,D,e,1)\mathcal{F}^{\prime}(\mathcal{X},D,e,1) be the subset of F(X,D,e,1)\mathcal{F}(\mathcal{X},D,e,1), consisting of those falling rule lists

with α∣e∣(d′,D)>1/(1+w)\alpha_{|e|}^{(d^{\prime},D)}>1/(1+w) and α∣e∣+1(d′,D)≤1/(1+w)\alpha_{|e|+1}^{(d^{\prime},D)}\leq 1/(1+w). Note that for any d1={e,(a∣e∣(d1),α∣e∣(d1,D)),α∣e∣+1(d1,D)}∈F(X,D,e,1)−F′(X,D,e,1)d_{1}=\{e,(a_{|e|}^{(d_{1})},\alpha_{|e|}^{(d_{1},D)}),\alpha_{|e|+1}^{(d_{1},D)}\}\in\mathcal{F}(\mathcal{X},D,e,1)-\mathcal{F}^{\prime}(\mathcal{X},D,e,1), we have either α∣e∣(d1,D)≥α∣e∣+1(d1,D)>1/(1+w)\alpha_{|e|}^{(d_{1},D)}\geq\alpha_{|e|+1}^{(d_{1},D)}>1/(1+w) or α∣e∣+1(d1,D)≤α∣e∣(d1,D)≤1/(1+w)\alpha_{|e|+1}^{(d_{1},D)}\leq\alpha_{|e|}^{(d_{1},D)}\leq 1/(1+w), and Lemma 4.4 implies L(d1,D,1/(1+w),w,C)≥L(eˉ,D,1/(1+w),w,C)L(d_{1},D,1/(1+w),w,C)\geq L(\bar{e},D,1/(1+w),w,C). This means

Using F(X,D,e,0)={eˉ}\mathcal{F}(\mathcal{X},D,e,0)=\{\bar{e}\} and (36), we can write the right-hand side of (35) as

The rest of the proof for this case proceeds in three steps.

Step 1. Compute L(eˉ,D,1/(1+w),w,C)L(\bar{e},D,1/(1+w),w,C).

Since the contribution by the final else clause to L(eˉ,D,1/(1+w),w,C)L(\bar{e},D,1/(1+w),w,C) is given by

Step 2. Determine a lower bound of L(d′,D,1/(1+w),w,C)L(d^{\prime},D,1/(1+w),w,C) for all d′∈F′(X,D,e,1)d^{\prime}\in\mathcal{F}^{\prime}(\mathcal{X},D,e,1).

Let d′={e,(a∣e∣(d′),α∣e∣(d′,D)),α∣e∣+1(d′,D)}∈F′(X,D,e,1)d^{\prime}=\{e,(a_{|e|}^{(d^{\prime})},\alpha_{|e|}^{(d^{\prime},D)}),\alpha_{|e|+1}^{(d^{\prime},D)}\}\in\mathcal{F}^{\prime}(\mathcal{X},D,e,1). Since the contribution by both the ∣e∣|e|-th rule and the final else clause to L(d′,D,1/(1+w),w,C)L(d^{\prime},D,1/(1+w),w,C) is given by R∣e∣(d′,D,1/(1+w),w)+R∣e∣+1(d′,D,1/(1+w),w)+CR_{|e|}(d^{\prime},D,1/(1+w),w)+R_{|e|+1}(d^{\prime},D,1/(1+w),w)+C, where R∣e∣(d′,D,1/(1+w),w)R_{|e|}(d^{\prime},D,1/(1+w),w) and R∣e∣+1(d′,D,1/(1+w),w)R_{|e|+1}(d^{\prime},D,1/(1+w),w) are defined by Equation (13) and are given by

(because we have α∣e∣(d′,D)>1/(1+w)\alpha_{|e|}^{(d^{\prime},D)}>1/(1+w) and α∣e∣+1(d′,D)≤1/(1+w)\alpha_{|e|+1}^{(d^{\prime},D)}\leq 1/(1+w) for d′∈F′(X,D,e,1)d^{\prime}\in\mathcal{F}^{\prime}(\mathcal{X},D,e,1)), it is not difficult to see

Substituting (30) in Observation 10.2 and (31) in Observation 10.3 into Equation (39), we have

Note that Equation (40) shows that given the prefix ee, L(d′,D,1/(1+w),w,C)L(d^{\prime},D,1/(1+w),w,C) is a function of α∣e∣(d′,D)\alpha_{|e|}^{(d^{\prime},D)} and of n∣e∣,d′,D+n^{+}_{|e|,d^{\prime},D}. Since we have

because α∣e∣(d′,D)>1/(1+w)\alpha_{|e|}^{(d^{\prime},D)}>1/(1+w) holds for any d′∈F′(X,D,e,1)d^{\prime}\in\mathcal{F}^{\prime}(\mathcal{X},D,e,1), and

Using (35), (37), (38), and (41), we have

Case 2. α∣e∣−1(e,D)≤1/(1+w)\alpha_{|e|-1}^{(e,D)}\leq 1/(1+w).

This implies αj(d,D)≤1/(1+w)\alpha_{j}^{(d,D)}\leq 1/(1+w) for all j∈{∣e∣,...,∣d∣}j\in\{|e|,...,|d|\}. By Lemma 4.4, we have

Since L(eˉ,D,1/(1+w),w,C)L(\bar{e},D,1/(1+w),w,C) is given by Equation (38), we have

Given α∣e∣−1(e,D)≤1/(1+w)\alpha_{|e|-1}^{(e,D)}\leq 1/(1+w), we must also have

Substituting (43) into (42) completes the proof for Case 2.

Finally, if Inequality (34) holds, then we have

Proof of Theorem 5.2

Theorem 5.2. Suppose that we are given an instance (D,A,w,C,C1)(D,A,w,C,C_{1}) of Program 5.1 and a prefix ee that is compatible with DD. Then any rule list dd that begins with ee and is compatible with DD satisfies

is a lower bound on the objective value of any compatible rule list that begins with ee, under the instance (D,A,w,C,C1)(D,A,w,C,C_{1}) of Program 5.1. In Equation (44), αmin⁡(e,D)\alpha_{\min}^{(e,D)}, ζ\zeta, and gg are defined by

To prove Theorem 5.2, we need the following lemma:

Lemma. Suppose that we are given an instance (D,A,w,C,C1)(D,A,w,C,C_{1}) of Program 5.1, a prefix ee that is compatible with DD, and a (possibly hypothetical) rule list dd that begins with ee and is compatible with DD. Then there exists a rule list d′d^{\prime}, possibly hypothetical with respect to AA, such that d′d^{\prime} begins with ee, has at most one more rule (excluding the final else clause) following ee, is compatible with DD, and satisfies

Case 1. There exists some k∈{∣e∣,...,∣d∣}k\in\{|e|,...,|d|\} that satisfies αk(d,D)>1/(1+w)\alpha_{k}^{(d,D)}>1/(1+w) and some k′∈{∣e∣,...,∣d∣}k^{\prime}\in\{|e|,...,|d|\} that satisfies αk′(d,D)≤1/(1+w)\alpha_{k^{\prime}}^{(d,D)}\leq 1/(1+w). For any j∈{∣e∣,...,∣d∣}j\in\{|e|,...,|d|\} with αj(d,D)>1/(1+w)\alpha_{j}^{(d,D)}>1/(1+w), the contribution Rj(d,D,1/(1+w),w)R_{j}(d,D,1/(1+w),w) by the jj-th rule to R(d,D,1/(1+w),w)R(d,D,1/(1+w),w), defined by the right-hand side of Equation (13) with τ=1/(1+w)\tau=1/(1+w), is given by

For any j∈{∣e∣,...,∣d∣}j\in\{|e|,...,|d|\} with αj(d,D)≤1/(1+w)\alpha_{j}^{(d,D)}\leq 1/(1+w), the contribution Rj(d,D,1/(1+w),w)R_{j}(d,D,1/(1+w),w) by the jj-th rule to R(d,D,1/(1+w),w)R(d,D,1/(1+w),w) is given by

The rest of the proof for this case proceeds in four steps.

Step 1. Construct a hypothetical rule list d′d^{\prime} that begins with ee, has exactly one more rule (excluding the final else clause) following ee, and is compatible with DD. In later steps, we shall show that the rule list d′d^{\prime} constructed in this step satisfies (45).

Let d′={e,(a∣e∣(d′),α^∣e∣(d′)),α^∣e∣+1(d′)}d^{\prime}=\{e,(a_{|e|}^{(d^{\prime})},\hat{\alpha}_{|e|}^{(d^{\prime})}),\hat{\alpha}_{|e|+1}^{(d^{\prime})}\} be the hypothetical rule list of size ∣d′∣=∣e∣+1|d^{\prime}|=|e|+1 that is compatible with DD, and whose ∣e∣|e|-th antecedent a∣e∣(d′)a_{|e|}^{(d^{\prime})} is defined by

Step 2. Show that the empirical risk of misclassification by the rule list d′d^{\prime} is the same as that by the rule list dd.

To see this, we observe that the training instances in DD captured by a∣e∣(d′)a_{|e|}^{(d^{\prime})} in d′d^{\prime} are exactly those captured by the antecedents aj(d)a_{j}^{(d)}, ∣e∣≤j≤∣d∣|e|\leq j\leq|d|, in dd whose empirical positive proportion satisfies αj(d,D)>1/(1+w)\alpha_{j}^{(d,D)}>1/(1+w), and the training instances in DD captured by a∣e∣+1(d′)a_{|e|+1}^{(d^{\prime})} (i.e. the final else clause) in d′d^{\prime} are exactly those captured by the antecedents aj(d)a_{j}^{(d)}, ∣e∣≤j≤∣d∣|e|\leq j\leq|d|, in dd whose empirical positive proportion satisfies αj(d,D)≤1/(1+w)\alpha_{j}^{(d,D)}\leq 1/(1+w). This observation implies

Since d′d^{\prime} is compatible with DD, using the definition of a compatible rule list in Definition 2.6 and the definition of the empirical positive proportion in Definition 2.5, together with (46), (48), (49), and (50), we must have

This means that the contribution R∣e∣(d′,D,1/(1+w),w)R_{|e|}(d^{\prime},D,1/(1+w),w) by the ∣e∣|e|-th rule to R(d′,D,1/(1+w),w)R(d^{\prime},D,1/(1+w),w) is given by

where we have used (47), and the contribution R∣e∣+1(d′,D,1/(1+w),w)R_{|e|+1}(d^{\prime},D,1/(1+w),w) by the (∣e∣+1)(|e|+1)-st “rule” (i.e. the final else clause) to R(d′,D,1/(1+w),w)R(d^{\prime},D,1/(1+w),w) is given by

It then follows that the empirical risk of misclassification by the rule list d′d^{\prime} is the same as that by the rule list dd:

Step 3. Show that the monotonicity penalty of the rule list d′d^{\prime} is at most that of dd.

Let S(d,D)=∑j=0∣d∣⌊αj(d,D)−min⁡k<jαk(d,D)⌋+S(d,D)=\sum_{j=0}^{|d|}\lfloor\alpha_{j}^{(d,D)}-\min_{k<j}\alpha_{k}^{(d,D)}\rfloor_{+} be the monotonicity penalty of the rule list dd. We now show S(d′,D)≤S(d,D)S(d^{\prime},D)\leq S(d,D). Let Sj(d,D)=⌊αj(d,D)−min⁡k<jαk(d,D)⌋+S_{j}(d,D)=\lfloor\alpha_{j}^{(d,D)}-\min_{k<j}\alpha_{k}^{(d,D)}\rfloor_{+} be the monotonicity penalty for the jj-th rule in dd.

Let l∈{∣e∣,...,∣d∣}l\in\{|e|,...,|d|\} be any integer with

Then the total monotonicity penalty for all the rules (aj(d),αj(d,D))(a_{j}^{(d)},\alpha_{j}^{(d,D)}) in dd with ∣e∣≤j≤∣d∣|e|\leq j\leq|d| and αj(d,D)>1/(1+w)\alpha_{j}^{(d,D)}>1/(1+w) satisfies

On the other hand, the monotonicity penalty for the ∣e∣|e|-th rule in d′d^{\prime} satisfies

because we have min⁡k<∣e∣αk(d′,D)=min⁡k<∣e∣αk(d,D)\min_{k<|e|}\alpha_{k}^{(d^{\prime},D)}=\min_{k<|e|}\alpha_{k}^{(d,D)} (dd and d′d^{\prime} begin with the same prefix ee), and

It then follows from (55) and (56) that the monotonicity penalty of d′d^{\prime} is at most that of dd:

Using (51) and (58), together with the observation ∣d′∣=∣e∣+1≤∣d∣|d^{\prime}|=|e|+1\leq|d|, we must also have

Case 2. Either αj(d,D)>1/(1+w)\alpha_{j}^{(d,D)}>1/(1+w) holds for all j∈{∣e∣,...,∣d∣}j\in\{|e|,...,|d|\}, or αj(d,D)≤1/(1+w)\alpha_{j}^{(d,D)}\leq 1/(1+w) holds for all j∈{∣e∣,...,∣d∣}j\in\{|e|,...,|d|\}. The construction of d′=eˉd^{\prime}=\bar{e} and the proof for R(d′,D,1/(1+w),w)=R(d,D,1/(1+w),w)R(d^{\prime},D,1/(1+w),w)=R(d,D,1/(1+w),w) is similar to those given in the proof of Lemma 4.4. The proof for S(d′,D)≤S(d,D)S(d^{\prime},D)\leq S(d,D) is similar to that in Case 1. The desired inequality then follows from ∣d′∣=∣e∣≤∣d∣|d^{\prime}|=|e|\leq|d|. ∎

Before we proceed with proving Theorem 5.2, we make the following four observations. Observations 11.1, 11.2, and 11.3 are the same as Observations 10.1, 10.2 and 10.3. They are repeated here for convenience.

that begins with a given prefix ee, we have

Observation 11.2. For any rule list d′d^{\prime}, we have

that has exactly one rule (excluding the final else clause) following a given prefix ee, we have

that has exactly one rule (excluding the final else clause) following a given prefix ee, we have

Applying Equations (63) and (64) in Observation 11.3, we have

Applying Equation (62) in Observation 11.2, we have

Let D(X,D,e)\mathcal{D}(\mathcal{X},D,e) be the set of (hypothetical and non-hypothetical) rule lists that begin with ee and are compatible with DD, and let D(X,D,e,k)\mathcal{D}(\mathcal{X},D,e,k) be the subset of D(X,D,e)\mathcal{D}(\mathcal{X},D,e), consisting of those rule lists in D(X,D,e)\mathcal{D}(\mathcal{X},D,e) that have exactly kk rules (excluding the final else clause) following the prefix ee. Let S(X,D,e,1)\mathcal{S}(\mathcal{X},D,e,1) be the subset of D(X,D,e,1)\mathcal{D}(\mathcal{X},D,e,1), consisting of those rule lists

with α∣e∣(d′,D)>1/(1+w)\alpha_{|e|}^{(d^{\prime},D)}>1/(1+w) and α∣e∣+1(d′,D)≤1/(1+w)\alpha_{|e|+1}^{(d^{\prime},D)}\leq 1/(1+w).

The lemma that we have proved in this section, along with its proof, implies

This is because if dd obeys Case 1 in the proof of the lemma, then using the same argument as in the proof of the lemma we can construct a rule list d1={e,(a∣e∣(d1),α∣e∣(d1,D)),α∣e∣+1(d1,D)}∈S(X,D,e,1)d_{1}=\{e,(a_{|e|}^{(d_{1})},\alpha_{|e|}^{(d_{1},D)}),\alpha_{|e|+1}^{(d_{1},D)}\}\in\mathcal{S}(\mathcal{X},D,e,1) that satisfies

combining the inequalities in (68) and (69) gives us (67). On the other hand, if dd obeys Case 2 in the proof of the lemma, then by the lemma itself we know

Since we have D(X,D,e,0)={eˉ}\mathcal{D}(\mathcal{X},D,e,0)=\{\bar{e}\}, it is straightforward to see

Combining the inequalities in (70) and (71) again gives us (67).

Note that if S(X,D,e,1)\mathcal{S}(\mathcal{X},D,e,1) is not empty, then the right-hand side of (67) can be expressed as

The rest of the proof proceeds in six steps.

Step 2. Partition the set S(X,D,e,1)\mathcal{S}(\mathcal{X},D,e,1) into three subsets based on how the softly falling objective is computed.

For any d′={e,(a∣e∣(d′),α∣e∣(d′,D)),α∣e∣+1(d′,D)}∈S(X,D,e,1)d^{\prime}=\{e,(a_{|e|}^{(d^{\prime})},\alpha_{|e|}^{(d^{\prime},D)}),\alpha_{|e|+1}^{(d^{\prime},D)}\}\in\mathcal{S}(\mathcal{X},D,e,1), the softly falling objective is given by

where R∣e∣(d′,D,1/(1+w),w)R_{|e|}(d^{\prime},D,1/(1+w),w) and R∣e∣+1(d′,D,1/(1+w),w)R_{|e|+1}(d^{\prime},D,1/(1+w),w) are defined by Equation (13) and are given by

(because we have α∣e∣(d′,D)>1/(1+w)\alpha_{|e|}^{(d^{\prime},D)}>1/(1+w) and α∣e∣+1(d′,D)≤1/(1+w)\alpha_{|e|+1}^{(d^{\prime},D)}\leq 1/(1+w) for d′∈S(X,D,e,1)d^{\prime}\in\mathcal{S}(\mathcal{X},D,e,1)).

Let d′={e,(a∣e∣(d′),α∣e∣(d′,D)),α∣e∣+1(d′,D)}∈S1(X,D,e,1)d^{\prime}=\{e,(a_{|e|}^{(d^{\prime})},\alpha_{|e|}^{(d^{\prime},D)}),\alpha_{|e|+1}^{(d^{\prime},D)}\}\in\mathcal{S}_{1}(\mathcal{X},D,e,1). By the definition of S1(X,D,e,1)\mathcal{S}_{1}(\mathcal{X},D,e,1), we have

To prove (76), we use Definition 2.5 as well as (63) and (65) in Observation 11.3 to obtain

To do so, we substitute (62) and (63) in Observations 11.1 and 11.2 into (74) to obtain

because α∣e∣(d′,D)>1/(1+w)\alpha_{|e|}^{(d^{\prime},D)}>1/(1+w) holds for any d′∈S1(X,D,e,1)d^{\prime}\in\mathcal{S}_{1}(\mathcal{X},D,e,1), and

Let d′={e,(a∣e∣(d′),α∣e∣(d′,D)),α∣e∣+1(d′,D)}∈S2(X,D,e,1)d^{\prime}=\{e,(a_{|e|}^{(d^{\prime})},\alpha_{|e|}^{(d^{\prime},D)}),\alpha_{|e|+1}^{(d^{\prime},D)}\}\in\mathcal{S}_{2}(\mathcal{X},D,e,1). By the definition of S2(X,D,e,1)\mathcal{S}_{2}(\mathcal{X},D,e,1), we have

To do so, we substitute (62) and (63) in Observations 11.1 and 11.2 into (74) to obtain

Since α∣e∣(d′,D)\alpha_{|e|}^{(d^{\prime},D)} obeys (81), in particular, it obeys α∣e∣(d′,D)>1/(1+w)\alpha_{|e|}^{(d^{\prime},D)}>1/(1+w), we have

Let d′={e,(a∣e∣(d′),α∣e∣(d′,D)),α∣e∣+1(d′,D)}∈S3(X,D,e,1)d^{\prime}=\{e,(a_{|e|}^{(d^{\prime})},\alpha_{|e|}^{(d^{\prime},D)}),\alpha_{|e|+1}^{(d^{\prime},D)}\}\in\mathcal{S}_{3}(\mathcal{X},D,e,1). By the definition of S3(X,D,e,1)\mathcal{S}_{3}(\mathcal{X},D,e,1), we have

where the last equality follows by substituting (62) and (63) in Observations 11.1 and 11.2 into (86). Using (85) and applying the same argument as in Step 4, the quantity labeled (87) is also lower-bounded by

Suppose, first, that S(X,D,e,1)\mathcal{S}(\mathcal{X},D,e,1) is not empty.

In the case where S1(X,D,e,1)\mathcal{S}_{1}(\mathcal{X},D,e,1) is not empty, we observe the following inequality

In the case where S2(X,D,e,1)∪S3(X,D,e,1)\mathcal{S}_{2}(\mathcal{X},D,e,1)\cup\mathcal{S}_{3}(\mathcal{X},D,e,1) is not empty, we observe the following inequality

both of which are lower-bounded by the quantity labeled (91) because of (89) and (88).

Combining (67), (72), (73), and (92), we have

Finally, we compute inf⁡β:ζ<β≤1g(β)\inf_{\beta:\zeta<\beta\leq 1}g(\beta) analytically. Since the derivative of gg is given by

and β\beta must be positive, the only stationary point β∗\beta^{*} of gg that could satisfy the constraint ζ<β∗≤1\zeta<\beta^{*}\leq 1 is given by

and the second derivative test confirms that β∗\beta^{*} is a local minimum of gg. It then follows that inf⁡β:ζ<β≤1g(β)\inf_{\beta:\zeta<\beta\leq 1}g(\beta) is given by

Additional Rule Lists Demonstrating the Effect of Varying Parameter Values

In this section, we include some additional rule lists created using Algorithm FRL and Algorithm softFRL with varying parameter values. The default parameter values we used in creating these rule lists are w=7w=7, C=0.000001C=0.000001, and C1=0.5C_{1}=0.5. In each of the following subsections, the rule lists were created with default parameter values, other than the parameter that was being varied.

Running Algorithm FRL with w=1w=1 on the bank-full dataset produces the following falling rule list:

Running Algorithm FRL with w=3w=3 on the bank-full dataset produces the following falling rule list:

Running Algorithm FRL with w=5w=5 on the bank-full dataset produces the following falling rule list:

Running Algorithm FRL with w=7w=7 on the bank-full dataset produces the following falling rule list:

As the positive class weight ww increases, the falling rule list created using Algorithm FRL tends to have rules whose probability estimates are smaller. This is not surprising – a larger value of ww means a smaller threshold τ=1/(1+w)\tau=1/(1+w), and by including rules whose probability estimates are not much larger than the threshold, the falling rule list produced by the algorithm will more likely predict positive, thereby reducing the (weighted) empirical risk of misclassification. Note that Algorithm FRL will never include rules whose probability estimates are less than the threshold (see Corollary 4.5).

2 Effect of Varying w𝑤w on Algorithm softFRL

Running Algorithm softFRL with w=1w=1 on the bank-full dataset produces the following softly falling rule list:

Note that there is an extra column “positive proportion” in a table showing a softly falling rule list. This column gives the empirical positive proportion of each antecedent in the softly falling rule list. When the probability estimate of a rule is less than the positive proportion of the antecedent in the same rule, we know that the softly falling rule list has been transformed from a non-falling compatible rule list, and that the monotonicity penalty has been incurred in the process of running Algorithm softFRL.

Running Algorithm softFRL with w=3w=3 on the bank-full dataset produces the following softly falling rule list:

Running Algorithm softFRL with w=5w=5 on the bank-full dataset produces the following softly falling rule list:

Running Algorithm softFRL with w=7w=7 on the bank-full dataset produces the following softly falling rule list:

As the positive class weight ww increases, the softly falling rule list created using Algorithm softFRL also tends to have rules whose probability estimates are smaller. This is again not surprising – a larger value of ww means a smaller threshold τ=1/(1+w)\tau=1/(1+w), and by including rules whose probability estimates are not much larger than the threshold, the softly falling rule list produced by the algorithm will more likely predict positive, thereby reducing the (weighted) empirical risk of misclassification.

3 Effect of Varying C𝐶C on Algorithm FRL

Running Algorithm FRL with C=0.000001C=0.000001 on the bank-full dataset produces the following falling rule list:

Running Algorithm FRL with C=0.01C=0.01 on the bank-full dataset produces the following falling rule list:

Running Algorithm FRL with C=0.1C=0.1 on the bank-full dataset produces the following falling rule list:

As the cost CC of adding a rule increases, the size of the falling rule list created by Algorithm FRL decreases, as expected.

4 Effect of Varying C𝐶C on Algorithm softFRL

Running Algorithm softFRL with C=0.000001C=0.000001 on the bank-full dataset produces the following softly falling rule list:

Running Algorithm softFRL with C=0.01C=0.01 on the bank-full dataset produces the following softly falling rule list:

Running Algorithm softFRL with C=0.1C=0.1 on the bank-full dataset produces the following softly falling rule list:

As the cost CC of adding a rule increases, the size of the softly falling rule list created by Algorithm softFRL decreases, as expected.

Running Algorithm softFRL with C1∈{0.005,0.05,0.5}C_{1}\in\{0.005,0.05,0.5\} on the bank-full dataset produces the softly falling rule lists shown in Tables 16, 17, and 18.

When the monotonicity penalty C1C_{1} is small, the softly falling rule list created by Algorithm softFRL exhibits the “pulling down” of the empirical positive proportion for a substantial number of rules, because with little monotonicity penalty the algorithm will more likely choose a rule list that frequently violates monotonicity but that has a small empirical risk on the training set, in the hope of getting more of the training instances “right”. This is also why the softly falling rule list tends to be longer when C1C_{1} is small: in minimizing the empirical risk on the training set with little regularization (the default C=0.000001C=0.000001 is very small), the algorithm tends to overfit the training data.

When C1C_{1} becomes larger, the softly falling rule list created by Algorithm softFRL exhibits less “pulling down” of the empirical positive proportion. This is consistent with our expectation that when C1C_{1} is larger, the penalty for violating monotonicity is higher and the algorithm will less likely choose a rule list that frequently violates monotonicity.

Additional Experiments Comparing Algorithm FRL and Algorithm softFRL to Other Classification Algorithms

Figure 3 shows the ROC curves on the test set using different values of ww, for four additional training-test splits. As we can see, the curves in Figure 3 lie close to each other, again demonstrating the effectiveness of our algorithms in producing falling rule lists that, when used as classifiers, are comparable with classifiers produced by other widely used classification algorithms, in a cost-sensitive setting.

Additional Experiments Comparing Bayesian Approach to Our Optimization Approach

We conducted a set of experiments comparing the Bayesian approach to our optimization approach. We trained falling rule lists on the entire bank-full dataset using both the Bayesian approach and our optimization approach (Algorithm FRL), and plotted the weighted training loss over real runtime. In particular, for each positive class weight w∈{1,3,5,7}w\in\{1,3,5,7\}, we set the threshold to 1/(1+w)1/(1+w) (By Theorem 2.8, this is the threshold with the least weighted training loss for any given rule list), and computed the weighted training loss using this threshold. For the Bayesian approach, we recorded the runtime and computed the weighted training loss for every 100100 iterations of Markov chain Monte-Carlo sampling with simulated annealing, up to 60006000 iterations. For our optimization approach, we ran Algorithm FRL for 30003000 iterations and recorded the runtime and the weighted training loss whenever the algorithm finds a falling rule list with a smaller (regularized) weighted training loss. Since we want to focus our experiments on the efficiency of searching the model space, the runtimes recorded do not include the time for mining the antecedents. Due to the random nature of both approaches, the experiments were repeated several times.

Figures 4 to 7 show the plots of the weighted training loss over real runtime for the Bayesian approach and our optimization approach (Algorithm FRL), for four additional runs of the same algorithms. Due to the random nature of both approaches, it is sometimes possible that our approach (Algorithm FRL) may find in 30003000 iterations a falling rule list with a slightly larger weighted training loss, compared to the Bayesian approach with 60006000 iterations (see Figure 6(d)). However, in general, our approach tends to find a falling rule list with a smaller weighted training loss faster, due to aggressive pruning of the search space.

It is worth pointing out that both the Bayesian approach and our optimization approach produce similar falling rule lists. Table 19 shows a falling rule list for the bank-full dataset, obtained in a particular run of the Bayesian approach with 60006000 iterations. Table 20 shows a falling rule list for the same dataset, obtained in a particular run of Algorithm FRL with 30003000 iterations and the positive class weight w=7w=7. As we can see, the top four rules in both falling rule lists are identical. Tables 21 and 22 show another pair of falling rule lists obtained using both approaches in different runs, and in this case, both approaches have identified some common rules for a high chance of marketing success. This means that both the Bayesian approach and our optimization approach tend to identify similar conditions that are significant, but our approach has the added advantage of faster training convergence over the Bayesian approach in general.