Week Over Week Change in Card Approval Rate by Application Channel

Last updated: November 29, 2026

Quick Overview

Compute the weekly credit card approval rate for each application channel (web, mobile, partner, branch) and the change versus the prior week, suppressing weeks with fewer than 200 decisions.

Capital One
Data Manipulation (SQL/Python)
Data Scientist
Capital One
November 29, 2026
Data Scientist
Technical Screen
Data Manipulation (SQL/Python)
Medium

0

0

0 solved


Compute the weekly credit card approval rate for each application channel (web, mobile, partner, branch) and the change versus the prior week, suppressing weeks with fewer than 200 decisions.

Capital One underwriting and acquisition teams watch approval rates by channel to catch issues like a broken partner integration or a mix shift toward thinner-file applicants. The interviewer checks weekly bucketing, LAG on a per-channel series, and statistical caution with small denominators.

What the Interviewer Expects
  • Buckets decisions into weeks consistently
  • Computes rate as approvals over decided applications, excluding pending
  • Uses LAG partitioned by channel ordered by week
  • Handles missing weeks so LAG compares adjacent weeks
  • Suppresses or flags low-volume weeks
  • Reports the change in percentage points
Key Topics to Cover
time series aggregation
LAG
rates
mix shift
credit decisioning
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you tell whether a 2 point drop is noise?
  • What could cause approval rate to fall when nothing changed in underwriting?
  • How would you attribute the change to mix shift versus within-segment change?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data
  • applications(app_id, channel, submitted_ts, decision, decision_ts) where decision is approved, declined or pending.
  • I bucket by decision week because approval rate is a property of decisio...
Approach

Aggregate decided applications per (channel, week), cross join channels with a week spine, left join, compute rate, apply LAG for the prior week, and blank out rates where the denominator is below 200...


Submit Your Answer
Markdown supported