Ginger Lo
2026-12-04
Goal: Identify patterns that may help students plan their IELTS preparation.
Q1. Which IELTS test section has the lowest average score across nationality groups?
Q2. How do score distributions differ by reason for taking IELTS?
TidyTuesday 2026 — Week 33 (August 18)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.2.1 ✔ readr 2.2.0
## ✔ forcats 1.0.1 ✔ stringr 1.6.0
## ✔ ggplot2 4.0.4 ✔ tibble 3.3.1
## ✔ lubridate 1.9.5 ✔ tidyr 1.3.2
## ✔ purrr 1.2.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
## spc_tbl_ [1,180 × 5] (S3: spec_tbl_df/tbl_df/tbl/data.frame)
## $ type : chr [1:1180] "Academic" "Academic" ...
## $ nationality: chr [1:1180] "Azerbaijan" "Azerbaijan" ...
## $ part : chr [1:1180] "listening" "reading" ...
## $ score : num [1:1180] 6.58 6.9 ...
## $ year : chr [1:1180] "2024-2025" "2024-2025" ...
## - attr(*, "spec")=
## .. cols(
## .. type = col_character(),
## .. nationality = col_character(),
## .. part = col_character(),
## .. score = col_double(),
## .. year = col_character()
## .. )
## - attr(*, "problems")=<pointer: 0x00000269497f19f0>
## spc_tbl_ [792 × 5] (S3: spec_tbl_df/tbl_df/tbl/data.frame)
## $ type : chr [1:792] "Academic" "Academic" ...
## $ reason : chr [1:792] "For employment" "For employment" ...
## $ band : chr [1:792] "<4" "4" ...
## $ percent: num [1:792] 0.00424 0.00908 ...
## $ year : chr [1:792] "2024-2025" "2024-2025" ...
## - attr(*, "spec")=
## .. cols(
## .. type = col_character(),
## .. reason = col_character(),
## .. band = col_character(),
## .. percent = col_double(),
## .. year = col_character()
## .. )
## - attr(*, "problems")=<pointer: 0x00000269497f1320>
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 4.244 5.900 6.249 6.259 6.608 8.727
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.00000 0.01422 0.06097 0.08328 0.14139 0.29000
## type nationality part score year
## 0 0 0 0 0
## type reason band percent year
## 0 0 0 0 0
## [1] 0
## [1] 0
ielts_clean <- ielts %>%
distinct() %>%
drop_na(type, nationality, part, score, year) %>%
filter(part %in% c("listening", "reading", "writing", "speaking"),
between(score, 0, 9)) %>%
group_by(type, nationality, year) %>%
filter(n() == 4, n_distinct(part) == 4) %>%
ungroup()section_summary <- ielts_clean %>%
group_by(part) %>%
summarise(mean_score = mean(score), median_score = median(score),
sd_score = sd(score), groups = n(), .groups = "drop") %>%
arrange(mean_score)| Section | Mean | Median | SD | Groups |
|---|---|---|---|---|
| writing | 5.99 | 6.01 | 0.35 | 236 |
| reading | 6.27 | 6.35 | 0.69 | 236 |
| speaking | 6.35 | 6.35 | 0.54 | 236 |
| listening | 6.37 | 6.42 | 0.61 | 236 |
Lowest: writing (5.99).
Highest: listening (6.37).
ggplot(ielts_clean, aes(x = part, y = score, fill = part)) +
geom_boxplot() +
labs(title = "IELTS scores by test section", x = "Section", y = "Group mean band score") +
theme_minimal() + theme(legend.position = "none")The boxplot compares medians, spread, and unusual group mean scores.
type_summary <- ielts_clean %>%
group_by(type, part) %>%
summarise(mean_score = mean(score), .groups = "drop")
lowest_type <- type_summary %>% group_by(type) %>% slice_min(mean_score, n = 1, with_ties = TRUE) %>% ungroup()ggplot(type_summary, aes(x = part, y = mean_score, fill = type)) +
geom_col(position = "dodge") +
scale_y_continuous(limits = c(0, 9)) +
labs(title = "Scores by section and test type", x = "Section", y = "Mean group score", fill = "Test type") +
theme_minimal()Lowest-scoring sections: Academic: writing; General_Training: writing.
expected_bands <- c("<4", "4", "4.5", "5", "5.5", "6", "6.5",
"7", "7.5", "8", "8.5", "9")
reasons_clean <- reasons %>%
distinct() %>%
drop_na(type, reason, band, percent, year) %>%
mutate(band = trimws(as.character(band))) %>%
filter(band %in% expected_bands, percent >= 0) %>%
group_by(type, reason, year) %>%
filter(n() == 12, n_distinct(band) == 12) %>%
ungroup()reason_summary <- reasons_clean %>%
group_by(type, reason, year) %>%
summarise(total = sum(percent),
high = sum(percent[band %in% c("7", "7.5", "8", "8.5", "9")]),
.groups = "drop") %>%
filter(between(total, 0.95, 1.05) | between(total, 95, 105)) %>%
mutate(high_pct = 100 * high / total)
stopifnot(nrow(ielts_clean) > 0, nrow(reason_summary) > 0)
latest <- reason_summary %>% filter(year == max(year))
latest <- latest %>% arrange(type, desc(high_pct))Band 7+ percentage: 100 × high-band values / all band values.
ggplot(latest, aes(x = reason, y = high_pct, fill = type)) +
geom_col(position = "dodge") + coord_flip() +
scale_y_continuous(limits = c(0, 100)) +
labs(title = "Percentage reaching band 7 or higher",
subtitle = max(latest$year), x = "Reason", y = "Percentage (%)", fill = "Test type") +
theme_minimal()Latest reporting period: 2024-2025.
| Test type | Reason | Band 7+ (%) |
|---|---|---|
| Academic | For registration as a doctor | 69.3 |
| General_Training | For registration as a doctor | 57.4 |
These are the highest observed percentages within each test type.
Differences may reflect different backgrounds or preparation levels. They do not prove that test purpose causes higher scores.
Thank you for listening!
Questions and suggestions are welcome.