apopt.comCBE 493R Data-Driven Athletics

Course / Tutorials / Week 1 / Q-1

Quick tutorial Q-1 · Week 1 · about 10 min · Foundation

Run your first cell and change one number

Compute jump height from flight time in a browser cell, change the frame count and watch the height move twice as fast, then check the jump app's own result file with the same formula.

  1. 1Gather (used)
  2. 2Statistics (used)
  3. 3Visualize
  4. 4Cleanse
  5. 5Features
  6. 6Balance
  7. 7Scale
  8. 8Split
  9. 9Deploy
  1. Ask
  2. Collect (this week)
  3. Check (this week)
  4. Interpret
  5. Coach
  6. Reassess

Every cell runs in this page; the first run downloads Python (about 30 s). Nothing you load leaves your browser.

The decision

An athlete films a jump and wants a height. Before trusting any app, you should be able to repeat its arithmetic yourself and know which input the answer is most sensitive to.

The raw data

Try it

A cell is a calculator you can rerun

A code cell holds a few lines of Python. Press Run and the page runs them and prints the result underneath. Nothing is installed and nothing leaves your browser.

The first calculation of the course is the height of a jump from its flight time, the time the feet are off the ground. The body rises for half the flight and falls for the other half, so the rise is h = g t² / 8, where g is the acceleration of gravity (Section 1.3.2). Maya filmed her jump at 60 frames per second and counted 32 frames in the air.

PythonRun your first cell

Type a prediction to enable Run.

Show the expected result without running
flight 0.533 s -> height 34.9 cm

Change one number

Now edit the cell below: it is the same calculation with one more frame in the air. Change the 33 to any count you like and press Run again. Watch how fast the height moves.

PythonOne frame more

Type a prediction to enable Run.

Show the expected result without running
flight 0.550 s -> height 37.1 cm
flight +3.1%, height +6.3%

The flight grew by 3.1% and the height by 6.3%, about twice as much, because the time is squared. One frame at 60 frames per second is worth about 2 cm of height. That is the resolution of a 60-frame-per-second count (Section 1.4).

The same formula on a real app file

The jump app at apopt.com writes a text file of its results. Open the one it wrote for the course's example clip, find the flight time, and repeat the app's arithmetic. The clip was filmed in slow motion at 120 frames per second but stored as a 30-frame-per-second file, so the cell also shows what happens if you divide by the wrong rate.

PythonRead the app's flight time and check it

Show the expected result without running
- Flight time: 367 ms | 16.5 cm derived | 26.6 cm from the pixel-scaled height
app's flight 0.367 s -> 16.5 cm
read at 30 fps by mistake: 1.468 s -> 264 cm

The arithmetic matches the app: 0.367 s gives 16.5 cm. Divided by the file's 30 frames per second instead of the camera's 120, the flight is four times too long and the "height" sixteen times too large, 264 cm, higher than a basketball rim. Always divide by the rate the camera recorded at.

One chart

Draw the formula as a curve and mark the three flights you have met. Change t_list to add your own.

PythonHeight against flight time

Show the expected result without running
a 0.6 s flight is 44.1 cm
A rising curve of jump height in centimeters against flight time in seconds from 0.2 to 0.7 s, with three marked points: the app's example clip at 0.367 s and 16.5 cm, and Maya's 32- and 33-frame counts near 35 and 37 cm.

The curve bends upward: each extra hundredth of a second of flight is worth more height than the one before. Notice that the formula only ever sees the time. Get the frame count or the frame rate wrong and the height is wrong, however careful the arithmetic.

For the athlete: "Your flight time was 0.37 s, which works out to a 16.5 cm rise; next time film at a known frame rate and we can compare jumps to within about a centimeter."

Action card

Action card
Finding
The app's flight time of 0.367 s gives a 16.5 cm rise, and the arithmetic checks out.
Evidence
h = g t² / 8 with g = 9.80665 m/s² reproduces the app's number; one more frame at 60 frames per second adds about 2 cm.
How sure
High for the arithmetic; the height is only as good as the frame count and the frame rate behind it.
Action
Film every test jump at a known frame rate and write that rate down with the result.
Test again
Recompute any app height you are given before you compare two of them.

With your own data

Film one jump of your own from the side at 60 frames per second, step through it frame by frame (Q-2), count the frames in the air, and put your count and your camera's rate into the first cell.

Check yourself

  1. A flight time 10% longer gives a height about how much larger?

  2. A jump is in the air for 30 frames of a clip filmed at 60 frames per second. What is the height, in centimeters?

    cm

  3. A slow-motion clip filmed at 120 frames per second is stored as 30. You divide the frame count by 30. How wrong is the height?

0 of 3 answered · 0 right the first time

References

Built 2026-11-30 with Python packages numpy 2.5.5, matplotlib 3.11.2. In the browser the same code runs on Pyodide, so the last digit can differ.