Design Metrics and Impact Measurement Questions
Connecting design work to measurable outcomes: choosing success metrics, KPIs and guardrails for a specific change, writing measurable problem statements and testable hypotheses, and judging when quantitative data should and should not override design judgment. Covers instrumentation and tracking plans (event taxonomy, identity resolution across platforms, data quality and privacy constraints), reading funnels, cohorts, retention and adoption curves, and reconciling behavioral analytics with survey and qualitative signal. Experimentation is a large part of this topic: A/B, multivariate and quasi-experimental design, sample size and minimum detectable effect, stopping rules, multiple-comparison and confounding traps, and isolating a design's effect when a clean test is not possible. Also covers post-launch monitoring, rollback criteria and post-mortems, ROI and business cases for design work including design systems and design programs, and reporting impact to executives and stakeholders.
Write a standard SQL query (Postgres) that outputs a 12-week retention table showing, for each weekly signup cohort, the percentage of users who returned in each subsequent week. Schema: events(user_id text, event_name text, event_date date). Assume event_name = 'session' indicates activity. Output should be cohort_week, week_offset (0..11), users_in_cohort, returning_users, retention_rate.
Sample Answer
Direct answer. The schema has no separate "signup" event, so the cohort key has to be derived: define cohort_week as the Monday-starting calendar week of each user's first session event, then for every later week count how many of that cohort's users had at least one more session event, expressed as week_offset (0 through 11 weeks after the cohort week).
Approach.
- Find each user's first
sessiondate and truncate it to the week: that iscohort_week. - Build a de-duplicated set of (user, week) pairs where the user had a
sessionin that week. - Join each user's
cohort_weekto every week they were active on or after it, and computeweek_offsetas the number of 7-day blocks between the two weeks. - Cross-join every cohort against
week_offset0..11 withgenerate_series, so weeks with zero returners still appear as a row instead of being silently missing. - Count distinct returning users per (cohort_week, week_offset) and divide by cohort size.
WITH first_activity AS (
SELECT user_id, date_trunc('week', MIN(event_date))::date AS cohort_week
FROM events
WHERE event_name = 'session'
GROUP BY user_id
),
activity_weeks AS (
SELECT DISTINCT user_id, date_trunc('week', event_date)::date AS activity_week
FROM events
WHERE event_name = 'session'
),
cohort_activity AS (
SELECT f.user_id, f.cohort_week,
((a.activity_week - f.cohort_week) / 7)::int AS week_offset
FROM first_activity f
JOIN activity_weeks a ON a.user_id = f.user_id
WHERE a.activity_week >= f.cohort_week
AND ((a.activity_week - f.cohort_week) / 7)::int <= 11
),
cohort_sizes AS (
SELECT cohort_week, COUNT(DISTINCT user_id) AS users_in_cohort
FROM first_activity
GROUP BY cohort_week
),
offsets AS (
SELECT generate_series(0, 11) AS week_offset
),
cohort_offsets AS (
SELECT cs.cohort_week, o.week_offset, cs.users_in_cohort
FROM cohort_sizes cs
CROSS JOIN offsets o
)
SELECT
co.cohort_week,
co.week_offset,
co.users_in_cohort,
COUNT(DISTINCT ca.user_id) AS returning_users,
ROUND(COUNT(DISTINCT ca.user_id)::numeric / co.users_in_cohort, 4) AS retention_rate
FROM cohort_offsets co
LEFT JOIN cohort_activity ca
ON ca.cohort_week = co.cohort_week AND ca.week_offset = co.week_offset
GROUP BY co.cohort_week, co.week_offset, co.users_in_cohort
ORDER BY co.cohort_week, co.week_offset;
Worked example. Run against a pinned events table with two 3-user cohorts (week of 2026-01-05 and week of 2026-01-12), including one duplicate same-day event for u1 and one non-session event for u2 before their real first session (to prove the filter ignores it):
CREATE TABLE events (user_id text, event_name text, event_date date);
INSERT INTO events (user_id, event_name, event_date) VALUES
('u2','click','2026-01-01'),
('u1','session','2026-01-05'), ('u1','session','2026-01-05'),
('u1','session','2026-01-12'), ('u1','session','2026-01-20'),
('u2','session','2026-01-06'),
('u5','session','2026-01-07'), ('u5','session','2026-01-14'),
('u3','session','2026-01-13'), ('u3','session','2026-01-19'),
('u4','session','2026-01-15'),
('u6','session','2026-01-16'), ('u6','session','2026-01-21'), ('u6','session','2026-01-28');
Running the query above against exactly this data produces (week_offset 3-11 are all zero for both cohorts, so shown once and noted rather than repeated):
| cohort_week | week_offset | users_in_cohort | returning_users | retention_rate |
|---|---|---|---|---|
| 2026-01-05 | 0 | 3 | 3 | 1.0000 |
| 2026-01-05 | 1 | 3 | 2 | 0.6667 |
| 2026-01-05 | 2 | 3 | 1 | 0.3333 |
| 2026-01-05 | 3-11 | 3 | 0 | 0.0000 |
| 2026-01-12 | 0 | 3 | 3 | 1.0000 |
| 2026-01-12 | 1 | 3 | 2 | 0.6667 |
| 2026-01-12 | 2 | 3 | 1 | 0.3333 |
| 2026-01-12 | 3-11 | 3 | 0 | 0.0000 |
This matches by construction: for the first cohort, u1 and u5 return in week 1 (2/3 = 0.6667) and only u1 returns in week 2 (1/3 = 0.3333); u2's pre-cohort click event never enters the calculation because it isn't a session row.
Complexity. Two filtered scans of events for session rows, a bounded join (cohort size times 12 offsets, not a full self-join across all users), and a hash aggregate. With an index on (event_name, user_id, event_date) this is a couple of index scans plus a sort, not a quadratic operation, and it stays cheap even as the table grows, since the join fan-out is capped at 12 rows per user rather than growing with total row count.
Edge cases.
- Right-censoring on recent cohorts: only an offset whose week has fully elapsed carries information. A (cohort_week, week_offset) pair is reportable only once
cohort_week + (week_offset + 1) * interval '7 days'is in the past, which means a cohort that is k weeks old supports offsets 0 through k-1 and nothing beyond. So for a cohort formed a week ago (k = 1), onlyweek_offset0 has finished:week_offset1 is the week still in progress andweek_offset2 through 11 lie entirely in the future, so every one of offsets 1 through 11 reads as 0 by construction, even though those users simply haven't had the chance to return yet, which is different from having churned. In production, filter those pairs out with exactly that predicate, or clearly footnote them, rather than presenting them as real zero retention; note that this censoring bites hardest on the newest cohorts, which are also the ones a stakeholder is most eager to read, so the guard has to live in the query rather than in a caveat someone can skip. - Duplicate events: two
sessionrows for the same user on the same date must not double-count a return; theDISTINCTinactivity_weeksand theCOUNT(DISTINCT ...)in the finalSELECTguard against this, as the duplicateu1row on 2026-01-05 shows. - Timezones:
event_dateis a plain date column with no timezone attached to it in this query. If the underlying event timestamps carry a timezone and get truncated to date upstream, a user active right at a week boundary can land in the wrong week depending on which timezone that truncation used; verify the ETL truncates consistently (usually to the organization's canonical timezone, not each user's local one) before this query ever sees the data.
Create a framework to measure the impact of research projects on product outcomes over a six-month window. Define leading and lagging indicators, how you'd track hypothesis progression to implementation, methods for attribution (qualitative and quantitative), and an example OKR that ties a research initiative to company-level goals.
Sample Answer
Direct answer
Measure research the way you'd measure any function whose product is decisions rather than direct revenue: chain a leading indicator (did a decision actually change because of this research) to a lagging indicator (did the outcome that decision affected actually move), and use a counterfactual comparison, what leadership would have decided without the research, since research rarely has a clean, isolated metric of its own.
Structured elaboration
Keep a research-to-decision log as the raw data everything else is computed from: one row per initiative, with the hypothesis, the decision it informed, the date, whether the recommendation was adopted, partially adopted, or rejected (and why), and the downstream metric it's tied to. That log directly feeds six metrics, split into leading indicators (move first, predict whether impact is coming) and lagging indicators (confirm the impact actually happened):
Leading indicators:
- Time from hypothesis to decision
- Percentage of recommendations actually implemented within the following quarter
- Percentage of roadmap influenced by research, items with a traceable link in the decision log
- Stakeholder-reported trust in research as a decision input, from a periodic survey of product managers, designers, and engineering leads, since trust today predicts whether tomorrow's findings get used at all
Lagging indicators:
- Downstream product-metric delta on features shipped as a direct result of a finding
- Rework or defect cost avoided, features that shipped without a late, costly redesign because research caught the problem before build
Attribution and the executive view: for decisions where a controlled comparison isn't possible, build an explicit counterfactual by asking the decision-maker, before they see the research finding, what they would have shipped otherwise, documented up front rather than reconstructed afterward to avoid hindsight bias, then compare the actual shipped outcome against that stated counterfactual's likely result. Where a real controlled comparison is possible instead (a redesign driven by a finding gets A/B tested against the old version), use that experiment result directly, it's stronger evidence than a stated counterfactual whenever you can get one. Roll the per-project log into a small executive dashboard: a handful of headline numbers (roadmap-influence percentage, recommendation-adoption rate, one or two flagship impact stories built the way the worked examples below are), with drill-down into the underlying log for anyone who wants the detail.
Worked example 1, avoided cost: a usability study on a proposed checkout flow, run before build, surfaces a critical confusion point, and the team redesigns before shipping instead of after. If a comparable post-launch fix has historically taken a 2-engineer team about 3 weeks at a fully loaded cost of $8,000 per engineer-week, that's 8,000 x 2 engineers x 3 weeks, or $48,000, in avoided rework, against a study cost of roughly $6,000 (participant incentives plus a researcher-week), an 8x avoided-cost ratio. This framing is directional, not precise, since it assumes the issue would definitely have shipped and definitely cost that much to fix later, present it as an order-of-magnitude argument, not a guaranteed return.
Worked example 2, a stronger, measured case: a finding recommends simplifying a signup step, and the resulting redesign is A/B tested rather than shipped on faith, raising completion from 40% to 44%, a 4-point lift. At 10,000 signup attempts a week, that's 10,000 x 0.04, or 400, extra completed signups a week, attributable to the research finding for as long as the change stays live. This is the stronger of the two cases because it rests on an actual controlled comparison rather than an assumed avoided cost.
Example OKR: Objective, make user research a trusted, load-bearing input to roadmap decisions rather than a rubber stamp. Key results: at least 50% of the next two quarters' shipped roadmap items traceable to a decision-log entry (against a measured current baseline), at least 70% recommendation-adoption within one quarter of delivery, and at least 2 documented cases per half using the counterfactual-or-experiment method above showing a measurable downstream impact.
Trade-offs and pitfalls
Avoided-cost ROI is the weakest evidence here, because the counterfactual (what would have shipped, what it would have cost to fix) is never directly observed, lean on it for directional storytelling, not for justifying headcount decisions. A roadmap-influence percentage can be gamed if research retroactively claims credit for decisions it only touched in passing, guard this by requiring the decision-log entry to be written and dated by the decision owner, the product manager or designer, not by the researcher claiming the credit. And six months is workable for most lagging metrics, but a foundational finding, a design-system decision, say, can pay off well past that window, this framework should coexist with a longer view rather than call a research program a failure on thin six-month numbers alone.
Propose a method to estimate 'design debt' and its operational cost. Describe measurable signals (e.g., inconsistent components, support tickets, rework time), how you'd quantify engineering/UX effort attributable to design debt, and how you'd present a business case to prioritize reducing it.
Sample Answer
Direct answer
Treat design debt the way engineering treats technical debt: measure concrete signals of inconsistency and friction, attribute a real cost to them (in hours and dollars, not vibes), and present the result to executives as a compact dashboard with a risk rating and a remediation plan, not just a number. The goal is a business case, not an audit report.
Structured elaboration
-
Measurable signals
- Inconsistent components: percentage of audited UI components with one-off style-guide overrides instead of the shared design-system version.
- Support tickets: percentage of monthly support tickets tagged as UI or UX confusion, versus other causes.
- Rework time: engineering or design hours per month spent re-implementing or patching something because of an inconsistent or outdated pattern.
- You can add usability regressions (rising task time or error rate in usability tests) and PR churn (pull requests reopened for UI clarification) as secondary signals, but the three above are enough to build a defensible index.
-
Quantifying a Design Debt Index (DDI) and cost
- Normalize each signal to a 0 to 1 share, then combine with weights that sum to 1 (weights reflect how directly each signal maps to user or business harm, agreed with stakeholders up front, not chosen after seeing the number):
- Convert the rework-hours share into dollars using the team's blended, loaded engineering hourly rate (an organization-specific input you plug in, not a universal constant) so the business case speaks in the currency executives actually use.
- Presenting to executive leadership
- Present it as an executive dashboard, not a written report, with three elements: (a) the DDI trend over time so the direction of travel is visible, not just a snapshot, (b) a risk rating (for example: components at or above a threshold percentage of overrides are flagged red), and (c) a short remediation plan attached to each flagged area, naming the fix, its estimated engineering cost, and the debt it retires, so leadership is deciding on a funded plan rather than reacting to a scary number.
Worked example
Suppose an audit covers 40 core components and finds 12 with style-guide overrides (12/40 = 30%). Support logs show 18 of 150 monthly tickets tagged UI-consistency (12%). Engineering time-tracking attributes 55 of 320 monthly rework hours to design-debt-driven fixes (17.2%). Using weights of 0.4 on components, 0.3 on tickets, and 0.3 on rework:
DDI=(0.4×0.30+0.3×0.12+0.3×0.172)×100≈20.8Converting the 55 monthly rework hours at an assumed blended loaded rate of $120/hour gives roughly $6,600 per month, about $79,200 annualized, in engineering time attributable to design debt alone. That dollar figure, next to a DDI of 20.8 trending upward over the last two quarters, is the executive-facing risk statement, and the remediation plan attaches to it: consolidate the 12 overridden components into the design system over the next two sprints, at an estimated cost far below the annualized rework figure.
Trade-offs and pitfalls
The weights and the hourly rate are judgment calls, not measured facts, so state them explicitly rather than presenting the DDI as an objective universal score; a different team with different weights would get a different number from the same raw signals. And a DDI computed once is a snapshot, not evidence of a trend: track it over at least two or three periods before drawing a "this is getting worse" conclusion, since a single audit can be skewed by which components happened to get audited that quarter.
You need to produce a one-page summary for execs showing the impact of a recent design change. What elements do you include on that page (metrics, visuals, context) and how would you communicate uncertainty and the recommended next steps?
Sample Answer
Direct answer
The one-pager needs to work as both a launch narrative and a living reference: a headline result stated in plain business terms first, the primary metric with its size of effect and how confident we are in it, one or two supporting metrics, a guardrail check confirming nothing else broke, and a clear recommendation for what happens next. I'd design it as a dashboard-style structure that keeps getting reused as the launch matures, not a one-time slide that gets forgotten the week after it's presented.
Structured elaboration
Elements to include:
- A headline banner in business language ("Checkout redesign lifted revenue-driving conversions, no negative impact on support volume") rather than a metric name and a percentage as the first thing anyone reads.
- The primary metric shown as a before/after comparison with the size of the change and a plain-language confidence statement, not just a bare percentage.
- One or two supporting metrics that corroborate the primary result (for a conversion lift, something like time-to-checkout or drop-off rate at the step that changed).
- A guardrail line confirming the metrics that shouldn't move, didn't move badly (error rate, support tickets, adjacent-flow performance).
- A small trend chart showing the metric over the surrounding weeks, so the audience can see the change wasn't a blip before or after the launch window.
- A short qualitative note or representative user quote, since a number alone rarely persuades a non-design audience as effectively as a number paired with a human reason.
- A clearly labeled recommendation and next step (ship to 100%, iterate further, hold and investigate).
Communicating uncertainty: state the confidence interval and the sample size or duration behind it in plain language rather than showing a raw statistical output, for example "we're 95% confident the true lift is between 0.08 and 0.52 percentage points, based on 100,000 sessions over two weeks" rather than just "z = 2.68, p < 0.01." If the interval is wide, say so plainly rather than letting the headline point estimate imply more precision than the data supports.
Structuring it as an ongoing dashboard, not just a launch snapshot: the same layout, headline banner, metric tiles, trend chart, guardrail row, doubles as a recurring reference stakeholders can revisit weeks later to see whether the initial win held up, rather than a static slide that gets forgotten. Treating the one-pager as a durable dashboard rather than a one-time announcement is what makes the "successful launch" story stay true past the first week, since a redesign that looks great on day 3 but decays by day 30 is a very different result than one that holds.
Worked example
Checkout redesign, two-week window, 50,000 sessions per arm: baseline conversion 3.10% (1,550 conversions), post-change conversion 3.40% (1,700 conversions).
The lift and its interval both have to be carried on the same basis, percentage points, or the arithmetic silently stops meaning anything:
diff=3.40%−3.10%=0.30 percentage points SEdiff=n1p1(1−p1)+n2p2(1−p2)=50,0000.031×0.969+50,0000.034×0.966≈0.00112That 0.00112 is a proportion, which is 0.112 percentage points; converting it before it meets the 0.30 is the whole trick.
95% CI=0.30±1.96×0.112=0.30±0.22=(0.08, 0.52) percentage pointsThat is a 0.30 percentage-point absolute lift and, separately, a relative lift of about 9.7% (0.30 divided by 3.10). Those are two different bases and the page has to label which one it is quoting: 9.7 percentage points would be roughly thirty-two times the actual 0.30-point lift, and an exec who reads the relative number as an absolute one has misjudged the result by that factor. The confidence interval doesn't cross zero (the same standard error gives z=0.0030/0.00112≈2.68), so the headline can honestly read "conversion lift, 95% confident the true improvement is between roughly 0.1 and 0.5 percentage points" rather than a single overconfident number.
Trade-offs and pitfalls
The biggest trap is choosing metrics for the one-pager that flatter the result rather than test it; if the guardrail row is quietly dropped because nothing interesting happened there, a skeptical stakeholder should assume the omission was deliberate, not that everything was fine. The second trap is presenting a point estimate with no interval at all, which reads as more certain than the underlying data justifies and sets up an awkward conversation later if the effect doesn't hold at full rollout.
Write a Postgres SQL query to compute the weekly conversion rate from signup to first purchase. Table schema: events(user_id text, event_name text, event_time timestamptz, properties jsonb). Define conversion per calendar week (UTC) where conversion = at least one purchase in the week of signup. Return week, signups, converters, and conversion_rate.
Sample Answer
Approach
Build two filtered views of the events table, one for signup events and one for purchase events, each truncated to a UTC calendar week. Left join purchases to signups matching on both user_id and the same week, so a user only counts as a converter if their purchase happened in the same calendar week as their signup, not merely at any point afterward. Aggregate with COUNT(DISTINCT ...) so a user with more than one event in a week is never double-counted.
SQL
WITH signups AS (
SELECT
user_id,
date_trunc('week', event_time AT TIME ZONE 'UTC') AS signup_week
FROM events
WHERE event_name = 'signup'
),
purchases AS (
SELECT
user_id,
date_trunc('week', event_time AT TIME ZONE 'UTC') AS purchase_week
FROM events
WHERE event_name = 'purchase'
)
SELECT
s.signup_week AS week,
COUNT(DISTINCT s.user_id) AS signups,
COUNT(DISTINCT p.user_id) AS converters,
ROUND(
COUNT(DISTINCT p.user_id)::numeric / NULLIF(COUNT(DISTINCT s.user_id), 0),
4
) AS conversion_rate
FROM signups s
LEFT JOIN purchases p
ON p.user_id = s.user_id AND p.purchase_week = s.signup_week
GROUP BY s.signup_week
ORDER BY s.signup_week;
Reproducible fixture and output
CREATE TABLE events (user_id text, event_name text, event_time timestamptz, properties jsonb);
INSERT INTO events (user_id, event_name, event_time, properties) VALUES
('u1','signup','2026-08-03 10:00:00+00','{}'),
('u1','purchase','2026-08-05 10:00:00+00','{}'),
('u2','signup','2026-08-04 10:00:00+00','{}'),
('u2','purchase','2026-08-20 10:00:00+00','{}'),
('u3','signup','2026-08-05 10:00:00+00','{}'),
('u4','signup','2026-08-11 09:00:00+00','{}'),
('u4','purchase','2026-08-12 09:00:00+00','{}'),
('u5','signup','2026-08-12 09:00:00+00','{}'),
('u6','signup','2026-08-13 09:00:00+00','{}'),
('u6','purchase','2026-08-14 09:00:00+00','{}');
week | signups | converters | conversion_rate
2026-08-03 | 3 | 1 | 0.3333
2026-08-10 | 3 | 2 | 0.6667
Week of Aug 3: u1 converts (purchase Aug 5, same week), u2 does not (purchase Aug 20, a different week), u3 never purchases. 1 of 3 signups converts, 0.3333. Week of Aug 10: u4 and u6 convert within the week, u5 never purchases. 2 of 3 converts, 0.6667.
Key points
- The join condition matches on
(user_id, week), not justuser_id, which is what enforces "at least one purchase in the week of signup" rather than "ever converts." u2 does eventually purchase, just two weeks later, and the query correctly excludes that from Aug 3's converter count. date_trunc('week', ...)truncates using the session's current timezone unless the timestamp is first shifted withAT TIME ZONE 'UTC'. Verified directly: a signup at2026-08-03 03:00:00+00(a UTC Monday) truncates to2026-08-03when converted to UTC first, but to2026-07-27(the wrong, prior week) under a Pacific-time session without that conversion, since 03:00 UTC is still Sunday evening in Pacific time.COUNT(DISTINCT ...)on both sides protects against a user firing more than one signup or purchase event in the same week from being counted more than once.
Complexity
Each CTE (a Common Table Expression, the named WITH signups AS (...) and WITH purchases AS (...) blocks defined above, which let you name and reuse an intermediate result instead of nesting subqueries) is a single filtered scan of events, O(n) in the number of matching rows (Big-O notation for how the work scales: O(n) means the time grows roughly in direct proportion to n, the number of matching rows, rather than, say, doubling faster than n grows) given an index on (event_name, user_id, event_time). The join between signups and purchases on (user_id, week) is a hash join (the database builds a fast in-memory lookup table from one side of the join, then checks each row from the other side against it, rather than comparing every row to every row), O(s + p) for s signups and p purchases, followed by an O(s) grouped aggregate. Recommend the composite index above so both the WHERE event_name = ... filters and the join key are covered without a full table scan.
Edge cases
- A user who signs up but never purchases: correctly stays in the
signupsdenominator with no matching converter, via theLEFT JOIN(u3, u5 above). - A user who eventually purchases, but in a later week than they signed up: correctly excluded from that week's converters, since the join requires the same week on both sides (u2 above); a naive query checking only "does this user_id appear anywhere in purchases" would over-count this case.
- A user with duplicate signup or purchase events in the same week: correctly counted once, via
COUNT(DISTINCT user_id). - Omitting
AT TIME ZONE 'UTC': produces a wrong week boundary whenever the database session's timezone differs from UTC, as verified above; always pin the timezone explicitly rather than relying on the session default.
Unlock Full Question Bank
Get access to all 17 Design Metrics and Impact Measurement interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.