Skip to content

Nairobi, Kenya · Open to internships & part-time roles

Data scientist who ships credit-risk models on real data, not toy datasets.

Third-year BSc Data Science & Analytics student at USIU-Africa (expected 2028), trained through ALX and Andela's ATLP. I build the whole stack: PostgreSQL schemas, Python machine learning, FastAPI services, React front ends. Tested, documented, deployed.

Every metric on this page links to the repository it came from. Clone it. Rerun it. Check me.

Featured work

Projects with receipts

Public repositories you can clone, rerun, and critique. Every flagship card links to its live system and full case study.

Solo: data, modeling, app, CI

Live

Credio: Credit-Risk Scorecard

Probability of default turned into decision-ready risk bands, live in the browser

  • 0.869 ROC-AUC
  • 0.407 PR-AUC
  • 150K borrowers
  • 19 tests
Credio Streamlit scoring screen showing a 36.2% probability of default and top risk driversLive Applicant Scoring

Problem

Lenders don't need a leaderboard score. They need calibrated probabilities they can price. Predict the chance a borrower goes 90+ days past due within two years, then turn that probability into defensible risk bands.

Approach

Leak-free pipeline on 150,000 real borrower records, with special codes and 20% missing income handled inside the scikit-learn pipeline. I built a logistic scorecard baseline (0.823 ROC-AUC on validation) and a gradient-boosting model, then picked between them on a held-out test set, not on the leaderboard.

Results

  • ROC-AUC 0.869 · PR-AUC 0.407 · KS 0.584 · Brier 0.0486
  • Calibrated risk bands: observed default runs from 1.1% (safest band) to 39.0% (riskiest), with a cost-based approval threshold (0.16 at 5:1 FN:FP cost ratio)
  • Tested class weights and SMOTE, then rejected both because they distorted predicted probabilities (Brier worsened from 0.0493 to 0.1398 and 0.0601)
  • Streamlit app with per-applicant explanations, 19 unit tests, and GitHub Actions CI

Stack

  • Python
  • scikit-learn
  • pandas
  • Streamlit
  • pytest
  • GitHub Actions

Solo: data engineering, analysis, BI

Live

FinAccess Kenya: Financial Inclusion Dashboard

A 290 MB government survey made explorable at county level

  • 28.1M weighted
  • 290 MB → 8 MB
  • 6 pages
  • 84.8% matched
FinAccess Kenya 2024 Power BI summary showing 28.14M represented adults and 84.8% formal financial accessPublished Power BI View

Problem

Kenya's FinAccess 2024 survey (CBK · KNBS · FSD Kenya) ships as a 290 MB workbook that almost nobody can explore. I made household financial inclusion explorable at county level, with survey weights handled correctly.

Approach

A streaming prep script turned the 290 MB workbook into an 8 MB CSV: 19,750 adult records × 63 columns, weight variables included, reconciled against the published topline. On top of it sits a Power BI model with DAX measures.

Results

  • Weighted results reconcile with the published topline: 84.8% formal access, 9.9% excluded
  • County formal access ranges from 48.5% to 94.0%, a 45-point gap across Kenya
  • Among adults without an ID, 63% are excluded from formal finance. With an ID, that figure is 5%

Interactive Power BI report published to web, backed by the bounded-memory Python XML ETL pipeline in the repository.

Stack

  • Power BI (DAX)
  • Python
  • pandas

Solo: full-stack · MLH Builders Week (Nov 2026)

Live

DukaPulse: Stock & Sales App for Small Shops

Inventory that can't oversell, forecasts that earn their keep

  • 30 tests (25 unit + 5 real-engine integration)
  • 10,000 concurrent checkout attempts
  • 0 oversells
  • 60 days of history
DukaPulse Streamlit analytics dashboard backed by TimescaleDB hypertablesTimescaleDB Analytics

Problem

Small-shop owners track stock on paper and reorder on guesswork. DukaPulse is a full-stack retail POS and telemetry system with role-based access control, race-proof inventory checkouts, and demand forecasts that earn their compute by beating moving baselines.

Approach

FastAPI, TimescaleDB, and PostgreSQL on the backend with a kiosk POS and Streamlit analytics dashboard. Sales decrement atomically at the engine level with CHECK (current_stock >= 0) to eliminate oversell races, while restock uses SELECT FOR UPDATE row locks. Time-series events write to a 7-day chunk hypertable with continuous aggregates refreshing at 30-minute and 1-hour cadences on Timescale Cloud. Catalog search runs 384-dimensional FastEmbed ONNX embeddings with Swahili vernacular expansion.

