Tutorials › Exam PA - Predictive Analytics › Original-Feature Baselines for Derived Features

Exam PA · Unsupervised Features in Prediction · Tutorial 646 of 966

Original-Feature Baselines for Derived Features

Set a credible original-feature benchmark and compare derived-feature models using the same observations, validation splits, and scoring rules.

Advanced 12 min read

What You'll Learn

  • Define a baseline using the original predictors and a clearly specified modeling procedure
  • Distinguish a baseline model from an augmented model that adds unsupervised features
  • Keep validation observations, folds, outcomes, and evaluation metrics matched
  • Calculate and interpret paired differences in regression and classification losses
  • Explain why comparing models on identical cases controls for case mix
  • Recognize unfair comparisons caused by changing rows, splits, or aggregation rules

Why an Original-Feature Baseline Matters

A cluster label or principal-component score can make a model more useful, but a lower validation error alone does not establish that the derived feature helped. The comparison needs a credible reference: a model using the original predictors, evaluated on the same prediction task and the same validation observations. Otherwise, a difference in score might reflect a change in the data or evaluation procedure rather than a change in the features.

The original-feature baseline is not necessarily a simple model. It is the chosen modeling procedure applied to the original predictors, without the derived features being assessed. A fair comparison then applies a suitably matched procedure to those original predictors plus the cluster memberships or PCA scores. This isolates the practical question: does adding the derived representation improve prediction under the stated evaluation design?

Definition: Let \(X_i\) denote the original predictors for observation \(i\), and let \(Z_i\) denote one or more derived predictors, such as a cluster membership or PCA score. An original-feature baseline is a predictive model fitted using \(X_i\) alone. An augmented model uses \(X_i\) together with \(Z_i\). A fair comparison evaluates both models on the same outcome values, observations, validation split or folds, and pre-specified metric.

The comparison is meaningful only after the prediction task is fixed. State the response, the prediction time, the eligible observations, and the metric. For instance, a hypothetical insurer might predict claim severity for policies with a reported claim. The baseline and augmented models must then be scored for the same eligible policies and the same severity definition. Including policies without a claim in only one model's evaluation would change the task.

Specify the Comparison Before Looking at Scores

A useful comparison records more than two model names and two metric values. It specifies the target, evaluation sample, data partition, metric and direction of improvement, and the modeling procedures being compared. For a lower-is-better metric, define the difference as augmented score minus baseline score; a negative value then favors the augmented model. For a higher-is-better metric, such as AUC, state the sign convention explicitly or report the change as augmented minus baseline and explain that positive favors the augmented model.

The comparison should be matched in these respects:

  • Same observations and outcome: use the same validation records and the same recorded response values for both predictions.
  • Same split or folds: fit and assess both procedures using identical training and validation partitions. In cross-validation, the fold assignment for a record should not change between procedures.
  • Same evaluation rule: use the same metric, response scale, case weights, and aggregation rule. For example, do not compare a weighted score from one model with an unweighted score from the other.
  • Comparable fitting procedures: use the same model family where the aim is to isolate the feature addition, and give each procedure a comparable, pre-specified approach to tuning. If model families also differ, describe the comparison as a comparison of complete modeling procedures, not as the effect of the derived features alone.

A derived-feature procedure may need to estimate quantities such as cluster centers or PCA loadings. Those quantities must not be learned from validation outcomes. The detailed construction of a training-only transformation pipeline is a separate implementation issue; for this comparison, the essential point is to specify how each procedure is trained and ensure the validation cases remain the same. A model that replaces original predictors with components is also a legitimate candidate, but it is not the same feature-addition comparison as a model that retains the originals and adds component scores.

Matched Scores and Paired Differences

Let \(y_i\) be the observed outcome for validation observation \(i\), and let \(\hat{y}_{Bi}\) and \(\hat{y}_{Ai}\) be the baseline and augmented predictions for that same observation. For a per-observation loss \(L\), define \(d_i=L(y_i,\hat{y}_{Ai})-L(y_i,\hat{y}_{Bi})\). The mean paired difference is the average of the \(d_i\)'s. When lower loss is better, a negative average indicates lower loss for the augmented model on these validation cases.

$$ \bar{d} = \frac{1}{n}\sum_{i=1}^{n} \left\{L(y_i,\hat{y}_{Ai})-L(y_i,\hat{y}_{Bi})\right\} = \bar{L}_A-\bar{L}_B $$

This paired calculation is not a new metric; it is a way to report how the two procedures differ case by case under the same evaluation metric. It is useful because difficult cases tend to be difficult for both models, and easy cases tend to be easy for both. Matching makes the case mix common rather than allowing one model to appear better merely because it was scored on easier records.

