It answers the main RQ and the three sub-RQs from Part 1:
- Main RQ: What are the main operational bottlenecks
in IU canteens, what factors contribute to them, and how can canteen
operations be improved?
- SQ1: What operational problems do students most
frequently experience?
- SQ2: What factors contribute to the bottlenecks
identified by students?
- SQ3: What improvements could reduce these
bottlenecks and improve service efficiency?
Data. Cleaned survey from Deliverable 1
(data/clean/). Code is hidden/collapsible: click
Code to open it.
# Relative path (required by the submission rules) -> run from the GroupXX_Part2 folder
load("data/clean/IUCanteenSurvey_Clean.Rdata") # objects: clean, problem_log, clean_summary
clean <- clean %>% mutate(across(where(is.factor), as.character))
glimpse(clean)
## Rows: 90
## Columns: 37
## $ RespondentID <chr> "R001", "R002", "R003", "R004", "R005", "R006",…
## $ StudentName <chr> "Bui Quyen Kiet", "Khuong Vi Hao", "Lai My Yen"…
## $ Timestamp <dttm> 2026-10-12 09:18:00, 2026-10-12 13:32:00, 2026…
## $ IUStudent <chr> "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes",…
## $ VisitTime <chr> "11:00 AM – 11:59 AM", "12:00 PM – 12:59 PM", "…
## $ VisitPurpose <chr> "Eating at the canteen", "Eating at the canteen…
## $ FullnessLevel <chr> "50%–75% (Fairly crowded; starting to be diffic…
## $ QueueTime <chr> "More than 10 minutes", "Under 3 minutes", "6 –…
## $ FoodWaitTime <chr> "6 – 10 minutes", "3 – 5 minutes", "6 – 10 minu…
## $ SeatFindTime <chr> "Under 2 minutes (Found a seat right away)", "U…
## $ SoldOutFreq <chr> "Sometimes (1–2 times per week)", "Never", "Rar…
## $ TableDifficulty <chr> "Somewhat difficult (Had to add extra chairs)",…
## $ TableCleanliness <chr> "Very unhygienic (Have to clean the table mysel…
## $ StayReason <chr> "Leave immediately after eating", "Leave immedi…
## $ MaxWaitTolerated <chr> "11 – 15 minutes", "Under 5 minutes", "More tha…
## $ OvercrowdAlternative <chr> "Eating at food stalls or restaurants outside t…
## $ NoticeExternalStudents <chr> "Always", "Always", "Frequently", "Frequently",…
## $ BottleneckStage <chr> "Queueing to place an order; Order processing a…
## $ RuleClarity <chr> "Not clear yet", "Not clear yet", "Not clear ye…
## $ OvercrowdCauses <chr> "Overcrowding due to the large number of users …
## $ PriorityImprovement <chr> "Ordering process", "Seating management and arr…
## $ FeedbackSuggestions <chr> "Build a larger canteen, hire more staff, and m…
## $ SatQueueing <int> 3, 5, 4, 4, 3, 4, 4, 4, 5, 4, 4, 3, 5, 4, 5, 1,…
## $ SatFoodPickup <int> 4, 5, 4, 5, 4, 4, 4, 3, 5, 4, 5, 4, 5, 4, 5, 2,…
## $ SatSeating <int> 3, 5, 3, 4, 2, 2, 1, 3, 5, 3, 2, 3, 4, 2, 3, 2,…
## $ SatCleanliness <int> 2, 5, 4, 4, 5, 3, 3, 4, 5, 4, 3, 3, 5, 3, 4, 4,…
## $ SatTotalTime <int> 3, 5, 4, 3, 2, 2, 2, 3, 5, 4, 3, 2, 5, 3, 4, 5,…
## $ SatOverall <int> 4, 5, 4, 4, 4, 3, 3, 4, 5, 4, 5, 4, 5, 3, 5, 4,…
## $ BN_Queueing <lgl> TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE…
## $ BN_Payment <lgl> TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,…
## $ BN_Kitchen <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE…
## $ BN_Pickup <lgl> FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE,…
## $ BN_Seating <lgl> FALSE, FALSE, FALSE, TRUE, FALSE, TRUE, TRUE, F…
## $ BN_NumStages <int> 2, 2, 1, 2, 1, 2, 2, 2, 2, 3, 2, 2, 2, 1, 1, 2,…
## $ BN_OverLimit <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE…
## $ HasFeedback <lgl> TRUE, FALSE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE…
## $ InconsistentTime <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE…
0.1 Turning answer ranges into numbers (documented decision)
The survey recorded waiting times as ranges (e.g. “3
– 5 minutes”). To compute averages we use the midpoint
of each range. Open-ended top ranges (“More than 10 minutes”) are set to
12.5 min (main scenario) and tested again at 15 min in Section 5.
add_minutes <- function(d, open_end = 12.5, tol_open = 17.5) {
d %>% mutate(
queue_min = case_when(str_detect(QueueTime, "^Under") ~ 1.5, str_detect(QueueTime, "^3") ~ 4,
str_detect(QueueTime, "^6") ~ 8, str_detect(QueueTime, "^More") ~ open_end),
food_min = case_when(str_detect(FoodWaitTime, "^Under") ~ 1.5, str_detect(FoodWaitTime, "^3") ~ 4,
str_detect(FoodWaitTime, "^6") ~ 8, str_detect(FoodWaitTime, "^More") ~ open_end),
seat_min = case_when(str_detect(SeatFindTime, "^Under") ~ 1, str_detect(SeatFindTime, "^3") ~ 4,
str_detect(SeatFindTime, "^6") ~ 8, str_detect(SeatFindTime, "^More") ~ open_end),
tol_min = case_when(str_detect(MaxWaitTolerated, "^Under") ~ 2.5, str_detect(MaxWaitTolerated, "^5") ~ 7.5,
str_detect(MaxWaitTolerated, "^11") ~ 13, str_detect(MaxWaitTolerated, "^More") ~ tol_open),
total_min = queue_min + food_min + seat_min,
gap_min = total_min - tol_min,
over_tol = total_min > tol_min,
# ordinal scores (1 = low ... high) used for correlations
full_score = case_when(str_detect(FullnessLevel, "^Below") ~ 1L, str_detect(FullnessLevel, "^50") ~ 2L,
str_detect(FullnessLevel, "^76") ~ 3L, str_detect(FullnessLevel, "^100") ~ 4L),
ext_score = match(NoticeExternalStudents, c("Never", "Rarely", "Sometimes", "Frequently", "Always")),
rule_score = match(RuleClarity, c("Not clear yet", "Normal", "Quite clear", "Very clear")),
visit_time = factor(VisitTime, levels = c("Before 11:00 AM", "11:00 AM – 11:59 AM",
"12:00 PM – 12:59 PM", "1:00 PM or later")),
IUStudent = factor(IUStudent, levels = c("Yes", "No"), labels = c("IU student", "Non-IU student"))
)
}
df <- add_minutes(clean)
# CHECK: no value should be NA after mapping. If something is NA, a label in the data differs from the pattern above.
df %>% summarise(across(c(queue_min, food_min, seat_min, tol_min, full_score, ext_score, rule_score), ~ sum(is.na(.x))))
prop_ci <- function(x, n) { b <- binom.test(x, n); tibble(prop = x / n, lo = b$conf.int[1], hi = b$conf.int[2]) }
1. Describe: who answered and what the key variables look like
Annotation (fill in after you see the output): What do you see?
Why does it matter? What do you check next?
df %>% count(IUStudent) %>% mutate(pct = percent(n / sum(n), 0.1)) %>% kable(caption = "Respondents by student status")
Respondents by student status
| IU student |
70 |
77.8% |
| Non-IU student |
20 |
22.2% |
df %>% count(visit_time) %>% mutate(pct = percent(n / sum(n), 0.1)) %>% kable(caption = "Respondents by usual visit time")
Respondents by usual visit time
| Before 11:00 AM |
12 |
13.3% |
| 11:00 AM – 11:59 AM |
44 |
48.9% |
| 12:00 PM – 12:59 PM |
25 |
27.8% |
| 1:00 PM or later |
9 |
10.0% |
df %>% count(VisitPurpose) %>% mutate(pct = percent(n / sum(n), 0.1)) %>% kable(caption = "Main purpose of visit")
Main purpose of visit
| Eating at the canteen |
64 |
71.1% |
| Getting food to go |
13 |
14.4% |
| Having a quick meal between classes |
13 |
14.4% |
sat_lab <- c(SatQueueing = "Queuing speed", SatFoodPickup = "Food pickup & availability",
SatSeating = "Seat availability", SatCleanliness = "Table cleanliness & tray return",
SatTotalTime = "Total time acceptable", SatOverall = "Overall experience")
sat <- df %>% select(starts_with("Sat")) %>%
pivot_longer(everything(), names_to = "item", values_to = "score") %>%
group_by(item) %>%
summarise(n = n(), mean = mean(score), sd = sd(score), pct_dissat = mean(score <= 2), .groups = "drop") %>%
mutate(se = sd / sqrt(n), lo = mean - qt(.975, n - 1) * se, hi = mean + qt(.975, n - 1) * se,
item = sat_lab[item])
sat %>% arrange(mean) %>% mutate(across(c(mean, sd, lo, hi), ~ round(.x, 2)), pct_dissat = percent(pct_dissat, 1)) %>%
select(item, mean, lo, hi, pct_dissat) %>% kable(caption = "Satisfaction (1–5), 95% CI, % scoring 1–2")
Satisfaction (1–5), 95% CI, % scoring 1–2
| Seat availability |
3.34 |
3.12 |
3.57 |
20% |
| Total time acceptable |
3.63 |
3.41 |
3.86 |
14% |
| Queuing speed |
3.73 |
3.56 |
3.91 |
3% |
| Table cleanliness & tray return |
3.82 |
3.61 |
4.03 |
8% |
| Food pickup & availability |
3.90 |
3.73 |
4.07 |
3% |
| Overall experience |
3.94 |
3.77 |
4.12 |
3% |
ggplot(sat, aes(reorder(item, mean), mean)) +
geom_col(fill = "#2c7fb8", width = .65) + geom_errorbar(aes(ymin = lo, ymax = hi), width = .2) +
geom_hline(yintercept = 3, linetype = "dashed") + coord_flip(ylim = c(1, 5)) +
labs(x = NULL, y = "Mean satisfaction (1 = very dissatisfied, 5 = very satisfied)",
title = "Seating is the lowest-rated part of the canteen (3.3 out of 5)")

