Lesson 1
Credit Scoring Models Explained
Credit-scoring models estimate the probability that a borrower will default, using historical data on borrower characteristics. They range from statistical methods such as logistic regression to machine learning models, and are evaluated by how well they discriminate between good and bad borrowers.
Purpose
- Predict probability of default (PD) in order to approve, reject or price loans.
- Application scoring covers new applicants; behavioural scoring covers existing customers.
- Improves the consistency, speed and risk management of lending decisions.
Common Models
- Altman Z-score: discriminant analysis applied to financial ratios for firms.
- Logistic regression: models log-odds of default; the industry standard for scorecards.
- Decision trees, random forests, gradient boosting and neural networks capture non-linear patterns.
- Scorecards convert model outputs into points that sum to a score.
Inputs and Building Steps
- Typical variables: payment history, debt-to-income ratio, credit utilisation, length of history, income, employment.
- Steps: collect data, clean it, select and bin variables (WoE/IV), train the model, validate it, set a cutoff.
- Define the target, e.g. 90+ days past due.
Evaluation and Issues
- Metrics: AUC/ROC, the Gini coefficient (= 2·AUC - 1), the KS statistic and the confusion matrix.
- Class imbalance: defaults are rare.
- Concerns: fairness, explainability, regulation and reject inference.
Key terms
- Probability of default
- The likelihood that a borrower fails to repay within a set horizon.
- Logistic regression
- A model where log(p/(1-p)) is a linear function of predictors.
- Scorecard
- A points-based tool that translates the model into a credit score.
- AUC
- The area under the ROC curve; measures how well a model ranks good versus bad borrowers.
- Weight of evidence
- ln(%good/%bad) within a bin; used to transform variables.
Lesson 2
Clustering in Finance
Clustering is an unsupervised learning technique that groups observations so that members of a group are similar to each other and different from other groups. In finance it is used for customer segmentation, portfolio diversification, fraud detection and regime identification.
Concept
- Unsupervised: uses no labels.
- Relies on a distance or similarity measure, e.g. Euclidean distance or correlation-based distance.
- Standardise features first so that scale does not dominate the distance.
Methods
- K-means: choose k, assign points to the nearest centroid, update the centroids, and repeat; minimises within-cluster sum of squares.
- Hierarchical: agglomerative merging shown in a dendrogram; linkage can be single, complete, average or Ward.
- DBSCAN: density-based; finds clusters of any shape and flags outliers.
- Choose k with the elbow method or the silhouette score.
Finance Applications
- Customer segmentation for marketing and credit.
- Grouping stocks by return correlation to diversify across clusters, as in hierarchical risk parity.
- Anomaly and fraud detection: points far from every cluster.
- Identifying market regimes.
Limitations
- K-means is sensitive to initialisation, outliers and the choice of k, and assumes spherical clusters.
- Clusters need interpretation and may be unstable over time.
Key terms
- Clustering
- Grouping unlabeled data by similarity.
- K-means
- An algorithm that partitions data into k clusters around centroids.
- Dendrogram
- A tree diagram showing hierarchical merges.
- Silhouette score
- A measure of how well points fit their own cluster compared with others.
- Elbow method
- Choosing k where the decrease in within-cluster SSE levels off.
Lesson 3
Building Financial Dashboards
A financial dashboard is a visual summary of key financial metrics that lets decision-makers monitor performance at a glance. Good dashboards start from the audience's decisions, use the right KPIs and chart types, and rely on clean, regularly refreshed data.
Purpose and audience
- Dashboards turn large financial datasets into concise, actionable views.
- Design around the user's decisions: executives need high-level KPIs, analysts need drill-down detail.
- Common types: strategic (long-term KPIs), operational (daily or weekly monitoring), analytical (exploration of trends).
Choosing KPIs
- Typical KPIs: revenue growth, gross and net margin, EBITDA, cash flow, working capital, liquidity ratios, ROE, budget vs actual variance.
- Keep the KPI set small and relevant, and pair each KPI with a comparison (target, prior period, budget).
Visual design
- Line charts suit trends over time, bar charts suit comparisons across categories, and waterfall charts suit bridges such as budget-to-actual.
- Avoid clutter, use consistent colours (for example red for unfavourable variance), and put the most important metrics top-left.
- Add filters and drill-downs for interactivity.
Data pipeline
- Pull data from ERP, accounting systems and market feeds, then clean and transform it (ETL).
- Automate refreshes and validate the data so the numbers can be trusted.
- Common tools: Excel, Power BI, Tableau, Python.
Key terms
- Financial dashboard
- An interactive visual display of key financial metrics used for monitoring and decision-making.
- KPI
- Key performance indicator: a measurable value showing progress toward an objective.
- Variance analysis
- A comparison of actual results against budget or forecast.
- ETL
- Extract, transform, load: the process of preparing source data for analysis.
- Drill-down
- A feature that lets users move from summary figures to more detailed data.
