Skip to main content
romance
r
causal inference
sitcoms
ratings
Author
Affiliation
Published

November 9, 2026

Context, Please

Picture your favorite “will they or won’t they” (WTOWT) TV couple, you know, the one that you just KNOW is destined to be together forever. From the first episode, they’ve got this insane chemistry that just doesn’t quit. Their dynamic constantly shifts between almost-romance and friendship, and you’re just sitting there, binge watching, waiting for them to just KISS ALREADY! For me, that couple is Nick Miller and Jess Day from the show New Girl, and that big moment (the one we’ve all been waiting for) comes in Season 2, Episode 15. For Nick and Jess, and other couples like them, the first kiss is a pivotal moment in their character arcs, and it defines the trajectory of the plot. If you’re like me, you’re hooked. You feel the magic and are excited to see the drama coming up next, so you grab the popcorn and don’t leave the couch for at least another half season. Other people might be susceptible to the Zeigarnik effect. These folks see that kiss as the completion of the story arc. They’ll then get bored and either immediately abandon the show or slowly fizzle out when they lose interest. One way to measure audience interest in a TV show is via its episode ratings. On the podcast, we discuss whether we can detect a change in ratings after a WTOWT couple first kisses on screen.

Behind the Scenes

Sarah and I worked together to create a list of as many WTOWT couples as we could find. For each couple, we recorded their:

  • Show: the TV show in which the couple appear
  • Mentions: the number of different internet articles we found the couple in
  • First Kiss Season: the season in which the couple first kissed
  • First Kiss Episode: the episode in which the couple first kissed
  • Num Seasons: the number of seasons the show had aired as of late 2023
  • Year of Start: the year the show first aired

Couples were excluded if they started the show as a couple, kissed in the pilot episode, never kissed, kissed as a prank, or kiss information was unavailable. After exclusions, we restricted our attention from the 138 available couples to those with the top 20 most mentions. For each of these couples, we pulled IMDB ratings for each episode of their respective show.

Analysis

Getting Started: Packages and Couple Data

You’ll need a few R packages loaded to reproduce the analysis.

Code, please!
library(dplyr) #for data wrangling
library(tidyr) #for data wrangling
library(ggplot2) #for plots
library(scales) #for customizing plots
library(janitor) #for cleaning variable names
library(sandwich) #for Newey-West standard errors
library(gt) #for nice tables

First, you’ll need to load in the couples. If you’d like to follow along or create your own spin-off, our data is freely available on Figshare!

Code, please!
couples <- read.csv("unique-couples.csv")
couples <- clean_names(couples) #standardize variable names
couples <- couples |> 
  filter(!exclude) |> #exclusions
  dplyr::select(-starts_with(c("make_it_official", "exclude")), 
                -already_together, -imdb_id) #only keep relevant variables

A Little Exploring

Before looking at the ratings, I wanted to learn a little more about these WTOWT couples. Specifically, I was curious if kisses tended to show up at similar points in each show and if the pattern held across different eras of WTOWT. Figure 1 shows that most of the kisses happened in the first third of the show’s run, but the 90s couples were all over the place!

Code, please!
couples |>
  arrange(desc(mentions)) |> #put the most popular couples on top
  head(20) |> #take the 20 most popular
  mutate(decade = case_when( #add their decade
    grepl("197", year_of_start) ~ "1970s",
    grepl("198", year_of_start) ~ "1980s",
    grepl("199", year_of_start) ~ "1990s",
    grepl("200", year_of_start) ~ "2000s",
    grepl("201", year_of_start) ~ "2010s",
    grepl("202", year_of_start) ~ "2020s"
  )) |> #standardize kiss timing (below)
  mutate(perc_seasons_to_go = (num_seasons - first_kiss_season)/num_seasons) |>
  ggplot(aes(x = decade, y = perc_seasons_to_go)) + #plot
  geom_boxplot(fill = "#573164") +
  theme_minimal() +
  theme(panel.grid.major = element_blank(),
        panel.grid.minor = element_blank(),
        axis.line = element_line(color = "#573164"),
        axis.text = element_text(color = "#573164"),
        axis.title = element_text(color = "#573164",
                                  face = "bold"),
        plot.title = element_text(color = "#573164", 
                                  face = "bold",
                                  hjust = 0.5),
        plot.caption = element_text(color = "#573164")) +
  scale_y_continuous(labels = scales::percent) +
  labs(title = "What's going on in the 90s?",
       x = "",
       y = "% of Show to Go") 