stage <- df %>% select(queue_min, food_min, seat_min) %>%
pivot_longer(everything(), names_to = "stage", values_to = "min") %>%
group_by(stage) %>% summarise(mean = mean(min), median = median(min), .groups = "drop") %>%
mutate(stage = recode(stage, queue_min = "Queuing to order & pay", food_min = "Waiting for food", seat_min = "Finding a seat"))
long_share <- tibble(stage = c("Queuing to order & pay", "Waiting for food", "Finding a seat"),
pct_over10 = c(mean(str_detect(df$QueueTime, "^More")), mean(str_detect(df$FoodWaitTime, "^More")),
mean(str_detect(df$SeatFindTime, "^More"))))
left_join(stage, long_share, by = "stage") %>% mutate(pct_over10 = percent(pct_over10, 1)) %>%
kable(digits = 1, caption = "Time per stage (midpoint estimates) and share reporting more than 10 minutes")
Time per stage (midpoint estimates) and share reporting more
than 10 minutes
| Waiting for food |
5.7 |
4 |
9% |
| Queuing to order & pay |
6.0 |
4 |
13% |
| Finding a seat |
4.6 |
4 |
7% |
2. SQ1 — Which problems do students experience most?
2.1 Which stage is named the biggest bottleneck? (multi-select, max
2)
bn_lab <- c(BN_Queueing = "Queueing to order", BN_Payment = "Order processing & payment",
BN_Kitchen = "Food preparation (kitchen)", BN_Pickup = "Waiting at pickup counter",
BN_Seating = "Finding a seat")
bn <- df %>% summarise(across(all_of(names(bn_lab)), ~ sum(as.numeric(.x)))) %>%
pivot_longer(everything(), names_to = "stage", values_to = "n") %>%
mutate(N = nrow(df)) %>% rowwise() %>% mutate(ci = list(prop_ci(n, N))) %>% unnest(ci) %>% ungroup() %>%
mutate(stage = bn_lab[stage]) %>% arrange(desc(prop))
bn %>% mutate(across(c(prop, lo, hi), ~ percent(.x, 1))) %>% select(stage, n, prop, lo, hi) %>% kable(caption = "Share of respondents naming each stage (95% CI)")
Share of respondents naming each stage (95% CI)
| Queueing to order |
37 |
41% |
31% |
52% |
| Food preparation (kitchen) |
35 |
39% |
29% |
50% |
| Finding a seat |
31 |
34% |
25% |
45% |
| Order processing & payment |
29 |
32% |
23% |
43% |
| Waiting at pickup counter |
26 |
29% |
20% |
39% |
ggplot(bn, aes(reorder(stage, prop), prop)) + geom_col(fill = "#d95f0e", width = .65) +
geom_errorbar(aes(ymin = lo, ymax = hi), width = .2) + coord_flip() + scale_y_continuous(labels = percent) +
labs(x = NULL, y = "% of respondents", title = "No single stage dominates: queuing (41%) and the kitchen (39%) are named most often)")

