Course outline

Data Analysis / Intermediate: Relationships and Uncertainty / Lesson 14

Cohort Retention and Observation Windows

Define a cohort and calculate retention with consistent eligibility and complete observation windows.

About 23 min read20 worked examples20 practice exercisesContent reviewed
On this page

Lesson goals

  • Define cohort membership and a qualifying activity.
  • Calculate retention using a fixed cohort denominator.
  • Identify incomplete follow-up and repeated events.
  • Define cohort membership, activity window and maturity with explicit boundaries.
  • Calculate independent, continuous and cumulative rates and audit event arrival.

Define the cohort and activity

A cohort groups entities by a shared qualifying event in a specified interval, such as accounts first registered during a calendar week. Define the entity identifier, event timestamp, timezone, membership rule, and qualifying activity before measuring retention. A record created by a device or a transaction is not automatically a unique account.

Define the follow-up window relative to the cohort event, and decide whether its boundaries are inclusive or exclusive. A calendar-week comparison and a fixed number of elapsed days can produce different results. The choice is valid only when the report states it and applies it consistently.

Count distinct retained members

The denominator is the original eligible cohort, not everyone active later. Intersect the original cohort with distinct active identifiers in the follow-up window. The following synthetic example includes an active identifier outside the cohort; it must not increase the numerator. Multiple events from the same account also contribute at most once.

python Intersect the cohort and active accounts
cohort = {"a", "b", "c", "d"}
active = {"b", "c", "e"}
retained = cohort & active
print(len(retained), len(cohort), len(retained) / len(cohort))

Two of the four original accounts are active; the unrelated identifier e is excluded, yielding 0.5.

Check complete follow-up

A recent cohort may not yet have reached the end of its follow-up window. Comparing it with an older completed cohort would mistake unavailable future observation for inactivity. Mark incomplete periods separately or restrict the comparison to cohorts with sufficient follow-up. Record an extraction cutoff and account for late-arriving events according to a stated rule.

Calculate each period independently

Retention in a later period can include someone who was inactive in an earlier period unless the metric explicitly requires continuous activity. Use the original cohort denominator for each independent period and label the alternative definition clearly. The second example calculates another period without requiring activity in the first.

python Independent later-window retention
cohort = {"a", "b", "c", "d"}
active_next = {"a", "b"}
print(len(cohort & active_next) / len(cohort))

Accounts a and b are active in this window, so two of the four original accounts are retained.

Reconcile and interpret

Reconcile cohort size, distinct retained accounts, excluded identifiers, and incomplete windows before publishing. Inspect one account at each window boundary and compare timestamps in the declared timezone. A retention difference is descriptive: composition, tracking changes, and incomplete coverage can explain it, so the rate alone cannot establish why behavior changed.

Fix the cohort and the unit before following it

A cohort is a set of entities sharing a defined entry event in a specified entry period. The unit might be an account, person, subscription, or customer; a login event is not itself an account. Write the identifier, the qualifying first event, the entry period, time zone, exclusions and deduplication rule before calculating a rate. If an account registers twice, decide which event establishes its entry rather than creating two cohort members. If two accounts may belong to one person, account retention is not automatically person retention.

Freeze the eligible cohort for each published cohort and keep its count as the denominator for independent follow-up periods. A member with no recorded qualifying activity contributes zero to the numerator after a complete, observable window; an account outside the cohort cannot enter that numerator even if it is active. For cohort {a,b,c,d} and active IDs {a,a,c,x}, deduplication and intersection give {a,c}, so retention is 2/4=50%, not 3/4 and not 3/5. Retain event counts separately if event frequency is also a question; they measure a different unit.

Define elapsed and calendar windows explicitly

A window needs an anchor, time zone, boundaries, and qualifying event. A half-open interval [start,end) includes an event exactly at start and excludes one exactly at end, assigning a boundary to only one of adjacent windows. For an entry at 00:00 UTC on January 1, the elapsed-day window [day 7,day 14) begins at January 8 00:00 UTC and ends at January 15 00:00 UTC. An event at the first instant counts; one at the end belongs to the next interval. State whether elapsed days mean fixed 24-hour durations or local calendar days, especially around daylight-saving changes.