Figure 1: We only consider the shows with top 20 couples here.

As a big fan of WTOWT couples myself, I also wanted to identify shows where WTOWT was so essential to the show that they repeated the pattern for more than one couple. See Figure 2 for a first look at that investigation.

Code, please!
couples |>
  group_by(show) |>
  summarize(pairs = n()) |> 
  ggplot(aes(x = pairs)) +
  geom_bar(fill = "#573164") +
  labs(title = "How many couples do we have per show?",
       x = "Number of Couples",
       y = "Number of Shows") +
  theme_minimal() +
  theme(panel.grid.major = element_blank(),
        panel.grid.minor = element_blank(),
        axis.line = element_line(color = "#573164"),
        axis.text = element_text(color = "#573164"),
        axis.title = element_text(color = "#573164",
                                  face = "bold"),
        plot.title = element_text(color = "#573164", 
                                  face = "bold",
                                  hjust = 0.5),
        plot.caption = element_text(color = "#573164"))
Figure 2: Looking at you, The Office (US) and The Vampire Diaries!! 👀👀

Adding Ratings to the Party

We can now take our top 20 couples and add in the ratings data from their shows. We’ll also need to label episodes based on when they air relative to the episode with the first kiss.

Code, please!
ratings <- read.csv("episode-ratings.csv") |> #read ratings in
  clean_names() |> #standardize the column names
  drop_na() |> #only retain complete cases
  mutate(show = ifelse(show == "Sex and the City",
                       "S*x and the City",
                       show)) #correct misaligned show name

ratings_couples <- couples |> #start with all non-excluded couples
  arrange(desc(mentions)) |> #sort from most to least mentioned
  head(20) |> #grab top 20
  left_join(ratings, by = join_by(show == show)) |> #add in the ratings
  group_by(show, couple) |> #add grouping structure for wrangling
  mutate(show_couple_id = 1:n(), #add an identifier for the episode based on its show and couple
         is_first_kiss_ep = season == first_kiss_season & episode == first_kiss_episode, #find first kiss episode
         first_kiss_id = min(ifelse(test = is_first_kiss_ep, yes = show_couple_id, no = 9999)), #label first kiss episode
         after_first_kiss = show_couple_id > first_kiss_id) |> #find episodes after first kiss
  dplyr::select(-is_first_kiss_ep) |> #remove tag for first kiss episode
  mutate(eps_since_kiss = show_couple_id - first_kiss_id) |> #shift the episodes to center around the first kiss
  ungroup() #remove grouping structure

After setting up our data this way, we fit an interrupted time series (ITS) model. ITS models allow us to look at the trend in a sequence of observations (episode ratings) over time and the effect of an interruption (the kiss) on that trend. The model takes advantage of a hypothetical situation called the counterfactual, an alternate timeline where the kiss never happens. To figure out the kiss effect, we would look at the difference between our counterfactual and our reality. Specifically, we’re looking to estimate the trend before the kiss, the immediate change caused by the kiss, and the new trend after the kiss.

We can look for a kiss effect on two levels. If we fit separate models to each couple’s episode ratings individually, we can explore a specific couple’s first kiss on their show’s ratings. Alternatively, if we zoom out and fit one model to all of the shows together, we can look at an overall kiss effect rather than with respect to a specific couple. Figure 3 (Nick and Jess from New Girl) and Figure 4 (Ross and Rachel from Friends) are examples of how we might visualize that first level, and Figure 5 zooms out to all twenty of the top couples. Each episode is one dot, and we color pre-kiss and post-kiss episodes blue and pink respectively. The dotted lines create counterfactuals by extending the pre-kiss trend into the post-kiss episodes, while the solid lines reflect the real timelines.

Code, please!
its_mod_ng <- lm(data = ratings_couples,
              rating ~ eps_since_kiss + after_first_kiss + eps_since_kiss * after_first_kiss, 
              subset = show == "New Girl") ## fit model only to Nick and Jess

newgirl <- ratings_couples |> 
    filter(show == "New Girl")

