Objective

This EDA explores the survey data our group collected through Qualtrics about movie theater attendance. It shows visually how three predictors relate to our dependent variable before we model them with regression in Part 2.

The cleaned dataset (n = 21) is the same file used in Part 2. The cleaning steps are listed in the Part 2 report.

Load the data

library(readr)
library(dplyr)
library(tidyr)
library(ggplot2)
 
survey <- read_csv("Movie_Survey_Clean.csv")
vars <- c("Theater_freq", "Home_better", "Price_influence", "Ent_spend")
 
glimpse(survey[, vars])
## Rows: 21
## Columns: 4
## $ Theater_freq    <dbl> 4, 2, 2, 3, 2, 1, 3, 4, 3, 3, 3, 3, 2, 1, 3, 4, 3, 2, …
## $ Home_better     <dbl> 5.0, 3.0, 4.0, 4.0, 2.0, 1.0, 4.0, 5.0, 4.0, 4.0, 4.0,…
## $ Price_influence <dbl> 1.00, 5.00, 1.00, 3.33, 5.00, 3.33, 3.00, 5.00, 4.00, …
## $ Ent_spend       <dbl> 90, 80, 50, 400, 300, 120, 90, 500, 200, 100, 0, 0, 50…
summary(survey[, vars])
##   Theater_freq    Home_better  Price_influence   Ent_spend     
##  Min.   :1.000   Min.   :1.0   Min.   :1.000   Min.   :   0.0  
##  1st Qu.:2.000   1st Qu.:3.0   1st Qu.:3.000   1st Qu.:  80.0  
##  Median :3.000   Median :3.4   Median :3.000   Median : 200.0  
##  Mean   :2.667   Mean   :3.4   Mean   :3.333   Mean   : 255.2  
##  3rd Qu.:3.000   3rd Qu.:4.0   3rd Qu.:4.000   3rd Qu.: 400.0  
##  Max.   :4.000   Max.   :5.0   Max.   :5.000   Max.   :1000.0

1. Summary statistics

survey %>%
  select(all_of(vars)) %>%
  pivot_longer(everything(), names_to = "Variable", values_to = "Value") %>%
  group_by(Variable) %>%
  summarise(n = sum(!is.na(Value)),
            Mean = round(mean(Value, na.rm = TRUE), 2),
            Median = median(Value, na.rm = TRUE),
            SD = round(sd(Value, na.rm = TRUE), 2),
            Min = min(Value, na.rm = TRUE),
            Max = max(Value, na.rm = TRUE))
## # A tibble: 4 × 7
##   Variable            n   Mean Median     SD   Min   Max
##   <chr>           <int>  <dbl>  <dbl>  <dbl> <dbl> <dbl>
## 1 Ent_spend          21 255.    200   247.       0  1000
## 2 Home_better        21   3.4     3.4   1.16     1     5
## 3 Price_influence    21   3.33    3     1.26     1     5
## 4 Theater_freq       21   2.67    3     0.86     1     4

Interpretation: All 21 respondents have complete values. The average Theater_freq code is 2.67 (median 3), so the typical respondent sits in the middle-to-less-often range. Agreement that home viewing is better averages 3.4 out of 5, and price influence averages 3.3 out of 5, so both attitudes lean toward agree. Entertainment spending varies widely: the mean is $255 a month, the median is $200, and the range runs from $0 to $1,000. The mean sits above the median, which tells us a few high spenders pull the average up.

2. How often do respondents go to the theater? (Y)

ggplot(survey, aes(x = factor(Theater_freq))) +
  geom_bar(fill = "steelblue") +
  labs(title = "Theater visit frequency (Q4)",
       x = "Theater_freq code (higher = goes less often)",
       y = "Number of respondents")

Interpretation: Code 3 is the most common answer (10 of 21 respondents), followed by code 2 (6 respondents). Only 2 respondents chose code 1, which means going most often, and 3 chose code 4, which means going least often. The outcome is concentrated in the middle, and that limits how much variation the regression can explain.

