Tennis Sets

Fun Sport

My tennis coach thinks that tennis matches frequently feature a close first set followed by a blow-out in the second.

Eugene https://fizzics.netlify.app
04-25-2021

The Concept

Our tennis coach has a theory. As well as being a teacher and player he’s also an avid follower of the game. And he reckons that an inordinate amount of competitive, two-set tennis matches finish with a closely matched first set followed by a relative blow out in the second. 7-5, 6-2 just about covers it.

Jimmy’s thinking is that a player who loses the first set, however close it was, will try to change things up to rescue the match. Every now and again this tactic works, and a player wins when they were otherwise destined to lose. However, mostly it just makes things worse and leads to the kind of scores that Jimmy predicts. But what odds, losing 7-5 6-2 is no different than losing 7-5 7-5. Is he right, or is this another example of confirmation bias rearing his ugly head? Let’s see what the data says.

The Data

There is a raft of tennis statistics out there, we referred to the excellent repo of Jeff Sackmann which you can clone here. It features a series of csv files with scores and figures from the ATP tour going back into the 60’s. It has over 50 columns, suggesting perhaps a whole series of tennis related data blogs….. We focused on data just from 1990 on, after all tennis has changed dramatically over the years and we don’t want to confound our problem.

The data needs a little work before we get going on analysis. We replace tie-break games, which normally include the score in the tie-break, with a clean 7-6 or 6-7. The original data-set has the overall score in a single column, we split that into separate columns, one for each set, and we add a column for year. Also, we only care about two set games (after all, this is the basis of Jimmy’s Theorem) and we need to get rid of games where one player retired injured, we do this by weeding out uncommon scorelines.

#reformat tie-break set scores from 7-6(4) to just 7-6
atp$score <- gsub('\\(..\\)|\\(.\\)','', atp$score)

#split the overall score into three set scores
atp <- atp %>% 
  separate(score, into = c("Set1", "Set2", "Set3"), sep=" ", fill="right")

#adding a year column to the dataframe
atp <- atp %>%
  mutate(year = lubridate::year(ymd(tourney_date)))

#pick out just the 2 set games
two_sets = atp %>% 
  filter(is.na(Set3)) 

#weed out matches with retirements
scores <-  names(table(two_sets$Set1)[table(two_sets$Set1)/length(two_sets$Set1)>0.005])
two_sets <- two_sets %>% 
  filter(Set1 %in% scores, Set2 %in% scores)

#show a little table to see what the frame looks like
two_sets
# A tibble: 45,616 × 5
   Set1  Set2  Set3  tourney_date  year
   <chr> <chr> <chr>        <dbl> <dbl>
 1 7-6   6-1   <NA>      19900305  1990
 2 7-5   6-0   <NA>      19900305  1990
 3 6-2   6-1   <NA>      19900305  1990
 4 6-1   6-0   <NA>      19900305  1990
 5 6-3   7-5   <NA>      19900305  1990
 6 6-4   6-4   <NA>      19900305  1990
 7 6-4   6-2   <NA>      19900305  1990
 8 6-4   7-5   <NA>      19900305  1990
 9 6-3   6-2   <NA>      19900305  1990
10 6-2   7-6   <NA>      19900305  1990
# … with 45,606 more rows
#finally, reduce the number of columns in the dataset
two_sets <- two_sets %>% 
  select(Set1, Set2, year)

We end up with about 46 thousand scores covering 28 years.

Investigation

First up, let’s examine the frequency of scores across the two sets to see if there is anything of note.

It seems there is a definite difference here. Set Two had significantly higher numbers of unbalanced sets (6-0, 6-1, 6-2) while Set One has more competitive scores. Maybe Jimmy is on to something.

Out of curiosity, note the large number of 6-4 scores in set 2. This is because, if you loose the first set, there’s a strong chance you serve first in the second. In that case a single break of serve in the body of the set will lead to a score of 6-4.

How about score combinations, the real reason we’re here. The figure below presents these in a tiled format, the deeper the green the more often we see this match result. By Jimmy’s hypothesis, we should be seeing darker greens in the bottom right corner. These are the matches where set one was close and set two more one-sided.

Hmm. There doesn’t seem to be much here. The bottom right corner and top left look pretty comparable. Unsurprisingly, the centre of the diagram is where all the action is, and 6-4 6-4 is the most popular score.

To unpick this and see if there are any subtle effects, anything I can tell Jimmy, it’s time to call on a \(\chi^2\) test.

Not surprisingly, the \(\chi^2\) statistic is highly significant and the scores from set one and set two are not independent. These are after all, the same two players facing off. We finish with a \(\chi^2\) p-value of 3^{-130}.

The real story might be in the residuals. These are shown in the tiled plot below. Red squares indicate score combinations that are unusually frequent. Blue squares, scores that we don’t see as often as we’d expect.

The most striking feature is the bright red square in the top right corner. There are more matches with two 7-6 tie-breaks than we have a right to expect. My guess is that these matches involve at least one player who relies heavily on his service. These matches tend to have few service breaks and so sets progress unerringly towards deciding tie-breaks.

Notice, also, the horizontal band of banal colours when Set2 is 7-5. There are two reasons for this; this is an unusual set score so there are few occurrences in this band, and also 7-5 seems to be the “neutral” second set score that tells us little about what happened in the first set.

But again, we see nothing untoward happening in the bottom right corner. It looks like our theory doesn’t bear scrutiny after all.

One last thing to look at is the evolution of set scores over the years. This is really just because we have the data in front of us rather than because it pertains to the specific question at hand. The graph is shown in the figure below. Most set scores seem pretty steady over time. The one exception appears to be the gradual rise in the number of tie-breaks. Maybe this is indicative of more of those heavy servers that we talked about above.

Conclusions

It looks like I’ll be having a difficult conversation with our tennis coach next time I see him. We found no evidence for the Jimmy Effect, despite a convincing rationale why it should be there from a man who knows what he’s talking about. He’s fond of this theory and I’m loathe to tell him that the data doesn’t seem to back it up.

Of course, we could broaden this investigation, look at games from the woman’s tour and also doubles games. We’d have to factor in a Bonferroni correction to any statistical tests. But we might find that tactics play a greater role in these games and that could be crucial in bringing in to play the effect we’ve been looking for.

Some footnotes here. First of all, this account bears more than a passing resemblance to the post Super Bowl Squares from David Robinson. If you haven’t read it already, it’s well presented and a worthy source of inspiration. Secondly, I’m a big fan of criticism. Anything short of blatant denigration is welcome. I’m especially conscious of one part of the code where I hardwired a sequence rather than let the analysis discover it for itself.

Thank you for reading, and thank you in advance for comments and suggestions.

Corrections

If you see mistakes or want to suggest changes, please create an issue on the source repository.

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. Source code is available at https://github.com/eugene100hickey/fizzics, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Eugene (2021, April 25). Euge: Tennis Sets. Retrieved from https://www.fizzics.ie/posts/2021-05-08-tennis-sets/

BibTeX citation

@misc{eugene2021tennis,
  author = {Eugene, },
  title = {Euge: Tennis Sets},
  url = {https://www.fizzics.ie/posts/2021-05-08-tennis-sets/},
  year = {2021}
}