newgirl |> 
  dplyr::mutate(fit = its_mod_ng$fitted.values, #grab fitted values and compute counterfactual
                cf = its_mod_ng$coefficients[1] + its_mod_ng$coefficients[2] * eps_since_kiss ) |>
  ggplot(aes(x = eps_since_kiss, y = rating, group = after_first_kiss)) +
  geom_point(aes(color = after_first_kiss), alpha = 0.5) +
  geom_line(aes(y = fit), linewidth = 1.2, color = "#573164") +
  geom_line(aes(y = cf), linetype = "dotted", 
            linewidth = 1.2, color = "#573164") + ## add dashed line with cf trajectory to plot
  theme_minimal() +
  theme(panel.grid.major = element_blank(),
        panel.grid.minor = element_blank(),
        axis.line = element_line(color = "#573164"),
        axis.text = element_text(color = "#573164"),
        axis.title = element_text(color = "#573164"),
        plot.title = element_text(color = "#573164",
                                  hjust = 0.5,
                                  face = "bold"),
        plot.caption = element_text(color = "#573164"),
        legend.position = "none") +
  scale_color_manual(values = c("#89c8f5", "#fa9bd1")) +
  labs(title = "Did New Girl go downhill* after the kiss?",
       x = "Episode Since the Kiss",
       y = "Rating",
       color = "After the Kiss?",
       caption = "*If you ask me, I'd say that's impossible!") 
Figure 3: Are those ratings moonwalking away?
Code, please!
its_mod_f <- lm(data = ratings_couples,
              rating ~ eps_since_kiss + after_first_kiss + eps_since_kiss * after_first_kiss, 
              subset = show == "Friends") ## fit model only to Ross and Rachel

friends <- ratings_couples |> 
    filter(show == "Friends")

friends |> 
  dplyr::mutate(fit = its_mod_f$fitted.values, #grab fitted values and compute counterfactual
                cf = its_mod_f$coefficients[1] + its_mod_f$coefficients[2] * eps_since_kiss ) |>
  ggplot(aes(x = eps_since_kiss, y = rating, group = after_first_kiss)) +
  geom_point(aes(color = after_first_kiss), alpha = 0.5) +
  geom_line(aes(y = fit), linewidth = 1.2, color = "#573164") +
  geom_line(aes(y = cf), linetype = "dotted", 
            linewidth = 1.2, color = "#573164") + ## add dashed line with cf trajectory to plot
  theme_minimal() +
  theme(panel.grid.major = element_blank(),
        panel.grid.minor = element_blank(),
        axis.line = element_line(color = "#573164"),
        axis.text = element_text(color = "#573164"),
        axis.title = element_text(color = "#573164"),
        plot.title = element_text(color = "#573164",
                                  hjust = 0.5,
                                  face = "bold"),
        plot.caption = element_text(color = "#573164"),
        legend.position = "none") +
  scale_color_manual(values = c("#89c8f5", "#fa9bd1")) +
  labs(title = "Friends looks even more dramatic!",
       x = "Episode Since the Kiss",
       y = "Rating",
       color = "After the Kiss?") 
Figure 4: So no one told them ratings were gonna be this way….
Code, please!
its_mod <- lm(data = ratings_couples,
              rating ~ eps_since_kiss + after_first_kiss + eps_since_kiss * after_first_kiss)

ratings_couples |> 
  dplyr::mutate(fit = ifelse(after_first_kiss, #check for pre/post kiss, then compute accordingly
                             its_mod$coefficients[1] + its_mod$coefficients[3] + 
                               (its_mod$coefficients[2] + its_mod$coefficients[4]) * eps_since_kiss,
                             its_mod$coefficients[1] + its_mod$coefficients[2] * eps_since_kiss),
                cf = its_mod$coefficients[1] + its_mod$coefficients[2] * eps_since_kiss) |>
  ggplot(aes(x = eps_since_kiss, y = rating, group = after_first_kiss)) +
  geom_point(aes(color = after_first_kiss), alpha = 0.5) +
  geom_line(aes(y = fit), linewidth = 1.2, color = "#573164") +
  geom_line(aes(y = cf), linetype = "dotted", 
            linewidth = 1.2, color = "#573164") + ## add dashed line with cf trajectory to plot
  theme_minimal() +
  theme(panel.grid.major = element_blank(),
        panel.grid.minor = element_blank(),
        axis.line = element_line(color = "#573164"),
        axis.text = element_text(color = "#573164"),
        axis.title = element_text(color = "#573164"),
        plot.title = element_text(color = "#573164",
                                  hjust = 0.5,
                                  face = "bold"),
        plot.caption = element_text(color = "#573164"),
        legend.position = "none") +
  scale_color_manual(values = c("#89c8f5", "#fa9bd1")) +
  labs(title = "A little less drama, a lot more data",
       x = "Episode Since the Kiss",
       y = "Rating",
       color = "After the Kiss?") 
Figure 5: Here, we look at all of our top twenty couples. Sadly, this means we can’t caption the plot with a couple-specific reference.

