Skip to content

cranalytics

cranalytics is a DataFrame-first toolkit for practical credit risk work: vintage curves, lifetime loss forecasting, portfolio segmentation, feature analytics, advanced ML modeling, and rollforward operating diagnostics.

Run cranalytics quickstart Open the Gallery

  • Start Here

Best first step if you are new to the package.

cranalytics quickstart

Expect: one guided workflow, one first win, one obvious next step.

Getting Started

  • Visual Tour

Best if you want to scan examples before reading tutorials.

cranalytics demo vintage

Expect: concrete example commands and outcomes by workflow.

Workflow Gallery

  • Pick By Problem

Best if you already know the risk question or data shape.

cranalytics rollforward check your_rollforward_data.csv --output-dir rollforward_readiness_out

Expect: fast routing to the right workflow and next doc.

Choose Your Path

Core Workflows

  • Vintage Curve Fitting

Fit cumulative loss by cohort and estimate ultimate losses.

Guided path: cranalytics quickstart -> choose Vintage Curve Fitting

Direct demo: cranalytics demo vintage

First win: Fitted curve and ultimate loss estimate.

Tutorial

  • Lifetime Loss Forecasting

Estimate reserve from a transition matrix or loan history.

Guided path: cranalytics quickstart -> choose Lifetime Loss Forecasting

Direct demo: cranalytics demo lifetime-loss

First win: Reserve estimate on a mock portfolio.

Tutorial

  • FICO Segmentation

Bucket the portfolio by score band and simple risk grade.

Guided path: cranalytics quickstart -> choose FICO Segmentation

Direct demo: cranalytics demo segmentation

First win: FICO-band table and mix diagnostics.

Tutorial

  • Feature Analytics

Rank signal before committing to model training.

Guided path: cranalytics quickstart -> choose Feature Analytics

Direct demo: cranalytics demo feature-analytics

First win: Ranked feature table.

Tutorial

Advanced And Supporting Paths

  • ML Modeling

Backtest, train, and score baseline models.

Guided path: cranalytics quickstart -> choose ML Modeling

Direct demo: cranalytics demo ml-modeling

First win: Fold-level backtest summary table.

Tutorial

  • Survival Analysis

Analyze time-to-default and prepayment timing.

Guided path: cranalytics quickstart -> choose Survival Analysis

Direct demo: cranalytics demo survival

First win: Survival and hazard timing view.

Tutorial

  • Portfolio Simulation

Project balances, defaults, and cashflows under transition assumptions.

Guided path: cranalytics quickstart -> choose Portfolio Simulation

Direct demo: cranalytics demo simulation

First win: Projected cashflow and default trajectory.

Routing Guide

  • Rollforward Workflow

Validate monthly aggregated rollforward data before operational use.

Guided path: cranalytics rollforward check your_rollforward_data.csv --output-dir rollforward_readiness_out

Direct demo: cranalytics demo rollforward

First win: Readiness report directory and diagnostics.

Workflow Reference

Read In This Order

  1. Getting Started
  2. Workflow Gallery
  3. Choose Your Path
  4. Workflow Map

API Entry Points

Optional Extras

pip install "cranalytics[ml]"
pip install "cranalytics[xgboost]"
pip install "cranalytics[lightgbm]"