3. Distributions of the predictors

survey %>%
  select(Home_better, Price_influence) %>%
  pivot_longer(everything(), names_to = "Question", values_to = "Agreement") %>%
  ggplot(aes(x = Agreement)) +
  geom_histogram(binwidth = 1, fill = "steelblue", color = "white") +
  facet_wrap(~ Question) +
  labs(title = "Attitude questions (0 = heavily disagree, 5 = heavily agree)",
       x = "Agreement", y = "Number of respondents")

ggplot(survey, aes(x = Ent_spend)) +
  geom_histogram(bins = 10, fill = "steelblue", color = "white") +
  labs(title = "Monthly entertainment spending",
       x = "Dollars per month", y = "Number of respondents")

ggplot(survey, aes(y = Ent_spend)) +
  geom_boxplot(fill = "steelblue", alpha = 0.5) +
  labs(title = "Entertainment spending: checking for outliers", y = "Dollars per month")

Interpretation: Home_better is spread across the scale, with the most common answer being 4 (6 respondents). Price_influence clusters at 3 (8 respondents), and 5 respondents said prices strongly influence them. Spending is right-skewed: most respondents spend under $400 a month, 4 spend $500 or more, and one reported $1,000. That $1,000 respondent is the outlier in the box plot and can pull a regression line on its own.

4. Relationships between each predictor and Y

ggplot(survey, aes(x = Home_better, y = Theater_freq)) +
  geom_jitter(width = 0.1, height = 0.1, size = 3, alpha = 0.7, color = "steelblue") +
  geom_smooth(method = "lm", se = TRUE, color = "grey20") +
  labs(title = "People who prefer watching at home go to the theater less often",
       x = "Home viewing is better (0-5)",
       y = "Theater_freq (higher = less often)")

ggplot(survey, aes(x = Price_influence, y = Theater_freq)) +
  geom_jitter(width = 0.1, height = 0.1, size = 3, alpha = 0.7, color = "steelblue") +
  geom_smooth(method = "lm", se = TRUE, color = "grey20") +
  labs(title = "Price influence vs. theater frequency",
       x = "Prices strongly influence me (0-5)",
       y = "Theater_freq (higher = less often)")

ggplot(survey, aes(x = Ent_spend, y = Theater_freq)) +
  geom_jitter(width = 0, height = 0.1, size = 3, alpha = 0.7, color = "steelblue") +
  geom_smooth(method = "lm", se = TRUE, color = "grey20") +
  labs(title = "Entertainment spending vs. theater frequency",
       x = "Monthly entertainment spending ($)",
       y = "Theater_freq (higher = less often)")

Home_better relative to theater frequency by group (box plot view):

ggplot(survey, aes(x = factor(Theater_freq), y = Home_better)) +
  geom_boxplot(fill = "steelblue", alpha = 0.5) +
  geom_jitter(width = 0.15, alpha = 0.6) +
  labs(title = "Home-viewing preference by theater frequency group",
       x = "Theater_freq code (higher = less often)",
       y = "Home viewing is better (0-5)")

Interpretation: Home_better is the only predictor with a clear pattern. Respondents who agree more that home viewing is better have higher Theater_freq codes, which means they go to the theater less often. The box plot shows this as a steady climb: the average Home_better score is 2.0 for code 1, 3.2 for code 2, 3.5 for code 3 and 4.3 for code 4. The Price_influence line is close to flat. The Ent_spend line slopes slightly downward, but it is pulled by the $1,000 respondent.

5. Correlation matrix