Justification: Write \(L_{Ai}\) and \(L_{Bi}\) for the two losses on the same observation. The difference of their average losses is \(\frac{1}{n}\sum_i L_{Ai}-\frac{1}{n}\sum_i L_{Bi}\). Putting the terms over the same sum gives \(\frac{1}{n}\sum_i(L_{Ai}-L_{Bi})\), the average paired difference. Moreover, for the paired differences \(D=L_A-L_B\), \(\operatorname{Var}(D)=\operatorname{Var}(L_A)+\operatorname{Var}(L_B)-2\operatorname{Cov}(L_A,L_B)\). If the losses are positively associated across cases, pairing can reduce the variability of the difference relative to treating the two sets of losses as unrelated. It does not guarantee a smaller variance in every setting, and it does not make a validation result conclusive by itself.

Worked Comparisons

Worked Example: Comparing RMSE on the Same Validation Cases

A hypothetical portfolio team predicts the annual repair cost, in thousands of dollars, for four policies held out for validation. The baseline uses the original predictors. The augmented model adds one cluster-derived feature. The observed outcomes are \(10,12,9,15\); baseline predictions are \(9,13,7,17\); augmented predictions are \(10,13,8,16\). Calculate each RMSE and the augmented-minus-baseline difference. Use the same four observations for both models.

Method. For predictions \(\hat{y}_i\) and observed values \(y_i\), RMSE is the square root of the mean squared prediction error: \( \mathrm{RMSE}=\sqrt{\frac{1}{n}\sum_i(y_i-\hat{y}_i)^2} \). Lower RMSE is better.

Baseline calculation. The residuals \(y_i-\hat{y}_{Bi}\) are \(10-9=1\), \(12-13=-1\), \(9-7=2\), and \(15-17=-2\). Their squared values are \(1,1,4,4\), which sum to \(10\). Thus the baseline MSE is \(10/4=2.5\), and its RMSE is \(\sqrt{2.5}=1.5811\) thousand dollars, to four decimal places.

Augmented calculation. The residuals \(y_i-\hat{y}_{Ai}\) are \(10-10=0\), \(12-13=-1\), \(9-8=1\), and \(15-16=-1\). Their squared values are \(0,1,1,1\), which sum to \(3\). The augmented MSE is \(3/4=0.75\), and its RMSE is \(\sqrt{0.75}=0.8660\) thousand dollars, to four decimal places.

The augmented-minus-baseline RMSE difference is \(0.8660-1.5811=-0.7151\) thousand dollars, using the unrounded square roots for the subtraction and rounding the final difference to four decimal places. The check is that the augmented model has the smaller sum of squared residuals, \(3<10\), and therefore the smaller RMSE. The common mistake this setup avoids is scoring the two predictions on different policies, which would make the RMSE difference partly a case-mix difference.

Worked Example: Comparing Binary Log Loss

A hypothetical service team predicts whether a customer will renew a contract. For three validation customers, outcomes are \(1,0,1\), where 1 means renewal. Baseline probabilities of renewal are \(0.8,0.2,0.4\); augmented probabilities, after adding PCA scores to the original predictors, are \(0.9,0.1,0.6\). Calculate mean natural-log loss for both procedures and the augmented-minus-baseline difference, to four decimal places.

Method. For outcome \(y_i\) equal to 0 or 1 and predicted probability \(p_i\) of outcome 1, log loss is \(-[y_i\ln(p_i)+(1-y_i)\ln(1-p_i)]\). Thus the loss is \(-\ln(p_i)\) when the outcome is 1 and \(-\ln(1-p_i)\) when it is 0. Lower mean log loss is better.

Baseline calculation. For the first customer, \(y=1,p=0.8\), so the loss is \(-\ln(0.8)=0.2231436\). For the second, \(y=0,p=0.2\), so it is \(-\ln(1-0.2)=-\ln(0.8)=0.2231436\). For the third, \(y=1,p=0.4\), so it is \(-\ln(0.4)=0.9162907\). The sum is \(0.2231436+0.2231436+0.9162907=1.3625779\), and the mean is \(1.3625779/3=0.4541926\), or \(0.4542\) to four decimal places.

Augmented calculation. The first loss is \(-\ln(0.9)=0.1053605\). The second, for outcome 0 and probability 0.1, is \(-\ln(1-0.1)=-\ln(0.9)=0.1053605\). The third is \(-\ln(0.6)=0.5108256\). Their sum is \(0.7215466\), and the mean is \(0.7215466/3=0.2405155\), or \(0.2405\) to four decimal places.

Using the unrounded means, the augmented-minus-baseline difference is \(0.2405155-0.4541926=-0.2136771\), which rounds to \(-0.2137\). This favors the augmented procedure on these three cases because its mean log loss is lower. A common mistake is to apply \(-\ln(p)\) to every case, including the outcome-0 customer. The correction is to score the probability assigned to the outcome that actually occurred; for an outcome of 0, that probability is \(1-p\).

Worked Example: Keeping Cross-Validation Folds Matched