Note: BN_OverLimit flags 13 respondents who chose
more than 2 stages; tested in Section 5.
2.2 How far is the real experience from what students tolerate?
(benchmark gap)
df %>% summarise(mean_total = mean(total_min), mean_tolerance = mean(tol_min),
pct_total_over_tol = percent(mean(over_tol), 1),
pct_any_single_stage_over_tol = percent(mean(pmax(queue_min, food_min, seat_min) > tol_min), 1)) %>%
kable(digits = 1, caption = "Total time (queue + food + seat) vs maximum tolerated wait")
Total time (queue + food + seat) vs maximum tolerated
wait
| 16.2 |
9.7 |
81% |
33% |
ggplot(df, aes(gap_min)) + geom_histogram(binwidth = 2.5, boundary = 0, fill = "#756bb1", colour = "white") +
geom_vline(xintercept = 0, linetype = "dashed") +
labs(x = "Minutes above (+) or below (−) tolerated wait", y = "Respondents",
title = "Most students spend longer in the canteen than they can tolerate")

On average, students spent about 16 minutes queuing, waiting for
food, and finding a seat, compared to about 10 minutes they considered
themselves to be able to tolerate. Approximately 81% of students
exceeded their tolerance limit, so this is a fairly common problem, not
limited to just a few individuals. The tolerance question can be
measured at individual stages or for the entire visit, and we used a
measurement method for the entire visit. The estimated times are
averages, so the discrepancies are only approximate.
2.3 Other pain points: seats, cleanliness, stock-outs
df %>% count(TableDifficulty) %>% mutate(pct = percent(n / sum(n), 1)) %>% arrange(desc(n)) %>% kable(caption = "Difficulty finding a table for the group")
Difficulty finding a table for the group
| Somewhat difficult (Had to add extra chairs) |
45 |
50% |
| Very difficult (Had to split up and sit
separately) |
23 |
26% |
| Easy to find a table with enough seats |
14 |
16% |
| Extremely difficult (Almost never able to sit together
as a group) |
8 |
9% |
df %>% count(TableCleanliness) %>% mutate(pct = percent(n / sum(n), 1)) %>% arrange(desc(n)) %>% kable(caption = "Table cleanliness on arrival")
Table cleanliness on arrival
| Fairly clean (Only a few small water marks) |
51 |
57% |
| Dirty dishes or leftover trash are often left on the
table |
18 |
20% |
| The table is always clean and dry |
14 |
16% |
| Very unhygienic (Have to clean the table myself before
eating) |
7 |
8% |
df %>% count(SoldOutFreq) %>% mutate(pct = percent(n / sum(n), 1)) %>% arrange(desc(n)) %>% kable(caption = "How often the wanted item is sold out")
How often the wanted item is sold out
| Sometimes (1–2 times per week) |
36 |
40% |
| Rarely (1–2 times per month) |
28 |
31% |
| Never |
18 |
20% |
| Frequently (Almost every day) |
8 |
9% |
*Seat search time rises as the canteen gets fuller. The correlation
is moderate (Spearman rho around 0.38, p < 0.001) and the boxplots
show the median time increasing from the emptiest to the fullest
category. Crowding therefore looks like a real driver of the seating
problem. The correlation is moderate and the data are self-reported
ranges, so this shows association, not proof of cause. # 3. SQ2 — What
factors contribute to the bottlenecks?
3.1 Crowding and time of day
ggplot(df, aes(factor(full_score, 1:4, c("<50%", "50–75%", "76–95%", "100%")), seat_min)) +
geom_boxplot(outlier.shape = NA, fill = "grey90") + geom_jitter(width = .15, height = .15, alpha = .4) +
labs(x = "How full the canteen was on arrival", y = "Time to find a seat (min, midpoint)",
title = "The fuller the canteen, the longer students take to find a seat")