cor_mat <- round(cor(survey[, vars], use = "pairwise.complete.obs"), 2)
cor_mat
##                 Theater_freq Home_better Price_influence Ent_spend
## Theater_freq            1.00        0.47            0.11     -0.21
## Home_better             0.47        1.00           -0.11     -0.09
## Price_influence         0.11       -0.11            1.00      0.13
## Ent_spend              -0.21       -0.09            0.13      1.00
as.data.frame(as.table(cor_mat)) %>%
  ggplot(aes(Var1, Var2, fill = Freq)) +
  geom_tile(color = "white") +
  geom_text(aes(label = Freq)) +
  scale_fill_gradient2(low = "firebrick", mid = "white", high = "steelblue",
                       midpoint = 0, limits = c(-1, 1)) +
  labs(title = "Correlations among survey variables", x = NULL, y = NULL, fill = "r")

Interpretation: The strongest correlation with Theater_freq is Home_better (r = 0.47, moderate and positive). Price_influence (r = 0.11) and Ent_spend (r = -0.21) are weak. The predictors are barely correlated with each other (all |r| ≤ 0.13), so multicollinearity is not a concern for the regression in Part 2.

6. What matters most in a theater experience? (100-point allocation)

Respondents split 100 points across five features of an ideal movie theater experience (Q9). Every respondent’s points total exactly 100.

pts <- survey %>%
  select(starts_with("Pts_")) %>%
  pivot_longer(everything(), names_to = "Feature", values_to = "Points") %>%
  mutate(Feature = recode(Feature,
                          Pts_low_price = "Low ticket price",
                          Pts_premium = "Premium format/seating",
                          Pts_concessions = "Concessions",
                          Pts_showtimes = "Showtimes",
                          Pts_proximity = "Proximity"))
 
pts %>%
  group_by(Feature) %>%
  summarise(Mean_points = round(mean(Points), 1), Median_points = median(Points)) %>%
  arrange(desc(Mean_points))
## # A tibble: 5 × 3
##   Feature                Mean_points Median_points
##   <chr>                        <dbl>         <dbl>
## 1 Low ticket price              33.3            20
## 2 Concessions                   17.6            20
## 3 Premium format/seating        16.4            20
## 4 Showtimes                     16.4            20
## 5 Proximity                     16.2            10
pts %>%
  group_by(Feature) %>%
  summarise(Mean_points = mean(Points)) %>%
  ggplot(aes(x = reorder(Feature, Mean_points), y = Mean_points)) +
  geom_col(fill = "steelblue") +
  geom_hline(yintercept = 20, linetype = "dashed") +
  coord_flip() +
  labs(title = "Low ticket price gets twice the points of any other feature",
       subtitle = "Dashed line = 20 points, an equal split across five features",
       x = NULL, y = "Average points (out of 100)")

ggplot(survey, aes(x = Price_influence, y = Pts_low_price)) +
  geom_jitter(width = 0.1, height = 0, size = 3, alpha = 0.7, color = "steelblue") +
  geom_smooth(method = "lm", se = FALSE, color = "grey20") +
  labs(title = "Price-sensitive respondents give more points to low ticket price",
       x = "Prices strongly influence me (0-5)", y = "Points given to low ticket price")

cor(survey$Price_influence, survey$Pts_low_price)
## [1] 0.3873911
cor(survey$Pts_low_price, survey$Theater_freq)
## [1] -0.1128152

Interpretation: Low ticket price receives an average of 33.3 points, about double each of the other four features (16 to 18 points each). Nine of 21 respondents gave it 40 points or more. Price-sensitive respondents put more points on low price (r = 0.39), so the two price measures agree with each other. Points on low price are almost unrelated to how often people actually go (r = -0.11). People say price matters most, but price does not separate frequent moviegoers from infrequent ones in this sample.

A note on our hypothesis: we planned to compare respondents aged 14 to 29 with older respondents. 19 of the 21 cleaned responses are in age group 1, so the sample is too uneven to test that comparison.

Key takeaways from the EDA

These patterns motivate the regression models in Part 2.

AI Usage Disclaimer

I used AI tools to assist in creating the R Markdown (RMD) file for this project. AI was also used to help organize the code, improve documentation, and troubleshoot potential errors. The analysis, interpretation of results, and final review were conducted to ensure the accuracy and relevance of the project.