{
  "study": "north-star-dashboard",
  "round": "r1",
  "status": "declared before any cohort query",
  "question": "For GitHub as a product whose users are the people acting on it in public, which candidate North Star metric, measured in a newcomer's first week, best predicts whether the newcomer is still active three months later, and which first-week input behaviours go with it?",
  "data": {
    "source": "GH Archive hourly files (https://data.gharchive.org/YYYY-MM-DD-H.json.gz), every public GitHub event",
    "route_note": "The BigQuery copy of the same archive was the planned route; the sandbox credential could not create query jobs, so the hourly files are streamed and filtered locally with DuckDB. Bounded span, said on the page.",
    "cohort_day": "2024-09-10",
    "threshold_day": "2024-09-09",
    "first_window_days": 7,
    "retention_window": [84, 90],
    "day_index": "UTC calendar date of created_at minus cohort_day",
    "hours_read": "24 hours of the threshold day, the cohort day, days 1 to 6 and days 84 to 90: 15 days, 360 hourly files"
  },
  "cohort": {
    "new_account_band": "actor id above the largest actor id seen on the threshold day (t1) and at most the largest actor id seen on the cohort day (t2); GitHub account ids are issued in increasing order",
    "member": "an account in the band with at least one public event on the cohort day (day 0)",
    "bot_rule": "excluded as automation: login ends with [bot], or more than 100 events in any single UTC hour of days 0 to 6, or more than 1000 events in days 0 to 6",
    "dedup": "one row per event id, the copy from the earliest hourly file kept; duplicates counted",
    "late_events": "events are placed by created_at, not by the file they arrived in; events whose created_at falls outside the windows read are dropped and counted",
    "short_hour": "an hourly file with fewer than 40% of the median events of the hours of its own window is flagged short; a missing file is flagged missing"
  },
  "definitions": {
    "retained": "at least one public event other than a star (WatchEvent) on days 84 to 90",
    "retained_any_event": "sensitivity: at least one public event of any type on days 84 to 90",
    "activated": "active on at least 2 distinct days of days 0 to 6, and at least one making event in days 0 to 6",
    "making_event": "PushEvent; PullRequestEvent with action opened; IssuesEvent with action opened; CreateEvent with ref_type repository",
    "own_repo": "repository name begins with the actor's login followed by a slash"
  },
  "candidates": {
    "events_w1": "count of public events on days 0 to 6 (the default: actions per user)",
    "active_days_w1": "number of distinct days with at least one public event, days 0 to 6 (1 to 7)",
    "repos_w1": "number of distinct repositories acted on, days 0 to 6",
    "collab_w1": "count of events on repositories not owned by the actor, days 0 to 6, excluding stars and forks",
    "stars_w1": "count of stars (WatchEvent), days 0 to 6"
  },
  "inputs": {
    "pushed_own": "at least one PushEvent to an own repository, days 0 to 6",
    "created_repo": "at least one CreateEvent with ref_type repository, days 0 to 6",
    "pr_others": "at least one PullRequestEvent opened on a repository not owned by the actor, days 0 to 6",
    "issue_or_comment_others": "at least one IssuesEvent opened, IssueCommentEvent or PullRequestReviewCommentEvent on a repository not owned by the actor, days 0 to 6",
    "forked": "at least one ForkEvent, days 0 to 6",
    "starred": "at least one WatchEvent, days 0 to 6"
  },
  "scoring": {
    "primary": "AUC of each candidate for retained, among non-automation cohort members; ties count one half (the Mann-Whitney form). Higher AUC is better prediction.",
    "interval": "95% percentile interval from 1000 bootstrap resamples of accounts, seed 20240910; the difference between two candidates is computed on the same resample",
    "winner_rule": "the candidate with the highest AUC; it beats another candidate when the 95% interval of their difference excludes zero",
    "inputs_rule": "for each input, week-13 retention of accounts that did it minus those that did not, within strata of active_days_w1 (1, 2, 3, 4 to 7), averaged with weights equal to the stratum's number of accounts (direct standardisation); the raw difference is reported beside it. Observational: an association, never called an effect.",
    "funnel": "steps: active on day 0; active on a second day in days 0 to 6; activated; retained. The biggest drop is the step with the largest loss in accounts.",
    "sizing": "for the biggest drop: if the share passing it rose by 5 percentage points, and the extra accounts were retained at the rate of accounts that passed it with the same day-0 event count band (1, 2 to 4, 5 or more), the cohort's week-13 retention would rise by the computed amount. An assumption, labelled as such.",
    "default_check": "the events_w1 top decile versus the active_days_w1 top decile by week-13 retention; a default that ranks by events would pick the first"
  },
  "stopping": "one cohort day, one run of the declared queries; the follow-up is a second cohort day, declared before it runs, with the same queries unchanged",
  "follow_up": {
    "cohort_day": "2024-10-15",
    "question": "does the same candidate win, by an interval that excludes zero, on a second cohort five weeks later",
    "status": "declared here; run after the first cohort's results, with the same code"
  }
}
