Project Overview
Most people learn machine learning by predicting housing prices on a clean dataset with no stakes. These projects were different.
The first asked me to step into the role of a data consultant for a 100,000-person manufacturing company whose HR director needed two things at once: proof that their promotion process wasn't biased, and a model that could automate that process entirely. The second put me inside a health insurance company trying to forecast medical costs accurately enough to price policies without losing money.
Both problems had real financial consequences attached to every prediction. That changes how you think.
The Solution Journey
For the HR project, I started where the business started with fairness. Before touching a single predictive model, I fit an explanatory logistic regression to ask a pointed question: do gender and age actually influence promotion outcomes when everything else is held equal? The coefficient for gender came back near zero and slightly negative for males, meaning the data showed no meaningful bias. That's the kind of finding that matters in a boardroom, not just a notebook.
Then came the harder problem: building a model that could replace a 200-dollar-per-employee manual review process without making costly mistakes. This is where I learned that accuracy is almost never the right metric. A false positive wrongly promoting someone cost the company 600 dollars. A false negative wrongly denying a deserving employee cost 3,000 dollars in satisfaction loss and reputational damage. The model had to be tuned with those asymmetric costs in mind, not just optimized for the highest accuracy score.
I built a regularized logistic regression pipeline with L2 penalty, cross-validation across 50 candidate values of C, and StandardScaler preprocessing then evaluated it not just with classification reports and ROC curves, but with an actual dollar-value formula. The final model generated $80,400 in value on the test set alone, against a baseline cost of doing nothing.
The insurance project pushed me into regression territory. I fit a shallow decision tree first deliberately keeping it interpretable at max depth 3 to answer the explanatory question: what actually drives medical costs? Smoking status split the data harder than any other variable, creating an immediate fork between two completely different cost populations. BMI and age followed. The tree didn't just predict it told a story a non-technical executive could follow.
Then I built the predictive model: a Random Forest with 200 trees, tuned through 10-fold cross-validated grid search across depth and split parameters. The ensemble cut test RMSE from $4,663 down to $4,323 over the single tree a meaningful reduction when you're setting annual insurance premiums for thousands of people.
The Impact
Across both projects, I wasn't just running models. I was answering questions that had dollar signs attached to them.
For the HR model: every correct prediction saved $200 in manual review costs. Every wrong denial cost $3,000. Building the model meant understanding that tradeoff deeply enough to communicate it to a non-technical director not just report a confusion matrix.
For the insurance model: the Random Forest identified smoking status as responsible for roughly 60-70% of predictive importance. That single insight surfaced cleanly through feature importance plots is the kind of finding that changes how an actuary prices a product line.
Both projects taught me that the model is never the end of the work. Explaining what it means, what it costs to be wrong, and what the business should actually do with the output that's where the real value lives.


Key Highlights
Key Highlights
Cost-Aware Model Evaluation—Went beyond accuracy metrics to build a custom value function that weighted false positives and false negatives by their real financial costs $600 vs. $3,000. This is how decisions actually get made in business contexts.
Explanatory + Predictive Modeling — Built separate models for separate purposes: logistic regression and shallow decision trees to explain relationships, regularized pipelines and random forests to minimize prediction error. Knowing which tool fits which question is the skill.
End-to-End ML Pipeline — Handled every stage: missing value treatment, dummy encoding, train/test stratified splitting, StandardScaler preprocessing, L2 regularization, cross-validated hyperparameter tuning with GridSearchCV, and evaluation across RMSE, MAE, MAPE, ROC-AUC, and Precision-Recall curves.
Imbalanced Data Literacy — Recognized that a 91% accuracy score on an imbalanced promotion dataset is meaningless, and reframed evaluation around precision, recall, F1, and business cos the approach that actually holds up in production.
Communicating to Stakeholders — Every technical result was framed as a business answer. Not "the model has 0.81 precision" but "81% of employees we recommend for promotion actually deserve it, and here's what the other 19% costs us."

Go Back