Calendar windows answer a different question. A week beginning Monday can give a Sunday entrant only one day before the next week starts, whereas an elapsed seven-day interval gives that entrant a full seven days after entry. Neither definition is universally right. Apply the same rule to every member, convert timestamps using the declared zone, and test entries near midnight and window boundaries. Avoid combining a local-calendar cohort with UTC follow-up dates without explicitly translating the instants. Store the anchor and computed start and end so a reader can reproduce each classification.

Separate incomplete observation from inactive members

An account's follow-up window is mature only when its entire required interval lies within the data observation period under the stated cutoff. An extraction cutoff at the end of a window is necessary for a half-open interval, but source completeness and late-arrival policy also matter. A recent member whose window ends tomorrow is not observed inactive today; its future activity is unknown. If a cohort contains staggered entry times, maturity may differ by member even when all share one calendar cohort. Count mature and immature members explicitly.

A fixed full-cohort denominator is comparable only once every included member's relevant window is mature and the source is sufficiently complete under the report's rule. One option is to withhold the full-cohort rate until then. Another is a clearly labeled mature-member rate whose denominator is only the eligible members with complete observation, but this is a different target and can be compositionally selected. Do not quietly divide the few currently observed active members by the whole cohort and label the result completed retention. Show the observation cutoff, maturity rule, count, and any exclusions alongside the figure.

Distinguish independent, continuous, and cumulative definitions

Independent period retention asks whether each original member had at least one qualifying event in that particular window, regardless of earlier activity. Continuous retention through period two requires qualifying activity in both period one and period two. Cumulative return by period two asks whether a member was active in at least one of the windows. With cohort {a,b,c,d}, period one active {a,b} and period two active {b,c}, the independent rates are 2/4 and 2/4, continuous through period two is 1/4, and cumulative return is 3/4. All are correct for their declared definitions.

Do not substitute the prior period's active count as the denominator unless the question is explicitly conditional on earlier activity. In the same example, among the two period-one active members, one is active again in period two, giving a conditional rate 1/2. That is not the fixed-cohort continuous rate 1/4. Independent later-period retention can rise when previously inactive members return, so it need not decrease monotonically. Continuous retention cannot increase as another required period is added, and cumulative return cannot decrease as more windows are included. Those logical checks expose inconsistent definitions or implementation errors.

Audit event time, data arrival, and interpretation

Use event time to decide which follow-up window an action belongs to, and separately record when the source made that event available. A qualifying event that occurred inside a completed window but arrived after the extraction cutoff is missing from that snapshot, not proof that the member was inactive. Choose a consistent lateness allowance, refresh or freeze policy and version date; when a late event is incorporated, a previously reported rate may legitimately change. An event that occurred after the window is not made eligible merely because it arrived early or was processed near the cutoff.

Reconcile the original cohort count, mature members, distinct qualifying cohort IDs, duplicate events, excluded nonmembers and rejected event types. Test a member at the exact start and end and compare a manually traced example with the computed output. Report numerator, denominator, period, entry definition, time zone, cutoff and tracking limitations. A change in retention across cohorts can reflect product behavior, cohort composition, coverage, identity changes or instrumentation; the descriptive rate alone cannot identify the cause. Preserve the data version and transformation rules so a later revision can be explained rather than silently overwriting history.

20 worked examples

1. Repeated activity counts once

Problem: Calculate account retention, keeping event frequency separate.

  1. The event list has three rows, but only two distinct cohort IDs: a and c.
  2. Divide those two members by the four original accounts to obtain 2/4=50%.
text Synthetic cohort and event fixture
cohort: {a,b,c,d}
qualifying event IDs: a,a,c
window: complete

An explanatory classification and calculation, not a platform response or real records.

Expected result: 2 retained accounts of 4; 50%; 3 events

Why this result follows: The numerator counts members, not repeated actions.

2. Exclude an active nonmember

Problem: Which active IDs belong in the retention numerator?

  1. The intersection of the original cohort and active IDs is {b,d}.
  2. The active outsider x is not eligible for this cohort numerator, so retention is 2/5=40%.
text Synthetic cohort and event fixture
cohort: {a,b,c,d,e}
active IDs: {b,d,x}
window: complete

An explanatory classification and calculation, not a platform response or real records.

Expected result: Retained {b,d}; 2/5=40%; excluded {x}

Why this result follows: Intersection restricts the numerator to original eligible members.

3. First entry per account

