← Back to portfolio

NYC Yellow Taxi - Fare Prediction

Config-driven data science pipeline for high-fidelity industrial domains.

Generic / Auto-detect (any tabular dataset) Public dataset

At a glance

Task: regression  |  Headline: r2 = 0.8154

rmse
4.9558
mae
1.4215
median_ae
0.8041
mape
83.3172
r2
0.8154
adj_r2
0.8148
explained_variance
0.8175
mean_residual
-0.5275

Summary

Overview

This report covers the Generic / Auto-detect (any tabular dataset) analysis for "NYC Yellow Taxi - Fare Prediction". The pipeline ingested 20000 records across 18 columns from a real dataset, and modelled the target "fare_amount" as a regression task. The selected estimator is LightGBM, chosen by cross-validated r2 (score 0.8154).

What the numbers mean

The metrics describe how reliably the model reproduces the observed behaviour of the data. On the held-out test set the headline r2 is 0.8154. Key secondary metrics include rmse=4.9558, mae=1.4215, median_ae=0.8041, mape=83.3172, adj_r2=0.8148.

How much to trust this

The model was trained with a auto split to limit leakage, and evaluated on data it had not seen. All deployment gates were satisfied.

Recommended next steps

1) Review the figures and the explainable evidence in this report with the domain team. 2) Validate the model on a fresh, real sample before operational use. 3) Re-run with a larger extract if the sample was capped, and monitor drift over time.

Figures

02_distributions.png
02 distributions

Distribution of every feature - how values spread from low to high. Overlapping or skewed shapes show what 'normal' looks like and where unusual (possibly risky) records sit, so the business can see where its data is concentrated.

03_correlation.png
03 correlation

Correlation matrix - how strongly each pair of features moves together (red positive, blue negative). Dark blocks warn of redundant inputs that can distort the model's reasoning and the decisions built on it.

04_vif.png
04 vif

Multicollinearity (VIF) screen - how much each feature is explained by the others. Bars crossing the red line (VIF above 10) mark redundant features that inflate risk; review these before the model is trusted in production.

05_target.png
05 target

Target distribution - the balance of the outcome being predicted. A dominant class or a long tail tells you how hard the prediction is and which kinds of error will cost the business most.

10_pred_vs_actual.png
10 pred vs actual

Predicted versus actual values - points close to the diagonal are accurate. The spread around the line shows the typical error, i.e. where the model can be relied on and where it cannot.

11_residuals.png
11 residuals

Residual analysis - the errors left after prediction. A centred, pattern-free cloud means the model captured the real signal; visible structure or drift warns of bias or a missing driver.

12_leaderboard.png
12 leaderboard

Model leaderboard - how competing algorithms scored under cross-validation. The winner was chosen on the headline metric and then verified once on data it had never seen, which is the honest basis for a go/no-go decision.

13_feature_importance.png
13 feature importance

Feature importance - the inputs the model leans on most. The top drivers show the business where to focus attention, controls and data-quality effort.

Artifacts

Data source: yellow_tripdata_2019-06.csv

Download report (PDF)

Audit SHA-256: a5afb1dfdfc10db367440765b91864fee297e17a3c4e9638867e197bdc69824f