The delivered model estimates next-month default probability from credit limit and six months of repayment statuses, bills, and payments. On the untouched test set, ROC AUC was **0.7939**, average precision was **0.5835**, and log loss was **0.4078**.

**Data and model**

The file contains 18,000 unique cardholder IDs, 3,946 defaults (21.92%), and no missing values. Only the supplied files were used; all computation occurred in memory.

The model uses 19 financial columns and 25 derived features: utilization ratios, payments relative to credit limit, delinquency summaries, bill and payment summaries, and changes over time. ID, SEX, AGE, EDUCATION, and MARRIAGE are excluded. Negative bill balances and observed repayment codes are preserved. The dictionary does not explain repayment codes -2 and 0, so no additional business meanings were assigned to them.

The estimator is histogram gradient boosting with 200 iterations, seven leaves per tree, learning rate 0.05, minimum leaf size 60, and L2 regularization 10. It uses no class weighting or resampling.

**Development and evaluation**

There are 461 repeated financial profiles beyond their first occurrences. All rows were retained, including profiles with differing outcomes. Rows sharing identical values of the 19 financial inputs were kept together in every evaluation split.

The first split from five-fold StratifiedGroupKFold, shuffled with seed 20261023, reserved 3,584 test rows. The remaining 14,416 rows were split using the first fold of four-fold StratifiedGroupKFold with seed 271828:

| Partition | Rows | Defaults |
|---|---:|---:|
| Training | 10,796 | 2,420 |
| Validation | 3,620 | 758 |
| Test | 3,584 | 768 |

Groups were hashes of the financial columns using pandas.util.hash_pandas_object with index=False.

Nine candidates were compared on validation log loss: logistic regression and four boosting configurations, each with and without sigmoid calibration. The boosting configurations were (leaves, iterations, L2): (7, 200, 10), (15, 200, 10), (15, 350, 10), and (31, 200, 20). Other parameters matched the delivered model. Logistic regression used signed-log-transformed engineered features, standardization, C=1, and max_iter=2000. Sigmoid calibration used three grouped folds, seed 314159, and ensemble=False.

The selected model achieved validation log loss 0.41293 and AUC 0.78877. Its sigmoid-calibrated version scored 0.41299 log loss; logistic regression scored 0.41950. No post-calibration was retained.

After freezing the model and cutoff, the model was refitted on training plus validation and evaluated on the test set:

| Metric | Model | 95% interval | Constant-risk baseline |
|---|---:|---:|---:|
| ROC AUC | 0.7939 | 0.7757 to 0.8138 | 0.5000 |
| Average precision | 0.5835 | 0.5461 to 0.6196 | 0.2143 |
| Log loss | 0.4078 | 0.3886 to 0.4269 | 0.5197 |
| Brier score | 0.1260 | 0.1185 to 0.1329 | 0.1684 |

The baseline predicts the development-set default prevalence for every row. Intervals use 1,000 bootstrap resamples of test financial-profile groups, seed 8675309. They describe test-sampling uncertainty conditional on the fitted model; they exclude training and model-selection uncertainty.

Mean predicted risk was 21.71%, against 21.43% observed default. Calibration by predicted-risk quintile was:

| Quintile, lowest risk first | Mean prediction | Observed default |
|---|---:|---:|
| 1 | 5.34% | 5.16% |
| 2 | 10.07% | 10.60% |
| 3 | 14.76% | 13.83% |
| 4 | 22.28% | 18.27% |
| 5 | 56.11% | 59.27% |

These results support useful probability estimates, with remaining local calibration error.

**Recommended cutoff**

Use CUTOFF=0.20 provisionally: approve when probability is strictly below 0.20.

This recommendation explicitly assumes that approving a future defaulter costs four units, declining a future nondefaulter costs one unit, and the other outcomes cost zero. Under calibrated probabilities, this gives a threshold of 1/(4+1)=0.20. The cost ratio is an illustrative business assumption, not something estimated from the file. The cutoff was fixed before test evaluation.

At this cutoff:

| Decision | Nondefault | Default | Total |
|---|---:|---:|---:|
| Approve | 2,179 | 247 | 2,426 |
| Decline | 637 | 521 | 1,158 |

Approval rate was **67.69%** (95% interval 65.70 to 69.50%). Observed default among approved holders was **10.18%** (8.99 to 11.39%). The policy declined 67.84% of future defaulters and approved 77.38% of nondefaulters.

Under the stated cost assumption, observed cost was 0.4534 units per holder; approving everyone cost 0.8571 and declining everyone cost 0.7857. These are classification costs, not estimated monetary profit or credit loss.

**Use and limitations**

These observations concern existing cardholders with repayment history. They do not establish performance for applicants without such history, previously rejected applicants, or changed credit limits. The source histories cover April to September 2005; this grouped random holdout provides no temporal or current-market validation.

Excluding demographics does not establish fairness. In the test set, approval rates were 66.16% for males and 68.72% for females; default among approved holders was 12.00% and 9.01%, respectively. These are descriptive subgroup results.

Before operational use, validate on the intended population and time period, check calibration and subgroup outcomes, and replace the illustrative cost ratio with approved business economics. Exposure, recovery, revenue, and funding costs are absent from this evaluation.

Call fit(dev_df) to train the delivered model on all 18,000 rows. Reported test performance comes from the 14,416-row development fit; the subsequent full-data refit has no independent performance estimate. score accepts unlabeled data and preserves row order. Missing or nonfinite financial values and nonpositive limits raise errors.

The exact delivered API was exercised with scikit-learn 1.7.2, including a full-data fit, deterministic refitting, probability bounds, row-order preservation, empty input, invalid inputs, and independence from ID, target, and demographic columns.