Problem: How many cohort members enter this week?

  1. The two records for a identify the same account and its first registration is January 1.
  2. Account b first registers January 2; both first dates are in the entry period, giving two members.
text Synthetic cohort and event fixture
registrations: (a,Jan 1),(a,Jan 3),(b,Jan 2)
rule: first registration per account
entry period: Jan 1–7 inclusive

An explanatory classification and calculation, not a platform response or real records.

Expected result: Cohort {a,b}; denominator 2

Why this result follows: A first-entry rule prevents repeated registrations from multiplying members.

4. Boundary at the start

Problem: Does the event at the start qualify?

  1. The start is January 8 at 00:00 UTC.
  2. The half-open window includes its left endpoint, so this event qualifies.
text Synthetic cohort and event fixture
entry: 2026-01-01 00:00 UTC
window: [entry+7 days, entry+14 days)
event: 2026-01-08 00:00 UTC

An explanatory classification and calculation, not a platform response or real records.

Expected result: Start included; event qualifies

Why this result follows: A left-closed boundary includes an event at exactly the start instant.

5. Boundary at the end

Problem: Does the event at the end qualify for this window?

  1. The specified window ends at January 15 00:00 UTC.
  2. Its right endpoint is excluded, so the event belongs to a later adjacent window if that window starts there.
text Synthetic cohort and event fixture
entry: 2026-01-01 00:00 UTC
window: [entry+7 days, entry+14 days)
event: 2026-01-15 00:00 UTC

An explanatory classification and calculation, not a platform response or real records.

Expected result: End excluded; event does not qualify here

Why this result follows: Half-open adjacent windows do not double-count their shared boundary.

6. Elapsed versus calendar week

Problem: Compare the two window classifications.

  1. The January 6 event is inside the next Monday-based calendar week.
  2. The elapsed window begins January 11 at 12:00 UTC, so the same event is too early for it.
text Synthetic cohort and event fixture
entry: Sunday 2026-01-04 12:00 UTC
calendar next week: [Jan 5 00:00, Jan 12 00:00) UTC
elapsed week: [entry+7 days,entry+14 days)
event: 2026-01-06 12:00 UTC

An explanatory classification and calculation, not a platform response or real records.

Expected result: Calendar next week: yes; elapsed [7,14) days: no

Why this result follows: The two definitions anchor their boundaries differently.

7. Convert before assigning a local date

Problem: Which local date contains the event?

  1. Subtracting two hours from 00:30 UTC gives 22:30 in the fixed-offset zone.
  2. That local time is on January 1, so assigning January 2 by UTC date would use a different cohort rule.
text Synthetic cohort and event fixture
event instant: 2026-01-02 00:30 UTC
reporting zone: fixed UTC−02:00
cohort date rule: local calendar date

An explanatory classification and calculation, not a platform response or real records.

Expected result: Local timestamp 2026-01-01 22:30 UTC−02:00; date January 1

Why this result follows: A calendar date depends on the reporting time zone.

8. Cutoff before window end

Problem: Can 3/10 be published as complete window retention?

  1. The cutoff occurs three days before the window ends.
  2. The remaining interval is unobserved, so 3/10 is only activity observed so far and cannot establish the completed rate.
text Synthetic cohort and event fixture
cohort size: 10
window: [Jan 8 00:00, Jan 15 00:00) UTC
extraction cutoff: Jan 12 00:00 UTC
active so far: 3 distinct members

An explanatory classification and calculation, not a platform response or real records.

Expected result: Window incomplete; completed retention unavailable

Why this result follows: Future activity cannot be classified as inactivity before the observation window closes.

9. Maturity differs within one cohort

Problem: Compare mature-member and full-cohort results.

  1. Only a and b have windows ending by the cutoff; both are active.
  2. Their mature-member rate is 2/2=100%, but the full-cohort completed rate is unavailable because c and d are immature.
text Synthetic cohort and event fixture
members: a,b,c,d
window ends: a Jan 10; b Jan 11; c Jan 13; d Jan 14
cutoff: Jan 12
active mature members: a,b

An explanatory classification and calculation, not a platform response or real records.

Expected result: Mature rate 2/2=100%; full cohort incomplete

Why this result follows: Restricting the denominator to mature members changes the target and must be labeled.

10. Independent return after a gap

Problem: Calculate independent retention for each period.

  1. Period 1 contains two cohort members, giving 2/4=50%.
  2. Period 2 also contains two, including c who was absent in period 1; its independent rate is 2/4=50%.
