Comonotone-independence bayes classifier
Patent Information
- Application Number
- PCT/CN2024/078978
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-06
Smart Images

Figure CN2024078978_06092024_PF_FP
Abstract
Description
COMONOTONE-INDEPENDENCE BAYES CLASSIFIERCROSS-REFERENCE TO RELATED APPLICATIONThis application claims the benefit of U.S. Serial No. 63 / 487,282, filed February 28, 2023, which is hereby incorporated by reference in its entirety including any tables, figures, or drawings.BACKGROUND OF THE INVENTIONIn the field of machine learning, various methods have been developed for regression tasks. Linear regressionis a fundamental technique that models the relationship between input features and the continuoustarget variable using a linear function. Support Vector Regression (SVR) utilizes support vector machinesto find a hyperplane that best fits the data points while minimizing the deviation from the target variable. Decision trees, including regression trees, recursively split the feature space based on threshold conditionsto create a predictive model. Gradient Boosting is an ensemble method that sequentially builds a strongregression model by combining weak learners. Neural networks, particularly deep learning architectureslike Multilayer Perceptron (MLP) have gained significant attention due to their ability to learn complexrelationships between inputs and outputs. However, one drawback of the aforementioned methods is theirpotential lack of interpretability, which can result in unexplained results, even if the accuracy is high. Thisbecomes particularly problematic as many regulatory bodies and ethical considerations require transparencyand explainability in machine learning models. A powerful alternative method, combiningboth accuracy and interpretability is needed.The discussion of extending Naive Bayes for regression has been ongoing for a long time.
[0019] discussedthe possible extension of the commonly used Naive Bayes classifier to the context of regression, but theperformance is rather unsatisfactory.Over the past few decades, the concept of comonotonicity has been widely used by researchers in actuarial science, finance, statistics and economics [4] , describing a special dependence among several random variables in that whenever the realization of one variable changes, the realizations of all other variables would change in the same direction. Thesynchronized movement manifests the extremal positive dependence, which often corresponds to the extremal behavior of a stochastic system involving variables with fixed marginal distributions but in face of unknown dependence. For instance, a classical result in an actuarial-financial context states that comonotonicity characterizes the worse and riskiest dependence structure among several loss variables, as measured by the Tail Value-at-Risk (or other risk measurements that respect convex order) of the aggregate loss as shown in [3] . Identifying such worse dependence in face of dependence uncertainty is important, as it entails what actions are appropriate if one wants to act prudently. Besides modelling dependence structures, other contemporary applications of comonotonicity range from risk management of derivatives to life insurance pricing and reserving. [3, 4] provide more discussions on how comonotonicity is relevant and can be applied in actuarial science and finance.Some basic definitions and useful perspectives of comonotonicityare first reviewed. For any two vectors x, y∈Rd, x≤y if xi≤yi for all i=1, 2, …, d, and the same definition applies to x≥y.Definition 1.1. A setis comonotonic if for any x, y∈S, either x≥y or x≤y. A random vector X in Rd is comonotonic if P (X∈S) =1 for some comonotonic setIn other words, a comonotonic set S is a totally ordered set. The following proposition (as shown in [5, 6] ) sheds light on how to describe the joint probability under comonotonicity.Proposition 1.1. Suppose that X= (X1, …, Xd) is a random vector whose marginal cumulativedistribution functions arerespectively. The following four statements are equivalent:1. (X1, …, Xd) is comonotonic;2. There exist a random variable W and increasing functions h1, …, hd such that 3. for any U~U (0, 1) ,4. FX (x) =mini FXi (xi) for all x= (x1, …, xd) , wherefor any i∈ {1, …, d} .The third statement in Proposition 1.1 indicates that a comonotonic random vector X can be sampled from their corresponding inverse marginal distributionswith a single uniformly distributed random variable U~U (0, 1) . Before moving on to the sampling method for comonotonic variables, the well-known inverse transform method is recalled, which allows us to sample a random variable with a cumulative distribution function (CDF) FX: R→ [0, 1] , by generating a random number U~U (0, 1) , and then to compute the sample valueSpecifically, if X is a discrete random variable, the interval [0, 1] can be sliced up into k disjoint sub-intervals:[0, FX (s1) ) , [FX (s1) , FX (s2) ) , …, [FX (sk-1) , 1] ,where s1<s2<…<sk, and clearly the event {X=si} is represented by the interval [FX (si-1) , FX (si) ) with the probability given by the length of this interval. When it comes to a family of comonotonic random variables, according to Proposition 1.1, a random number U~U (0, 1) is generated and then setfor all i∈ {1, …, d} . This sampling process generates data that follows the joint distribution with the comonotonic structure.BRIEF SUMMARY OF THE INVENTIONThere continues to be a need in the art for improved designs and techniques for a method and systemsformaking predictions based on a comonotone classifier.According to an embodiment of the subject invention, a method for making prediction based on a classifier comprises receiving a multivariate input having feature variables; making prediction based on a comonotone-independence Bayes classifier (CIBer) via performing conditional probability mass function on the feature variables; and outputting a predictive class. Moreover, the making prediction based on the comonotone-independence Bayes classifier (CIBer) comprises a joint encoding to artificially insert ordering in categorical features. The joint encoding is configured to preserve inherent dependence among the categorical features. The preserving inherent dependence among the categorical features comprises obtaining frequencies of grouping of values of the feature variables. Further, the joint encoding is configured to encodes categorical features to obtain inherent dependence for classification. The method may further comprise performing Laplace smoothing for zero probability before outputting the predictive class.In certain embodiment of the subject invention, a method for making predictions based on a comonotone-independence Bayes classifier (CIBer) is provided, comprising step one: finding combination of values of two feature variables with the highest frequency and encoding the corresponding feature values as 1; step two: finding combination with the highest frequency within those of unencoded values of the feature variables, and encoding the corresponding values by the next unassigned integer; step three: repeating step two until a feature variable has precisely one value left that is not encoded and then automatically assign to it the next unassigned integer; and step four: if condition in step three is true for both feature variables, then the same integer is assigned to the values of both feature variables; if not and if the remaining feature variable has two or more values that are not encoded, then its remaining values are encoded sequentially in descending order of their corresponding marginal.In some embodiments of the subject invention, a non-transitory computer readable medium having stored therein program instructions executable by a computing system to cause the computing system to perform a method for making predictions based on a classifier is provided. The method comprisesreceiving a multivariate input having feature variables; making prediction based on a comonotone-independence Bayes classifier (CIBer) via performingconditional probability mass function on the feature variables; and outputting a predictive class.BRIEF DESCRIPTION OF THE DRAWINGSFigures 1A-1Cshow common discretization methods on 9 sample datum, according to an embodiment of the subject invention.Figure 2shows comparison of different ROC curves, their corresponding AUC values and testing accuracy rates in the presence or absence of categorical features, according to an embodiment of the subject invention.Figure 3shows testing error rates of the classifiers for cross-sell prediction, via fivefoldcross validation, according to an embodiment of the subject invention.Figures 4A and 4B show testing error rates for different training sizes for cross-sell prediction, according to an embodiment of the subject invention.Figure 5shows ROC curves and the associated AUC values for various classifiers incross-sell prediction, according to an embodiment of the subject invention.Figure 6shows testing error rates of the classifiers for default premium paymentprediction, via five-fold cross validation, according to an embodiment of the subject invention.Figures 7A and 7B show testing error rates for different training sizes for default premiumpayment prediction, according to an embodiment of the subject invention.Figure 8shows ROC curves and the associated AUC values for various classifiers indefault premium payment prediction, according to an embodiment of the subject invention.Figure 9shows testing error rates of the classifiers for travel insurance claim prediction, via five-fold cross validation, according to an embodiment of the subject invention.Figures 10A and 10B show testing error rates for different training sizes for travel insuranceclaim prediction, according to an embodiment of the subject invention.Figure 11shows ROC curves and the associated AUC values for various classifiers intravel insurance claim prediction, according to an embodiment of the subject invention.Figure 12shows testing error rates of the classifiers for vehicle insurance claim prediction, via five-fold cross validation, according to an embodiment of the subject invention.Figures 13A and 13B show testing error rates for different training sizes for vehicle insuranceclaim prediction, according to an embodiment of the subject invention.Figure 14shows ROC curves and the associated AUC values for various classifiers invehicle insurance claim prediction, according to an embodiment of the subject invention.Figure 15shows ROC curves and the associated AUC values for various classifiers in travel insurance claim prediction, according to an embodiment of the subject invention.Figure 16shows testing error rates of the classifiers for vehicle insurance claim prediction, via five-fold cross validation, according to an embodiment of the subject invention.Figures 17A and 17B show testing error rates for different training sizes for vehicle insurance claim prediction, according to an embodiment of the subject invention.Figure 18shows ROC curves and the associated AUC values for various classifiers in vehicle insurance claim prediction, according to an embodiment of the subject invention.Figure 19 shows the K-means clustering method for continuous response variables, according to an embodiment of the subject invention.Figure 20shows a boxplot of Mean Absolute Error for each regressor in the House Rent dataset, according to an embodiment of the subject invention.DETAILED DISCLOSURE OF THE INVENTIONThe embodiments of subject invention pertain to a method and systems for making predictions based on a comonotone-independence Bayes classifier (CIBer) .The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term “and / or” includes any and all combinations of one or more of the associated listed items. As used herein, the singular forms “a, ” “an, ” and “the” are intended to include the plural forms as well as the singular forms, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and / or “comprising, ” when used in this specification, specify the presence of stated features, steps, operations, elements, and / or components, but do not prelude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof.Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one having ordinary skill in the art to which this invention pertains. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.When the term “about” is used herein, in conjunction with a numerical value, it is understood that the value can be in a range of 90%of the value to 110%of the value, i.e. the value can be + / -10%of the stated value. For example, “about 1 kg” means from 0.90 kg to 1.1 kg.In describing the invention, it will be understood that a number of techniques and steps are disclosed. Each of these has individual benefits and each can also be used in conjunction with one or more, or in some cases all, of the other disclosed techniques. Accordingly, for the sake of clarity, this description will refrain from repeating every possible combination of the individual steps in an unnecessary fashion. Nevertheless, the specification and claims should be read with the understanding that such combinations are entirely within the scope of the invention and the claims.In real-world datasets, one commonly encounters three types of features, namely, categorical, continuous and discrete feature variables.Comonoton-Independence Bayes Classifier (CIBer) , a type of Bayes classifier is developed and extended to the context of regression. It consistently outperforms the Regression Tree across numerous datasets.This achievement underscores the inadequacy of attempting to extend the Bayes to regression previously, as it failed to model the probabilistic structure of the feature variables. This naive approach may still work for classification tasks where the focus is on determining the maximum probabilityamong classes. However, this no longer holds true when applied to regression.According to embodiments of the subject invention, comonotone-Independence Bayes Classifier (CIBer) makes prediction via performingconditional probability mass function on given feature variables. To this end, discretization for continuous features can facilitate a unified approach for different features without sacrificing much of the hidden information embedded in the features. On the other hand, the comonotonic dependence structure is only considered among the feature variables taking numerical values with natural order. For categorical feature variables, such as race, gender, nationality, the joint encoding method is provided to artificially insert ordering in categorical features.Formally, the classifier takes a multivariate input whose components are called feature variables or features in short, and outputs a predictive class. Suppose that there are d features in the dataset, the term “feature space” refers to a subset of Rd which contains all possible combinations of feature values. The elements in the feature space are feature vectors denoted by X= (X1, …, Xd) As explained above, only "discrete features” are investigated, the sample space for any component XIin Xis defined aswhere ki∈Z+for each i=1, 2, …, d. In other words, this sample space represents the collection of all possible values of Xi. Without loss of generality, it is assumed that a natural order ofAny observed value xIof XIis denoted aswhere mi∈ {1, 2, …, ki} for each i=1, 2, …, d. For the sake of simplicity, the features can be represented by their corresponding indices, that is, (1, …, d) stands for (X1, …, Xd) , respectively. Without causing much ambiguity, this set of notation is used interchangeably depending on the context. Finally, the “class space” is denotedasfor some T∈Z+, where Ctis the set of all elements belonging to the class with label / type tfor all t=1, …, T, and the observed class label is further denotedas c (xj) ∈ {1, …, T} , where xj= (xj, 1, …, xj, d) is the j-th observed feature vector for j=1, …, n.1.1 Discretization of Continuous FeaturesIntuitively, individuals in the same class Ct should share similar characteristics, as a result their values of their respective continuous features are also expected to cluster. To this end, it is natural to apply discretization with respect to certain continuous variables before shifting the task by any classifier.Figures 1A-1C respectively illustrate three common discretization method, including (1) Equal-width; (2) Equal-frequency; and (3) Equal-distribution quantile, on a continuous feature variable with nine sample datum splitting into (ahyperparameter) Letdenotes the set of the bthbin, for1. Equal-width:where l (d) is the width of every bin:Therefore, withandsuch that:2. Equal-frequency: Letbe the sorted increasing values of x (d) andbe the total number of required samples in each bin.Therefore, withand N=9,Equal-distribution quantile: assume that the samples in x (d) are iidfollowing a parametric distribution with cdf Fθ such thatreturns the quantile of Fθ.Suppose that the sampleswithit is computed thatandMulti-Interval Discretization (MID) : based on entropy minimization● First find an “optimal” binary partition of● Find “optimal” binary partitions for each resulting subset;● Repeat until a stopping criterion, Minimal Description Length Principle (MDLP) [8] , is met.5. Proportional k-Interval Discretization (PKID) : Equal-frequency discretization method, withthe subset of order statistics6. Non-Disjoint Discretization (NDD) : Built from PKID with atomic bin b′thatusing (4) . ForIn practice, especially in the event of a limited number of observations, if too many bins are constructed for a continuous feature variable, some of them may end up containing few or even no observations, thus it is less possible to provide any reasonably good empirical approximation of the underlying conditional marginal density function. In actual implementations, one may manually tune the number of bins for a certain continuous feature variable as long as the number of observations in each bin exceeds a certain pre-specified threshold, for example, 100.By preliminary experiments with empirical data, at the cost of a longer running time, the aforementioned discretization method shows much better robust performance than other conventional discretization methods, such as discretizing into equal-width bins based on the range of feature values.1.2 Joint Encoding of Categorical FeaturesUnlike ordinary continuous or discrete features but being governed with arithmetic in nature, association measures to be defined in Section 1.4.2 are not directly applicable to categorical features of a pure ordinal nature only. Moreover, as different categorical features might not exhibit any natural ordering, the notion of comonotonicity is not immediately applicable to such variables. In this section, a novel encoding scheme for the categorical features is provided while the inherent dependence is preservedamong the categorical features by configuring the frequencies of grouping various feature values. This simultaneous encoding method, for several feature values at a time, is given the name Joint Encoding.First, a simple example is adopted to illustrate the effectiveness of the joint encoding. Consider the following dataset on two categorical variables, whose contingency table is shown in Table 1. Borrowing the notations from Section 1.4.2, Yand Z denote the two categorical feature variables.Table 1: The contingency table of a sample dataset with two categorical variables.To determine the magnitude of dependence between Yand Z, numerical values are assignedto the possible feature values they can take, and then the association measures to be introduced in Section 1.4.2are calculated. By the nature of this dataset, that is the large number of tied observations (yi, zi) ’s, Pearson's is a more suitable measure compared with the others. An arbitrary encoding scheme forYand Z, namely, for the values of Y, is first consider. yiis encoded as i for i=1, 2, 3, while for the values of Z, ziis encodedas ifor i=1, 2. Under this scheme,which yieldand using the formula in Section 1.4.2, Pearson's can be calculatedas follows:which is fairly close to 0, and thus gives no hint on any possible (linear) relations betweenYand Z.Nevertheless, it is observed from Table 1 that the cells (y1, z2) , (y2, z2) and (y3, z2) have higher frequencies than the others, this non-uniform distribution of data points must indicate a higher level of association between Yand Z, yet it is not thoroughly reflected by the arbitrary encoding scheme as discussed above. This in turn suggests that a more systematic encoding approach has to be adopted to reveal any hidden connection between Y and Z as much as possible. To this end, following heuristic scheme is provided:1. Find the combination of values of Y and Z with the highest frequency, and encode the corresponding feature values as 1;2. Find the combination with the highest frequency within those of un-encoded values of Y and Z and encode the corresponding values by the next unassigned integer;3. Repeat Step 2 until a feature variable has precisely one value left that is not encoded, by then the next unassigned integer is automatically assign to it. If this is the case for both feature variables, then the same integer is assignedto the values of both feature variables. Otherwise, if the remaining feature variable has two or more values that are not encoded, then its remaining values are encode sequentially in descending order of their corresponding marginal frequencies as if the formerly removed feature variable never existed.Following this scheme, y2 and z1are first encodedas 1 by noting that (y2, z1) has the largest frequency of 250. As z2now becomes the only value of Z, and this is not the case for Y, that is yet to be encoded, it is encodedas 2. Finally, for y1 and y3, they are encodedin descending order according to their marginal frequencies as listed out at the bottom row of Table 1, that is, y1is encodedas 2 and y3is encoded as 3, respectively. With this encoding result, it is computed thatwhich yieldand finallythat is a significant increment in comparison with the aforementioned arbitrary scheme, mainly due to the vastly increased empirical covariance as the numerator ofThe heuristic idea above can be extended to the general high-dimensional case of dc categorical feature variables as follows. Recall that the finite sample space of Xiis denoted byTo facilitate the implementation, it is assumed that the feature variables have been sorted in such a manner thatNow, a dc-dimensional hyperrectangleof sizeis considered, in which each cell has a “coordinate” represented by a combination of the feature values thatcan take, more precisely, they arefor mi=1, …, kiand i=1, …, dc. The value of each cell in this hyperrectangle, denoted byis the observed frequency of the corresponding combination in the training dataset. All cells in this hyperrectangle are initially marked as available, indicating that they are free to be selected. The pseudocode of Joint Encoding is shown in Algorithm 1 below.ALGORITHM 1 Joint Encoding for Categorical FeaturesInput: Hyperrectanglewith dimensionsuch thatOutput: One-to-one mappingsfor i=1, …, dc.1: i max ←dc, this variable indicates the index of the first feature variable to be fully encoded2: Mark all cells ofas available3: for i = 1todcdo4: Set ri (x) ←0 for any5: end for6: k←17: whileimax>0do8: Among all available cells infind the one with the largest value, let say with the coordinate9: fori=1 to imax do10: 11: end for12: k ←k+113: Mark all cells inwith coordinates (x1, …, xi max) such thatfor some i=1, …, imax as unavailable14: while there exists a uniquesuch that15: 16: ifimax>1then17: Construct a hyperrectanglewith dimensionsuch that 18: and mark the jointly un-encoded cells inas available, that means those with coordinatessuch that19: end if20: imax←imax-121: end while22: end while23: Return: the mappingsThe operation of Algorithm 1 is demonstrated by using an illustrative dataset on the annual sales records (in thousands) of vehicles in two specific colors (Silver and Red) from five different brands (A, B, C, D, E) in three countries (China, Japan and US) . these three categorical feature variables, namely Brand, Color and Country, are first sortedin non-ascending order of the number of possible feature values, for this particular dataset, X1stands for Brand, X2 stands for Country, and X3 stands for Color. It is assumed that the hyperrectangleof dimension 5×3×2in Table 2 is generated according to the dataset, where each of the two charts stands for a specific value of X3 as indicated in the top-left grid, and the rows and columns within each chart correspond to different values of X2 and X1, respectively. All cells in this hyperrectangleare initially marked as available (white in color for background) . The realization of Algorithm 1 is as follows:● First iteration: The cell (C, Japan, Red) has the highest frequency of 45 among all available cells. Thus, r1 (C) =r2 (Japan) =r3 (Red) =1 is encoded, and the cells in the chart with X3=Red, the rows with X2=Japan and the columns with X1=Care markedas unavailable. These operations lead to Table 3, note that the highest frequency concerned is shown in bold, and the unavailable cells are colored in gray; the same set of display rules is adopted in the following steps. As only one value of X3 has not been encoded, namely Silver, it is automatically encoded as the random feature 2, by then X3 is completely encoded. A dimension reduction ofis obtained so thatis obtained by removing the cells corresponding to X3inaltogether, and then the counting values are added up with the same combination of X2 (Country) and X1 (Brand) . The cells in this resulting hyperrectangleare markedas available, if neither of their corresponding values of X1 and X2 is encoded, for example, as shown by the new 5×3rectanglein the left table of Table 4.● Second iteration: The cell (B, US) has the highest frequency of 45 among all available inIt is noted that by the joint encoding nature of the algorithm, Silver (Color) , B (Brand) and US (Country) have to be "jointly encoded” , and since Silver (Color) is encoded as 2, the same number is usedto encode B (Brand) and US (Country) too, that is r1 (B) =r2 (US) =2. Subsequently, the cells in the row with X2=US and the column with X1=Bare markedas unavailable, as shown by the right table of Table 4. As only one value of X2remains not encoded, namely China, it is automatically encoded as 3, by then the random feature X2 is also completely encoded. Through the dimension reduction procedure in the same manner as the first iteration once again, reduces to an one-dimensional “line” with a length of 5 of the feature value size of X1, whose only available cells are A, B and D, as shown by the left table of Table 5.● Third iteration (as shown in Table 5) : Among the remaining three available cells shown in the left-hand side table inthe cell D has the largest value of 50. Again, by the joint encoding nature as mentioned in the second iteration, Japan (Counter) and D (brand) have to be “jointly encoded” , and since the former has been encoded as 3, the same number is usedto encode r1 (D) =3. The cell D is then markedas unavailable, while no other cells are needed to be marked as unavailable as they represent different values of X1. Also note that more than one value of X1have not been encoded, hence no automatic encoding or dimension reduction is done in this iteration.● Final iteration (as shown in Table 6) : The cell E has a higher frequency of 27 from the remaining two available cells intherefore r1 (E) is set to 4and the cell E is markedas unavailable. Now, A becomes the only remaining value ofX1that has not been encoded, hence r1 (A) is set to 5.The whole algorithm thus comes to an end. Therefore, by using Algorithm 1, the mappings r1, r2, r3 are denoted as follows:r1 (C) =1, r1 (B) =2, r1 (D) =3, r1 (E) =4, r1 (A) =5;r2 (Japan) =1, r2 (US) =2, r2 (China) =3; r3 (Red) =1, r3 (Silver) =2.Table 2: The initial hyperrectangleTable 3: The hyperrectangleafter the encoding in the first iteration.Table 4: The resulting rectangleafter dimension reduction in the first iteration, and subsequently after the encoding in the second iteration.Table 5: The resulting “line” after dimension reduction in the second iteration, and the subsequent encoding at the third iteration.Table 6: The resulting “line” after dimension reduction in the third iteration, and the subsequent encoding at the fourth and final iteration.The aforementioned approach is straightforward, yet it often takes up a more than necessary amount of memory, as some specific combinations of the feature values do not appear in the dataset, but Algorithm 1 still demands a cell, even with a counting value 0, for each of all possible combinations, for example, the cell (A, China, Silver) and (A, Japan, Red) are still created in Table 2. This concern could be particularly essential in the case of a large number of categorical variables with sparse observations. Nevertheless, this algorithm requires a search for the maximum available cell over the whole hyperrectangle in every iteration, which is especially time-consuming when a large number of categorical feature variables are involved. To this end, the following algorithm with precisely the same effect as Algorithm 1is considered, but with far less memory required, especially for very sparse data. Specifically, for the categorical variableswhich are already sorted as in Algorithm 1, the data matrixof all the categorical variables in the training dataset is denoted bywith the aim of constructing a frequency-augmented reduced data matrixas an input in the algorithm. Indeed, all the distinguishable rows of combinations of observed values are first identifiedfor different features forming the rows of the reduced data matrixFor example, there areof them, with their corresponding accumulated frequencies forming the values of the column vectoraltogether resulting in a reduced data matrix of dimensionand thenis obtained by sorting the rows in descending order by the frequencies for different distinguishable rows. For example, Table 7 shows the first 7 entries of the three categorical features in the training datasetand based on these 7 observations, the resulting reduced frequency-augmented data matrixof dimension 4 ×3+4×1 is depicted in Table 8. As a remark, for multiple rows with the same frequency, further tie-breaker mechanisms are not considered, as such scenario rarely occurs in practical considerations. Even if a tie is encountered, the ordering among them would have a minimal effect on the final mapping taken. The outputs are dcone-to-one mappings from the original sample space to the set of positive integers {1, 2, …, ki} , for i=1, …, dc. The pseudocode for this algorithm is shownby Algorithm 2 below.ALGORITHM 2 Joint Encoding for Categorical FeaturesInput: Anfrequency-augmented data matrixwith pre-sorted categorical variablessuch thatOutput: One-to-one mappingsfor i=1, …, dc1: imax←dc, representing the index of the next feature variables to be fully encoded2: for i=1 to dcdo3: set ri (x) ←0 for any4: end for5: m=16: whileimax>0do7: for j=1 todo8: ifthen9: set ri (xj, i) ←m for i=1, …, imax10: m←m+111: end if12: whileimax≥1 andi.e., only one value ofis not encoded do13: Find the unique value x*such thatand set14: imax←imax-115: ifimax>0then16: Remove the (imax+1) -th column corresponding tothen combine the rows sharing the same value ofand add up their frequencies as the frequency of the resulting row17: Sort the resulting rows in non-ascending order of frequencies to form the new frequency-augmented data matrixof dimension18: 19: end if20: end while21: end for22: end while23: return the mappingsTable 7: A sub-sample data matrix of first 7 entries of the three categorical features in the training datasetTable 8: A reduced frequency-augmented data matrixfrom Table 7.The same illustrative dataset of annual vehicle sale records is utilized to demonstrate Algorithm 2. Same as in Algorithm 1, X1, X2 and X3correspond to Brand, Country and Color, respectively. By arranging the rows of the data matrix in descending order with respect to their corresponding frequencies, the 28×3+28×1frequency-augmented data matrixis obtained as shown by Table 9 for the first 4 rows ofIt is noted that among the 5×3×2=30possible combinations of feature values, two of them have a zero frequency, namely (B, US, Silver) and (A, Japan, Red) , this is why only 28 rows are present inThe realization of Algorithm 2 is as follows:● Row 1 ofas none of the three feature values is encoded, 1 is assignedto each of them, that is r1 (C) =r2 (Japan) =r3 (Red) =1. Up to now, Silver is the only value of X3 that has not been encoded, it is encodedas 2 and the encoding of X3 isfinished.● Based ona new data matrix is constructedby first removing the third column for X3, then the counting values are added up with the same value combination of X1 and X2, but possibly different values in X3 and then this new data matrix is augmentedwith the corresponding frequencies, and next the rows aresortedin accordance with the descending order of frequencies. A15×2 + 15 ×1frequency-augmented data matrixis obtained as shown in Table 10 for an excerpt of its first 4 rows. The encoding is continuedby restarting from the first row of● Rows 1, 2, 3 inno encoding is done, as X1=C and X2=Japanhave been encoded when being in Row 1 ofyet not all the feature values of these two feature variables are encoded.● Row 4 inas neither X1=B nor X2=US has been encoded, the smallest unassigned integer 2 is assign to them. That is, r1 (B) =r2 (US) =2. Up to now, China is the only value of X2 that has not been encoded and it is encodedas 3. Then, encoding all the feature values of X2 are completed.● Next, the second column of X2fromisremoved. Then the rows are combined and sortedin the same manner as before, resulting in a new 5 ×1 + 5 ×1 frequency-augmented data matrixas shown by Table 11. Next, the encoding is continuedby restarting from the first row of● Rows 1, 2 inno encoding is done, as both X1=C and X1=Bhave been encoded.● Row 3 inas X1=Dhas not been encoded, the smallest possible unassigned integer 3is assigned to it. That is, r1 (D) =3.● Row 4 inas X1=Ehas not been encoded, the smallest unassigned integer 4is assign to it, i.e. r1 (E) =4. Finally, A is the only value of X1that has not been encoded, it is encodedas 5. Therefore, the full encoding of all values of X1is accomplished.In summary, the mappings obtained by Algorithm 2 are as follows:r1 (C) =1, r1 (B) =2, r1 (D) =3, r1 (E) =4, r1 (A) =5;r2 (Japan) =1, r2 (US) =2, r2 (China) =3; r3 (Red) =1, r3 (Silver) =2,which is exactly the same as the outcome of Algorithm 1.Table 9: The first 4 rows ofTable 10: The first 4 rows ofTable 11: The rows ofTheorem 1.1. Algorithms 1 and 2 are equivalent.It is shown that the three seemingly different steps in the two algorithms actually yield exactly the same effect Therefore, the two algorithms are equivalent. Since the mapping of Xi is fromto {1, …, ki} for i=1, …, dc, every such mapping is initializedby a default value, for which 0is chosensince it should not appear in the final output.For the first iteration, by the construction ofits first row has the maximum frequency among all possible combinations of values ofTherefore, encoding the first row ofin Algorithm 2 is equivalent to encoding the cell with the maximum frequency in the hyperrectanglein Algorithm 1.For subsequent iterations, for row j inif and only if ri (xj, i) =0 for all i=1, …, imax, which implies that the cell with the corresponding combination of values in the hyperrectangle is available; otherwise, whenthere must exist an i0 such thathas been encoded, which is equivalent to the unavailable status of the corresponding cell in the hyperrectangle. Therefore, the row in the frequency-augmented reduced data matrix at which Line 9 of Algorithm 2 is executed corresponds to the cell with the largest frequency among available cells in the hyperrectangle.For the dimension reduction step, Algorithm 1 removes the cells containingaltogether, and then adds up the counting values of with the same combinations of feature values ofwhich is equivalent to reconstructing a hyperrectangle using the remaining feature variables only. On the other hand, Algorithm 2 removes the column of adds up the counting values with the same combinations of feature values of and then sorts the newly obtained rows by frequency in descending order, this is equivalent to reconstructing a frequency-augmented reduced data matrix using the remaining feature variables only. To this end, both algorithms yield the same effect of dimension reduction. Therefore, it can be concluded that the two algorithms are equivalent.Joint Encoding is a heuristic algorithm which encodes categorical features in a way that the inherent dependence can be revealed and utilized for classification. After Joint Encoding is applied, categorical features are treatedas if they are discrete and even orderable, in addition to just ordinal features.1.3 Laplace Smoothing for Zero ProbabilitySince the computation of the conditional marginal probabilityis based on the empirical distribution from the training dataset, it is possible that for some combinations of Xi and Ct to end up with a zero probability due to the absence of some relevant information in a finite sample. To overcome this problem, the well-known additive smoothing, called Laplace smoothing, is employed. Laplace smoothing assumes that the training dataset is sufficiently large, so that in a class Ct, artificially adding a small value, let say α> 0, a tuning parameter, to the number of observations with each possible value of a feature variable Xi should make a very mild effect to the empirical distribution of Xi with respect to those observations only in the class Ct, while on the other hand, this approach can successfully resolve the zero probability matter
[0010] . More precisely, for the feature variable Xi with a feature spacethe additive smoothing works as follows:whereis the number of observations in class the Ct having the feature values Nc (X) =t is the number of observations in the class Ct. The so-called add-one smoothingis adoptedby setting α=1, which is one of the most convenient smoothing technique as an interesting special application of Laplace's rule of succession. Further, the common smoothing approach is followedas in the training stage ofBayes, namely, for any given feature Xi with the zero probability problem, that isevaluated in the training set for some t and someadditive smoothing is performed on for any1.4 Comonotone-Independence Bayes Classifier (CIBer)Bayes classifier incorporating comonotonicity is provided, in addition to independence, a particular case of copulas, to characterize the dependence structure among the features. Meanwhile, the comonotonic property among sub-classes of feature variables is extracted by a heuristic search approach inspired in the context of cluster analysis, namely, the Agglomerative Nesting algorithmof
[0013] . In practice, the classifier mostly focuses on discrete features with numerical values, or “discrete features” in short. To this end it is assumed that the feature engineering in Section 1 has been carried out, namely, the discretization for continuous features and joint encoding for categorical features, such that all feature variables are now discrete ones.1.4.1 Empirical conditional joint distribution modellingAlthough a comonotonic random sample can be drawn from their individual inverse CDFsfor all i=1, 2, …, d, in reality, most marginal CDFs are unknown even it is not easy to determine its robust parametric form. In practice, as long as there is a large enough dataset, the empirical distribution functionmay be usedinstead:where x1, …, xn is a random sample observation and 1A is the indicator function for a set A. Yet, for simplicity, is usedin place ofwithout causing any ambiguity.However, for the conditional case, the values of each feature variable are first partitionedbased on its class, and then both the empirical conditional distribution of each feature variable and the joint conditional distribution of the feature vector given the class label are calculated as follows:Definition 1.2. Let X= (X1, …, Xd) be a feature vector and c (X) be its corresponding class label. For every component Xi in X, the empirical conditional cumulative distribution function given c (X) is given by:where NA is the total number of observations in the event A; the empirical conditional joint cumulative distribution function of X given c (X) is given by:Analogous to the fourth statement in Proposition 1.1, the following definition of conditional comonotonicity are shown in [2, 12] .Definition 1.3. The random variables X1, …, Xd in a feature vector X are comonotonic conditioning on c (X) if and only iffor all x= (x1, …, xd) and for every t=1, …, T.Analogous to the fact that classical comonotonicity implies conditional comonotonicity, the following comonotonic analog of Proposition 1.1 to the empirical and conditional casesis obtained as shown in [2, 12] .Proposition 1.2. Suppose that X= (X1, …, Xd) , is a random vector whose marginal cumulative distribution functions given c (X) arerespectively. The following two statements are equivalent:1. X1, …, Xdare conditionally comonotonic given c (X) ,2. (X1, …, Xd|c (X) =t)wherefor any i∈ {1, …, d} .Based on Proposition 1.2, computing the conditional joint probability of X1, …, Xd given the class Ct is equivalent to finding the largest measurable subset of [0, 1] such that for any u in this subset, Similarly in practice, the trueis approximatedwith its empirical versionRecalling that the cumulative distribution function of a discrete random variable partitions the interval [0, 1] into k disjoint sub-intervals, the calibrated method is obtainedfor conditional empirical joint probabilities under the comonotonicity.Assume that X= (X1, …, Xd) is a comonotonic random vector. For any component Xi of X, let Xi have sample space ofwhereThen the conditional joint probability mass of X given the class under the comonotonic setting, denoted by Pcomo (X=s|c (X) =t) , is such thatwherefor any i=1, 2, …, d, andis adopted wheneverEquation 5 demonstrates that the conditional joint probability of comonotonic features is equal to the length of intersection of all intervals representing the conditional marginal probability mass for each of observationIn the next step, focus is placed on determining the comonotonic dependence among the features. The method is named “Clustered Comonotonicity” .1.4.2 Clustered ComonotonicityTreating all features as individually comonotonic could be toohence a more appropriate way for classification problem is to partition the features into several subgroups and treat the features within the same subgroup as comonotonic while the totality of features in onesubgroup as independent from those in another subgroup. However, finding the optimal partition is time-consuming because the searching complexity grows exponentially as the number of features increases. Hence, an efficient heuristic search is needed to approximate this optimal partition instead of traversing all possibilities, and this problem can be solved by clustering. From the perspective of machine learning, “clustering” is an unsupervised learning algorithm for partitioning the unlabeled data into groups in which the data objects within the same group are as similar as possible
[0011] . A metric is chosen for measuring the distance between any two features, and any two features with a small distance metric value are clustered into the same group. Some popular metrics include the Euclidean distance, Manhattan distance, and Minkowski distance [9] . Commonly, there are four statistical metrics that can be adopted to measure the comonotonic dependence, namely the Normalized Mutual Information U, Pearson's r, Kendall's τ, and Spearman's ρ. In practice, these four statistical metrics are considered as a hyper-parameter, where the one with the best performanceis always chosen. Four commonly adopted statistical metrics are recalledeven in their natural empirical form. Here Y and Z are any two distinct features with observed pairs (y1, z1) , …, (yn, zn) , then:1. Normalized Mutual Informationstemming from probability theory and information theory, this measure quantifies the dependence between two features by information entropy:wheredenotes the empirical mutual information between Y and Z with the following expression:wherestands for the corresponding empirical probability mass function, andstand for the sample space of Y and Z, respectively. andare the empirical entropy for Y and Z defined respectively as:2. Pearson’s
[0020] : it measures the magnitude and direction of linear association between two continuous features together following a multivariate normal distribution:whereare respectively the sample means of Y and Z.3. Kendall’s
[0014] : this metric is non-parametric which quantifies the dependence between two features Y and Z. Statistically speaking, the pair of observations (yi, zi) and (yj, zj) for i≠j is said to be concordant ifsgn (yi-yj) =sgn (zi-zj) ;otherwise, it is said to be discordant. Kendall's τ computes the difference between the number of concordant pairs, denoted by C, and the number of discordant pairs, denoted by D, and then divide the difference by the total number of pair combinations4. Spearman’s
[0023] : it measures the rank correlation between two variables, or equivalently, the dependence between the rankings of the two variables, as the value of Spearman's ρ between Y and Z is equal to that of Pearson's r between RY and RZ, the rank variables of Y and Z, respectively. Mathematically, letdenote the rankings of the observed pairs, then Spearman's is defined as:whereandare respectively the average rankings of Y and Z.To facilitate the unified investigation, for any two random variables Y and Z in the rest of this article, the sample value of any one of the above statistical dependence metrics is calledas the sample association measureFor the purpose of classification, any two distinct features Xi and Xj are taken as comonotonic if the sample association measure is greater than a pre-determined threshold δ∈ [0, 1] , again a hyper-parameter. However, all the aforementioned statistical dependence metrics are measurements for “similarity” but not “dissimilarity” as generally used in clustering. To this end, a notion of distance matrix Ais introducedas follows:Definition 1.4. Given a d-dimensional random vector X= (X1, …, Xd) , a d ×d matrix A:= (ai, j) is said to be a distance matrix if its entries satisfy:ai, j: =1-|asso (Xi, Xj) |, for i, j=1, …, d,where asso (Xi, Xj) is the theoretical counterpart of the sample association measure of Xi and Xj as indicated above.In a similar manner, the empirical distance matrix can be defined aswith entriesfor i, j=1, …, d by using the empirical association measures in place. This matrix is useful in the following hierarchical clustering algorithm, called Agglomerative Nesting (AGNES) , first proposed in
[0013] , which were adopted to cluster those d input features. The implementation of this algorithm relies on an additional notion of distance measure between two disjoint clusters of features, rather than just one feature against another, where the association measure as introduced aboveis used. Consider two disjoint subset of featuressuch thatwhere m1 and m2 are the number of features inandrespectively.Average linkage is chosen as the distance measure betweenandsince it considers all the features inside each cluster; it is defined as the average distance among all possible cross-cluster pairs of features as shown in
[0010] :As a bottom-up approach for hierarchical clustering, the AGNES algorithm begins with all of the d features as singletons, that is, the initialized clusters are {1} , …, {d} . Two clusters, for example, two disjoint subsets of {1, …, d} , andare then iteratively mergedinto one depending on whether theiris small or not. Therefore, the total number of clusters reduces by one in each iteration, before the termination condition as determined by the maximum acceptable distance for the merging distance is met. Otherwise, the algorithm terminates with only one cluster left, simply the {1, …, d} , meaning that all features are clustered-comonotonic. The pseudo-code of AGNES is shown by the following Algorithm 3.Algorithm 3 Agglomerative Nesting algorithm (AGNES)Input: Distance matrix A; Cluster-wise distance metricfor any two clustersandMaximum cluster-wise distance MaxDistOutput: Multiple clustersof features1: 2: fori←1, …, ddo3: 4: end for5: 6: whileShortestDist≤MaxDistdo7: 8: 9: 10: 11: end while12: returnAfter partitioning the features into different comonotonic clusters, it is computed that the conditional joint probability density function measured by Clustered Comonotonicity.Definition 1.5. It is assumed that the features in X= (X1, …, Xd) are partitioned into nc clustersor equivalently, into the following groupsfor ν=1, …, nc. Given the class Ct and the outcome feature valuesfor the feature i, for i=1, …, d, the conditional joint probability mass is calculated bywhere Pcomo is the joint probability of comonotonic random variables defined in Equation (5) .1.4.3 Calibration of Probabilities for Highly Dependent FeaturesAs mentioned in Section 1.4.2, the highly dependent features, including both highly positively (with association measure close to 1) or highly negatively (with association measure close to -1) associated features, are grouped into one cluster so that they are regarded as comonotonic by the modeling. For instance, considering a pair of feature variables Xi and Xj, for i ≠j, forming a cluster, then from Equation (5) , the joint probability ofandgiven the class Ct is:On one hand, if Xi and Xj are positively associated with a large value ofclose to 1, the empirical distribution functionsandare both monotonic in the same direction in the argumentsandrespectively, and so with a minimal possible gap due to a definite change, all implying that (6) is most likely non-zero. Hence, the zero probability problem is not normally encountered under this case. On the other hand, if Xi and Xj are strongly negatively associated that means the value ofare so close to -1, one of the empirical distribution functions is increasing, let sayis increasing inwhile the other is decreasing, let saydecreases inand hence there is a higher possibility that Equation (6) admits a zero value; since this zero probability problem jeopardizes the implementation of the classification task, this matter can be overcome via the following calibration procedure that converts highly negative associations to highly positive ones. For instance, suppose that within a cluster, two feature variables Xi and Xj are empirically negatively associated, that isFrom the implementation perspective, a feature variable is selectedas a reference object, let say Xi, and perform the transformation of Xj to X′j: =-Xj for the alternative feature variable Xj, then (6) becomes:This procedure converts the negative association to the positive one, so that by the former discussion, the problem of encountering the zero probability problem could likely be much reduced.In general, for the case offeature variablesin a cluster for ν=1, …, nc, if all of them are highly positively associated, then (5) is evaluated directly without the need for any feature transformation; otherwise, the feature variables can be partitioned into two sub-groups, let sayandsuch that the feature variables within the same sub-group are highly positively associated with one another, yet the two groups are highly negatively associated, and one sub-group is selectedas the reference group, let sayand then carry out the same aforementioned transformation to all the feature variables in another sub-group, i.e. for In this way, all the features within a cluster will be positively associated, and the zero probability problem is inhibited.2.1 Experiment Setup and Training and Testing ProcedureThe setup and experimental procedure to be adopted for studying each of the four datasetsare first elaborated. While each dataset under investigation in this section contains tens or even hundreds of thousands of records, it suffices for us to only use a small, yet representative enough, portion of data points in the dataset throughout each experiment for illustrative purpose in this section. To this end, the stratified sampling approach is adoptedand a subset of size 10,000 of the original datasetis drawn. The resulting subset is called the “population dataset” and regarded as the full dataset throughout the course of the corresponding empirical study. It is also noted that the feature engineering procedure introduced in Section1 is performed using the population dataset, and then the feature variables are clusteredbased on a carefully chosen association measure. In particular, Spearman’s ρ is selected for all four datasets in this section, as the resulting performance after clustering based on this measure surpasses the performance if other association measures are used. Besides, the hyperparameters of all candidate classifiers are tuned manually so as to enhance their performances as much as possible. In particular, a grid search is carried out in order to determine the threshold for joint comonotonicity, namely, by setting the threshold at 0.1, 0.2, ..., 0.9, respectively, and choosing the one that results in the best performance for CIBer; while this procedure is fairly ad hoc, using the resulting threshold can already demonstrate the outperformance of CIBer, hence it suffices for us to implement this one-step grid search only. Furthermore, due to the natural imbalanced nature of the datasets concerned, the rebalancing techniques, namely over-sampling and under-sampling, can be appliedto the training dataset after the train-test split on the population dataset, so as to avoid the overfitting in favor of the dominant class. Finally, for the sake of fair comparison, the same training and testing datasets are always used for each of the candidate algorithms.The empirical studies are designed to achieve three objectives: i) verification of the performance of the candidate models using conventional model validation methods; ii) investigation on the robustness of a candidate model under different levels of training ratio; and iii) comparison of the predictive power among the candidate models under various same level of training ratio.For the first objective, the standard five-fold cross validation approachis adopted, where the population dataset is randomly partitionedinto five subsets of equal size in a stratified manner. For the k-th iteration, k = 1, ..., 5, the k-th subset is takenas the testing set, while the classifiers are trained by using the remaining four subsets together as the training set, by then the trained classifiers areconfiguredto make a prediction on the chosen testing set, and compute the corresponding testing error rate accordingly. For a robust classifier, the testing error should be as small as possible on average, while the error rates from the five iterations should be comparable with one another.For the second objective, the following procedureis carried out:1. Draw a full training dataset Τ from the population dataset, which contains 70%of the observations in the original one, and the remaining observations together form the testing dataset;2. For each i = 1, ..., 7, draw a subset Ti with replacement from the full training dataset T as the real training dataset, containing of the observations in the full training dataset, which corresponds to a training ratio of i × 10%;3. Using each of the real training datasets Ti obtained in Step 2, the candidate models are fit accordingly, then predictions are made on the testing dataset using each of the fitted model, and compute the corresponding error rates;4. Repeating Steps 1–3 for N = 100 times (the number of iterations is chosen because the results become stabilized for 100 or moreiterations) , and for each i = 1, ..., 7, the testing error ratesj = 1, ..., 100are obtained, for each candidate model, based on which the respective 95%confidence interval is computed for the testing error rates using each candidate model, that is given by:whereandare respectively the sample mean and sample standardj = 1, ..., 100, and t0.975, 99 = 1.9842 is the 97.5-th percentile of Student’s t distribution with N -1 = 99 degrees of freedom.As for the third objective, the full training dataset T can be usedfor the model fitting, and then the receiver operating characteristic (ROC) curve is plottedfor each classifier, depicting the relationship between the true positive rate and the false positive rate at different decision thresholds. Particularly, the ROC curve of an effective classifier is configured to be as close as possible towards the upper left-hand corner of the unit square, while an ROC curve that lies below or on the main diagonal line of the unit square corresponds to a random classifier with the least efficiency as shown in
[0030] . Moreover, the area under the curve (AUC) for each ROC curve obtained is also calculated accordingly, and a larger value of the AUC indicates a better prediction power of the model.2.2 Insurance Product Cross-sell PredictionThe health insurance dataset used in this subsection records the biometrics and vehicle condition of 380,000 policyholders of a health insurance, each of whom owns a vehicle, the dataset contains 10 feature variables, namely Gender, Age, Driving License, Region Code, Previously Insured, Vehicle Age, Vehicle Damage, Annual Premium, Policy Sales Channel, and Vintage (the number of days the insured is associated with the company) ; while the Response records whether or not the individual considers purchasing a car insurance, and so it stands for a label. It is emphasized that a large portion, over 50%, of feature variables are categorical in nature, namely Gender, Driving License, Previously Insured, Vehicle Damage, Region Code and Policy Sales Channel, the first four of them are binary by default. This confidence interval stems from the one-sample t-test on the population mean with unknown variance.This dataset is first usedto demonstrate the essence of including categorical feature variables in the classification procedure. To this end, several representative classifiers are fit besides CIBer, namely Bayes, Decision Tree and multi-layered perceptrons, using the full training dataset T with or without categorical feature variables, respectively, and then plot the corresponding ROC curves, and also calculate the AUC values and accuracy rates accordingly as shown in Figure 2, in which each color represents a type of classifiers, and solid (resp. dashed) curves correspond to the presence (resp. absence) of categorical variables in the dataset. As shown in Figure 2, while CIBer attains the best performance among the four classifiers in either one of the two settings with the presence of categorical feature variables or not, another remarkable observation is that the inclusion of categorical feature variables increases the accuracy rate and prediction power not only for CIBer, but also for all the other classifiers. The result further justifies the essence of including categorical feature variables throughout this section and in actual classification tasks.Next, the clustering result of feature variables after feature engineeringis investigated, offering economic insights regarding the rationale behind such clustering. Using Spearman’s ρ as the association measure, with 0.6 as the threshold of joint monotonicity which is determined by grid search, two comonotonic clusters of feature variables in this datasetare obtained, namely: (Age, Vehicle Age, Policy Sales Channel) and (Previously Insured, Vehicle Damage) . In particular, the comonotonicity structure among feature variables in the first cluster is somewhat natural, as an elder individual is more likely to have owned a vehicle for a longer period of time compared with a younger one, while the younger generation is more inclined to purchase insurance products in a modernized way, let say via online platforms, than the older generation who prefers to consult insurance agents in person before signing the contract. On the other hand, a strong negative dependence can be observed between Previously Insured and Vehicle Damage from the dataset, which is justifiable due to the existence of underwriting in the insurance industry. For a careless driver who has undergone a number of accidents in this driving history and gotten severe damages to the vehicle, by virtue of the underwriting procedure, the insurer would either refuse to offer an insurance to the driver, or set an extremely large premium such that the driver may even be unable to afford, this may explain why damage records may indicate a lower possibility of being insured in the past. By investigating the feature variables in each of these two clusters collectively, it is natural for CIBer to yield a stronger prediction power over other classifiers thanks to its built-in involvement with strong or weak dependence. Furthermore, CIBer can also reveal the strong dependence structure among the feature variables in an intuitive and natural manner, while other classifiers either leave such dependence structure out of consideration, such asBayes that relies heavily on the conditional independence assumption, or only make implicit use of the dependence relations such that it is infeasible for one to reveal the dependence structures from the outcomes, let alone offering a valid justification from the economic viewpoint accordingly, including Decision Tree and multi-layered perceptrons. In particular, for Decision Tree, the set of feature variables along various branches of decision rules is more likely different from one another and renders the inference on any dependence structure awkward. For Multi-layered Perceptrons, it is easy to unveil the linear dependence among feature or hidden variables in each intermediate layer, as reflected by the corresponding coefficients with similar values and signs, but once after a nonlinear activation across to the next layer, the dependence structure suddenly becomes unapparent. Hints on a better performance in classification tasks by using CIBer against all other representative classifiers can be witnessed by more analysis as follows.The result of the five-fold cross validation is presentedin Figure 3, where NB stands forBayes, MLP stands for Multi-layered Perceptrons, DT stands for Decision Tree, and LR stands for Logistic Regression. It is observedfrom Figure 3 that CIBer achieves the lowest testing error rate among the candidate classifiers considered here, and the error rates are fairly stable across the five iterations with the corresponding random initial seeds. It is also noteworthy that the categorical variable Policy Sales Channel can take over 100 possible values, and in view of the size of 7,000 of the full training dataset T, the training data points are fairly sparse, this may negatively affect the prediction accuracy of the classifiers, and thus provides a justification for the average testing accuracy of CIBer at around 85%only. Anyhow, this result can already evidently show the outstanding performance of CIBer under the conventional standard. Next, the robustness of CIBer is comparedwith other classifiers under different training ratios by following the procedure as stated in Section 2.1. The Steps 1–3 are repeated for 100 times as the performances of the classifiers become stabilized after 100 or more iterations. The 95%confidence intervals for the testing error rates at training sizes of 0.1, ..., 0.7are then plotted as shown inFigures 4A and 4B. It can be observed that the confidence intervals are fairly narrow at all training sizes, this is true not only for CIBer, but also for all other classifiers, which verifies the stabilized performances of all classifiers after 100 iterations as mentioned above. Among all candidate models, CIBer achieves the lowest testing error rates for training sizes lower than 40%, and it remains fairly competitive with other commonly perceived strong enough learners at larger training sizes, with a difference of less than 1%in the testing error compared with MLP and Decision Tree. Overall speaking, CIBer is more robust than other representative classifiers, including the widely acknowledged top and widelyused classifiers aforementioned.As another measurement of predictability, the ROC curves using the full training dataset T (i.e. with the presence of categorical features) are also plottedand the associated AUC values arecomputedaccordingly as shown in Figure 5. This figure conveys a clear-cut message that the prediction power of CIBer surpasses all other classifiers, as its corresponding ROC curve in orange is the closest to the upper left-hand corner of the unit square among all curves. This finding is further verified by the AUC value of 0.93 achieved by CIBer, which surpasses those of all the others. As mentioned earlier, an important reason of the relatively inferior predictability of other classifiers is the absence of clustering on feature variables with strong dependence, especially for the categorical ones, therefore those classifiers cannot reveal and utilize the hidden connection between ALL feature variables, and consequently resulting in weaker performances compared with that of CIBer.2.3 Default Premium Payment PredictionThe insurance dataset records the personal profile details and premium payment history of 79,853 policyholders, and there are 10 feature variables: Percentage (the percentage of premium paid by cash or credit card) , Age (in days) , Underwriting score, Monthly income, Count 3-6 (count of premium payments late by 3–6 months) , Count 6-12 (count of premium payments late by 6–12 months) , Count over 12 (count of premium payments late by more than 12 months) , On-time premium (count of premium payments made on time) , Sourcing channel and Residence area; only the final two feature variables are categorical, while the former one has 5 categorical values, and the latter takes binary values of either “Urban” or “Rural” . The binary response variable Target takes the value of 0 if the policyholder defaults on the premium payment, and is set to 1 otherwise, and for sure this is the label for the policyholder. As in the previous subsection, some justifications in the economic context regarding the clustering result of the feature variables concerned after feature engineeringare provided. Again, Spearman’s ρ is adopted as the association measure, but a threshold of 0.4 for joint comonotonicity is determined by grid search. Herein, only one comonotonic cluster of feature variables in this dataset, namely (Count 3-6, Count 6-12, Count over 12) is obtained. The strong dependence structure among these three variables can be understood clearly, since a client that delays the premium payments by at least 3 months may likely experience some long-term financial distress, resulting in a higher possibility of an even longer delay of premium payments. It is also worth noting that an insured may be struck by such a financial distress out of a bad fortune without any notice in advance, regardless of his / her personal background recorded in the dataset, for example, the salary level at the issuance of the policy. Interestingly, this may justify why other feature variables such as Monthly income do not fall into this comonotonic cluster.As mentioned above, the results of five-fold cross validation are shown in Figure 6. The outperformance of CIBer compared with all the other classifiers is obvious, as it achieves the lowest error rate of 5%on average, and its error rates across the five folds are stable; in comparison, as the classifier with the best performance in the remaining ones, Decision Tree results in a much higher error rate close to 10%overall. Therefore, it is concluded that the performance of CIBer surpasses the other classifiers under five-fold cross validation again for this typical dataset.As for comparing the robustness of CIBer with other classifiers under different training ratios, the 95%confidence intervals for the testing error rates at training sizes of 0.1, ..., 0.7 are shown in Figures 7A and 7B; the Steps 1–3 in Section 2.1 are repeated for 100 times as the performances of the classifiers are stabilized after 100 or more iterations. Among all candidate models, no one but Decision Tree stands a chance of challenging CIBer for smaller training sizes, as both of them achieve almost the same testing error rates when the training size is below or equal to 30%, while for larger training sizes beyond 40%, CIBer greatly outperforms all other classifiers, including Decision Tree, as depicted clearly in Figures 7A and 7B. This result convincingly demonstrates the superior robustness of CIBer against the other classifiers.Finally, the ROC curves of the candidate classifiers using the full training dataset T and the associated AUC values are shown Figure 8. Once again, the ROC curve of CIBer, orange in color, is closer to the upper left-hand corner of the unit square than any other curves, and AUC value of 0.97 achieved by CIBer is also the largest one among the AUC values obtained for all classifiers. Therefore, it is concluded that for this dataset, the prediction power of CIBer is the strongest among all classifiers considered.2.4 Insurance Claim PredictionClaim prediction plays a vital role in the pricing of insurance products as the accuracy of such prediction is directly connected with the profit of the insurer, and a well-designed risk classification mechanism is crucial for more accurate predictions on the claim of a particular policyholder. To this end, in this subsection, the performance on claim prediction for travel insurance and vehicle insurance productsare compared using CIBeragainst other common representative classifiers.2.5 Travel InsuranceThe travel insurance dataset used in this subsection includes the personal characteristics and insurance-related information of approximately 18,000 policyholders of various travel insurance products, with the 10 feature variables as follows: Age, Gender, Travel duration, Net sales (of travel insurance policies) , Agency commission, Agency name, Agency type, Distribution channel, Product name, and Travel destination; the categorical ones among them are Gender, Agency name, Agency type, Distribution channel, Product name, and Travel destination; here Gender is the only one with binary values. The binary response variable, Target, the label now, records whether or not the policyholder will file a claim.For the clustering on feature variables in this dataset, Spearman’s ρis adoptedas the association measure, and the threshold of joint comonotonicity is set to 0.8 by grid search. For this particular dataset, two clusters of comonotonic feature variables are identified, namely: (Net sales, Agency commission) and (Agency name, Travel destination) . The dependence structure within the first cluster is obvious, as the amount of commission received by agents is often a portion of the net sales in the insurance industry. Meanwhile, the second cluster of feature variables is also reasonable since travel insurance agencies would usually target on a few favorable or exotic travel destinations, that is, an agency may want to sell travel insurance products with destinations in western Europe only, while another agency would mainly focus on products for those who travel to North America. Such differentiation could be the main reason behind the strong dependence between the two feature variables in the second cluster.Figure 9 shows the results of five-fold cross validation, which once again illustrates the superior outperformance of CIBer compared with all the other classifiers. In particular, while competitive results are observed using Decision Tree, its overall testing error rate is indeed slightly higher than CIBer. Therefore, the same conclusion can be reached as in the previous subsections that the performance of CIBer is the best among all the candidate classifiers under five-fold cross validation.Next, the 95%confidence intervals for the testing error rates at training sizes of 0.1, ..., 0.7 are shown in Figures 10A and 10B; same as in the previous experiments, Steps 1–3 in Section 2.1 are repeatedfor 100 times, by then the stabilized performances of the classifiersare observed. It can be immediately noticed in Figures 10A and 10B that Decision Tree poses a strong challenge by attaining a lower testing error rate than CIBer but only for small training sizes, and certainly it could be upon the effect of the initial seed chosen. Moreover, by the nature of this dataset, namely the majority of feature variables are either discrete or categorical ones, it is reasonable for Decision Tree to be fit for this classification task. Nevertheless, upon a larger training ratio, CIBer can learn from the training data points more effectively due to the reduced sparsity of the data in the training set, henceforth its testing error rate experiences a notable phase transition, as it decreases in a larger magnitude than any other classifiers, and it even ends up surpassing Decision Tree if the full training dataset T (not the whole dataset! ) is used in the training stage. To this end, CIBer can still show higher robustness than other classifiers even for this dataset where Decision Tree should attain the best performance.More solid evidence on the superior performance of CIBer comes from the ROC curves of the classifiers using the full training dataset T and the associated AUC values, as in Figure 11. Indeed, the ROC curve of CIBer in orange almost coincides with the “L” curve along the left side and the roof of the unit square, and the corresponding AUC value of 0.97 is also very close to 1, which indicates a perfect classifier. Therefore, it is evident that CIBer yields the highest prediction power among those representative classifiers.2.6 Vehicle InsuranceThe vehicle insurance dataset
[0043] considered here contains approximately 590,000 data points, and there are 57 feature variables in total, including 10 continuous feature variables, 33 discrete ones and 14 categorical ones, and the label / response variable Target records whether or not the insured files a claim. All the names of feature variables that have been encrypted by the insurance company are remarked here, such that only the type of each feature variableis identified, without revealing the nature of them, let alone providing economic interpretations on the clustering results. Nevertheless, using Spearman’s ρ as the association measure, and 0.5 as the threshold of joint comonotonicity, which is determined by grid search, the clustering procedure reveals 5 clusters of comonotonic feature variables, namely (ind 12, ind 14) , (ind 16, ind 18) , (reg 01, reg 02, reg 03) , (car 03, car 05) , and (car 12, car 13) . Even though their economic interpretations are not clear, the vital importance of taking these clusters into account in improving the classification accuracy can indeed be illustrated in the results below.As before, the results of five-fold cross validation as shown in Figure 12are first investigated. The testing error rates of CIBer over the five folds are quite stabilized, and are significantly smaller than those of all the other classifiers. This observation evidently shows the superior performance of CIBer among all candidate classifiers under the criterion of five-fold cross validation.The dominating superiority in terms of the robustness of CIBer under different training ratios can be verified in Figures 13A and 13B, which depicts the 95%confidence intervals for the testing error rates at training sizes of 0.1, ..., 0.7. The Steps 1–3 in Section 2.1 are repeatedfor 100 times, as the performances of the classifiers become stabilized since then. All the other candidate models can only result in a testing error rate no less than 10%regardless of the training size, yet the training error of CIBer is consistently far below 5%for any training size as expected.Moreover, the prediction power of CIBer against other classifiers is indicated by a comparison on the ROC curves using the full training dataset T and the corresponding AUC values as shown in Figure 14. It is obvious that the orange ROC curve of CIBer is closest to the upper left-hand corner of the unit square, and it also yields the largest AUC value of 0.97. As a result, the prediction power of CIBer surpasses all other representative classifiers.Moreover, Figure 15shows ROC curves and the associated AUC values for various classifiers in travel insurance claim prediction; Figure 16shows testing error rates of the classifiers for vehicle insurance claim prediction, via five-fold cross validation; Figures 17A and 17B show testing error rates for different training sizes for vehicle insurance claim prediction; and Figure 18shows ROC curves and the associated AUC values for various classifiers in vehicle insurance claim prediction.From Classification to RegressionHeuristically, Bayes-type classifiers cannot be extended to the context of regression. amethod for extending CIBer to regression is provided. First, referring to Figure 19, a K-means clustering algorithm is employedto discretize the continuousresponse variables to different classes, where K is a hyperparameter for tuning.Based on the clustering result, the continuous response variables are transformedinto categorical. Then this “classification” problem is solvedsince the continuous response variables have been transformed into categorical. Mathematically, givencontinuous responses in training data, the predicted value (as a posterior mean given x) isReal-Data ApplicationCIBer is implementedfor a House Rent dataset, which records 10 feature variables representing houses thatare available for rent. First, the experimental procedure adopted for the dataset is stated. The dataset contains4746 records, it suffices to undersample a small, yet representative enough, portion of the originaldataset, as the training dataset has a total 3796 number of data points. After that, 950 data points are randomly picked as the testing dataset. This process is repeated 100 times, and boxplot of MeanAbsolute Error (MAE) is adopted to present the results. Although these 100 experiments are not independent, this bootstrapped boxplot can still give us an overview of each regressor’s robustness and effectiveness.The performance of CIBer is comparedwith two commonly used regression methods, linear regressionand regression tree. There are a few categorical feature variables in this dataset, namely,● Floor (3)● Area_Type (4)● Area_locality (5)● City (6)● Furnishing_Status (7)● Tenant_Preferred (8)● Point_of_Contact (10)The continuous response variable is Rent, the Rental prices of the houses. The rentalprices are predicted, given the feature variables in the dataset. By implementing the described procedure on the dataset, the boxplot shown in Figure 20is obtained.The boxplot reveals that CIBer exhibits a lower median Mean Absolute Error (MAE) compared toregression tree, and it significantly outperforms linear regression. While Regression Tree displays a relativelynarrow range in the box plot, it is noteworthy that CIBer mostly outperforms regression tree in terms ofMAE.6 ConclusionIn order to carry out the risk classification task which is one of the most prevalent practices in the insurance industry, various classes of machine learning algorithms have been adopted to investigate, yet some of them such as Decision Trees are designed for categorical feature variables but performs badly when continuous feature variables are involved, while others such as MLP, SVM and logistic regression lack systematic treatments on categorical feature variables, complicating them by using the one-hot encoding approach, or even more extreme to discard them altogether. Besides, as one of the traditional statistical learning algorithms in classification tasks, Bayes possesses the critical drawback of ignoring any possible dependence structure among feature variables. To this end, a systematic treatment on all continuous, discrete and categorical feature variables is provided at a time under the same systematic approach, via the introduction of an original feature engineering approach; in principle, all are converted to discrete ones. Based on this feature engineering, CIBer that incorporates a simple yet powerful dependence structure by utilizing the commonly used notion of comonotonicity in actuarial science is provided. The resulting superior power of CIBer is evident as shown in several real insurance datasets which cover various important aspects in the insurance industry, altogether give us confidence about its potential widespread use in InsurTech in the future.Besides actuarial science, CIBer may also find its immediate utmost use in many other fields, for example, the preliminary studies indicate that CIBer also yields a remarkable performance in some representative scenarios in the field of quantitative finance, productions and logistic research, advertising and marketing science, pedagogical education research, social science and humanity subjects. The outperformance of CIBer against Decision Trees has already been evidently demonstrated and since Random Forest is the boosted version of Decision Trees with the incorporation of ensemble learning techniques, the boosted version of CIBer should outperform Random Forest.EXEMPLARY EMBODIMENTSEmbodiment 1. A method for making predictions based on a classifier, comprising:receiving a multivariate input having feature variables;making a prediction based on a comonotone-independence Bayes classifier (CIBer) via performing conditional probability mass function on the feature variables; andoutputting a predictive class.Embodiment 2. The method of embodiment 1, wherein the making prediction based on the comonotone-independence Bayes classifier (CIBer) comprises a joint encoding to artificially insert ordering in categorical features.Embodiment 3. The method of embodiment 2, wherein the joint encoding is configured to preserve inherent dependence among the categorical features.Embodiment 4. The method of embodiment 3, wherein the preserving inherent dependence among the categorical features comprises obtaining frequencies of grouping of values of the feature variables.Embodiment 5. The method of embodiment 2, wherein the joint encoding is configured to encode categorical features to obtain inherent dependence for classification.Embodiment 6. The method of embodiment 1, further comprising performing Laplace smoothing for zero probability before outputting the predictive class.Embodiment 7. The method of embodiment 1, wherein the making prediction based on a comonotone-independence Bayes classifier (CIBer) comprises configuring the CIBer for regression.Embodiment 8. The method of embodiment 7, wherein the configuring the CIBer for regression comprises configuring a K-means clustering method to discretize continuous response input variables to different classes wherein K is a hyperparameter for tuning, and based on the clustering result, transforming the continuous response input variables into categorical variables.Embodiment 9. The method of embodiment 1, wherein the making prediction based on a comonotone-independence Bayes classifier (CIBer) comprises optimally partitioning the feature variables into a plurality of subgroups and treating feature variables within a same subgroup as comonotonic, while treating feature variables in one subgroup as independent from feature variables in another subgroup.Embodiment 10. The method of embodiment 9, wherein the optimally partitioning is determined by a clustering method.Embodiment 11. A method for making predictions based on a comonotone-independence Bayes classifier (CIBer) , comprising:step one: finding a combination of values of two feature variables with the highest frequency and encoding the corresponding feature values as 1;step two: finding a combination with the highest frequency within those of unencoded values of the feature variables, and encoding the corresponding values by the next unassigned integer;step three: repeating step two until a feature variable has precisely one value left that is not encoded and then automatically assigning to it the next unassigned integer; andstep four: if a condition in step three is true for both feature variables, then the same integer is assigned to the values of both feature variables; if not, and if the remaining feature variable has two or more values that are not encoded, then its remaining values are encoded sequentially in descending order of their corresponding marginal.Embodiment 12. A non-transitory computer readable medium having stored therein program instructions executable by a computing system to cause the computing system to perform a method for making predictions based on a classifier, the method comprising:receiving a multivariate input having feature variables;making a prediction based on a comonotone-independence Bayes classifier (CIBer) via performing conditional probability mass function on the feature variables; andoutputting a predictive class.Embodiment 13. The method of embodiment12, wherein the making prediction based on the comonotone-independence Bayes classifier (CIBer) comprises a joint encoding to artificially insert ordering in categorical features.Embodiment 14. The method of embodiment13, wherein the joint encoding is configured to preserve inherent dependence among the categorical features.Embodiment 15. The method of embodiment14, wherein the preserving inherent dependence among the categorical features comprises obtaining frequencies of grouping of values of the feature variables.Embodiment 16. The method of embodiment13, wherein the joint encoding is configured to encode categorical features to obtain inherent dependence for classification.Embodiment 17. The method of embodiment12, further comprising performing Laplace smoothing for zero probability before outputting the predictive class.Embodiment 18. The method of embodiment 12, wherein the making prediction based on a comonotone-independence Bayes classifier (CIBer) comprises configuring the CIBer for regression.Embodiment 19. The method of embodiment 18, wherein the configuring the CIBer for regression comprises configuring a K-means clustering method to discretize continuous response input variables to different classes wherein K is a hyperparameter for tuning, and based on the clustering result, transforming the continuous response input variables into categorical variables.Embodiment 20. The method of embodiment 12, wherein the making prediction based on a comonotone-independence Bayes classifier (CIBer) comprises optimally partitioning the feature variables into a plurality of subgroups and treating feature variables within a same subgroup as comonotonic, while treating feature variables in one subgroup as independent from feature variables in another subgroup.All patents, patent applications, provisional applications, and publications referred to or cited herein are incorporated by reference in their entirety, including all figures and tables, to the extent they are not inconsistent with the explicit teachings of this specification.It should be understood that the examples and embodiments described herein are for illustrative purposes only and that various modifications or changes in light thereof will be suggested to persons skilled in the art and are to be included within the spirit and purview of this application. In addition, any elements or limitations of any invention or embodiment thereof disclosed herein can be combined with any and / or all other elements or limitations (individually or in any combination) or any other invention or embodiment thereof disclosed herein, and all such combinations are contemplated with the scope of the invention without limitation thereto.REFERENCES[1] M., Ayuso, M., and Guillen, M. Modelling different types of automobile insurance fraud behaviour in the spanish market. Insurance: Mathematics and Economics 24, 1-2 (1999) , 67–81.[2] Breiman, L. Description of chlorine tree development and use, 1978.[3] Burges, C.J.A tutorial on support vector machines for pattern recognition. Data mining and knowledge discovery 2, 2 (1998) , 121–167.[4] Catlett, J. On changing continuous attributes into ordered discrete attributes. In European working session on learning (1991) , Springer, pp. 164–178.[5] Chen, Y., Cheung, K.C., Choi, H.M.C., and Yam, S.C.P. Evolutionary credibility risk premium. Insurance: Mathematics and Economics 93 (2020) , 216–229.[6] Cheung, K.C. Characterizations of conditional comonotonicity. Journal of Applied Probability 44, 3 (2007) , 607–617.[7] Cover, T., and Hart, P. Nearest neighbor pattern classification. IEEE transactions on information theory 13, 1 (1967) , 21–27.[8] Deelstra, G., Dhaene, J., and Vanmaele, M. An overview of comonotonicity and its applications in finance and insurance. In Advanced mathematical methods for finance. Springer, 2011, pp. 155–179.[9] Denuit, M., Hainaut, D., and Trufin, J. Effective statistical learning methods for actuaries I: GLMs and Extensions. Springer, 2019.
[0010] Denuit, M., Hainaut, D., and Trufin, J. Effective statistical learning methods for actuaries III: Neural Networks and Extensions. Springer, 2019.
[0011] Denuit, M., Hainaut, D., and Trufin, J. Effective statistical learning methods for actuaries II: Tree-Based Methods and Extensions. Springer, 2020.
[0012] Dhaene, J., Denuit, M., Goovaerts, M.J., Kaas, R., and Vyncke, D. The con-cept of comonotonicity in actuarial science and finance: applications. Insurance: Mathe-matics and Economics 31, 2 (2002) , 133–161.
[0013] Dhaene, J., Denuit, M., Goovaerts, M.J., Kaas, R., and Vyncke, D. The con-cept of comonotonicity in actuarial science and finance: theory. Insurance: Mathematics and Economics 31, 1 (2002) , 3–33.
[0014] Dhaene, J., Vanduffel, S., Goovaerts, M.J., Kaas, R., Tang, Q., and Vyncke, D. Risk measures and comonotonicity: a review. Stochastic models 22, 4 (2006) , 573–606.
[0015] Dougherty, J., Kohavi, R., and Sahami, M. Supervised and unsupervised dis-cretization of continuous features. In Machine learning proceedings 1995. Elsevier, 1995, pp. 194–202.
[0016] Duda, R.O., Hart, P.E., and Stork, D.G. Pattern classification and scene analysis, vol. 3. Wiley New York, 1973.
[0017] Farkas, S., Lopez, O., and Thomas, M. Cyber claim analysis using generalized pareto regression trees with applications to insurance. Insurance: Mathematics and Economics 98 (2021) , 92–105.
[0018] Fayyad, U., and Irani, K. Multi-interval discretization of continuous-valued attributes for classification learning.
[0019] Frank, E., Trigg, L., Holmes, G. et al. Technical Note: Naive Bayes for Regression. Machine Learning 41, 5–25 (2000) . https: / / doi. org / 10.1023 / A: 1007670802811
[0020] Friedman, J.H.A recursive partitioning decision rule for nonparametric classification. IEEE Trans. Computers 26, 4 (1977) , 404–408.
[0021] Friedman, J.H.A tree-structured approach to nonparametric multiple regression. In Smoothing techniques for curve estimation. Springer, 1979, pp. 5–22.
[0022] Gan, G., Ma, C., and Wu, J. Data clustering: theory, algorithms, and applications. SIAM, 2020.
[0023] Han, J., Pei, J., and Kamber, M. Data mining: concepts and techniques. Elsevier, 2011.
[0024] Jain, A.K., Murty, M.N., and Flynn, P.J. Data clustering: a review. ACM computing surveys (CSUR) 31, 3 (1999) , 264–323.
[0025] Jouini, E., and Napp, C. Conditional comonotonicity. Decisions in Economics and Finance 27, 2 (2004) , 153–166.
[0026] Kaufman, L., and Rousseeuw, P.J. Finding groups in data: an introduction to cluster analysis, vol. 344. John Wiley &Sons, 1990.
[0027] Kendall, M.G. A new measure of rank correlation. Biometrika 30, 1 / 2 (1938) , 81–93.
[0028] Kim, J.H., and Jeon, Y. Credibility theory based on trimming. Insurance: Mathematics and Economics 53, 1 (2013) , 36–47.
[0029] Kotsiantis, S.B., Zaharakis, I., and Pintelas, P. Supervised machine learning: A review of classification techniques. Emerging artificial intelligence applications in computer engineering 160, 1 (2007) , 3–24.
[0030] Krzanowski, W.J., and Hand, D.J. ROC curves for continuous data. Crc Press, 2009.
[0031] Kullback, S. Information theory and statistics. Courier Corporation, 1997.
[0032] Kumar, A. Health insurance cross sell prediction, 2020. Accessed: 2021-08-28, https: / / www. kaggle. com / anmolkumar / health-insurance-cross-sell-prediction.
[0033] Nasrudin, Z. Travel insurance, 2018. Accessed: 2021-08-28, https: / / www. kaggle. com / mhdzahier / travel-insurance.
[0034] Oh, R., Lee, Y., Zhu, D., and Ahn, J.Y. Predictive risk analysis using a collective risk model: Choosing between past frequency and aggregate severity information. Insurance: Mathematics and Economics 96 (2021) , 127–139.
[0035] Pearson, K. Notes on regression and inheritance in the case of two parents proceedings of the royal society of london, 58, 240-242, 1895.
[0036] Pitselis, G. Quantile credibility models. Insurance: Mathematics and Economics 52, 3 (2013) , 477–489.
[0037] Pitselis, G. Credible risk measures with applications in actuarial sciences and finance. Insurance: Mathematics and Economics 70 (2016) , 373–386.
[0038] Pitselis, G. Risk measures in a quantile regression credibility framework with fama / french data applications. Insurance: Mathematics and Economics 74 (2017) , 122–134.
[0039] Quinlan, J.R. Discovering rules by induction from large collections of examples. Expert systems in the micro electronics age (1979) .
[0040] Quinlan, J.R. Induction of decision trees. Machine learning 1, 1 (1986) , 81–106.
[0041] Rathi, P. Insurance company dataset: Premium default prediction, 2019. Accessed: 2021-08-28, https: / / www. kaggle. com / prakharrathi25 / insurance-company-dataset.
[0042] Schinzinger, E., Denuit, M.M., and Christiansen, M.C. A multivariate evolu-tionary credibility model for mortality improvement rates. Insurance: Mathematics and Economics 69 (2016) , 70–81.
[0043] Seguro, P. Porto seguro’s safe driver prediction, 2017. Accessed: 2021-08-28, https: / / www. kaggle. com / c / porto-seguro-safe-driver-prediction.
[0044] Shi, P., and Shi, K. Territorial risk classification using spatially dependent frequency-severity models. ASTIN Bulletin: The Journal of the IAA 47, 2 (2017) , 437–465.
[0045] Spearman, C. The proof and measurement of association between two things. The American Journal of Psychology 15, 1 (1904) , 72–101.
[0046] Sundt, B. Two credibility regression approaches for the classification of passenger cars in a multiplicative tariff. ASTIN Bulletin: The Journal of the IAA 17, 1 (1987) , 41–70.
[0047] Verschuren, R.M. Predictive claim scores for dynamic multi-product risk classification in insurance. ASTIN Bulletin: The Journal of the IAA 51, 1 (2021) , 1–25.
[0048] Witten, I.H., Frank, E., Hall, M.A., Pal, C., and DATA, M. Practical machine learning tools and techniques. In DATA MINING (2005) , vol. 2, p. 4.
[0049] Xacur, O.A.Q., and Garrido, J. Bayesian credibility for glms. Insurance: Mathe-matics and Economics 83 (2018) , 180–189.
Claims
1.A method for making predictions based on a classifier, comprising:receiving a multivariate input having feature variables;making a prediction based on a comonotone-independence Bayes classifier (CIBer) via performingconditional probability mass function on the feature variables; andoutputting a predictive class.2.The method of claim 1, wherein the making prediction based on the comonotone-independence Bayes classifier (CIBer) comprises a joint encoding to artificially insert ordering in categorical features.3.The method of claim 2, wherein the joint encoding is configured to preserve inherent dependence among the categorical features.4.The method of claim 3, wherein the preserving inherent dependence among the categorical features comprises obtaining frequencies of grouping of values of the feature variables.5.The method of claim 2, wherein the joint encoding is configured to encode categorical features to obtain inherent dependence for classification.6.The method of claim 1, further comprising performing Laplace smoothing for zero probability before outputting the predictive class.7.The method of claim 1, wherein the making prediction based on a comonotone-independence Bayes classifier (CIBer) comprises configuring the CIBer for regression.8.The method of claim 7, wherein the configuring the CIBer for regression comprises configuring a K-means clustering method to discretize continuous response input variables to different classes wherein K is a hyperparameter for tuning, and based on the clustering result, transforming the continuous response input variables into categorical variables.9.The method of claim 1, wherein the making prediction based on a comonotone-independence Bayes classifier (CIBer) comprises optimally partitioning the feature variables into a plurality of subgroups and treating feature variables within a same subgroup as comonotonic, while treating feature variables in one subgroup as independent from feature variables in another subgroup.10.The method of claim 9, wherein the optimally partitioning is determined by a clustering method.11.A method for making predictions based on a comonotone-independence Bayes classifier (CIBer) , comprising:step one: finding a combination of values of two feature variables with the highest frequency and encoding the corresponding feature values as 1;step two: finding a combination with the highest frequency within those of unencoded values of the feature variables, and encoding the corresponding values by the next unassigned integer;step three: repeating step two until a feature variable has precisely one value left that is not encoded and then automatically assigning to it the next unassigned integer; andstep four: if a condition in step three is true for both feature variables, then the same integer is assigned to the values of both feature variables; if not, and if the remaining feature variable has two or more values that are not encoded, then its remaining values are encoded sequentially in descending order of their corresponding marginal.12.A non-transitory computer readable medium having stored therein program instructions executable by a computing system to cause the computing system to perform a methodfor making predictions based on a classifier, the method comprising:receiving a multivariate input having feature variables;making a prediction based on a comonotone-independence Bayes classifier (CIBer) via performing conditional probability mass function on the feature variables; andoutputting a predictive class.13.The method of claim 12, wherein the making prediction based on the comonotone-independence Bayes classifier (CIBer) comprises a joint encoding to artificially insert ordering in categorical features.14.The method of claim 13, wherein the joint encoding is configured to preserve inherent dependence among the categorical features.15.The method of claim 14, wherein the preserving inherent dependence among the categorical features comprises obtaining frequencies of grouping of values of the feature variables.16.The method of claim 13, wherein the joint encoding is configured to encode categorical features to obtain inherent dependence for classification.17.The method of claim 12, further comprising performing Laplace smoothing for zero probability before outputting the predictive class.18.The method of claim 12, wherein the making prediction based on a comonotone-independence Bayes classifier (CIBer) comprises configuring the CIBer for regression.19.The method of claim 18, wherein the configuring the CIBer for regression comprises configuring a K-means clustering method to discretize continuous response input variables to different classeswherein K is a hyperparameter for tuning, and based on the clustering result, transforming the continuous response input variables into categorical variables.20.The method of claim 12, wherein the making prediction based on a comonotone-independence Bayes classifier (CIBer) comprises optimally partitioning the feature variables into a plurality of subgroups and treating feature variables within a same subgroup as comonotonic, while treating feature variables in one subgroup as independent from feature variables in another subgroup.
Citation Information
Patent Citations
Incremental naive Bayes text classification method based on lifelong learning
CN108062331A
Machine learning with robust estimation, bayesian classification and model stacking
US20060059112A1
Object categorization using statistically-modeled classifier outputs
US20170046615A1
Data mining unlearnable data sets
WO2006007633A1