Results

  • 30 tests (25 unit + 5 real-engine integration) · 10,000 concurrent checkout attempts · 0 oversells · 60 days of history
  • Concurrency verified in CI: 16 threads racing 10,000 checkouts against 1 unit yield exactly 1 success, 9,999 × 409 InsufficientStockError, and zero oversells (tests/test_integration_engine.py#L160-L226)
  • Forecasting tournament: Seasonal-Naive won 14/14 products (1.012% to 5.433% baseline MAPE vs 2.533% to 16.58% Holt Linear); ships the baseline by design (docs/receipts/forecast_mape.json)
  • Semantic retrieval: ONNX all-MiniLM-L6-v2 matches vernacular queries (unga ya ugali 0.8611, sabuni ya kuoga 0.6119, mafuta ya kupika 0.7743) and out-of-map English terms (soap 0.5005, rice 0.5541, tea 0.4965)
  • Auth0 RS256 token verification with RBAC staff margin redaction and restock 403; dev mode uses an isolated mock-token signer gated by DEV_MODE_MOCK_AUTH (secure by default, demo only)

Built for MLH Global Hack Week: Builders Week (November 2026). Live Kiosk POS: https://dukapulse-kiosk.onrender.com/kiosk · Analytics Dashboard: https://dukapulse.streamlit.app.

Stack

  • FastAPI
  • TimescaleDB
  • PostgreSQL
  • pgvector
  • Docker
  • Streamlit
  • Auth0
  • pytest

Lead Analyst & BI Architect: ETL, star schema, DAX, PBIR

Live

Mzigo Chakula: Kenya Food Price Inflation BI

20 years of county-level staple prices modeled in a 4-table star schema

  • 55,692 rows
  • 233 markets · 27 counties
  • 15 DAX measures
  • 46 PBIR visuals
Mzigo Chakula Page 1 Executive Pulse showing the 2007-2026 Kenya National Food Price Index trend and county inflation watchlistPBIR Executive Pulse

Problem

National food inflation headlines hide wide county-level gaps. A household in Turkana faces a different price path than one in Nairobi or Mombasa. Planners need market-level visibility into which counties, staples, and seasons carry the heaviest food-price burden.

Approach

Built a Git-trackable Power BI project (PBIP/TMDL) and Python validation pipeline on the World Bank Real Time Food Prices (RTFP) dataset for Kenya: 55,692 market records across 233 physical markets, 27 counties, and 238 consecutive months (January 2007 to October 2026). Modeled a 4-table star schema (dim_markets, dim_date, dim_commodity, fact_prices) with single-direction 1:* relationships, 4 Power Query M scripts, 15 DAX measures, and a 4-page PBIR report with 46 visuals.

Results

  • 55,692 market price observations cleaned and modeled across 233 markets in 27 Kenyan counties (2007 to 2026)
  • 4-table star schema in TMDL with 15 validated DAX measures, including a market-month deduplicated food price index and EDATE(-12) year-over-year inflation
  • 4-page PBIR report (46 visuals) covering Executive Pulse, County & Commodity, Trends & Diagnostics, and Decisions & Action
  • Automated Python pytest suite validating ETL transforms, DAX calculations, and report deliverables

Stack

  • Power BI (PBIP/TMDL)
  • DAX
  • Power Query (M)
  • Python
  • pandas
  • pytest

Research

Publications & working papers

Working papers, open preprints, and reproducible replication packages archived with DOIs.

Working Paper (SocArXiv) | Under Review at Demographic Research | November 2026

Beyond Korogocho and Viwandani: Sampling Bias and External Validity in Research on Single Motherhood in Nairobi, Kenya

Audited 10 empirical studies, 2008-2022 KDHS analyses, and 2019 KNBS census counts to test how far findings from Nairobi's two NUHDSS informal settlements (<2% of the city's 4.40M residents) generalize to single mothers across Nairobi's formal and mixed-income estates (~40% of the city). Documents structural drivers of informal-settlement sampling bias, including Kenya's unmapped 11-sub-county vs. 17-constituency boundary split, and proposes a cross-stratum analytical framework and multi-channel non-HDSS recruitment standards.

Contact

Fastest ways to reach me

Hiring for a data, ML, or backend internship or part-time engineering role? Email is fastest, and I reply within a day.