Chapter 7 Exercises — Visualizing Cricket
Difficulty: ⭐ conceptual · ⭐⭐ calculation and interpretation · ⭐⭐⭐ code and judgment · ⭐⭐⭐⭐ open-ended research
All numbers below come from the chapter's script outputs (the book's data snapshot, Cricsheet through November 2026). Scripts are in code/; the module is project/crease/charts.py. Short answers for Part B are in the <details> blocks; selected answers to other parts are in Appendix I.
Part A — Conceptual ⭐
A.1 For each question, name the chart from this chapter you would draw first, and say in one sentence why: (a) "Which overs did our spinners get hit in?" (b) "Were we ahead of the clock in that chase?" (c) "Who rotated the strike in our middle order?" (d) "Has our powerplay scoring genuinely improved this season, or is it noise?" (e) "How do our five fast bowlers compare on economy, strike rate, dot % and boundary % at the death?"
A.2 Explain, without code, the difference between what a worm and a run-rate chart show for the same chase. Give a match situation in which the worm says the chasing side is ahead while the run-rate chart says they are behind.
A.3 Cleveland and McGill ranked how accurately people read different encodings. Put these in order from most to least accurate: colour hue, length, position on a common scale, angle, area. Then name one cricket chart that relies on each of the top two.
A.4 A Manhattan bar for over 12 is 16 runs tall. List three different ball-by-ball stories that would all produce that bar, at least one of which involves no boundaries off the bat.
A.5 Why does the book always print the value inside heat-map cells, and draw missing cells in grey rather than in the colour for zero?
A.6 What is a natural process limit on a control chart, and what is the difference between a point outside the limits being a signal and being a cause?
A.7 State three weaknesses of the radar chart and, for each, one way to avoid it.
A.8 The toolkit's tracking layer attaches sim_pitch_m to every real delivery. In one paragraph, explain to a fan why "Bumrah's yorkers land 1.3 metres from the stumps" could never be a finding from this layer, even if the number appeared in a table.
A.9 Give two reasons why a Manhattan is the wrong chart for a Test innings, and name a chart that is right.
A.10 Kavya's "thumb test" covers the title and asks what the chart says. Why is that a stronger test than asking "is this chart correct?"
A.11 The book never uses two y-axes on one chart. Describe a cricket chart you have seen (or can imagine) that uses two — for example runs per over as bars on the left axis and wickets as a line on the right — and explain how a reader could be misled by where the two scales happen to cross. What would you draw instead?
A.12 An interactive worm lets readers hover over every ball. Give one advantage it has over the printed worm and one thing the printed, annotated worm does better. When would you publish each?
Part B — Calculation & Interpretation ⭐⭐
B.1 At Newlands, Sri Lanka chasing 170 in 20 overs were 116/2 after 15 overs and 118/4 after 16. Compute the current run rate and required run rate at both points. By how much did over 16 raise the required rate?
Answer
After 15: CRR = 6 × 116 / 90 = 7.73; RRR = 6 × (170 − 116) / 30 = 10.80. After 16: CRR = 6 × 118 / 96 = 7.38; RRR = 6 × 52 / 24 = 13.00. Over 16 raised the required rate by 2.20 runs per over — and cost two wickets.
B.2 South Africa scored 48, 71 and 50 in the powerplay, middle and death overs; Sri Lanka scored 48, 68 and 54. Convert each phase total into a run rate (powerplay 6 overs, middle 9, death 5; Sri Lanka's death phase lasted 4.5 overs). Which side was faster in each phase?
Answer
South Africa: 8.00, 7.89, 10.00. Sri Lanka: 8.00, 7.56, 54 ÷ 4.833 = 11.17 (29 legal balls; 6 × 54 / 29). Level in the powerplay, South Africa faster in the middle, Sri Lanka faster at the death — the whole match decided in the last five overs.
B.3 The Dickwella–de Silva partnership was 71 runs off 61 balls, Dickwella 51 and de Silva 18 (plus 2 extras). Compute the partnership's run rate and each batter's share of the bat runs. If Sri Lanka needed about 9 an over through that period, how many runs short of "on schedule" did the stand leave them?
Answer
Run rate = 6 × 71 / 61 = 6.98 per over. Bat runs 69: Dickwella 74%, de Silva 26%. At 9 an over, 61 balls "should" yield 91.5 runs; the stand made 71, about 20 short.
B.4 The IPL control chart's baseline (2008–2022) has mean 163.1 and average moving range 5.96. Verify the limits 147.3 and 179.0. Then compute how many average moving ranges the 2026 value (195.7) sits above the centre line.
Answer
163.1 ± 2.66 × 5.96 = 163.1 ± 15.85 → 147.3 to 179.0. (195.7 − 163.1) / 5.96 = 5.47 moving ranges above the centre, about twice the distance to the upper limit.
B.5 In the phase heat map, Abhishek Sharma's middle-overs strike rate is +71.8 against the league's 144.50 for 2024–26. What is his middle-overs strike rate? Klaasen's powerplay strike rate is −35.8 against a league 153.12. What is his, and why should you trust it less?
Answer
Abhishek: 144.50 + 71.8 = 216.3 (on 221 balls). Klaasen: 153.12 − 35.8 = 117.3 — but on only 52 balls, a small sample that would move a lot with another season's balls.
B.6 The CIE76 colour differences under simulated deuteranopia were 7.3 for tab10 red v green and 118.1 for blue v orange. Under normal vision they were 119.8 and 122.0. What fraction of the normal-vision difference survives deuteranopia for each pair? What does that imply for a red/green "wicket/no-wicket" Manhattan?
Answer
Red v green: 7.3 / 119.8 ≈ 6%. Blue v orange: 118.1 / 122.0 ≈ 97%. A red/green Manhattan loses almost all of its colour distinction for a deuteranopic reader, so wicket overs become hard or impossible to spot unless a shape (the X marker) also carries the information.
B.7 In the 2026 Women's T20 World Cup final, England made 39/2 in the powerplay and Australia 62/1. Express each as a run rate and as a share of the final total (England 150, Australia 153).
Answer
England 6.50 an over, 26% of 150. Australia 10.33 an over, 41% of 153. Australia's chase was front-loaded; England's innings was back-loaded (45 runs in the death overs at 9.00).
B.8 At Headingley 2019, England's fourth innings lasted 754 legal balls for 9 wickets; their first innings lasted 167 balls for 10 wickets. Compute balls per wicket for each and explain why a run-rate chart would hide the difference that matters.
Answer
Fourth innings: 754 / 9 = 83.8 balls per wicket; first innings: 167 / 10 = 16.7. The run rates (2.88 v 2.41) are not very different; what changed was survival — five times as many balls per wicket. A Test chart must show wickets and time, not just runs per over.
B.9 In IPL 2026, Delhi Capitals' run rates were 8.67 (powerplay), 9.17 (middle) and 11.41 (death); Punjab Kings' were 10.95, 9.97 and 12.55. On a bar chart whose y-axis starts at 7.5, how many times taller does Punjab's death bar look than Delhi's powerplay bar? How many times larger is the real value? What does that tell you about truncated bar axes?
Answer
Visible heights: 12.55 − 7.5 = 5.05 against 8.67 − 7.5 = 1.17, so Punjab's bar looks about 4.3 times taller. Real ratio: 12.55 / 8.67 = 1.45. The truncated axis turned a 45% difference into an apparent 330% difference — exactly why bars need a zero baseline.
B.10 In the 2026 knockout small multiples, New Zealand chased 170 in the men's World Cup first semi-final, reaching 173/1 in 12.5 overs. Compute their run rate, and the number of balls to spare. Then explain why, on a grid with unshared x-axes, this panel could look like an ordinary full-length chase.
Answer
12.5 overs = 77 legal balls; 6 × 173 / 77 = 13.48 runs per over, with 43 balls to spare. If each panel's x-axis were fitted to its own data, New Zealand's line would stretch across the whole panel (0 to 12.8 overs) and look like every other chase. Only a shared 0–20 axis shows how early it ended.
Part C — Code It ⭐⭐–⭐⭐⭐
How to approach Part C. Start every exercise from a copy of the relevant chapter script, keep the standard header (so toolkit/ and project/ are on the path), and call charts.style() once at the top. Save figures with charts.save(fig, path) to your chapter's images/ folder using the chNN-fig-MM-slug.png pattern. Before you trust any chart, add one consistency check in the style of project_checkpoint.py — the parts should add up to the whole — and print it. If you use the tracking layer, put "simulated tracking layer — real outcomes, simulated locations" in the figure title or caption.
C.1 — Analyze this match ⭐⭐. Use charts.match_dashboard on Anchor A's second example, Mumbai Indians v Delhi Capitals, IPL 2023, Arun Jaitley Stadium (id 1359490). Save the figure to images/. Then write three sentences, each tied to one panel, explaining how Mumbai went from 123/1 after 15 overs to 139/3 after 16 and still won. Expected output: one PNG and a printed innings_labels dictionary.
C.2 — Build this metric ⭐⭐. Add a function phase_bands(ax, n_overs=20) to your copy of charts.py that shades the powerplay and death overs lightly behind any Manhattan or run-rate chart (T20 phases 1–6 and 16–20; ODI 1–10 and 41–50 when n_overs=50). Redraw the Newlands Manhattan with the bands. Expected output: a figure in which the bars sit in front of two light shaded regions, and no change to bar colours.
C.3 — Evaluate this player ⭐⭐⭐. Repeat the women's radar analysis for four spinners in women's T20Is (for example Sophie Ecclestone, Deepti Sharma and two others of your choice, checking names in data/reference/player_styles.csv), using a pool of bowlers with at least 600 legal balls and the metrics economy (inverted), strike rate (inverted), dot % and boundary % (inverted). Draw both the radar and the strip-plot alternative. Expected output: a printed percentile table (4 rows × 4 columns) and two figures; one paragraph on which chart answers "who is the best?" more honestly.
C.4 — Settle this debate ⭐⭐⭐. "Scoring in men's T20Is has jumped just like the IPL's." Build a control chart of the average first-innings total in men's T20Is between full members (use formats.FULL_MEMBERS from crease.formats or your own list), by calendar year, with limits from 2008–2022. Expected output: the printed table of years, matches and averages; the limits; the list of years outside them; a figure. State your conclusion and its main caveat (hint: think about how many matches each year contains).
C.5 — Analyze this match ⭐⭐⭐. Write worm_with_par(balls, match_id, par_curve) that draws a chase's worm together with a par path — the average cumulative score by over of all first innings at the same venue (or in the same competition and season), instead of the opponent's first innings. Apply it to Newlands. Expected output: a figure with three lines (both innings and the par path) and a sentence on whether Sri Lanka were "ahead" after 15 overs by the par path.
C.6 — Optimize this strategy ⭐⭐⭐. Small multiples of Manhattans: for one IPL 2026 team of your choice, draw a grid of the Manhattans of all its league matches (one panel per match, shared y-axis, the team's innings only), sorted by result. Which over shows the most consistent difference between wins and losses? Expected output: a grid of 14 panels and a printed table of mean runs per over in wins v losses.
C.7 — Build this metric ⭐⭐⭐. The radar's area depends on axis order. Write a function best_order(pct_row) that returns the axis order that minimises the variance of polygon area across a set of players — or, more simply, an ordering rule ("sort axes by the pool-wide correlation of the metrics so that similar metrics are neighbours"). Apply it to the four openers and report the polygon areas before and after. Expected output: a printed table of areas under the default and new orders.
Hints for Part C
- C.1.
load_deliveries("ipl")andload_matches("ipl"), thenfig = charts.match_dashboard(balls, "1359490", games). Read the run-rate panel first: the required rate after over 16 is the number that tells you whether 139/3 was a problem. Usecharts.over_tableto print overs 15–17 for your sentences rather than reading values off the figure. - C.2.
ax.axvspan(0.5, 6.5, color="#f2f2f2", zorder=0)shades overs 1–6 behind the bars whenzorderis lower than the bars'. Returnaxso the function chains like the others. Check the ODI version on any ODI match fromodis_male. - C.3. Build the pool with
bowling_summary(balls)and filter onballs >= 600. For economy, strike rate and boundary %, lower is better, so pass them ininvert=. Bowling strike rate is undefined for bowlers with no wickets; drop or flag them before ranking. Use the styles table to confirm each bowler is a spinner rather than guessing from the name. - C.4. Join deliveries to matches, keep
innings == 1, results without DLS (methodis missing) and both teams in your full-member list. Count matches per year as well as averaging totals: a year with 20 matches and a year with 110 do not deserve the same trust, and an XmR chart treats them equally. Consider a second chart with only years of at least 40 matches. - C.5. A par path is the mean of
scoreat eachballs_doneacross many first innings: group byballs_doneand take the mean, then plot it againstballs_done / 6. Keep only first innings that lasted the full 20 overs, or the late-over average will be built from fewer and fewer innings. - C.6.
charts.small_multiples(14, ncols=7, panel=(1.6, 1.6)), then callcharts.manhattan(m, ax=ax, innings=[k])wherekis the team's innings number in that match. Remove each panel's legend withax.get_legend().remove()and add one figure-level legend. Sort the list of matches by result before drawing, so wins fill the first row. - C.7. The polygon area for values v₁…v_k in order is ½ sin(2π/k) Σ vᵢvᵢ₊₁ (with v_{k+1} = v₁) — the
polygon_areafunction incode/05_radar.py. With six axes there are only 720 orders, so you can try them all; with ten there are over three million, which is why an ordering rule is more useful than a search.
Part D — Judgment & Format Transfer ⭐⭐⭐
D.1 Would the run-rate chart work for an ODI chase? For a Test fourth-innings chase? For a chase in The Hundred? For each, say what (if anything) must change — the x-axis unit, the meaning of "required rate", or the chart itself.
D.2 A broadcaster proposes a "momentum meter" that colours each over of a Manhattan from red (bowling side on top) to green (batting side on top). Critique the proposal on three grounds: colour choice, what "on top" means, and whether a Manhattan is the right base chart. Propose a better design.
D.3 — Eye test v data. Wendell says a beehive "is a summary of a hundred decisions — mine and his." Name two pieces of information a coach uses to judge a bowler's death-overs plan that no beehive, real or simulated, contains. How would you combine the chart with those sources?
D.4 The control chart in this chapter used season averages. A colleague builds the same chart with individual match first-innings totals (about 70 points a season) and finds many points outside the limits in every season. Explain why, and which version you would publish.
D.5 You are asked for a single chart that compares the batting of Smriti Mandhana in T20Is with her batting in ODIs. Which chart from this chapter would you choose, and which would you avoid? Consider units, sample sizes and format differences.
D.6 A franchise analyst shows the coaching staff a radar of two overseas batters they are choosing between at auction. One polygon is visibly larger. List the questions you would ask before accepting "the larger polygon is the better player": think about the pool behind the percentiles, the sample sizes behind each axis, the axis order, and whether all six axes matter equally for the role the team needs. Then describe the chart you would show instead.
D.7 The Newlands wagon wheels in this chapter are simulated. Suppose a broadcaster published a real wagon wheel for Dickwella's 68 at Newlands showing most of his runs behind square on the leg side. What could you legitimately conclude from one innings' wagon wheel, and what would you need before telling a bowler to change his field to Dickwella in general? Connect your answer to Chapter 6's ideas about sample size.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M.1 (with Chapter 3) ⭐⭐. Chapter 3 built a scorecard for a real match from ball-by-ball data. Use that code (or crease.explore) together with charts.partnership_bars to produce a one-page "scorecard + partnerships" figure for the 2026 Women's T20 World Cup final (id 1490709 in t20s_female). Which partnership is invisible on the scorecard but obvious on the chart?
M.2 (with Chapter 5) ⭐⭐⭐. Chapter 5 computed scoring shapes by format. Draw a heat map with format on the rows (men's T20I, men's ODI over the first 20 overs, IPL) and over (1–20) on the columns, coloured by run rate, for 2022–2026. What does the ODI row look like next to the T20 rows, and why?
M.3 (with Chapter 6) ⭐⭐⭐. Redraw the diverging phase heat map after shrinking each batter's phase strike rate toward the league's with a simple normal–normal or beta-binomial shrinkage from Chapter 6 (choose and justify a prior strength in balls). Which cells change colour most? Is Klaasen's powerplay cell still the most vivid blue?
M.4 (with Chapter 4) ⭐⭐. Chapter 4 showed that economy ignores phase. Draw small multiples of economy by phase for the ten bowlers with most IPL 2024–26 balls, one panel per bowler, shared y-axis, with the league's phase economy as a dashed line in every panel. Which bowler would look worst on raw economy but best relative to phase?
M.5 (with Chapter 1 and Chapter 6) ⭐⭐⭐. Chapter 1 told the story of the IPL scoring revolution; this chapter detected it with a control chart. Use a control chart on sixes per match by IPL season. Is the signal earlier, later or the same as for first-innings totals? What does that suggest about the order in which the game changed?
M.6 (with Chapter 2 and Chapter 4) ⭐⭐. Chapter 2 listed what Cricsheet does not contain and Chapter 4 showed how traditional numbers mislead. Make a two-column table: in the left column, each chart in this chapter's summary table; in the right, whether it can be drawn entirely from Cricsheet, partly (with assumptions), or only from non-public data. For each "partly" or "only", name the missing field (for example, shot direction, ball location, fielding position).
Part E — Research & Extension ⭐⭐⭐⭐
E.1 — The women's game in pictures. Build a "season in small multiples" for the WPL or the Women's Big Bash League (wpl or wbb): every match's worm on shared axes, sorted by date, with a summary panel for the season's average first-innings worm. Write a 600-word article in Kavya's style that tells one story the grid reveals. Every number must come from your output.
E.2 — A chart for the Test match. Case Study 2 built a "match worm" of the lead. Design and code a better Test chart: for example, a session-by-session chart of runs and wickets (Cricsheet has no session labels, so use blocks of roughly 30 overs as a proxy and say so), or a chart of the chasing side's runs-needed against wickets-in-hand through the fourth innings. Apply it to three famous fourth-innings chases in the data, and evaluate it against the thumb test with someone who hasn't read this chapter.
E.3 — Real tracking, honestly. Find a public, legitimately licensed source of any ball-location or shot-direction data for cricket (for example, a data set released with an academic paper, or hand-charted data you collect yourself from one match's video). Draw a real pitch map or wagon wheel with crease.charts, and write up how it differs from the simulated layer's version of the same deliveries — and what that tells you about the simulation's assumptions.