# Model Validation and Backtesting — fintech-algorithms > 10 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 D40 only. D40 · 10 topics · 1 family · 10 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/model-validation-and-backtesting/ 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 ## D40-F05 — Classification and Score Validation https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/ - ROC Curve and ROC-AUC — `rocCurveAndRocAuc(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/roc-curve-and-roc-auc/ - Precision-Recall Curve and PR-AUC — `precisionRecallCurveAndPrAuc(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/precision-recall-curve-and-pr-auc/ - Brier Score — `brierScore(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/brier-score/ - Log Loss — `logLoss(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/log-loss/ - Reliability Diagram and Expected Calibration Error — `reliabilityDiagramAndExpectedCalibrationError(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/reliability-diagram-and-expected-calibration-error/ - Gains, Lift, and Decile Capture — `gainsLiftAndDecileCapture(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/gains-lift-and-decile-capture/ - Cost-Sensitive Threshold Optimization — `costSensitiveThresholdOptimization(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/cost-sensitive-threshold-optimization/ - Score Stability and Migration Matrix — `scoreStabilityAndMigrationMatrix(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/score-stability-and-migration-matrix/ - Slice-Based Validation by Sector, Country, and Regime — `sliceBasedValidationBySectorCountryAndRegime(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/slice-based-validation-by-sector-country-and-regime/ - Rare-Event Backtest and Confidence Bounds — `rareEventBacktestAndConfidenceBounds(inputs)` — record-transform — verified — https://docs.thefintechbuilder.com/model-validation-and-backtesting/classification-and-score-validation/rare-event-backtest-and-confidence-bounds/