On the podcast, we discussed how these plots might suggest a dramatic kiss effect if you just visually compare the solid and dashed rating trend lines. However, comparing confidence intervals from all three models (see Figure 6) tells a fairer story. Neither show can rule out a zero kiss effect, and zooming out over the top twenty couples doesn’t help. There goes my claim that everyone watches TV like I do! 1

Code, please!
#set up all coefficient estimates and standard errors
data.frame(coef_name = c("Baseline Rating (at pilot)",
                         "Rating Trend (pre-kiss)",
                         "Change to Baseline Rating (from pilot to kiss)",
                         "Change to Rating Trend (from pre-kiss to post-kiss)"),
           overall_est = its_mod$coefficients,
           overall_se = sqrt(diag(NeweyWest(its_mod))), 
           ng_est = its_mod_ng$coefficients,
           ng_se = sqrt(diag(NeweyWest(its_mod_ng))), 
           f_est = its_mod_f$coefficients,
           f_se = sqrt(diag(NeweyWest(its_mod_f)))) |>
  #compute bounds for confidence intervals
  mutate(overall_lb = round(overall_est - 1.96 * overall_se, 3),
         overall_ub = round(overall_est + 1.96 * overall_se, 3),
         ng_lb = round(ng_est - 1.96 * ng_se, 3),
         ng_ub = round(ng_est + 1.96 * ng_se, 3),
         f_lb = round(f_est - 1.96 * f_se, 3),
         f_ub = round(f_est + 1.96 * f_se, 3)) |>
  #format estimates and confidence intervals
  mutate(overall_est = round(overall_est, 3),
         ng_est = round(ng_est, 3),
         f_est = round(f_est, 3),
         overall_ci = paste0("(", overall_lb, ", ", overall_ub, ")"),
         ng_ci = paste0("(", ng_lb, ", ", ng_ub, ")"),
         f_ci = paste0("(", f_lb, ", ", f_ub, ")")) |>
  #grab relevant columns
  dplyr::select(coef_name, overall_est, overall_ci, 
                ng_est, ng_ci, f_est, f_ci) |>
  #create and format table
  gt(rowname_col = "coef_name") |>
  cols_label(overall_est = "Estimate",
             overall_ci = "CI",
             ng_est = "Estimate",
             ng_ci = "CI",
             f_est = "Estimate",
             f_ci = "CI") |>
  cols_align("left") |>
  tab_spanner(label = "Overall", 
              columns = starts_with("overall")) |>
  tab_spanner(label = "New Girl",
              columns = starts_with("ng")) |>
  tab_spanner(label = "Friends",
              column = starts_with("f")) |>
  tab_footnote(footnote = paste0("Confidence intervals are 95% Wald intervals ",
  "that use Newey-West standard errors to account for ",
  "autocorrelation among episodes.")) |>
  tab_header(title = "Not so dramatic after all...") |>
  tab_options(container.overflow.x = "auto",
              table.width = pct(100)) |>
  opt_css(
    css = "
    .gt_table th, .gt_table td {
      white-space: nowrap;
    }    "
  )
Not so dramatic after all...
Overall
New Girl
Friends
Estimate CI Estimate CI Estimate CI
Baseline Rating (at pilot) 8.018 (7.921, 8.115) 7.799 (7.592, 8.007) 8.292 (7.94, 8.643)
Rating Trend (pre-kiss) 0.001 (-0.001, 0.002) 0.008 (0, 0.015) 0.008 (-0.007, 0.024)
Change to Baseline Rating (from pilot to kiss) -0.090 (-0.226, 0.047) -0.101 (-0.338, 0.136) 0.045 (-0.328, 0.418)
Change to Rating Trend (from pre-kiss to post-kiss) -0.001 (-0.003, 0) -0.010 (-0.02, 0) -0.009 (-0.024, 0.007)
Confidence intervals are 95% Wald intervals that use Newey-West standard errors to account for autocorrelation among episodes.
Figure 6: The top two rows describe the starting place and initial trend, and the bottom two describe the changes we attribute to the kiss.

Bonus Content

We mention a few different places this analysis appears throughout the episode. For more discussion about the kiss effect in various formats, see any of:

  1. Stats + Stories Episode 381
  2. Significance Magazine Volume 22
  3. My Blog
  4. Session 43 at the 2024 International Day of Women in Statistics and Data Science

Footnotes

  1. After the episode aired, I got exactly one person to agree with me on proper sitcom-watching protocol. Anyone else? Please?↩︎