text Synthetic cohort and event fixture
cohort: {a,b,c,d}
period 1 active: {a,b}
period 2 active: {b,c}
all windows complete

An explanatory classification and calculation, not a platform response or real records.

Expected result: Period 1 50%; period 2 50%; c returns

Why this result follows: Independent period retention does not require activity in prior windows.

11. Continuous through two periods

Problem: Calculate continuous retention through period 2.

  1. Only b belongs to both period activity sets.
  2. With the original four-member denominator, continuous retention is 1/4=25%.
text Synthetic cohort and event fixture
cohort: {a,b,c,d}
period 1 active: {a,b}
period 2 active: {b,c}
metric: active in both periods

An explanatory classification and calculation, not a platform response or real records.

Expected result: Continuous retained {b}; 1/4=25%

Why this result follows: Intersection across required periods excludes members who miss either one.

12. Cumulative return in either period

Problem: Calculate cumulative return through period 2.

  1. The union of the two activity sets is {a,b,c}.
  2. All three are original members, so cumulative return is 3/4=75%.
text Synthetic cohort and event fixture
cohort: {a,b,c,d}
period 1 active: {a,b}
period 2 active: {b,c}
metric: active in at least one period

An explanatory classification and calculation, not a platform response or real records.

Expected result: Cumulative returned {a,b,c}; 3/4=75%

Why this result follows: The union counts each returning member once even when active in both periods.

13. Conditional denominator

Problem: Calculate the conditional rate and compare continuous retention.

  1. One of the two period-one active members, b, is active in period two.
  2. The conditional rate is 1/2=50%, while continuous retention on the original cohort is 1/4=25%.
text Synthetic cohort and event fixture
cohort: {a,b,c,d}
period 1 active: {a,b}
period 2 active: {b,c}
metric: period 2 activity among period 1 active

An explanatory classification and calculation, not a platform response or real records.

Expected result: Conditional 1/2=50%; fixed-cohort continuous 1/4=25%

Why this result follows: The numerator is the same but the two questions use different denominators.

14. Independent rates can rise

Problem: Is an increase in later independent retention possible?

  1. The first period retains 1/5=20% of the original cohort.
  2. The second retains 3/5=60%; b and c can return without having been active in period one.
text Synthetic cohort and event fixture
cohort: {a,b,c,d,e}
period 1 active: {a}
period 2 active: {a,b,c}
windows complete

An explanatory classification and calculation, not a platform response or real records.

Expected result: Period 1 20%; period 2 60%

Why this result follows: Independent windows count activity without requiring an unbroken sequence.

15. Late event revises a snapshot

Problem: How does the reported rate change after the refresh?

  1. The first snapshot contains only a, giving 1/4=25%.
  2. The b event occurred within the window and is added after arrival, so the refreshed rate is 2/4=50%.
text Synthetic cohort and event fixture
cohort: {a,b,c,d}
window ends: Jan 15 00:00 UTC
Jan 16 snapshot active: {a}
b event time: Jan 14 12:00 UTC; arrival: Jan 17
policy: refresh after late arrival

An explanatory classification and calculation, not a platform response or real records.

Expected result: Snapshot 25%; refreshed 50%; late member b

Why this result follows: Event time determines eligibility and arrival time determines which snapshot sees it.

16. Arrival does not move event time

Problem: Does quick arrival qualify the event for the window?

  1. The event occurred one hour after the excluded end boundary.
  2. Its prompt arrival does not change its event time, so it is not a qualifying event for this window.
text Synthetic cohort and event fixture
window: [Jan 8 00:00, Jan 15 00:00) UTC
event time: Jan 15 01:00 UTC
arrival: Jan 15 02:00 UTC

An explanatory classification and calculation, not a platform response or real records.

Expected result: Event excluded from this window

Why this result follows: Window membership is determined by the event instant, not processing speed.

17. Qualifying event types

Problem: Which accounts count under the activity rule?

  1. Accounts a and c have a login, while b has only a view.
  2. The retained set is {a,c}; the fixed cohort rate is 2/3, approximately 66.7%.
text Synthetic cohort and event fixture
cohort: {a,b,c}
events in complete window: (a,login),(b,view),(c,login)
qualifying activity: login only

An explanatory classification and calculation, not a platform response or real records.

