Data Science

Portfolio projects and technical work in data analysis, statistics, SQL, and machine learning.

Stack Overflow Data Analysis in BigQuery

An analysis of Stack Overflow data using BigQuery to investigate questions such as which programming languages are trending. The project combines SQL exploration with pandas-style transformations and visual analysis of query results. The code can be viewed at Google Colab.

Tools: BigQuery, SQL, pandas-style transformations, visualization cells (screenshot below).

Stack Overflow analysis in BigQuery

NYC Payroll Analysis

Analysis of approximately two million NYC payroll records and understand which factors relate to total income. Public repository to the project in GitHub.

Approach: Prepare data in PostgreSQL, explore it in Python, and compare a Random Forest regression workflow. Prepare a dashboard to visualize main findings.

Result: The analysis examines salary distributions, job titles, boroughs, hours worked, overtime, and tenure in a reproducible workflow.

Tools: PostgreSQL, SQL, Python, pandas, NumPy, Matplotlib, Seaborn, scikit-learn, Looker Studio.

NYC payroll model performance

Mock Salaries

Experiment to test whether models can recover known salary drivers without hiding proxy variables or bias. Public repository to the project in GitHub.

Approach: Generate a synthetic dataset with a known ground truth and compare Ridge Regression, Random Forest, and Gradient Boosting by both predictive performance and interpretability.

Result: The controlled experiment makes model behaviour and feature-importance differences explicit.

Tools: Python, feature engineering, preprocessing, scikit-learn, regression diagnostics.

Comparison of feature importance across salary models

Data Science Job Market Analysis

Compare requested skills, posting characteristics, and reported salaries across approximately 786,000 Data Science job postings from the US and Europe. Public repository to the project in GitHub.

Approach: Clean and explore the postings, then analyse salary associations while treating the reported-salary subset as limited evidence rather than causal data.

Result: The project identifies patterns in skill demand and reported compensation with explicit uncertainty-aware interpretation.

Tools: Python, pandas, NumPy, Matplotlib, Seaborn, Hugging Face Datasets.

Skills and salary associations in the European data science job market

Diamond Cut Classification

A supervised machine-learning project investigating whether diamond cut quality can be predicted from physical, quality, and pricing attributes. I curated the dataset, engineered a price_per_carat feature, and compared gradient-boosting classifiers using cross-validation and hyperparameter tuning.

The analysis achieved approximately 78% classification accuracy and examined model errors and permutation feature importance. An important finding was the strong dependence between the diamond dimensions (x, y, z, and depth), highlighting the need to interpret feature importance in the context of correlated variables. The project is hosted in GitHub.

Diamond dimensions versus price per carat by cut

Breast Cancer Classification

Supervised classification · Model comparison · Diagnostic metrics

A supervised machine-learning study using the Wisconsin Diagnostic Breast Cancer dataset. I compared five classification algorithms and explored feature representation, hyperparameter tuning, ensemble methods, and classification-threshold selection.

The project also includes a Dockerized prediction API and deployment pipeline.

A particular focus was the trade-off between sensitivity and specificity. Model-specific thresholds were selected using training out-of-fold predictions, allowing the final models to be evaluated on an untouched test set. The optimized Voting classifier achieved 97.4% accuracy, 97.6% sensitivity, 97.2% specificity, and 99.9% ROC-AUC on this test split.

Main result: Lowering the Voting threshold increased sensitivity from 90.5% to 97.6%, while reducing specificity from 100% to 97.2%. The confusion matrices below show this trade-off directly.

Confusion matrices comparing the default and optimized Voting classifier thresholds

Tech: Python, pandas, NumPy, scikit-learn, Matplotlib, Seaborn, Jupyter. View project on GitHub →

Reinforcement Learning for CarRacing

A reinforcement-learning project using pixel observations from Gymnasium’s CarRacing-v3 environment. I compared PPO, a standard pixel-based SAC baseline, and a DrQ-SAC variant using image augmentation and task-specific reward shaping.

Approach: Train and evaluate continuous-control agents using RGB observations, reproducible seeds, checkpoint selection, and deterministic holdout evaluation on 50 unseen environments.

Result: The stabilized PPO policy achieved the strongest holdout return (855.7 ± 81.3), while DrQ-SAC learned substantially faster than standard SAC. The project also documents an important limitation: strong returns did not always correspond to reliable lap completion.

Tools: Python, PyTorch, Gymnasium, Stable-Baselines3, reinforcement learning, convolutional visual policies, image augmentation, TensorBoard. View project on GitHub →

PPO policy driving in Gymnasium CarRacing