# Working with an AI, and Telling the Athlete

Class 2, Chapter 1: Questions Before Dashboards. 29 slides, about 38 minutes.

## 1. Title

Slide up while people sit down. Last time you measured one jump three ways. Today we check what you found, hand the typing to an AI assistant without handing over the judgment, put your first page online, and practise the hardest part: telling the athlete in words she can use.

## 2. A frame count can only land on a step  (3 min)

Before anything new, the homework. Every one of you counted frames, and here is what a frame count can and cannot say. The gray curve is h equals g t squared over eight. A frame count can only land on the marks. At thirty frames a second, the circles, neighbouring heights near our jumps are about four centimetres apart. At sixty, the crosses, about two. Jordan counts twenty-seven frames at sixty: zero point two four eight metres. Twenty-six or twenty-eight give zero point two three zero or zero point two six seven. [Ask: who got a step of about two centimetres?] If your hand height and the app's disagree by one step, you are both right.

## 3. Compare two methods with one number  (2 min)

To compare two methods, the simplest scaled number is the percent difference: the difference divided by the mean of the two, times a hundred. For Maya, zero point four one minus zero point three four nine, over zero point three eight, is about sixteen percent. [Give them one minute for Sam.] Sam's reach is zero point four six and his flight-time height is zero point four zero. [Click.] Six hundredths over zero point four three: fourteen percent. One more rule: when one method is a trusted reference, divide by the reference instead of the mean. Chapter 11 compares many pairs at once; for now one difference and one sentence about why is enough.

## 4. A tape that hangs too low  (2 min)

[Thirty seconds; hands up for A, B, C, D.] The answer is B, bias. Every trial is wrong by the same two centimetres in the same direction. That is the mark of bias: averaging more trials does nothing to it. Scatter would wobble from jump to jump and partly average out. Resolution is the smallest step the tape can show, a millimetre on the tape, a centimetre for a chalk mark. Validity asks whether reach height suits the question at all. Keep these four words apart; the graders will.

## 5. Specify, generate, verify, defend  (3 min)

You will write most of the code in this course with an AI assistant. The course expects it. It also holds you accountable for every number you hand to an athlete, so here is the method, four steps. Specify: before you ask, write what the code must do and one test with an answer you worked out by hand, like the box on the right. Generate: let the assistant type. Verify: run your test, read the code, and check one result a second way. Defend: be able to explain any line, and say what it does on bad input. Notice that only one of the four steps is the assistant's.

## 6. Listing 1.2: what will it print?  (2.5 min)

This is the results file from the course clip, read in eleven lines of Python. It finds the flight-time line, takes the number before ms, and repeats the app's arithmetic: zero point three six seven seconds, sixteen and a half centimetres. Exercise 1.10 asks you to extend it with an assistant, and to write down what you expect before you run it. So, [ask the room] if we add this line inside the loop, what prints, and in what order? [Click.] Both lines, the jump height first, because it comes one line before the flight time in the file. Writing the prediction first is what makes the run a test.

## 7. What to hand over, and what to keep  (2 min)

Here is the line between what you give the assistant and what you keep. Hand over typing: boilerplate, plotting commands, reading a file, a first draft of a paragraph. That saves you hours and costs you nothing, as long as you check it. Keep the question, the check, the judgment about whether a number is even possible, the relationship with the athlete, and the decision. None of those is typing. An assistant does not know that your athlete slept badly or that a jump of two metres is impossible, unless you notice it.

## 8. Four rules for the whole book  (2 min)

Four rules that hold for the rest of the term. One: de-identify before you paste. A name, a face, a date of birth or the start of someone's usual run never goes into an outside AI service. Two: never cite a source you have not opened. Assistants invent references that look perfectly real. One study found that most of the citations a widely used assistant produced were made up, and a newer version still invented about one in five. Three: keep your prompt log and hand it in with the work. Four: you are accountable for every number you report. The assistant is not in the room when the athlete asks.

## 9. A height that is too good  (2.5 min)

[Read the answer aloud, then give them a minute in pairs.] The assistant was asked a simple question and answered with confidence, a formula and a compliment. What is wrong? [Take answers, then click.] The formula is the right physics applied to the wrong time. A body falling from rest covers one half g t squared, but only for the half of the flight it spends rising. Put t over two in and you get g t squared over eight: thirty-one centimetres. You did not need the physics to catch it, though. A jump of one point two three metres is not possible. That plausibility check is the part you keep.

## 10. A citation that looks real  (2 min)

[Thirty seconds, hands up.] B. Two problems. First, the citation: search for it by title and authors; if you cannot find it, it does not exist for your purposes. Real studies of this kind do exist, which is exactly why a fake one is so easy to believe. Second, the conclusion overreaches. Agreement found for one app, one protocol and one group of people says nothing about every phone. A thirty frames a second clip cannot resolve better than about four centimetres, and a mis-set slow-motion rate breaks the method entirely. A and C both keep a source nobody has read.

