Daily Data Analytics Project · Day 25
A relationship-NPS survey (4,188 clean responses, Jan–Sep 2026) for a fictional Baku home-internet provider, linked to a 90-day churn follow-up. The project measures NPS with proper uncertainty, separates real drivers from halo-effect correlations using a Shapley R² decomposition, ties NPS to churn revenue, and turns the result into a prioritised CX budget plan.
- Where does NPS stand, and how does it vary by month, district and plan?
- Which of seven service attributes (speed, reliability, support, price/value, installation, billing clarity, router/Wi-Fi) actually drive the recommend score?
- Does NPS predict churn, and what revenue is at risk?
- Which improvement, in which districts, moves NPS the most?
| KPI | Value |
|---|---|
| Clean responses | 4,188 (47 duplicates / keying errors removed) |
| NPS | −11.2 (95% bootstrap CI −13.8 … −8.5) |
| Promoters / Passives / Detractors | 31.3% / 26.3% / 42.4% |
| Driver model R² | 0.80 |
| #1 driver | reliability — 29.5% of explained variance (lowest-rated attribute, mean 2.64 / 5) |
| Top-3 drivers (reliability, price/value, support) | 66.1% of importance |
| 90-day churn: detractors vs promoters | 41.6% vs 7.4% (adjusted odds ratio 7.66) |
| Excess churn revenue from detractors & passives | ≈ 53,100 AZN/yr per 1,000 surveyed customers |
| What-if: lift every 1–2 reliability rating by +1 | +10.9 NPS points (installation: +0.2) |
| Same fix only in Sabunchu / Surakhani / Absheron | +4.5 NPS points (41% of the network-wide effect) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
- Data quality: duplicate submissions, out-of-range scores (−1, 11, 99) and "not applicable" skips (~4% per attribute, median-imputed for modelling only).
- NPS with uncertainty: bootstrap 95% CIs overall, by month, and for the pre/post May network upgrade.
- Key driver analysis: Pearson r vs standardised OLS betas vs Shapley R² decomposition over all 2⁷ = 128 sub-models; cross-checked with a detractor logistic regression (odds ratios).
- Importance–performance matrix to decide fix-first vs over-investment areas.
- Churn link: logistic regression of 90-day churn on NPS category, controlling for outages and tenure; revenue at risk vs promoter baseline.
- What-if simulation: +1 point on every 1–2 rating of one attribute → score shift via OLS coefficients → Monte-Carlo re-classification (500 draws).
| Finding | Evidence | Recommendation |
|---|---|---|
| Overall NPS is negative | −11.2 (CI −13.8…−8.5); 42% detractors | Target NPS ≥ 0 for 2027; report monthly with a confidence band |
| Reliability is the #1 driver and the weakest attribute | 29.5% Shapley share, mean rating 2.64 | Make outage frequency/duration the CX north-star; publish an outage SLA with automatic credits |
| Three drivers carry two-thirds of the effect | reliability + price/value + support = 66% | Concentrate budget there; freeze spend on low-importance areas |
| Installation is a false signal | r = 0.44, but only 5.7% Shapley share | Don't prioritise by raw correlation — that link is halo, not cause |
| May network upgrade | NPS −13.9 → −8.9 (+5.0, CI −0.3…10.1) | Directionally positive but not conclusive; run the next wave with a control group |
| Suburbs are the cheapest win | Reliability fix in 3 suburban districts = +4.5 pts | Roll out geographically, suburbs first |
| NPS predicts churn | Detractors churn 42% vs 7% (OR 7.66) | 48-hour call-back for every detractor |
Python · pandas · NumPy · statsmodels (OLS, logit) · matplotlib · seaborn · nbformat/nbconvert
day-25-nps-key-driver-analysis/
├── data/
│ ├── generate_data.py # synthetic survey generator (seed 25)
│ └── nps_survey.csv
├── notebooks/
│ └── nps_key_driver_analysis.ipynb # executed, outputs visible on GitHub
├── images/ # 8 charts
├── reports/
│ ├── kpis.json
│ └── findings.csv
├── build_notebook.py # builds the notebook with nbformat
└── requirements.txt
python -m venv .venv && .venv\Scripts\activate # macOS/Linux: source .venv/bin/activate
pip install -r requirements.txt
python data/generate_data.py
python build_notebook.py
python -m nbconvert --to notebook --execute --inplace notebooks/nps_key_driver_analysis.ipynbNote: all data is synthetic, generated with a fixed seed. The provider, customers and numbers are fictional; district names are used only for realism.
Bakıdakı uydurma ev interneti provayderinin 4 188 NPS sorğu cavabı təhlil edilib. Ümumi NPS −11.2-dir (müştərilərin 42%-i "detraktor"dur). Shapley R² metodu göstərir ki, tövsiyə balına ən çox xidmətin etibarlılığı (kəsintilər) təsir edir — izah olunan fərqin 29.5%-i — və bu, eyni zamanda ən aşağı qiymətləndirilən göstəricidir. Quraşdırma ilə korrelyasiya yüksək görünsə də (r = 0.44), real təsiri cəmi 5.7%-dir (halo effekti). Detraktorlar 90 gündə 42%, promoterlər isə 7% tərk edir. Bütün 1–2 bal alan etibarlılıq qiymətlərini 1 bal yüksəltmək NPS-i təxminən +10.9 bal artırar; ən sərfəli başlanğıc Sabunçu, Suraxanı və Abşerondur.