Expected result: Retained {a,c}; 2/3≈66.7%

Why this result follows: An event must satisfy the declared activity definition as well as the time rule.

18. An empty cohort has no rate

Problem: What retention rate should be reported?

  1. No original eligible members exist, so the denominator is zero.
  2. The active IDs are nonmembers and the ratio 0/0 is undefined; report no eligible cohort rather than 0%.
text Synthetic cohort and event fixture
eligible cohort: {}
active IDs: {x,y}
window: complete

An explanatory classification and calculation, not a platform response or real records.

Expected result: Denominator 0; retention undefined

Why this result follows: A rate cannot be computed by division by an empty cohort.

19. Account and person grain differ

Problem: Compare account and person retention under this mapping.

  1. One of three cohort accounts is active, giving account retention 1/3.
  2. After deduplicating the declared mapping, one of two cohort people is active, giving person retention 1/2.
text Synthetic cohort and event fixture
cohort accounts: {a1,a2,b1}
identity map: a1→person A, a2→person A, b1→person B
active accounts: {a1}

An explanatory classification and calculation, not a platform response or real records.

Expected result: Account 1/3; person 1/2

Why this result follows: Different entity units produce different eligible denominators.

20. A tracking change limits comparison

Problem: What can the observed difference establish?

  1. Observed rates are 80% for A and 50% for B, a 30-point difference.
  2. Missing B events could change its measured numerator, and the comparison alone does not identify a behavioral cause.
text Synthetic cohort and event fixture
cohort A: 8 of 10 observed active
cohort B: 5 of 10 observed active
tracking: B misses an unknown number of qualifying events
windows: complete

An explanatory classification and calculation, not a platform response or real records.

Expected result: Observed A 80%; B 50%; difference 30 points; cause unresolved

Why this result follows: Instrumentation affects measured activity independently of underlying behavior.

Common errors and fixes

Retention exceeds 100 percent.

Why it happens
Events or accounts outside the original cohort were counted in the numerator.
How to fix it
Count distinct identifiers in the intersection with the cohort.
Prevent it next time
Reconcile numerator membership against the fixed cohort.

The newest cohort appears to have unusually poor retention.

Why it happens
Its follow-up period is incomplete.
How to fix it
Wait for a complete window or label it incomplete.
Prevent it next time
Record the extraction cutoff and window end.

Later retention unexpectedly excludes returning accounts.

Why it happens
The calculation silently required activity in every previous window.
How to fix it
Use independent intersections if that is the agreed metric.
Prevent it next time
Document whether retention is independent or continuous.

20 practice exercises

1. A cohort has five accounts; two are active next week and one produces three events. What is retention?

Show hint

Count unique active cohort accounts, not activity events.

Show worked solution

The numerator is two distinct cohort accounts and the denominator is five, so retention is 40 percent. The three events from one account do not count as three retained accounts.

The numerator is two distinct members even though one member generates three events. Divide those two members by the five original eligible accounts: 2/5=40%. Event frequency can be reported separately but cannot replace the member count.

Check your solution

  • The numerator is 2 and the denominator is 5.
  • The retention rate is 40%, not 60% or an event rate.

2. A 30-day follow-up ends after the data extraction date. Should its rate be compared with completed cohorts?

Show hint

Compare the end of the required window with the extraction cutoff.

Show worked solution

Not as a completed 30-day rate. Mark the observation incomplete or wait until the window closes, and apply the same late-arrival policy to all compared cohorts.

If the 30-day window ends after extraction, later activity is not yet observable. Do not label the partial result a completed 30-day rate; wait or explicitly mark it incomplete. Apply and document the same late-arrival policy when comparing cohorts.

Check your solution

  • The window end is later than the cutoff.
  • Incomplete follow-up is not treated as confirmed inactivity.

3. A cohort is {p,q,r,s,t,u}. Complete-window events have IDs p,p,q,x,x. Calculate retained members, rate, and the event rows excluded from the member numerator.

Show hint

Deduplicate cohort IDs after excluding nonmembers.

Show worked solution

The eligible active set is {p,q}, so retention is 2/6=1/3, about 33.3%. The second p event is a duplicate for member counting and the two x events are outside the cohort; retain event records separately for frequency analysis.

Check your solution

  • The numerator is 2 and denominator 6.
  • The duplicate p and outsider x rows do not add members.