cor.test(~ full_score + seat_min, data = df, method = "spearman", exact = FALSE)
##
## Spearman's rank correlation rho
##
## data: full_score and seat_min
## S = 75905, p-value = 0.0002688
## alternative hypothesis: true rho is not equal to 0
## sample estimates:
## rho
## 0.3751915
cor.test(~ full_score + queue_min, data = df, method = "spearman", exact = FALSE)
##
## Spearman's rank correlation rho
##
## data: full_score and queue_min
## S = 73309, p-value = 0.0001091
## alternative hypothesis: true rho is not equal to 0
## sample estimates:
## rho
## 0.3965609
kruskal.test(seat_min ~ factor(full_score), data = df)
##
## Kruskal-Wallis rank sum test
##
## data: seat_min by factor(full_score)
## Kruskal-Wallis chi-squared = 22.912, df = 3, p-value = 4.213e-05
The time spent finding a seat increased as the cafeteria became
more crowded. The correlation coefficient was moderate (Spearman
correlation coefficient approximately 0.38, p < 0.001) and the box
plot showed that the median time increased progressively from the least
crowded group to the most crowded group. Therefore, crowding appears to
be the primary cause of the seating shortage. The moderate correlation
coefficient and the self-reported time intervals suggest an association,
not evidence of causation.
tod <- df %>% group_by(visit_time) %>%
summarise(n = n(), queue = mean(queue_min), food = mean(food_min), seat = mean(seat_min),
fullness = mean(full_score), overall_sat = mean(SatOverall), .groups = "drop")
kable(tod, digits = 2, caption = "By usual visit time (note small n in the first and last slots)")
By usual visit time (note small n in the first and last
slots)
| Before 11:00 AM |
12 |
4.29 |
5.83 |
3.92 |
2.00 |
4.08 |
| 11:00 AM – 11:59 AM |
44 |
6.30 |
5.40 |
4.85 |
2.27 |
3.98 |
| 12:00 PM – 12:59 PM |
25 |
6.68 |
5.84 |
4.84 |
2.40 |
3.72 |
| 1:00 PM or later |
9 |
4.50 |
6.17 |
3.39 |
1.89 |
4.22 |
kruskal.test(queue_min ~ visit_time, data = df)
##
## Kruskal-Wallis rank sum test
##
## data: queue_min by visit_time
## Kruskal-Wallis chi-squared = 6.6797, df = 3, p-value = 0.08284
kruskal.test(seat_min ~ visit_time, data = df)
##
## Kruskal-Wallis rank sum test
##
## data: seat_min by visit_time
## Kruskal-Wallis chi-squared = 3.6742, df = 3, p-value = 0.2989
3.2 Is it really the external students? Perception vs. evidence
compare_iu <- function(var, label) {
x <- df[[var]]; g <- df$IUStudent
w <- wilcox.test(x ~ g, exact = FALSE)
tibble(measure = label, median_IU = median(x[g == "IU student"]), median_nonIU = median(x[g == "Non-IU student"]),
mean_IU = mean(x[g == "IU student"]), mean_nonIU = mean(x[g == "Non-IU student"]),
p = w$p.value, effect_r = abs(qnorm(w$p.value / 2)) / sqrt(length(x)))
}
iu_tests <- bind_rows(
compare_iu("queue_min", "Queue time (min)"), compare_iu("food_min", "Food wait (min)"),
compare_iu("seat_min", "Seat search (min)"), compare_iu("total_min", "Total time (min)"),
compare_iu("SatSeating", "Satisfaction: seats"), compare_iu("SatCleanliness", "Satisfaction: cleanliness"),
compare_iu("SatOverall", "Satisfaction: overall")) %>%
mutate(p_holm = p.adjust(p, "holm"))
kable(iu_tests, digits = 3, caption = "IU vs non-IU students (Mann–Whitney; r = effect size; Holm-adjusted p). Non-IU n is small.")
IU vs non-IU students (Mann–Whitney; r = effect size;
Holm-adjusted p). Non-IU n is small.
| Queue time (min) |
4 |
4.0 |
6.021 |
5.725 |
0.865 |
0.018 |
1 |
| Food wait (min) |
4 |
4.0 |
5.707 |
5.475 |
0.877 |
0.016 |
1 |
| Seat search (min) |
4 |
4.0 |
4.729 |
4.050 |
0.649 |
0.048 |
1 |
| Total time (min) |
16 |
14.5 |
16.457 |
15.250 |
0.622 |
0.052 |
1 |
| Satisfaction: seats |
3 |
3.0 |
3.371 |
3.250 |
0.664 |
0.046 |
1 |
| Satisfaction: cleanliness |
4 |
4.0 |
3.900 |
3.550 |
0.155 |
0.150 |
1 |
| Satisfaction: overall |
4 |
4.0 |
4.000 |
3.750 |
0.192 |
0.137 |
1 |
# What students THINK causes the problem
df %>% count(IUStudent, OvercrowdCauses) %>% group_by(IUStudent) %>% mutate(pct = percent(n / sum(n), 1)) %>%
arrange(IUStudent, desc(n)) %>% kable(caption = "Perceived main cause of overcrowding")
Perceived main cause of overcrowding
| IU student |
Overcrowding due to the large number of users
(including students from other universities) |
38 |
54% |
| IU student |
Inefficient or slow ordering and payment processes |
10 |
14% |
| IU student |
Insufficient service staff/cashiers during peak
hours |
10 |
14% |
| IU student |
Awareness issue: Lingering at tables long after
eating |
6 |
9% |
| IU student |
Inefficient counter layout and traffic flow |
6 |
9% |
| Non-IU student |
Overcrowding due to the large number of users
(including students from other universities) |
10 |
50% |
| Non-IU student |
Inefficient or slow ordering and payment processes |
4 |
20% |
| Non-IU student |
Insufficient service staff/cashiers during peak
hours |
3 |
15% |
| Non-IU student |
Inefficient counter layout and traffic flow |
2 |
10% |
| Non-IU student |
Awareness issue: Lingering at tables long after
eating |
1 |
5% |
# Do students who notice more outsiders have worse seat experience?
cor.test(~ ext_score + seat_min, data = df, method = "spearman", exact = FALSE)
##
## Spearman's rank correlation rho
##
## data: ext_score and seat_min
## S = 130799, p-value = 0.4726
## alternative hypothesis: true rho is not equal to 0
## sample estimates:
## rho
## -0.07666554
cor.test(~ ext_score + SatSeating, data = df, method = "spearman", exact = FALSE)
##
## Spearman's rank correlation rho
##
## data: ext_score and SatSeating
## S = 158078, p-value = 0.003915
## alternative hypothesis: true rho is not equal to 0
## sample estimates:
## rho
## -0.301216
# Rule clarity by group
rc <- table(df$IUStudent, df$RuleClarity); rc
##
## Normal Not clear yet Quite clear Very clear
## IU student 26 20 17 7
## Non-IU student 6 1 9 4
fisher.test(rc, simulate.p.value = TRUE, B = 10000)
##
## Fisher's Exact Test for Count Data with simulated p-value (based on
## 10000 replicates)
##
## data: rc
## p-value = 0.0396
## alternative hypothesis: two.sided
3.3 Key-driver analysis: which stage drives overall
satisfaction?
preds <- c("SatQueueing", "SatFoodPickup", "SatSeating", "SatCleanliness", "SatTotalTime")
vif <- tibble(predictor = preds,
VIF = map_dbl(preds, ~ 1 / (1 - summary(lm(reformulate(setdiff(preds, .x), .x), data = df))$r.squared)))
kable(vif, digits = 2, caption = "Collinearity check (VIF > 5 = worry)")
Collinearity check (VIF > 5 = worry)
| SatQueueing |
2.87 |
| SatFoodPickup |
2.43 |
| SatSeating |
2.29 |
| SatCleanliness |
1.78 |
| SatTotalTime |
2.27 |
df_z <- df %>% mutate(across(all_of(c("SatOverall", preds)), ~ as.numeric(scale(.x))))
m <- lm(SatOverall ~ SatQueueing + SatFoodPickup + SatSeating + SatCleanliness + SatTotalTime, data = df_z)
broom::tidy(m, conf.int = TRUE) %>% filter(term != "(Intercept)") %>%
mutate(term = sat_lab[term]) %>% kable(digits = 3, caption = "Standardised coefficients (effect of +1 SD on overall satisfaction)")
Standardised coefficients (effect of +1 SD on overall
satisfaction)
| Queuing speed |
-0.156 |
0.118 |
-1.322 |
0.190 |
-0.391 |
0.079 |
| Food pickup & availability |
0.371 |
0.109 |
3.415 |
0.001 |
0.155 |
0.586 |
| Seat availability |
0.184 |
0.105 |
1.744 |
0.085 |
-0.026 |
0.393 |
| Table cleanliness & tray return |
0.139 |
0.093 |
1.494 |
0.139 |
-0.046 |
0.324 |
| Total time acceptable |
0.393 |
0.105 |
3.745 |
0.000 |
0.184 |
0.602 |
glance_m <- broom::glance(m); tibble(R2 = glance_m$r.squared, adj_R2 = glance_m$adj.r.squared, n = glance_m$nobs) %>% kable(digits = 2)
3.4 Behaviour at the table
df %>% group_by(StayReason) %>% summarise(n = n(), mean_seat_min = mean(seat_min), mean_SatSeating = mean(SatSeating), .groups = "drop") %>%
kable(digits = 2, caption = "Why people stay after eating vs. seat search time and seat satisfaction")
Why people stay after eating vs. seat search time and seat
satisfaction
| Chatting and socializing with friends |
39 |
4.59 |
3.33 |
| Leave immediately after eating |
29 |
3.45 |
3.41 |
| Taking a break, resting, or staying out of the sun
while waiting for the next class |
18 |
5.81 |
3.22 |
| Using a phone or laptop / Doing assignments |
4 |
7.12 |
3.50 |
3.5 Bring in the qualitative evidence (2 interviews)
Paste short excerpts from your transcripts. Do not invent
quotes — use only what interviewees actually said.
tribble(~source, ~theme, ~excerpt, ~links_to_survey_result,
"Interview 1 (IU student)", "[theme]", "[paste quote from transcript]", "[which chart/number it explains]",
"Interview 2 (non-IU student)", "[theme]", "[paste quote from transcript]", "[which chart/number it explains]") %>% kable()
| Interview 1 (IU student) |
[theme] |
[paste quote from transcript] |
[which chart/number it explains] |
| Interview 2 (non-IU student) |
[theme] |
[paste quote from transcript] |
[which chart/number it explains] |
4. SQ3 — What improvements fit the evidence?
4.1 Priority stage vs. named bottleneck
pri_map <- c("Ordering process" = "Queueing to order",
"Order processing / Payment systems and equipment" = "Order processing & payment",
"Food preparation speed" = "Food preparation (kitchen)",
"Food pickup process" = "Waiting at pickup counter",
"Seating management and arrangement" = "Finding a seat")
pri <- df %>% count(PriorityImprovement) %>% mutate(stage = pri_map[PriorityImprovement], prop = n / sum(n)) %>% select(stage, prop)
cmp <- bn %>% select(stage, prop) %>% rename(named_bottleneck = prop) %>%
left_join(pri %>% rename(chosen_priority = prop), by = "stage") %>%
pivot_longer(-stage, names_to = "measure", values_to = "share")
ggplot(cmp, aes(reorder(stage, share), share, fill = measure)) + geom_col(position = "dodge") + coord_flip() +
scale_y_continuous(labels = percent) + labs(x = NULL, y = "% of respondents", fill = NULL,
title = "What students want fixed first is not always what they name as the worst bottleneck")
Students typically chose order processing and payment (around 30%)
and seating management (around 29%) as the first areas needing
improvement. Queueing and the kitchen were frequently mentioned as
bottlenecks (41% and 39%) but were less frequently chosen as top
priorities (20% and 17%), while the food pickup counter was rarely
selected (4%). Therefore, the most impactful issue isn’t always the one
students want to address first. These two indicators are on different
scales (a student might name two bottlenecks but only choose one as a
priority), so we’re comparing the ranking of the processes, not the
exact percentages. ## 4.2 What students suggest (open text, coded
by keywords)
themes <- tribble(~theme, ~pattern,
"Separate / prioritise IU students", "priorit|only iu|non-iu|external|outside|separate|two areas|verify|check who|limit|fee",
"More capacity (counters, staff, space)", "larger|bigger|more (food )?counter|more staff|hire|add more|expand",
"Digital ordering / queue tools", "\\bapps?\\b|online|pre-order|website|kiosk|notif|message|\\bqr\\b",
"Seating layout & table use", "table|seat|layout|rearrange|chair|sleep|study|linger",
"Trays, cleaning & hygiene", "tray|clean|trash|return|dish")
fb <- df %>% filter(!is.na(FeedbackSuggestions)) %>% transmute(RespondentID, text = str_to_lower(FeedbackSuggestions))
coded <- map_dfr(seq_len(nrow(themes)), ~ fb %>% mutate(theme = themes$theme[.x], hit = str_detect(text, themes$pattern[.x])))
coded %>% group_by(theme) %>% summarise(n = sum(hit), pct_of_comments = percent(mean(hit), 1), .groups = "drop") %>%
arrange(desc(n)) %>% kable(caption = paste0("Themes in ", nrow(fb), " written suggestions (a comment can have several themes)"))
Themes in 49 written suggestions (a comment can have several
themes)
| More capacity (counters, staff, space) |
15 |
31% |
| Seating layout & table use |
15 |
31% |
| Separate / prioritise IU students |
12 |
24% |
| Digital ordering / queue tools |
5 |
10% |
| Trays, cleaning & hygiene |
3 |
6% |
Among 49 written suggestions, students most often ask for more
capacity (31%: more counters, staff or space) and better seating layout
and table use (31%). About 24% ask for rules that separate or prioritise
IU students, 10% suggest digital ordering or queue tools, and 6% mention
trays and cleanliness. Many students want the canteen to handle more
people, and a quarter want IU-student priority, which fits the
perception of crowding from outside users. Keyword coding can miss
meaning, so we read all comments and adjusted patterns where needed.
Only 49 of 90 students wrote a suggestion.
4.3 What do students do when it is too crowded?
df %>% count(OvercrowdAlternative) %>% mutate(pct = percent(n / sum(n), 1)) %>% arrange(desc(n)) %>%
kable(caption = "Most common alternative when the canteen is overcrowded (lost demand = business signal)")
Most common alternative when the canteen is overcrowded (lost
demand = business signal)
| Ordering food delivery to campus through apps (e.g.,
GrabFood, ShopeeFood) |
41 |
46% |
| Eating at food stalls or restaurants outside the
university gates |
18 |
20% |
| Buying packaged food at a convenience store |
16 |
18% |
| Skipping the meal and waiting until the afternoon to
eat |
15 |
17% |
When the canteen becomes overcrowded, nearly half of the students
(46%) order food delivery via an app. Approximately 20% eat at
restaurants outside the campus, 18% buy packaged food at convenience
stores, and 17% skip lunch until the afternoon. Thus, every student who
finds the canteen too crowded seeks out another place to eat, and about
one-sixth of the students skip lunch.
4.4 From evidence to recommendations
| Total visit time is longer than students can tolerate |
About 81% exceed their own limit; average total about 16 min vs
about 10 min tolerated (2.2) |
Crowding at peak hours (rho about 0.38 with seat search time,
3.1) |
Add counters or staff during 11:00–13:00 |
Canteen operator |
Times are self-reported ranges |
| Seating is the lowest-rated stage |
Seat satisfaction 3.3/5, lowest of six items; about 84% find it at
least somewhat difficult to get a table (1, 2.3) |
Crowding and students staying after eating |
Rearrange tables; use zoned or time-limited seating at peak |
University admin |
Seating is a weak driver of overall satisfaction (3.3) |
| Slow food service and stock-outs |
Food pickup is a top driver of overall satisfaction (coefficient
about 0.37); about 49% see stock-outs at least weekly (3.3, 2.3) |
Kitchen speed and stock planning |
Improve stock planning and kitchen flow at peak |
Canteen operator |
Survey data only, no kitchen measurements |
| Lost demand when the canteen is crowded |
46% order delivery and 17% skip lunch when it is crowded (4.3) |
Peak overload; no ordering-ahead option |
Pilot online pre-order with a pickup point |
Canteen operator |
Stated behaviour, not observed |
| Unclear rules about who can use the canteen |
About 29% of IU students say rules are not clear, vs about 5% of
non-IU students (3.2) |
No published policy for peak hours |
Publish simple, clear peak-hour rules |
University admin |
Only 20 non-IU respondents |
5. Robustness checks: do the conclusions survive different
choices?
key_stats <- function(d, label) {
tibble(scenario = label, n = nrow(d),
mean_total_min = mean(d$total_min), pct_over_tolerance = mean(d$over_tol),
rho_fullness_seat = suppressWarnings(cor(d$full_score, d$seat_min, method = "spearman")),
p_IU_vs_nonIU_total = wilcox.test(total_min ~ IUStudent, data = d, exact = FALSE)$p.value)
}
bind_rows(
key_stats(df, "Main: top range = 12.5 min"),
key_stats(add_minutes(clean, open_end = 15, tol_open = 20), "Sensitivity: top range = 15 min"),
key_stats(df %>% filter(InconsistentTime == 0, BN_OverLimit == 0), "Excluding flagged responses")) %>%
kable(digits = 3, caption = "Key results under alternative assumptions")
Key results under alternative assumptions
| Main: top range = 12.5 min |
90 |
16.189 |
0.811 |
0.375 |
0.622 |
| Sensitivity: top range = 15 min |
90 |
16.911 |
0.789 |
0.375 |
0.602 |
| Excluding flagged responses |
75 |
16.027 |
0.800 |
0.334 |
0.709 |
The main results do not depend on our assumptions. Changing the
open-ended top range from 12.5 to 15 minutes, or removing the 15 flagged
responses (n = 75), leaves the average total time at about 16–17
minutes, the share above tolerance at 79–81%, and the crowding–seat
search correlation at 0.33–0.38. The IU vs non-IU comparison stays
non-significant in all cases (p between 0.60 and 0.71). We therefore
treat these findings as stable, while noting that all times are
self-reported ranges. # 6. Insight register (feeds the pre-read; at
least 5 insights, at least 1 per sub-RQ)
tribble(~id, ~sub_RQ, ~insight, ~evidence_chunk, ~key_number,
"I1", "SQ1", "About 8 in 10 students spend longer in the canteen than they say they can tolerate", "gap", "81% over tolerance; about 16 vs 10 min",
"I2", "SQ1", "No single stage clearly dominates the bottlenecks; they are spread across the service chain", "bottleneck-rank", "29%–41% per stage, overlapping CIs",
"I3", "SQ2", "The fuller the canteen, the longer students take to find a seat", "crowd-seat", "Spearman rho about 0.38, p < 0.001",
"I4", "SQ2", "No clear IU vs non-IU difference in times; outside students are felt more than measured", "iu-vs-non, perception", "Total time p about 0.62; 54% of IU students blame crowding",
"I5", "SQ2", "Total time and food pickup drive overall satisfaction most", "drivers", "Coefficients about 0.39 and 0.37; R2 about 0.59",
"I6", "SQ3", "What students want fixed first differs from what they name as worst bottleneck", "priority", "Payment 30% and seating 29% vs pickup 4%",
"I7", "SQ3", "When crowded, many students leave: almost half order delivery", "alternative", "46% delivery; 17% skip lunch") %>% kable()
| I1 |
SQ1 |
About 8 in 10 students spend longer in the canteen than
they say they can tolerate |
gap |
81% over tolerance; about 16 vs 10 min |
| I2 |
SQ1 |
No single stage clearly dominates the bottlenecks; they
are spread across the service chain |
bottleneck-rank |
29%–41% per stage, overlapping CIs |
| I3 |
SQ2 |
The fuller the canteen, the longer students take to
find a seat |
crowd-seat |
Spearman rho about 0.38, p < 0.001 |
| I4 |
SQ2 |
No clear IU vs non-IU difference in times; outside
students are felt more than measured |
iu-vs-non, perception |
Total time p about 0.62; 54% of IU students blame
crowding |
| I5 |
SQ2 |
Total time and food pickup drive overall satisfaction
most |
drivers |
Coefficients about 0.39 and 0.37; R2 about 0.59 |
| I6 |
SQ3 |
What students want fixed first differs from what they
name as worst bottleneck |
priority |
Payment 30% and seating 29% vs pickup 4% |
| I7 |
SQ3 |
When crowded, many students leave: almost half order
delivery |
alternative |
46% delivery; 17% skip lunch |
7. Limitations
- Convenience sample; non-IU group is small (n = 20), so group
comparisons have low power — “no significant difference” is
not proof of “no difference”.
- Times are self-reported ranges converted to midpoints (see Section 5
for sensitivity).
- Many tests were run; p-values are indicative, not confirmatory (Holm
adjustment used where several tests were compared).
- Correlation is not causation; cross-sectional design.
- [add your own]
Appendix: reproducibility
sessionInfo()
## R version 4.6.2 (2026-10-29)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.5 LTS
##
## Matrix products: default
## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
##
## locale:
## [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
## [4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
## [7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
## [10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
##
## time zone: UTC
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] scales_1.4.0 knitr_1.52 lubridate_1.9.5 forcats_1.0.1
## [5] stringr_1.6.0 dplyr_1.2.1 purrr_1.2.2 readr_2.2.0
## [9] tidyr_1.3.2 tibble_3.3.1 ggplot2_4.0.4 tidyverse_2.0.0
##
## loaded via a namespace (and not attached):
## [1] gtable_0.3.6 jsonlite_2.0.0 compiler_4.6.2 tidyselect_1.2.1
## [5] jquerylib_0.1.4 yaml_2.3.12 fastmap_1.2.0 R6_2.6.1
## [9] labeling_0.4.3 generics_0.1.4 backports_1.5.1 bslib_0.12.0
## [13] pillar_1.11.1 RColorBrewer_1.1-3 tzdb_0.5.0 rlang_1.3.0
## [17] broom_1.0.13 stringi_1.8.9 cachem_1.1.0 xfun_0.62
## [21] sass_0.5.0 S7_1.0.0 otel_0.3.0 timechange_0.4.0
## [25] cli_3.6.6 withr_3.0.3 magrittr_2.0.5 digest_0.6.39
## [29] grid_4.6.2 rstudioapi_0.19.0 hms_1.1.4 lifecycle_1.0.5
## [33] vctrs_0.7.3 evaluate_1.0.5 glue_1.8.1 farver_2.1.2
## [37] stats4_4.6.2 rmarkdown_2.32 tools_4.6.2 pkgconfig_2.0.3
## [41] htmltools_0.5.9