A hypothetical maintenance model is assessed by two validation folds, each containing two records. The baseline residuals are \(0,2\) in fold 1 and \(1,1\) in fold 2. The augmented model's residuals on those same records are \(1,-1\) in fold 1 and \(0,0\) in fold 2. Calculate the pooled RMSE for each model from all four validation predictions, then the augmented-minus-baseline difference. Also explain why comparing one model's fold 1 with the other's fold 2 is invalid.

Baseline calculation. Fold 1 contributes squared error \(0^2+2^2=4\). Fold 2 contributes \(1^2+1^2=2\). Total squared error is \(4+2=6\), so pooled MSE is \(6/4=1.5\) and pooled RMSE is \(\sqrt{1.5}=1.2247\), to four decimal places.

Augmented calculation. Fold 1 contributes \(1^2+(-1)^2=2\). Fold 2 contributes \(0^2+0^2=0\). Total squared error is \(2\), so pooled MSE is \(2/4=0.5\) and pooled RMSE is \(\sqrt{0.5}=0.7071\), to four decimal places. The augmented-minus-baseline difference is \(0.7071-1.2247=-0.5176\), using unrounded values before rounding the final difference to four decimal places.

The pooled calculations use the same four records and the same fold assignments. By contrast, fold 1 baseline RMSE is \(\sqrt{4/2}=\sqrt{2}=1.4142\), while fold 2 augmented RMSE is \(0\). Subtracting those gives \(-1.4142\), but it compares different subsets and is not a paired model comparison. The stated pooled result is checked by the total squared errors, \(2<6\). If a study instead reports an average of fold-level RMSEs, that aggregation rule should be specified in advance and used for both procedures; it need not equal pooled RMSE because taking square roots and averaging do not commute.

What the Comparison Can and Cannot Establish

A matched result answers a focused empirical question: on the specified validation observations and under the stated scoring rule, did the augmented procedure obtain a better score than the original-feature baseline? It does not establish that the derived feature will improve every future sample, that the improvement is statistically certain, or that it is worth the additional complexity. A small observed improvement should be interpreted in context, especially when validation data are limited or many feature variants have been tried.

For cross-validation, retain the same folds for the baseline and each augmented candidate. Report fold-level scores or paired fold differences when useful, but state how they are summarized. For a single holdout set, a paired table of per-observation losses can reveal whether an average change comes from broad small improvements or a few large cases. Either way, preserve the evaluation design rather than selecting only the subset on which one candidate looks favorable.

A comparison of two full procedures can be informative even when model families or tuning choices differ. The interpretation must then be appropriately broad: the result compares those procedures as implemented, not just the addition of a cluster label or PCA score. To isolate the feature contribution more directly, hold the model family and evaluation design fixed, and change the feature set being examined.

Key takeaway: A derived-feature model earns a persuasive comparison only against a clearly specified original-feature baseline, scored on identical validation observations using the same outcome, splits, metric, and aggregation rule. Define the difference's direction before interpreting its sign. This disciplined comparison is aligned with the SOA Exam PA (Predictive Analytics) syllabus.

Check Your Understanding

For each question, use the stated convention that differences are augmented minus baseline. Probabilities and final metric differences are rounded to four decimal places where applicable.

  1. A baseline has residuals \(1,-1,2\) on three validation cases. An augmented model has residuals \(0,2,1\) on those same cases. Calculate both RMSEs and their difference. (Answer: baseline RMSE \(1.4142\), augmented RMSE \(1.2910\), difference \(-0.1232\).)
  2. For two customers with outcomes \(0,1\), baseline renewal probabilities are \(0.25,0.75\), and augmented probabilities are \(0.20,0.90\). Using natural-log loss, calculate both mean losses and their difference. (Answer: baseline \(0.2877\), augmented \(0.1643\), difference \(-0.1234\).)
  3. Two validation folds each contain two cases. Baseline squared-error totals are 2 and 8; augmented totals are 1 and 3. Find pooled RMSE for each model and the augmented-minus-baseline difference. (Answer: baseline RMSE \(\sqrt{2.5}=1.5811\), augmented RMSE \(\sqrt{1}=1.0000\), difference \(-0.5811\).)
  4. A model with original predictors has AUC \(0.71\) on one validation sample. A model adding cluster memberships has AUC \(0.75\) on a different sample. Can \(0.04\) be interpreted as the improvement due to cluster membership? State the fair comparison required. (Answer: No; evaluate both procedures on the same validation observations, with the same outcomes and split design, then report augmented AUC minus baseline AUC.)
  5. On the same validation records, the mean squared error is \(9\) for the baseline and \(4\) for the augmented model. Calculate both RMSEs and the difference. Explain why the RMSE difference is not the square root of the MSE difference. (Answer: baseline RMSE \(3\), augmented RMSE \(2\), difference \(-1\); RMSE is the square root of each model's MSE, so the difference is \(2-3\), not \(\sqrt{4-9}\).)
Clinical Biostats