Skip to content

Commit 1be63c0

Browse files
20250228 - updates
1 parent c9310f5 commit 1be63c0

File tree

2 files changed

+40
-24
lines changed

2 files changed

+40
-24
lines changed

sports-cognitive-psychology.qmd

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,21 @@ Moreover, star players rest more games.
5656
Here is an article on how Shane Battier, who was not the quickest, fastest, or most athletic player, used analytics successfully to guard players who were quicker or more athletic than him: <https://www.nytimes.com/2009/02/15/magazine/15Battier-t.html> (archived at <https://web.archive.org/web/20250219225627/https://www.nytimes.com/2009/02/15/magazine/15Battier-t.html>).
5757

5858
Football has also seen greater use of analytics, although its uptake has been somewhat slower than in many other sports.
59-
When asked about how he makes the decision about whether to go for two after a touchdown, Steelers Head Coach Mike Tomlin stated:
59+
When asked about how he makes the decision about whether to go for a two-point conversion after a touchdown, Steelers Head Coach Mike Tomlin stated:
6060

6161
> We work a menu of plays in that area over the course of the week.
6262
> We rank them at the latter part of the week, and then we get into the stadium and we play it by ear.
63-
> A lot of it has to do with the feel or the flow of the game.
64-
> Maybe what personnel group we think they're going to match our personnel group with.
63+
> A lot of it has to do with the feel or the flow of the game—maybe what personnel group we think they're going to match our personnel group with.
6564
> As we start to play and work the ball down the field on the drives that produce the touchdowns before the point after, we have a little inclination of what their personality might be at least in terms of matching our personnel.
6665
> All of those things weigh into the decision.
6766
> It legitimately is a feel thing.
6867
> I think that's why you play the game.
69-
> You can take analytics to baseball and things like that but football is always going to be football.
68+
> You can take analytics to baseball and things like that, but football is always going to be football.
7069
> I got a lot of respect for analytics and numbers, but I'm not going to make judgments based on those numbers.
7170
> The game is the game.
7271
> It's an emotional one played by emotional and driven men.
7372
> That's an element of the game you can't measure.
74-
> Often times decisions such as that weigh heavily into the equation.
73+
> Oftentimes, decisions such as that weigh heavily into the equation.
7574
>
7675
> --- [Steelers Head Coach Mike Tomlin, 2015](https://steelersdepot.com/2015/09/tomlin-prefers-feel-over-analytics/) (archived at <https://perma.cc/7CHJ-BTWX>)
7776
@@ -86,7 +85,7 @@ Some dismiss analytics entirely.
8685

8786
::: {.content-visible when-format="html:js"}
8887

89-
For instance, here is a video clip of a football commentator, Mike Patrick, making fun of people who compile statistics for informing decision-making in football, calling the people who compile the numbers "guys who wear socks with flip-flops."
88+
For instance, here is a video clip of a football commentator, Mike Patrick, making fun of people who compile statistics for informing decision-making in football, calling the people who compile the numbers "guys who wear socks with flip-flops", suggesting that people who compile analytics to make recommendations in football are out of touch with the realities of football and do not have the same on-the-field understanding as the coaches and players.
9089

9190
![Football Commentator Making Fun of Analytics in Football. From: <https://streamable.com/1hw8>.](images/commentatorOnAnalytics.mp4){width=100%}\
9291

@@ -107,7 +106,14 @@ As noted in @sec-cognitiveBiasesRiskAversion, when it is possible to experience
107106
According to this idea, in the case of failing to successfully convert on fourth down, coaches do not want to have to defend their decision to go for it to the media or the owner or general manager.
108107
That is, they may often play *not to lose*, rather than to win, in order to keep their job.
109108

109+
Rates of going for it on fourth down were low until 2017.
110+
After the 2017 season, rates of going for it on fourth down increased dramatically, as depicted in @fig-4thDownAttemptsByYear.
111+
110112
```{r}
113+
#| label: fig-4thDownAttemptsByYear
114+
#| fig-cap: "The Proportion of Fourth Downs That are Attempts to go for it (Rather Than Punts or Field Goals)."
115+
#| fig-alt: "The Proportion of Fourth Downs That are Attempts to go for it (Rather Than Punts or Field Goals)."
116+
111117
nfl_pbp4thDown <- nfl_pbp %>%
112118
filter(down == 4) %>%
113119
filter(!(play_type %in% c("no_play","qb_kneel")))
@@ -142,44 +148,43 @@ ggplot2::ggplot(
142148
scale_y_continuous(
143149
limits = c(0, NA)
144150
) +
151+
scale_x_continuous(
152+
minor_breaks = seq(1995, 3000, 1),
153+
breaks = seq(1995, 3000, 5)
154+
) +
145155
ggplot2::labs(
146156
x = "Season",
147157
y = "Proportion of 4th Down Plays that are Attempts (to Get the First Down)",
148158
title = "4th Down Attempts (Proportion) by Season",
149159
) +
150-
ggplot2::theme_classic()
160+
ggplot2::theme_classic() +
161+
theme()
151162
```
152163

153-
Adapted from Ben Baldwin: <https://www.nfl4th.com/articles/4th-down-research.html> (archived at <https://perma.cc/S5D8-3NCU>)
164+
165+
As depicted in the @fig-goForItPercentageByWinProbChange (which was adapted from a [figure by Ben Baldwin](https://www.nfl4th.com/articles/4th-down-research.html); archived at <https://perma.cc/S5D8-3NCU>), teams went for it on fourth down about twice as often in 2021 compared to 2017, when teams would increase their win probably by going for it.
154166

155167
```{r}
168+
#| label: fig-goForItPercentageByWinProbChange
169+
#| fig-cap: "Go-For-It Percentage on Fourth Downs in 2021 Versus 2017 as a Function of the Change in Win Probability for Going for it. To remove desperation fourth down attempts, the figure focuses on just plays in which the estimated win probability for the offensive team (given the current situation at the start of the given play and incorporating the pre-game Vegas line) was greater than 20%."
170+
#| fig-alt: "Go-For-It Percentage on Fourth Downs in 2021 Versus 2017 as a Function of the Change in Win Probability for Going for it. To remove desperation fourth down attempts, the figure focuses on just plays in which the estimated win probability for the offensive team (given the current situation at the start of the given play and incorporating the pre-game Vegas line) was greater than 20%."
171+
156172
# labels on the plot
157173
text_df <- tibble(
158-
label = c("NFL coaches<br>in <span style='color:#00BFC4'>**2024**</span>", "NFL coaches<br>in <span style='color:#F8766D'>**2014**</span>"),
174+
label = c("NFL coaches<br>in <span style='color:#00BFC4'>**2021**</span>", "NFL coaches<br>in <span style='color:#F8766D'>**2017**</span>"),
159175
x = c(6, 8.2),
160176
y = c(80, 37),
161177
angle = c(10, 10),
162178
color = c("black", "black")
163179
)
164180
165181
nfl_4thdown %>%
166-
filter(vegas_wp > .2, between(go_boost, -10, 10), season %in% c(2014, 2024)) %>%
182+
filter(vegas_wp > .2, between(go_boost, -10, 10), season %in% c(2017, 2021)) %>%
167183
ggplot(
168184
aes(
169185
x = go_boost,
170186
y = go,
171187
color = as.factor(season))) +
172-
ggtext::geom_richtext(
173-
data = text_df,
174-
aes(
175-
x,
176-
y,
177-
label = label,
178-
angle = angle),
179-
color = "black",
180-
fill = NA,
181-
label.color = NA,
182-
size = 5) +
183188
geom_vline(xintercept = 0) +
184189
stat_smooth(
185190
method = "gam",
@@ -195,11 +200,22 @@ nfl_4thdown %>%
195200
geom_hline(
196201
yintercept = 0,
197202
alpha = 0) +
203+
ggtext::geom_richtext(
204+
data = text_df,
205+
aes(
206+
x,
207+
y,
208+
label = label,
209+
angle = angle),
210+
color = "black",
211+
fill = NA,
212+
label.color = NA,
213+
size = 5) +
198214
ggplot2::theme_classic() +
199215
labs(
200216
x = "Gain in win probability by going for it",
201217
y = "Go-for-it percentage",
202-
subtitle = "4th down decisions in 2024 versus 2014, win prob. > 20%",
218+
subtitle = "4th down decisions in 2021 versus 2017, win prob. > 20%",
203219
title = glue::glue("How <span style='color:red'>math</span> is changing football")) +
204220
theme(
205221
legend.position = "none",

time-series-analysis.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ plot(
107107

108108
```{r}
109109
#| label: fig-timeSeriesHistoricalBradyManning
110-
#| fig-cap: "Historical Fantasy Points by Game for Tom Brady and Peyone Manning."
111-
#| fig-alt: "Historical Fantasy Points by Game for Tom Brady and Peyone Manning."
110+
#| fig-cap: "Historical Fantasy Points by Game for Tom Brady and Peyton Manning."
111+
#| fig-alt: "Historical Fantasy Points by Game for Tom Brady and Peyton Manning."
112112
113113
plot(
114114
ts_combined,

0 commit comments

Comments
 (0)