## 11. Fourteen weeks, four parts  (2 min)

The fourteen chapters follow the fourteen weeks. Part one lays foundations: questions, which is this week, then the body as a system, the mechanics of movement, and data in Python. Part two is wearable sensors: heart, satellite positioning and motion, and the newer sensors. Part three is video and pose estimation, then cyclic sports and single skills. Part four turns data into decisions: statistics, building your own app, coaching with numbers and a look ahead. Every chapter opens with a question like the two on the right. Table 1.3 in the book lists all fourteen, with the apps and the data you collect.

## 12. Ten strands, three levels, about eight CORE a week  (1.5 min)

The exercises at the end of each chapter come in ten strands, each with its own icon. You have met five already: concept checks, hand calculations, the app lab, field collection and, today, check the AI. Each exercise has one, two or three bars: Foundation for someone new to that strand, Core for what everyone completes, Extension for more background. About eight a week are marked CORE. They are the week's set, about three hours of work. And the promise in the box runs through the whole book: every hand calculation has an app or a notebook that confirms it, and every app result can be checked by hand.

## 13. The project: one decision, one athlete  (1 min)

The project comes in the last third of the term. Next week you join a lab team of three, across backgrounds, that shares a strap and a tripod for the weekly collections. Project teams of three or four form in week ten and choose one decision for one athlete or coach. You scope the project and set a baseline in weeks ten and eleven, test a prototype with your user in week twelve, deliver a report in week thirteen, and demonstrate your app at the showcase in week fourteen: eight minutes, then four minutes of questions. Until then, the weekly build steps grow the skills and the app the project starts from. Start noticing which decisions around you could use one number.

## 14. Build step B-1: an empty page, online  (2.5 min)

Each week adds one small step to an app of your own, a web page that runs on a phone. This week's step is small on purpose: get the tools working end to end. Install Node, create a project from the plain JavaScript template with these four commands, and run it with dash dash host. That prints a network address; open it on your phone on the same wireless network. Replace the starter page with a line of your own and watch the phone update. Then build, and upload the dist folder to a free static host. Ask your assistant for help with each step, and verify each one yourself.

## 15. Listing 1.3, and the three usual faults  (2 min)

Here is the whole of this week's code: one line of your own and today's date. A page that only says hello is not an app, but every later step is a change to this project. [Point at the box.] Three things go wrong every year. A blank page on the host, because the asset paths start with a slash: add the one-line config file with base dot slash and build again. A phone that cannot reach your laptop: you forgot dash dash host, or you are on a different network. And uploading the whole project instead of the dist folder. If the link works on a phone this week, the hard part of week twelve is already done.

## 16. Two messages to Maya  (2.5 min)

The pathway ends with something an athlete can act on. Here are two messages to Maya after her session. [Give them a minute to read both.] The one on the left is accurate and useless. It is full of words she did not ask for, CMJ, plantarflexion. It gives sixteen point one percent, a precision the method cannot support. It names a fault without a fix, and it has no date. The one on the right says the same facts in her words. Which one would you rather get after a hard session? [Pause.] Next slide: what exactly makes the right one work.

## 17. What the good version does  (1.5 min)

Four things, and you will see them in every chapter. One number per method, in plain words: about thirty-five centimetres on video, about forty-one on the wall, and why they differ. How sure we are: her jumps varied by about four centimetres. One action, not eight: add the two short sessions. And the retest, with the size of gain that will count, so in six weeks nobody argues about whether two centimetres means anything. That is the pathway again, from interpret to coach to reassess. Chapter 13 turns this into a one-page report.

## 18. Your turn: three sentences to a friend  (3 min)

[Two minutes of writing, then one minute with a neighbour.] Take your own jump result from the homework and explain it to a friend who does not play sport, in three sentences. The result in plain words with units. How sure you are, for example how much your three jumps varied. And one thing you would change before you measure again. Then read it to your neighbour, who checks the five lines in the box: accurate, plain, one change, uncertainty stated, and nothing about injury or health. Nobody compares jump heights here; the grade is for the sentences, not the centimetres.

## 19. Before Class 3  (1 min)

Homework three is due at the start of next class. Choose the case-file athlete you will follow all term, and write one decision question for them: the person, the decision, the time, the test, and what would change your mind. Open one of the instructor's watch runs and compute speed and pace from distance and time, with three cases you check by hand first, in assert lines. Write one plain paragraph to the athlete. And finish build step B-1, with your prompt log. Read sections 2.1 to 2.8 before next class: the body as a system.
