domestic_box_office <- read_csv("https://myxavier-my.sharepoint.com/:x:/g/personal/valdesd_xavier_edu/IQBG1W_h-vUMRZzmSjw_GQ6PAZR1KA2gEqSIkjvhfELlw50?download=1")Summer Release Impact on Movie Performance
Assignment 7
Introduction
This document’s purpose is to analyze the domestic box office performance of movies released in 2020 - 2025 based on their time of release.
Are movies released in the summer (May - August) outperforming those released throughout the rest of the year? Is there a specific month that consistently generates the highest revenue?
Methodology / Data Wrangling
I intend to answer these questions by analyzing the domestic_box_office data set. This a data set I assembled with 1200 movies, each of them being in the top 200 of their respective release year when it comes to domestic box office performance. This noted by their ‘Rank’ and ‘Release.Date’.
I was able to attain this data through boxofficemojo.com. I retrieved their html table containing domestic box office data, and simply looped through this task 6 times, changing the year at the end of the URL for each one.
The data set includes columns such as ‘Gross’, ‘Total.Gross’, and ‘Release.Date’, which will help us compare and contrast movies based on their financial success and time of release.
This data is already cleaned and primed for analysis. I had to remove commas and $ symbol from values, change the data type of columns from character to numeric, and lastly remove the day of the week from each observation’s release date in order to make it a date type.
Analysis
First, I grouped movies into two separate groups: Summer and Not-Summer. This is done by creating a new column, ‘Summer’, and marking each movie as either TRUE or FALSE based on the month it came out. In order to do this, we first create a column, ‘Month’, which will come in handy later on too.
domestic_box_office <-
domestic_box_office %>%
mutate(Month = as.numeric(format(Release.Date, "%m"))) %>%
mutate(Summer = ifelse(Month >= 5 & Month <= 8, TRUE, FALSE))This first visual is a box plot comparing summer releases and non-summer releases. We’re using the ‘Total.Gross’ column instead of ‘Gross’ since some movies released toward the end of the year remain in theaters into the next year. ‘Gross’ only shows revenue for the calendar year in which it was released, whereas ‘Total.Gross’ contains it all.
domestic_box_office %>%
filter(!is.na(Summer)) %>%
ggplot(aes(x = Summer, y = log(Total.Gross))) +
geom_boxplot()‘Total.Gross’ values are too large, the log() function helps compress them and avoid skewing from major blockbusters.
Based on the box plot, we can’t make any conclusions as to whether summer releases make more or less money. The median for both is roughly the same, and the interquartile range as well.
Let’s take a look at the mean total revenue for summer and non-summer releases as well.
domestic_box_office %>%
filter(!is.na(Summer)) %>%
group_by(Summer) %>%
summarize(Mean.Revenue = mean(Total.Gross, na.rm = TRUE)) %>%
ggplot(aes(x = Summer, y = Mean.Revenue, fill = Summer)) +
geom_col() +
scale_y_continuous(labels = scales::label_dollar())Here we see a drastic difference. The mean total revenue for summer releases is much greater than that of non-summer releases.
Based on this visual alone, it appears that movies released in the summer overperform those released throughout the rest of the year.
Before coming to this conclusion, we can create a summary table to take a look at the two groups side-by-side in areas such as typical revenue, variability, and the highest performing movie of each group.
domestic_box_office %>%
filter(!is.na(Summer)) %>%
group_by(Summer) %>%
summarize(
Movies = n(),
Mean.Revenue = mean(Total.Gross, na.rm = TRUE),
Median.Revenue = median(Total.Gross, na.rm = TRUE),
SD.Revenue = sd(Total.Gross, na.rm = TRUE),
Max.Revenue = max(Total.Gross, na.rm = TRUE)
)# A tibble: 2 × 6
Summer Movies Mean.Revenue Median.Revenue SD.Revenue Max.Revenue
<lgl> <int> <dbl> <dbl> <dbl> <dbl>
1 FALSE 882 38187304. 8074913 86423485. 804793477
2 TRUE 317 53096541. 7240521 108159316. 718732821
Although summer releases appear to generate more revenue on average, their median revenue is slightly lower than that of non-summer releases. Summer releases also have a higher standard deviation, indicating more variability in their financial performance.
This suggests that the higher average revenue of summer releases may be driven by major blockbusters rather than summer movies consistently outperforming non-summer movies.
Now let’s look at mean total revenue for the individual months.
domestic_box_office %>%
filter(!is.na(Month)) %>%
group_by(Month) %>%
summarize(Mean.Revenue = mean(Total.Gross, na.rm = TRUE)) %>%
ggplot(aes(x = factor(Month), y = Mean.Revenue,
fill = Month >= 5 & Month <= 8)) +
geom_col() +
scale_y_continuous(labels = scales::label_dollar()) We can see that May, June, and July are among the highest-performing months, with July generating the highest average revenue.
However, August is among the lowest-performing months despite being classified as a summer month.
November and December also generate relatively high average revenue, suggesting that the holiday season may be just as favorable for movie releases as the summer.
Based on this visual, it appears that the specific month of release may be more informative than whether a movie was released during the summer.
Lastly, let’s look at whether summer releases consistently outperform non-summer releases across the years included in the data set.
domestic_box_office %>%
filter(!is.na(Summer)) %>%
mutate(Year = year(Release.Date)) %>%
group_by(Year, Summer) %>%
summarize(Mean.Revenue = mean(Total.Gross, na.rm = TRUE)) %>%
ggplot(aes(x = Year, y = Mean.Revenue, color = Summer)) +
geom_line() +
geom_point() +
scale_y_continuous(labels = scales::label_dollar()) +
scale_x_continuous(breaks = 2020:2025)From 2022 to 2025, summer releases consistently generated more revenue on average than non-summer releases. The largest difference occurred in 2023, when summer releases generated nearly twice as much revenue on average.
2020 was the only year in which non-summer releases outperformed summer releases. This can simply be attributed to the COVID-19 pandemic.
Conclusion
Based on our analysis, movies released in the summer do in fact generate more revenue on average than those released throughout the rest of the year. However, after taking a look at other statistics such as the median and standard deviation, it appears that this may be due to the success of major blockbusters released during the summer.
We were also able to identify July as the highest-performing month in terms of average revenue. What I found particularly interesting was how well November and December performed and how poorly August performed in comparison to the other summer months.
After analyzing each year, we were then able to determine that the higher average revenue of summer releases was a consistent trend from 2022 to 2025.
Overall, there does appear to be a relationship between when a movie is released and how much revenue it generates. With that being said, we are only looking at the top 200 highest-grossing movies of each year, and there are plenty of other factors outside of a movie’s release date that contribute to its financial success.