{
  "title": "Weight cohort retention by installs rather than by row count",
  "synthetic": true,
  "inputs": {
    "n1": 100,
    "r1": 30,
    "n2": 900,
    "r2": 90
  },
  "outputs": [
    {
      "label": "Pooled retention %",
      "actual": 12,
      "expected": 12,
      "passed": true
    },
    {
      "label": "Unweighted average %",
      "actual": 20,
      "expected": 20,
      "passed": true
    }
  ],
  "constraints": [
    "v.r1<=v.n1",
    "v.r2<=v.n2"
  ],
  "formulas": [
    {
      "label": "Pooled retention %",
      "javascript": "100*(v.r1+v.r2)/(v.n1+v.n2)"
    },
    {
      "label": "Unweighted average %",
      "javascript": "50*(v.r1/v.n1+v.r2/v.n2)"
    }
  ],
  "limits": "Pooling is not adjustment for geography, device, audience or creative. Keep those dimensions available if the aggregate will be used to allocate spend between unlike populations."
}