4. An account has registrations on March 2 and March 9; another first registers March 8. For a March 1–7 first-registration cohort, specify membership and explain the second event.

Show hint

Apply the first-entry rule before the period filter.

Show worked solution

The first account entered March 2 and belongs to the cohort once; its March 9 repeat does not create another member. The other account first entered March 8 and is outside this entry period. The denominator is one account.

Check your solution

  • The first account is included once.
  • The March 8 first entrant is excluded.

5. A member enters February 1 at 12:00 UTC. For [entry+2 days, entry+5 days), classify events February 3 12:00 and February 6 12:00 UTC.

Show hint

Use the left-closed, right-open rule.

Show worked solution

The window is [February 3 12:00, February 6 12:00) UTC. The first event is exactly at the included start and qualifies; the second is exactly at the excluded end and does not qualify for this window.

Check your solution

  • The February 3 boundary is included.
  • The February 6 boundary is excluded.

6. A member enters Sunday March 1 at 10:00 UTC. Compare an event Monday March 2 at 10:00 under next calendar week [March 2, March 9) and elapsed [entry+7 days,entry+14 days).

Show hint

Write both intervals before classifying the event.

Show worked solution

The event is inside the next calendar week beginning Monday March 2. The elapsed window starts March 8 at 10:00 UTC, so the same event is too early. Label the chosen definition because the classifications answer different questions.

Check your solution

  • The event qualifies for the next calendar week.
  • It does not qualify for elapsed days 7–14.

7. An event occurs April 2 at 01:00 UTC. A cohort uses local dates in a fixed UTC−03:00 zone. Assign the local date and explain why the UTC date differs.

Show hint

Subtract the fixed offset and check for a date rollover.

Show worked solution

Subtracting three hours gives April 1 at 22:00 in UTC−03:00. Thus the local cohort date is April 1 even though the instant is April 2 in UTC; the report must apply its declared time zone consistently.

Check your solution

  • The local time is April 1 22:00.
  • The local date is April 1, not April 2.

8. A four-member cohort has completed windows for three members and an unfinished window for the fourth. Two mature members are active. Report the mature rate and explain the full-cohort limitation.

Show hint

Keep the mature count and original count distinct.

Show worked solution

The mature-member rate is 2/3, about 66.7%. The full-cohort completed rate is not yet known because the fourth member may still become active; 2/4 is only a partial observation, not a completed rate.

Check your solution

  • Mature-member rate is 2/3.
  • The four-member completed rate is unavailable.

9. A cohort {a,b,c,e,f} has period-one active {a,b}, period-two active {b,c,e}. Calculate both independent rates and explain the returners.

Show hint

Use the original five-member denominator in both periods.

Show worked solution

Period one is 2/5=40%; period two is 3/5=60%. Members c and e are counted in the second window even though absent in the first, because independent retention does not require prior activity.

Check your solution

  • Period rates are 40% and 60%.
  • c and e can return after an inactive first period.

10. For cohort {a,b,c,d,e}, period sets are {a,b,c}, {b,c,d}, and {c,d,e}. Find continuous retention through all three periods.

Show hint

Intersect all three sets before dividing by the fixed cohort.

Show worked solution

Only c occurs in every period set. Divide one continuously active member by the five original members, giving 1/5=20%; members active in only two periods do not satisfy the continuous rule.

Check your solution

  • The intersection is {c}.
  • Continuous retention is 20%.

11. For cohort {a,b,c,d,e}, period sets are {a,b}, {b,c}, and {d}. Find cumulative return by the third period.

Show hint

Take a union and count each member once.

Show worked solution

The union is {a,b,c,d}, containing four distinct cohort members. With the original denominator of five, cumulative return is 4/5=80%; b is not counted twice for appearing in two periods.

Check your solution

  • The union has four members.
  • Cumulative return is 80%.

12. A six-member cohort has period-one active {a,b,c} and period-two active {b,c,d}. Compare conditional period-two activity among first-period active with fixed-cohort continuous retention.

Show hint

The same intersection has two possible denominators.

Show worked solution

The shared active set is {b,c}. Among three period-one active members the conditional rate is 2/3≈66.7%; on the original six-member denominator continuous retention is 2/6≈33.3%.

Check your solution

  • The common numerator is 2.
  • The denominators are 3 and 6.

