{
 "format": "stockflow-1",
 "id": "lib-rumour",
 "name": "How a rumour spreads at school",
 "notes": "At first few pupils know the rumour, so it spreads slowly. Each new pupil who hears it tells others: a reinforcing loop, and it explodes. Then it slows down — not because people talk less, but because almost everyone they meet has already heard it (a balancing loop). Diseases, trends and new products spread the same way. Try: how short must Days_Interested be so that the rumour never reaches the whole school? Time unit: days.",
 "sim": {
  "start": 0,
  "stop": 30,
  "dt": 0.125,
  "unit": "days"
 },
 "elements": [
  {
   "id": "r1",
   "type": "stock",
   "name": "Have_Not_Heard",
   "eq": "Pupils - 1",
   "x": 200,
   "y": 260,
   "units": "pupils",
   "doc": "Pupils who have not heard the rumour yet.",
   "nonneg": true
  },
  {
   "id": "r2",
   "type": "stock",
   "name": "Talking_About_It",
   "eq": "1",
   "x": 480,
   "y": 260,
   "units": "pupils",
   "doc": "Pupils who know the rumour and still pass it on.",
   "nonneg": true
  },
  {
   "id": "r3",
   "type": "stock",
   "name": "Bored_of_It",
   "eq": "0",
   "x": 760,
   "y": 260,
   "units": "pupils",
   "doc": "Pupils who know it but have stopped talking about it.",
   "nonneg": true
  },
  {
   "id": "r4",
   "type": "flow",
   "name": "Hearing_It",
   "eq": "Talking_About_It*Chats_per_Day*Chance_Passed_On*Have_Not_Heard/Pupils",
   "from": "r1",
   "to": "r2",
   "units": "pupils/day",
   "doc": "New pupils hearing the rumour each day. Only chats with someone who has NOT heard it yet count.",
   "biflow": false
  },
  {
   "id": "r5",
   "type": "flow",
   "name": "Getting_Bored",
   "eq": "Talking_About_It/Days_Interested",
   "from": "r2",
   "to": "r3",
   "units": "pupils/day",
   "doc": "Pupils who stop passing it on.",
   "biflow": false
  },
  {
   "id": "r6",
   "type": "aux",
   "name": "Pupils",
   "eq": "600",
   "x": 120,
   "y": 420,
   "units": "pupils",
   "doc": "Pupils in the school.",
   "slider": {
    "min": 100,
    "max": 2000,
    "step": 50,
    "kind": "assumption"
   }
  },
  {
   "id": "r7",
   "type": "aux",
   "name": "Chats_per_Day",
   "eq": "8",
   "x": 340,
   "y": 100,
   "units": "chats/day",
   "doc": "How many people each pupil chats with in a day.",
   "slider": {
    "min": 1,
    "max": 20,
    "step": 1,
    "kind": "assumption"
   }
  },
  {
   "id": "r8",
   "type": "aux",
   "name": "Chance_Passed_On",
   "eq": "0.15",
   "x": 480,
   "y": 60,
   "units": "fraction",
   "doc": "Chance the rumour is mentioned in a chat.",
   "slider": {
    "min": 0,
    "max": 0.5,
    "step": 0.01,
    "kind": "decision"
   }
  },
  {
   "id": "r9",
   "type": "aux",
   "name": "Days_Interested",
   "eq": "3",
   "x": 640,
   "y": 100,
   "units": "days",
   "doc": "How long a pupil keeps talking about it.",
   "slider": {
    "min": 0.5,
    "max": 10,
    "step": 0.5,
    "kind": "decision"
   }
  },
  {
   "id": "r10",
   "type": "aux",
   "name": "Heard_Total",
   "eq": "Talking_About_It + Bored_of_It",
   "x": 640,
   "y": 430,
   "units": "pupils",
   "doc": "Everyone who knows the rumour."
  }
 ],
 "plots": [
  "r1",
  "r2",
  "r3",
  "r4"
 ],
 "summary": {
  "kpis": [
   {
    "name": "Heard_Total",
    "agg": "final",
    "label": "Pupils who heard it",
    "better": "low",
    "format": "num"
   },
   {
    "name": "Talking_About_It",
    "agg": "max",
    "label": "Most pupils talking at once",
    "better": "low",
    "format": "num"
   }
  ]
 },
 "scenarios": [
  {
   "id": "rs1",
   "name": "Juicy rumour",
   "values": {
    "Chance_Passed_On": 0.15,
    "Days_Interested": 3
   }
  },
  {
   "id": "rs2",
   "name": "Boring rumour",
   "values": {
    "Chance_Passed_On": 0.1,
    "Days_Interested": 1
   }
  }
 ]
}