Taxi Fare Prediction — Kaggle ML Challenge
A five-iteration machine-learning exercise progressing from Random Forest to a hybrid fare-formula approach, with a reported Kaggle evaluation MAE of 2.52019.

Model evolution & documented results
The project explored historical trip records, engineered useful features, evaluated Random Forest and identified a fare-pricing structure that improved performance. The strongest documented iteration combined the inferred pricing formula with a Random Forest fallback.
Earlier reported Kaggle score: 3.16509. Reduction in reported error: approximately 20.4%. These figures are recovered from earlier project discussion, not independently revalidated against a current leaderboard.
Five iterations, one engineering lesson
- Define the taxi fare regression problem, dataset fields and evaluation metric (MAE).
- Prepare data and experiment with Random Forest regression; reported local holdout MAE: 3.0984.
- Investigate relationships between distance, duration and fare components to understand pricing structure.
- Use a transparent pricing formula for applicable rows, with Random Forest as a fallback.
- Submit the hybrid approach; earlier discussion records a Kaggle MAE of 2.52019, with the formula used for 201 of 202 records and Random Forest for one.
Model interpretation
Illustrative discovered relationship: Fare = Base fare + (distance × per-kilometre rate) + (duration × per-minute rate). The underlying pricing coefficients are not supplied here; this is an explanation of the modeling strategy rather than a live fare calculator.
Evidence & reproducibility
The attached worksheet documents the competition steps and output schema (key, fare_amount). The original Python iteration files, prediction CSV, model binaries and a Kaggle submission receipt are not included in this release; the result values should be read as previously reported project results.
Practical transfer
This exercise illustrates how understanding business rules and modeling data-generating mechanisms can complement predictive algorithms. The same discipline can support engineering cost estimates, project planning and operational analytics.
