# Credit Risk and Default — fintech-algorithms > 7 algorithms in 1 family, sliced out of the > fintech-algorithms reference. Zero-dependency TypeScript: plain arrays and objects in, > plain values out. This file covers D21 only. D21 · 7 topics · 1 family · 7 verified Install: npm install fintech-algorithms Agent skill (install it rather than re-deriving this file): npx skills add IslamBaraka90/Fintech-Algorithms-Library what it is: https://docs.thefintechbuilder.com/guides/agent-skill/ Source: fintech-algorithms@0.12.0 · payload schema 2.0.0 Reference payload: https://docs.thefintechbuilder.com/reference/payload.json Version endpoint: https://docs.thefintechbuilder.com/version.json Domain page: https://docs.thefintechbuilder.com/credit-risk-and-default/ Full index (471 topics across 16 domains): https://docs.thefintechbuilder.com/llms.txt Verification tiers: - verified — the worked example is the figure published in the algorithm's article, replayed and asserted by the test suite on every run. The arithmetic cannot drift without the build failing. Treat the numbers as reproducible. - contract — the module loads, the entry point is callable and its declared signature matches the compiled code. The example is real captured output, but no independently published figure asserts it. Treat the shape as reliable and the numbers as unattested. Full explanation: https://docs.thefintechbuilder.com/guides/verification/ Each entry: name — signature — archetype — verification tier — docs URL From the docs URL, mechanically: import subpath — swap the https://docs.thefintechbuilder.com/ prefix for fintech-algorithms/ and drop the trailing slash markdown page — append index.md; same contract as the HTML page, a fraction of the bytes ## D21-F01 — Probability of Default https://docs.thefintechbuilder.com/credit-risk-and-default/probability-of-default/ - Logistic PD Model — `logisticPdModel(intercept, coefficients, features, alert_threshold)` — record-transform — verified — https://docs.thefintechbuilder.com/credit-risk-and-default/probability-of-default/logistic-pd-model/ - Probit PD Model — `probitPdModel(intercept, coefficients, features, alert_threshold)` — record-transform — verified — https://docs.thefintechbuilder.com/credit-risk-and-default/probability-of-default/probit-pd-model/ - Through-the-Cycle PD — `throughTheCyclePd(annual_obligors, annual_defaults, current_year_index, minimum_years)` — record-transform — verified — https://docs.thefintechbuilder.com/credit-risk-and-default/probability-of-default/through-the-cycle-pd/ - Point-in-Time PD — `pointInTimePd(through_the_cycle_pd_value, borrower_log_odds_shift, macro_factor_z, macro_sensitivity, alert_threshold)` — record-transform — verified — https://docs.thefintechbuilder.com/credit-risk-and-default/probability-of-default/point-in-time-pd/ - Merton Distance-to-Default — `mertonDistanceToDefault(equity_value, equity_volatility, debt_face_value, risk_free_rate, asset_drift, horizon_years, tolerance, max_iterations)` — record-transform — verified — https://docs.thefintechbuilder.com/credit-risk-and-default/probability-of-default/merton-distance-to-default/ - Campbell-Hilscher-Szilagyi Distress Probability — `campbellHilscherSzilagyiDistressProbability(nimtaavg, tlmta, exretavg, sigma, rsize, cashmta, market_to_book, log_price)` — record-transform — verified — https://docs.thefintechbuilder.com/credit-risk-and-default/probability-of-default/campbell-hilscher-szilagyi-distress-probability/ - Bharath-Shumway Naive Distance-to-Default — `bharathShumwayNaiveDistanceToDefault(equity_value, debt_face_value, equity_volatility, prior_year_equity_return, horizon_years)` — record-transform — verified — https://docs.thefintechbuilder.com/credit-risk-and-default/probability-of-default/bharath-shumway-naive-distance-to-default/