Employee Retention Model — Mert İlhan
Capstone of the Google Advanced Data Analytics certificate: predicting which employees are about to leave a company, and identifying what is actually driving them out.
An HR department has a turnover problem and a spreadsheet of roughly fifteen thousand employee records. The brief is not only to predict who leaves, but to say why — a model nobody can act on is worth nothing to the people who asked for it. Worked end to end under the PACE framework the programme teaches: plan the question, analyse the data, construct the model, execute the recommendation.
Exploratory analysis before any model
Satisfaction score, last evaluation, project count, average monthly hours, tenure, promotions, department and salary band. The distributions tell most of the story before a model is fitted: the people leaving are not randomly spread, they cluster.
Overwork shows up in the data, not just in theory
Employees carrying seven projects left without exception, and the hours distribution splits into two peaks — a group working far above a normal month and a disengaged group working well below it. Two different reasons for leaving, visible as two different shapes.
Logistic regression as the baseline
A linear model first, because a coefficient can be read and explained to a non technical stakeholder. It also sets the bar that any more complex model has to clear to justify its own opacity.
Tree ensembles for the real predictions
Decision tree, random forest and gradient boosting, tuned with cross validated grid search. They handle the non linear thresholds the linear model cannot — attrition does not rise smoothly with hours, it jumps past a point.
Accuracy is the wrong score here
Leavers are the minority class, so a model that predicts 'stays' for everyone already scores well on accuracy. Evaluation is done on precision, recall, F1 and AUC instead, and the threshold is chosen around what the business actually pays for — missing someone about to resign costs more than a wasted retention conversation.
Catching the leak in the strongest feature
Satisfaction score is the most predictive column and also the least trustworthy: it comes from a survey that may not exist at the moment a prediction is needed, and it partly reflects a decision already made. A second model is built without it, to see how much of the performance was real and how much was borrowed from the future.
Findings written for the people who asked
The deliverable ends in feature importances turned into plain recommendations — cap project load, investigate the overworked tail, review the tenure band where attrition spikes — rather than a notebook and a score.
Technologies: Python, pandas, scikit-learn, Machine Learning, EDA
Other Projects by Mert İlhan
- MediScan AI — AI powered health platform that recognises medicine from a photo of its box, blister or the pill itself, then rewrites the official leaflet in language anyone can understand.
- This Portfolio — The site you are reading. A React single page app deployed to GitHub Pages, with a projects section that reads its own statistics and documentation from the GitHub API at runtime.
- Born2beroot — A hardened Debian server built from a blank virtual machine: encrypted LVM partitions, a strict sudo and password policy, a firewall, a scheduled monitoring script — and, for the bonus, a WordPress site served by lighttpd and MariaDB.
- NetPractice — A networking exercise: repair ten broken TCP/IP topologies by working out the addressing, masks and routes each one needs.
- CPP Module 09 — The last C++ module: choosing the right STL container for each problem and paying for that choice in performance.
- ft_transcendence — The final project of the common core: a real time multiplayer Pong website with accounts, chat and matchmaking.
- Webserv — A non blocking HTTP/1.1 server written from scratch in C++98. Parses its own nginx style config, serves static files, handles CGI and keeps many clients alive on a single event loop.
- CPP Modules 05-08 — The advanced half of the 42 C++ track: exception hierarchies, type casting and serialisation, templates, and finally container and iterator work on top of the STL.
- Inception — A small infrastructure built entirely from hand written Dockerfiles: NGINX with TLS, WordPress on PHP-FPM and MariaDB, wired together with docker-compose and persistent volumes.
- miniRT — A ray tracer in C. Parses a scene description, then renders spheres, planes and cylinders with ambient and diffuse lighting, hard shadows and 2×2 supersampling.
- minishell — A working shell in C. Lexer and parser for quotes, redirections and pipes, plus its own builtins, environment handling and signal behaviour that matches bash.
- Philosophers — The dining philosophers problem solved with threads and mutexes. No philosopher starves and no data race survives, which is the entire difficulty of the exercise.
- push_swap — Sorting a stack with a restricted instruction set, using a radix sort to keep the instruction count low. Graded purely on how short the output sequence is.
- fract-ol — Real time fractal explorer built on MiniLibX, rendering the Mandelbrot and Julia sets with interactive zoom deep into the boundary.
- minitalk — A client and server that exchange whole strings using nothing but the two UNIX user signals, encoding each character one bit at a time.
- get_next_line — Reads one line at a time from any file descriptor, keeping the leftover bytes in a static buffer between calls so nothing is read twice or lost.
- ft_printf — A reimplementation of printf with variadic arguments, handling the conversion specifiers of the original and returning the same character count.
- libft — The first project of the cursus: a static library rebuilding the parts of the C standard library that every later project depends on.