End-to-end data science project analyzing Formula 1 World Championship data (1950-2020) using machine learning, statistical analysis, and interactive visualizations. Demonstrates complete ML lifecycle from data preprocessing to model optimization achieving 100% accuracy.
Predict driver performance and race outcomes using historical F1 data while extracting actionable insights about racing patterns and performance factors.
- Multi-source Integration: Merged 6 datasets (25K+ records)
- Feature Engineering: Driver age calculation, performance metrics
- Data Quality: IQR-based outlier detection, missing value imputation
- Statistical Analysis: Skewness testing, correlation analysis
- Interactive Mapping: Folium world map with F1 circuit locations
- GPS Visualization: Custom markers with circuit details
- 6 Classification Algorithms: Logistic Regression, Random Forest, Decision Tree, KNN, Naive Bayes, SGD
- 3 Scaling Techniques: MinMaxScaler, StandardScaler, RobustScaler
- Performance Optimization: Achieved 40%+ accuracy improvement through scaling
| Dataset | Records | Features | Description |
|---|---|---|---|
results.csv |
25,840+ | 18 | Race results and performance metrics |
drivers.csv |
857 | 8 | Driver biographical information |
circuits.csv |
77 | 9 | Circuit specifications and coordinates |
- Driver Performance Classification: Based on race finishing positions
- Performance Metrics: Points, lap times, fastest lap speeds
- Logistic Regression - Linear classification baseline
- Decision Tree Classifier - Interpretable tree-based model with visualization
- Random Forest Classifier - Ensemble method for improved accuracy
- K-Nearest Neighbors (KNN) - Instance-based learning algorithm
- Gaussian Naive Bayes - Probabilistic classifier
- Stochastic Gradient Descent (SGD) - Scalable optimization algorithm
- MinMaxScaler: Range [0,1] normalization
- StandardScaler: Z-score standardization (μ=0, σ=1)
- RobustScaler: Median and IQR-based scaling (outlier-resistant)
| Model | Raw Data | MinMaxScaler | StandardScaler | RobustScaler |
|---|---|---|---|---|
| Random Forest | 95%+ | 99%+ | 100% | 100% |
| Decision Tree | 90%+ | 95%+ | 100% | 100% |
| Logistic Regression | 60% | 99%+ | 100% | 99%+ |
- Interactive Correlation Heatmaps: Feature relationship analysis
- Geographic Circuit Mapping: World map with F1 venue locations
- Performance Trend Analysis: Algorithm accuracy comparison charts
- Decision Tree Visualization: Complete model interpretability
- Statistical Distribution Plots: Data quality assessment visualizations
- Scaling Impact: Demonstrated 40%+ accuracy improvement with proper feature scaling
- Algorithm Performance: Ensemble methods consistently outperformed single algorithms
- Data Quality: Outlier removal significantly improved model generalization
- Feature Importance: Identified critical performance predictors
Key Achievements:
- ✅ 100% Model Accuracy achieved (Random Forest + StandardScaler)
- ✅ 67% Accuracy Improvement through feature scaling optimization
- ✅ 6 ML Algorithms successfully implemented and compared
- ✅ Interactive Visualizations with geospatial mapping
Core Stack: Python 3.8+ | Pandas | NumPy | Scikit-learn | Jupyter Notebook
Visualization: Matplotlib | Seaborn | Folium (Interactive Maps)
ML Techniques: Classification Algorithms | Feature Scaling | Statistical Analysis
⭐ Star this repository if you found it helpful!