{
 "name": "tutorial-q20-signal-lag",
 "title": "Tutorial Q-20: Find the lag between two signals",
 "description": "Find how many minutes a glucose sensor trails its reference by cross-correlation, then measure its error after aligning the clocks, on a synthetic record with a known answer.",
 "homepage": "https://apopt.com/data/tutorials/q20-signal-lag/",
 "licenses": [
  {
   "name": "CC BY 4.0",
   "path": "https://creativecommons.org/licenses/by/4.0/"
  }
 ],
 "created": "2026-12-03",
 "keywords": [
  "tutorial",
  "quick tutorial",
  "glucose",
  "sensor",
  "cross-correlation",
  "lag",
  "synthetic data"
 ],
 "resources": [
  {
   "name": "expected-printed-output.txt",
   "path": "expected/printed-output.txt",
   "url": "https://apopt.com/data/tutorials/q20-signal-lag/expected/printed-output.txt",
   "format": "text",
   "mediatype": "text/plain",
   "bytes": 314,
   "hash": "sha256:37999826f3a0b0b44f9abe471c7a2dcf06f3fb9a2ae66827d4419b1e18a4268e",
   "description": "Everything the tutorial prints, cell by cell"
  },
  {
   "name": "raw-glucose_pair_synthetic.csv",
   "path": "raw/glucose_pair_synthetic.csv",
   "url": "https://apopt.com/data/tutorials/q20-signal-lag/raw/glucose_pair_synthetic.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 3664,
   "hash": "sha256:c9cf4efc2f7c869c333cc0dafd6ddc900fbe771465653cd7af9a0291a8a0c63e",
   "description": "SYNTHETIC record, one row a minute: a reference blood glucose and a sensor built from it 7 minutes late, 0.4 mmol/L high, with noise (minute, reference_mmol, sensor_mmol)",
   "rows": 271,
   "schema": {
    "fields": [
     {
      "name": "minute",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "reference_mmol",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "sensor_mmol",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  }
 ],
 "sources": [
  {
   "title": "Data-Driven Athletics tutorials (IRSRI, 2027)"
  }
 ]
}
