Behaviour Scoring under High Inflation
Behaviour score · WoE scorecard · Monotonic LightGBM · Inflation · Model ageing · Recalibration · Cross-country validation · PSI · SQL · DuckDB · Python · JavaScript · 37 tests
The business question
A score learns its limits in money: a balance above so many pesos, a salary below so many. In a country where prices multiply by 2.7 in thirty-two months, how long does it last? Three questions come up in any bank, bureau or consultancy that works in more than one market:
- Does inflation break a behaviour score, and which way of handling money resists best?
- When the score ages, is it better to recalibrate, to rebuild or to leave it alone?
- Can a score be brought from another country, and how much local data does it take to do better?
Application scoring, expected loss and capital are in the retail credit risk case; this one is about clients who already have the card (behavioural scoring, in the survey of Thomas, 2000).
The data
- An Argentine bank, month by month. The panel used in a data mining course of the University of Buenos Aires: individuals with a premium account package, January 2019 to August 2021, 4,707,495 client-months, 185,094 clients, 154 columns: balances, limits, minimum payment, payments, days in arrears, salary and accounts. The bank is not named and the file carries no licence, so nothing of it is redistributed here: the page and the repository hold only aggregates, with at least 50 rows in every cell.
- Taiwan, 2005. 30,000 card accounts with six months of limit, bills, payments and arrears (Yeh and Lien, 2009; UCI, CC BY 4.0), for the imported score.
- Prices and credit in Argentina. The national consumer price index of INDEC, and personal loan rates, balances and irregularity by line from the Banco Central de la República Argentina (BCRA).
- The rules. The BCRA’s debtor classification (situation 1 up to 31 days late, 2 up to 90, 3 up to 180) and the communications of 2020 and 2021 that changed it.
The obvious source would be the BCRA’s credit register, the one behind Hertzberg, Liberti and Paravisini (2011) and Powell et al. (2004). Its bulk files identify people by name and tax number, so it was left out.
Two things about the panel had to be settled before any model. The days in arrears are days since the first missed due date on both networks: clients out of arrears had paid at least the minimum in 99.1% of months, clients in arrears in 23.8%. The delinquency flag alone misleads: it jumps to 3% or 5% in months whose due date falls on the last day, with zero days late. And nine months came with columns at zero for every client; the ones the models use are treated as missing.
Try it
Score a made-up client on the real points table; pick a model and watch each treatment of inflation age month by month, or push prices up with everything else still; import the Taiwanese score, update it, and see how many local bads it takes to beat it; and see where Argentine credit stands today.
Method, and why this one
The target came from the data, not from habit. A bad is a client more than 31 days late on any card within six months (situation 2 or worse), or who leaves the panel while more than 31 days late. Ninety days would be the usual choice, but only 250 clients of the observation months ever get there within six months: clients in arrears leave first. Of the cards 61 to 90 days late, 35% are gone the next month. The length of the outcome window is a choice with consequences (Kennedy et al., 2013), and this one measures early arrears, not loss. Everything is in SQL: the target, the roll rates between arrears states (the raw material of the intensity models of Leow and Crook, 2014) and features that only look back.
One calendar, no look-ahead. Trained on March to June 2019 (474,607 client-months, 4,631 bads), calibrated on July to September 2019, and followed without touching it until February 2021 (2.39 million client-months). An outcome takes six months to be known, so the score could have gone live in March 2020, and the updating policies only use outcomes already known at each month.
Champion and challenger. A weight of evidence scorecard (Siddiqi, 2017; Thomas, Crook and Edelman, 2017) with at least 50 bads and 50 goods in every bin, against LightGBM forced to be monotone where the sign is not in doubt (Khandani, Kim and Lo, 2010, and Butaru et al., 2016, on card data; Lessmann et al., 2015, on benchmarks). Age is in the panel and never enters a model. Intervals resample clients, not rows, because the same client appears in many months.
Five treatments of money, everything else the same. Nominal pesos; pesos deflated by the CPI; ratios without a unit (use of the limit, payment over the previous balance, balance over salary); the amount over the median of the month; and the rank of the client in the month. Two experiments: let each version age in real time, and score September 2019 again as if only prices had risen, with and without the card limits following them.
Ageing and updating. Drift can live in the inputs, in the outcome or in the link between them (Gama et al., 2014), and adaptive classifiers for credit have been proposed for it (Adams et al., 2010; Pavlidis et al., 2012). Here the question is the one a model owner faces: do nothing, recalibrate the intercept, recalibrate intercept and slope, or rebuild every quarter on the latest known outcomes. Calibration is judged as in Van Calster et al. (2019), stability with the population stability index (Yurdakul and Naranjo, 2020).
A score from another country. Seven inputs without a currency exist both in Taiwan and in Argentina. The Taiwanese score is trained three ways (free signs, imposed signs, monotonic boosting) and judged as it comes; with the prevalence corrected without outcomes (Saerens, Latinne and Decaestecker, 2002); and updated with the closed test of Vergouwe et al. (2017). A learning curve then asks how many local bads beat it, next to the minimum sample of Riley et al. (2019). Transfer of behaviour scores has been studied from a bureau to a central bank (Didkovskyi et al., 2024) and between lenders (Suryanto et al., 2020).
Result
Arrears alone are not a behaviour score. On July 2020 to February 2021 (1.19 million client-months, 2,966 bad clients), days in arrears reach an AUC of 0.659, and 0.568 among clients who are current. The ratios scorecard reaches 0.928 (95% interval 0.923 to 0.932) and LightGBM 0.937 (0.934 to 0.941); among current clients 0.912 and 0.924. The payment made over the previous balance carries the most information, ahead of arrears.
Inflation hardly touches the ranking. Prices rose 84% between the last training month and the last month scored. The scorecard in nominal pesos had an AUC of 0.929 in October 2019 and 0.934 in February 2021. The five treatments stay between 0.923 and 0.928 for the scorecard and between 0.931 and 0.938 for LightGBM: choosing the algorithm matters more than deflating.
It moves the probabilities, and deflating is not the cure. Score September 2019 again with prices doubled and nothing else changed. If every amount doubles, the nominal scorecard loses 0.003 of AUC but predicts 1.16 times the bads that occur. If the card limits stay frozen, it predicts 1.42 times, and the CPI version 1.28 times: the index deflates a limit that never grew. The ratios predict 1.14 times. Only the median and the rank of the month do not move. Frozen limits are not a thought experiment: the median limit of this book did not change between June 2020 and August 2021, while prices rose 58%.
A score can look right for the wrong reason. In the last eight months the nominal scorecard was the best calibrated of the five scorecards (observed over predicted 1.08, against 1.15 to 1.27). Rising prices were pushing its PDs up just as risk was rising. Two errors cancelled out, and no calibration report would have said so.
The cycle and the rules move calibration more than prices. The bad rate fell from 1.31% (January 2019) to 0.56% (April 2020) and came back to 1.28% (January 2021). In between, the BCRA had unpaid card bills of 13 to 30 April and of September 2020 refinanced automatically (Communications A 6964 and A 7095) and widened the arrears allowed in each situation by 60 days until March 2021 and 30 until May 2021 (A 6938, A 7107, A 7181 and A 7245). Observed over predicted went from 0.55 in March 2020 to 1.57 in December 2020 on a score that kept ranking. Gross and Souleles (2002) found the same in US cards: default moved more than what is known about the clients explains.
Recalibrating made it worse. With outcomes six months old, every correction arrived after the turn. The mean calibration error of the ratios scorecard from March 2020 to February 2021 was 0.281 left alone, 0.393 with the intercept recalibrated, 0.389 with intercept and slope, and 0.408 rebuilt every quarter. The order is the same in the four model and treatment pairs tested: leaving it alone was best. Rebuilding did improve the ranking (AUC from 0.923 to 0.927). In a turn like this one the answer is a management overlay with a date to review it, not an automatic recalibration.
The stability index rang for a broken file. The PSI of the ratios scorecard stayed under 0.04 in every month but one: 0.48 in June 2020, when the bank’s extract came with account balances and debit purchases at zero. Twenty months of inflation never moved it. Among the inputs, half of the peso variables were above 0.10 by February 2021 against a tenth of the ranks, with almost no difference in AUC to show for it.
An imported score works only if its signs are imposed. In Taiwan, the model with free signs looks best (AUC 0.669 in sample, against 0.624 with imposed signs). In Argentina it is close to a coin toss: 0.561, and 0.449 among current clients, worse than chance. Taiwanese accounts with little use were riskier there, and a book that uses 8% of its limit on average instead of 40% lives exactly in that corner. With imposed signs the import reaches 0.803, and with monotonic boosting 0.812. Its probabilities are useless as they come (12.2% predicted, 1.03% observed), the correction without outcomes fails (it finds a prevalence of zero, because the inputs changed and not only the rate), and the update has to multiply the slope by 4.5.
Few local bads are enough to beat it. The same seven inputs fitted in Argentina reach 0.849. With 10 bads in 829 clients the local model already ranks better than the import in 93% of samples, and with 25 bads in 99%, when the closed test picks a full refit 93% of the time. The minimum sample of Riley et al. (2019) for this model is 1,912 clients and 24 bads, the point where the curve flattens. The full Argentine scorecard, with twelve inputs, reaches 0.928.
The clients who vanish. Of the 5,565 clients who first went over 31 days late by February 2021, 998 left the panel within six months still more than 31 days late, and 1,331 left with no arrears on record in their last month, most of them with the card closing or already closed. Balzarotti and Castelpoggi (2009) showed on the Argentine register that dropping such debtors biases a score. Here, dropping every leaver moves the AUC of the scorecard from 0.928 to 0.930; counting every leaver as bad takes it to 0.717, because most people who leave simply leave. A lender that knows why each account closed should use it.
Limits
One bank, one premium segment, 2019 to 2021: the levels are not those of the Argentine market, where the irregular share of personal loans was 16.5% and of cards 10.0% in September 2026. The panel has no declined applicants, no declared income, no bureau and no losses, so this is not an application score, a regulatory PD or a provision. The target is early arrears. The same clients appear in training and in later months, as in any behaviour score in production; the intervals account for it, but this is a test in time, not on unseen people. The horizon is the pandemic, and the finding that recalibrating was worse belongs to a turn of the cycle: in a steady drift it could be the other way round. Taiwan predicts the next month and Argentina six; the comparison of rankings stands, that of probabilities only after updating. The learning curve samples one row per client from four months. In the search made, no study of consumer scores under high inflation was found, which is not proof that none exists. Students of the same course compared corrections for inflation to predict who leaves the bank; this case asks the question for credit.
Code
github.com/rhozon/argentina-behaviour-scoring
With Python 3.11 or later and Node 18 or later:
pip install -e ".[dev]"
pytest -v # generated data, no row of the bank
python -m argscore.cli all --data ~/data/argentina-score # with the files listed in the READMEThe suite has 37 tests: the target on hand-written clients, features that do not look ahead, what each treatment does to a uniform rise in prices, missing ratios, the scorecard, recalibration, the client bootstrap, the published example of Riley et al. (2019), and the page’s JavaScript against Python. They and a reading of the results caught three errors before publication: a scorecard blind to arrears, a column broken in the source, and ratios without a denominator read as their maximum.
References
Data: panel of the course Data Mining en Economía y Finanzas, University of Buenos Aires (not redistributed); Yeh, Default of Credit Card Clients (UCI Machine Learning Repository, CC BY 4.0); INDEC, national consumer price index (datos.gob.ar, CC BY 4.0); Banco Central de la República Argentina, Estadísticas monetarias and annex of the Informe sobre Bancos. Regulation: BCRA, Clasificación de deudores and Centrales de información (consolidated texts), Communications A 6938, A 6964, A 7095, A 7107, A 7181 and A 7245.
- Adams, N. M., Tasoulis, D. K., Anagnostopoulos, C. and Hand, D. J. (2010). Temporally-Adaptive Linear Classification for Handling Population Drift in Credit Scoring. Proceedings of COMPSTAT’2010, 167-176. doi:10.1007/978-3-7908-2604-3_15
- Balzarotti, V. and Castelpoggi, F. (2009). Modelos de puntuación crediticia: la falta de información y el uso de datos de una central de riesgos. Ensayos Económicos, 56 (October-December). Banco Central de la República Argentina
- Butaru, F., Chen, Q., Clark, B., Das, S., Lo, A. W. and Siddique, A. (2016). Risk and risk management in the credit card industry. Journal of Banking & Finance, 72, 218-239. doi:10.1016/j.jbankfin.2016.07.015
- Didkovskyi, O., Jean, N., Le Pera, G. and Nordio, C. (2024). Cross-Domain Behavioral Credit Modeling: transferability from private to central data. arXiv. doi:10.48550/arXiv.2401.09778
- Gama, J., Žliobaitė, I., Bifet, A., Pechenizkiy, M. and Bouchachia, A. (2014). A survey on concept drift adaptation. ACM Computing Surveys, 46(4), 1-37. doi:10.1145/2523813
- Gross, D. B. and Souleles, N. S. (2002). An Empirical Analysis of Personal Bankruptcy and Delinquency. Review of Financial Studies, 15(1), 319-347. doi:10.1093/rfs/15.1.319
- Hertzberg, A., Liberti, J. M. and Paravisini, D. (2011). Public Information and Coordination: Evidence from a Credit Registry Expansion. The Journal of Finance, 66(2), 379-412. doi:10.1111/j.1540-6261.2010.01637.x
- Kennedy, K., Mac Namee, B., Delany, S. J., O’Sullivan, M. and Watson, N. (2013). A window of opportunity: Assessing behavioural scoring. Expert Systems with Applications, 40(4), 1372-1380. doi:10.1016/j.eswa.2012.08.052
- Khandani, A. E., Kim, A. J. and Lo, A. W. (2010). Consumer credit-risk models via machine-learning algorithms. Journal of Banking & Finance, 34(11), 2767-2787. doi:10.1016/j.jbankfin.2010.06.001
- Leow, M. and Crook, J. (2014). Intensity models and transition probabilities for credit card loan delinquencies. European Journal of Operational Research, 236(2), 685-694. doi:10.1016/j.ejor.2013.12.026
- Lessmann, S., Baesens, B., Seow, H. V. and Thomas, L. C. (2015). Benchmarking state-of-the-art classification algorithms for credit scoring: An update of research. European Journal of Operational Research, 247(1), 124-136. doi:10.1016/j.ejor.2015.05.030
- Pavlidis, N. G., Tasoulis, D. K., Adams, N. M. and Hand, D. J. (2012). Adaptive consumer credit classification. Journal of the Operational Research Society, 63(12), 1645-1654. doi:10.1057/jors.2012.15
- Powell, A., Mylenko, N., Miller, M. and Majnoni, G. (2004). Improving Credit Information, Bank Regulation, and Supervision: On the Role and Design of Public Credit Registries. World Bank Policy Research Working Paper 3443. doi:10.1596/1813-9450-3443
- Riley, R. D., Snell, K. I., Ensor, J., Burke, D. L., Harrell Jr, F. E., Moons, K. G. et al. (2019). Minimum sample size for developing a multivariable prediction model: PART II - binary and time-to-event outcomes. Statistics in Medicine, 38(7), 1276-1296. doi:10.1002/sim.7992
- Saerens, M., Latinne, P. and Decaestecker, C. (2002). Adjusting the Outputs of a Classifier to New a Priori Probabilities: A Simple Procedure. Neural Computation, 14(1), 21-41. doi:10.1162/089976602753284446
- Siddiqi, N. (2017). Intelligent Credit Scoring. Wiley. doi:10.1002/9781119282396
- Suryanto, H., Guan, C., Voumard, A. and Beydoun, G. (2020). Transfer Learning in Credit Risk. Lecture Notes in Computer Science, 483-498. doi:10.1007/978-3-030-46133-1_29
- Thomas, L. C. (2000). A survey of credit and behavioural scoring: forecasting financial risk of lending to consumers. International Journal of Forecasting, 16(2), 149-172. doi:10.1016/S0169-2070(00)00034-0
- Thomas, L., Crook, J. and Edelman, D. (2017). Credit Scoring and Its Applications, Second Edition. SIAM. doi:10.1137/1.9781611974560
- Van Calster, B., McLernon, D. J., van Smeden, M., Wynants, L. and Steyerberg, E. W. (2019). Calibration: the Achilles heel of predictive analytics. BMC Medicine, 17(1), 230. doi:10.1186/s12916-019-1466-7
- Vergouwe, Y., Nieboer, D., Oostenbrink, R., Debray, T. P. A., Murray, G. D., Kattan, M. W. et al. (2017). A closed testing procedure to select an appropriate method for updating prediction models. Statistics in Medicine, 36(28), 4529-4539. doi:10.1002/sim.7179
- Yeh, I. C. (2009). Default of Credit Card Clients. UCI Machine Learning Repository. doi:10.24432/C55S3H
- Yeh, I. C. and Lien, C. H. (2009). The comparisons of data mining techniques for the predictive accuracy of probability of default of credit card clients. Expert Systems with Applications, 36(2), 2473-2480. doi:10.1016/j.eswa.2007.12.020
- Yurdakul, B. and Naranjo, J. (2020). Statistical properties of the population stability index. The Journal of Risk Model Validation. doi:10.21314/JRMV.2020.227