{
 "name": "tutorial-cs08-lactate-threshold",
 "title": "Tutorial CS-8: Find a lactate threshold, and see if it moved",
 "description": "Apply four threshold rules to two SIMULATED step tests made with the production–clearance model, compare them with the true threshold the model knows, estimate each rule's typical error, and decide whether eight weeks of training moved the threshold.",
 "homepage": "https://apopt.com/data/tutorials/cs08-lactate-threshold/",
 "licenses": [
  {
   "name": "CC BY 4.0",
   "path": "https://creativecommons.org/licenses/by/4.0/"
  }
 ],
 "created": "2026-12-03",
 "keywords": [
  "tutorial",
  "case study",
  "lactate",
  "threshold",
  "simulation",
  "mass balance",
  "typical error",
  "simulated data"
 ],
 "resources": [
  {
   "name": "clean-steptests_simulated_clean.csv",
   "path": "clean/steptests_simulated_clean.csv",
   "url": "https://apopt.com/data/tutorials/cs08-lactate-threshold/clean/steptests_simulated_clean.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 459,
   "hash": "sha256:f497ccdb974866cb0c6e84bb5639dcdd0e80f91c7a595c474c921f80f6649239",
   "description": "Cleaned copy written by the tutorial",
   "rows": 15,
   "schema": {
    "fields": [
     {
      "name": "test",
      "type": "string",
      "unit": "—",
      "description": "which test"
     },
     {
      "name": "date",
      "type": "string",
      "unit": "YYYY-MM-DD",
      "description": "test date (invented)"
     },
     {
      "name": "stage",
      "type": "number",
      "unit": "count",
      "description": "stage number"
     },
     {
      "name": "speed_kmh",
      "type": "number",
      "unit": "km/h",
      "description": "treadmill speed for the stage"
     },
     {
      "name": "stage_min",
      "type": "number",
      "unit": "min",
      "description": "stage length"
     },
     {
      "name": "lactate_mmol",
      "type": "number",
      "unit": "read to 0.1",
      "description": "simulated blood lactate at the end of the stage"
     },
     {
      "name": "note",
      "type": "string",
      "unit": "text",
      "description": "what happened at the stage"
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "expected-printed-output.txt",
   "path": "expected/printed-output.txt",
   "url": "https://apopt.com/data/tutorials/cs08-lactate-threshold/expected/printed-output.txt",
   "format": "text",
   "mediatype": "text/plain",
   "bytes": 3101,
   "hash": "sha256:1b532638834387746c299e74949c19bcb345cef0eaf014c2c00d1359599cec18",
   "description": "Everything the tutorial prints, cell by cell"
  },
  {
   "name": "raw-steptests_simulated.csv",
   "path": "raw/steptests_simulated.csv",
   "url": "https://apopt.com/data/tutorials/cs08-lactate-threshold/raw/steptests_simulated.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 508,
   "hash": "sha256:e783631967483cb61b010b900d174f15f5e3f51f8e90666d4e444b5dc207a04d",
   "description": "SIMULATED step tests of an invented runner, A (2027-01-11) and B (2027-03-08): one row per 3-minute stage (test, date, stage, speed_kmh, stage_min, lactate_mmol, note); one reading of B is missing",
   "rows": 16,
   "schema": {
    "fields": [
     {
      "name": "test",
      "type": "string",
      "unit": "—",
      "description": "which test"
     },
     {
      "name": "date",
      "type": "string",
      "unit": "YYYY-MM-DD",
      "description": "test date (invented)"
     },
     {
      "name": "stage",
      "type": "number",
      "unit": "count",
      "description": "stage number"
     },
     {
      "name": "speed_kmh",
      "type": "number",
      "unit": "km/h",
      "description": "treadmill speed for the stage"
     },
     {
      "name": "stage_min",
      "type": "number",
      "unit": "min",
      "description": "stage length"
     },
     {
      "name": "lactate_mmol",
      "type": "number",
      "unit": "read to 0.1",
      "description": "simulated blood lactate at the end of the stage"
     },
     {
      "name": "note",
      "type": "string",
      "unit": "text",
      "description": "what happened at the stage"
     }
    ],
    "missingValues": [
     ""
    ]
   }
  }
 ],
 "sources": [
  {
   "title": "Simulated with the production–clearance model of Data-Driven Athletics Section 7.4 (prepare.py in the tutorial source)"
  }
 ]
}