13. A cohort has four accounts. A qualifying event occurred inside its completed window but arrived after a frozen snapshot; the initial active set was {a}, and the late event belongs to b. Report the original and a refreshed result.

Show hint

Classify by event time, then by snapshot availability.

Show worked solution

The frozen snapshot is 1/4=25% because only a was available. A refresh that incorporates b gives 2/4=50%. Preserve both versions and label their extraction dates and late-arrival policy instead of silently rewriting the first.

Check your solution

  • The frozen result is 25%.
  • The refreshed result is 50%.

14. A window is [May 1, May 8) UTC. An event occurs May 8 at 01:00 and is processed at 01:01. Does it qualify for that window?

Show hint

Compare event time to the excluded end, not arrival speed.

Show worked solution

No. The event is one hour after the excluded May 8 00:00 end. Processing one minute later does not move the event into the preceding window; it may qualify for a separately defined later window.

Check your solution

  • The event is outside the stated window.
  • Quick processing does not change event-time membership.

15. Cohort {a,b,c,d} has complete-window events (a,view), (b,purchase), (c,purchase), (d,view). Activity is purchase only. Calculate retention and state the excluded type.

Show hint

Apply the activity rule before counting distinct IDs.

Show worked solution

The purchase IDs are {b,c}, both cohort members. The fixed-denominator rate is 2/4=50%; view events from a and d are excluded by the declared activity definition, not because those accounts are outside the cohort.

Check your solution

  • The retained set is {b,c}.
  • The rate is 50%; view is not qualifying.

16. A complete-window report shows five retained accounts from a four-account cohort. Propose two concrete checks to diagnose the impossible result.

Show hint

A member numerator cannot exceed the original cohort count.

Show worked solution

Check whether repeated events were counted as accounts and whether active nonmembers entered the numerator. Recompute distinct cohort-ID intersection; its size cannot exceed four, so the corrected retention must be at most 100%.

Check your solution

  • The original numerator 5 exceeds denominator 4.
  • The repaired numerator is distinct and restricted to cohort IDs.

17. A cohort has zero eligible members and five later active accounts. Explain why reporting retention as 0% is incorrect.

Show hint

Check the denominator before forming a ratio.

Show worked solution

The intersection with an empty cohort has zero members, but the denominator is also zero. The ratio 0/0 is undefined, so label the cohort empty or rate unavailable; the five later active accounts do not create cohort members.

Check your solution

  • The numerator and denominator are both zero.
  • The rate is undefined, not 0%.

18. Accounts a1 and a2 belong to person A; b1 and c1 belong to people B and C. The cohort contains all four accounts and active accounts are {a1,b1}. Compare account and person retention.

Show hint

Deduplicate people after applying the given identity mapping.

Show worked solution

Two of four accounts are active, giving 2/4=50%. Their owners are A and B; two of three people are active, giving 2/3≈66.7%. The unit must accompany each rate.

Check your solution

  • Account retention is 50%.
  • Person retention is 2/3≈66.7%.

19. An old cohort has 7/10 observed retained and a new cohort 4/10, but tracking in the new cohort lost an unknown number of events. Calculate the observed difference and limit the claim.

Show hint

Compare the measured rates before asking what caused them.

Show worked solution

The observed rates are 70% and 40%, a difference of 30 percentage points. Missing tracking could change the new numerator, so the difference alone does not establish a behavioral decline or its cause. Investigate data completeness before interpretation.

Check your solution

  • The observed difference is 30 percentage points.
  • The causal and complete-data comparison remains unresolved.

20. A report shows continuous retention rising from 3/8 through period two to 4/8 through period three. Diagnose the violation and suggest a reconciliation.

Show hint

Adding a required period can only retain or remove members from the intersection.

Show worked solution

The period-three continuous set must be a subset of the through-period-two set, so it cannot grow from three to four members with the same cohort. Compare member IDs and definitions; a period-three independent set may have been substituted for the continuous intersection.

Check your solution

  • Continuous counts cannot rise from 3 to 4.
  • The same cohort and all required period intersections are checked.

Key takeaways

  • Specify the cohort, activity, and follow-up window.
  • Use distinct cohort members and a fixed denominator.
  • Separate incomplete follow-up from measured inactivity.
  • Member identity and the original cohort define the retention denominator.
  • Incomplete follow-up is not observed inactivity.
  • Event time, arrival time and period definition change the result.

Official references