Assignment 10B: Nobel Prize Data Analysis

Code Base

Author

Patricio Romero

Published

November 22, 2026

1 Project Overview

The goal of this project is to explore Nobel Prize data using R and JSON.

The analysis will examine how Nobel Prizes have been awarded across different categories and time periods. It will also explore the geographic representation of Nobel Prize laureates.

The project will use data from the official Nobel Prize API. The data will be imported, cleaned, and transformed into a structured format for analysis and visualization.

The results will help identify patterns and changes in Nobel Prize awards over time.

2 Research Questions

This project will address the following four research questions:

  1. Which Nobel Prize categories have received the most awards over time?

  2. How has the number of Nobel Prize laureates changed across decades?

  3. Which countries are most frequently represented among Nobel Prize laureates?

  4. How do Nobel Prize patterns differ across categories and time periods?

These questions will help us explore historical trends, geographic representation, and differences between Nobel Prize categories.

3 Data Source

The data comes from the official Nobel Prize API in JSON format. The initial Approach used a sample of 100 award records. For the Code Base, I retrieved the full historical dataset and additional laureate information to analyze Nobel Prize categories, historical trends, and birth countries.

Source: https://www.nobelprize.org/about/developer-zone-2/

3.1 Data Import

I used R and jsonlite to retrieve the award records. The tables below summarize the data without displaying long nested JSON objects.

Show code
api_url <- "https://api.nobelprize.org/2.1/nobelPrizes?limit=100"
nobel_json <- jsonlite::fromJSON(api_url, flatten = TRUE)
nobel_prizes <- nobel_json$nobelPrizes
stopifnot(is.data.frame(nobel_prizes), nrow(nobel_prizes) > 0)

# Keep original JSON records and create readable analysis variables.
nobel_clean <- nobel_prizes |>
  dplyr::transmute(
    `Award Year` = as.integer(awardYear),
    Category = category.en,
    `Award Date` = dateAwarded,
    `Prize Amount (SEK)` = as.numeric(prizeAmount),
    `Adjusted Prize Amount (SEK)` = as.numeric(prizeAmountAdjusted)
  )

stopifnot(nrow(nobel_clean) == nrow(nobel_prizes))

3.2 Dataset Overview

Show code
overview <- data.frame(
  Description = c("Award records", "Original API variables", "Selected analysis variables", "Data format", "Data source", "API version", "Sample scope"),
  Value = c(nrow(nobel_clean), ncol(nobel_prizes), ncol(nobel_clean), "JSON", "NobelPrize.org", "2.1", "First 100 award records")
)
format_table(overview, "Table 1. Dataset Overview")
Table 1. Dataset Overview
Description Value
Award records 100
Original API variables 13
Selected analysis variables 5
Data format JSON
Data source NobelPrize.org
API version 2.1
Sample scope First 100 award records

3.3 Variable Description

Show code
variable_table <- data.frame(
  Variable = names(nobel_clean),
  Type = vapply(nobel_clean, function(x) paste(class(x), collapse = ", "), character(1)),
  Description = c(
    "Year when the Nobel Prize was awarded",
    "Nobel Prize category in English",
    "Date when the prize was awarded",
    "Original prize amount in Swedish kronor",
    "Inflation-adjusted prize amount in Swedish kronor"
  ),
  Purpose = c(
    "Analyze historical trends",
    "Compare award categories",
    "Identify award dates",
    "Examine prize amounts",
    "Compare adjusted prize amounts"
  )
)
format_table(variable_table, "Table 2. Variable Description")
Table 2. Variable Description
Variable Type Description Purpose
Award Year integer Year when the Nobel Prize was awarded Analyze historical trends
Category character Nobel Prize category in English Compare award categories
Award Date character Date when the prize was awarded Identify award dates
Prize Amount (SEK) numeric Original prize amount in Swedish kronor Examine prize amounts
Adjusted Prize Amount (SEK) numeric Inflation-adjusted prize amount in Swedish kronor Compare adjusted prize amounts

3.4 Data Preview

The preview includes only readable award-level fields. Nested laureate information is not printed in this table.

Show code
preview <- head(nobel_clean[, c("Award Year", "Category", "Award Date", "Prize Amount (SEK)")], 6)
preview[["Prize Amount (SEK)"]] <- format(preview[["Prize Amount (SEK)"]], big.mark = ",", scientific = FALSE, trim = TRUE)
format_table(preview, "Table 3. Nobel Prize Data Preview")
Table 3. Nobel Prize Data Preview
Award Year Category Award Date Prize Amount (SEK)
1901 Chemistry 1901-11-12 150,782
1901 Literature 1901-11-14 150,782
1901 Peace 1901-12-10 150,782
1901 Physics 1901-11-12 150,782
1901 Physiology or Medicine 1901-10-30 150,782
1902 Chemistry 1902-11-11 141,847

4 Data Validation

Before the main analysis, I checked missing values and award counts by category in the imported sample. These results describe only the sample, not all historical awards.

4.1 Missing Values

Show code
missing <- vapply(nobel_clean, function(x) sum(is.na(x) | trimws(as.character(x)) == ""), integer(1))
missing_table <- data.frame(
  Variable = names(nobel_clean),
  `Missing Values` = as.integer(missing),
  `Percentage (%)` = round(100 * missing / nrow(nobel_clean), 2),
  check.names = FALSE
)
format_table(missing_table, "Table 4. Missing Values")
Table 4. Missing Values
Variable Missing Values Percentage (%)
Award Year 0 0
Category 0 0
Award Date 10 10
Prize Amount (SEK) 0 0
Adjusted Prize Amount (SEK) 0 0

4.2 Awards by Category

Show code
awards_table <- nobel_clean |>
  dplyr::count(Category, name = "Awards") |>
  dplyr::mutate(`Percentage (%)` = round(100 * Awards / sum(Awards), 2)) |>
  dplyr::arrange(dplyr::desc(Awards))
format_table(awards_table, "Table 5. Awards by Category")
Table 5. Awards by Category
Category Awards Percentage (%)
Chemistry 20 20
Literature 20 20
Peace 20 20
Physics 20 20
Physiology or Medicine 20 20

5 Original Data and Proposed Extension

The original API includes award-level information and nested laureate records. The Code Base will retrieve the complete available award data, organize laureate records separately, and use the laureate API to examine birth countries. This will help avoid confusing award counts with laureate counts.

6 Methodology

The analysis will use R to import and transform JSON data. I will validate missing values and duplicate records, group award years into decades, and create charts to answer the four research questions.

The planned visualizations are a category bar chart, a decade trend line, a top-10 birth-country bar chart, and a category-by-decade heatmap. Individual laureates and organizations will be handled separately for the geographic analysis.

6.1 Analytical Tools

Show code
tools_table <- data.frame(
  Package = c("jsonlite", "dplyr", "tidyr", "ggplot2", "knitr", "kableExtra"),
  Purpose = c("Import JSON", "Summarize data", "Transform nested data", "Create charts", "Create tables", "Style HTML tables")
)
format_table(tools_table, "Table 6. Analytical Tools")
Table 6. Analytical Tools
Package Purpose
jsonlite Import JSON
dplyr Summarize data
tidyr Transform nested data
ggplot2 Create charts
knitr Create tables
kableExtra Style HTML tables

7 Expected Results

This project is expected to identify patterns in Nobel Prize awards across categories, decades, and countries.

The analysis will help us understand:

  1. Which Nobel Prize categories have the highest number of awards.
  2. How the number of laureate award records has changed over time.
  3. Which birth countries are most frequently represented among individual laureates.
  4. How award patterns differ between categories and decades.

The results will be presented using summary tables and visualizations.

8 Limitations

This analysis has several limitations:

  • Some laureates may have missing birth country information.
  • Organizations do not have birth countries and will be excluded from geographic comparisons.
  • Historical country names and borders may have changed over time.
  • Some Nobel Prizes have multiple laureates, so award counts and laureate counts are different.
  • The dataset may not include every variable needed for additional comparisons.

These limitations will be considered when interpreting the results.

9 Data Preparation for Analysis

The initial Approach used 100 Nobel Prize award records. For the Code Base, I retrieved the full historical dataset to analyze Nobel Prize categories and trends over time.

9.1 Full Historical Dataset

Show code
# Retrieve the full historical dataset
full_api_url <- "https://api.nobelprize.org/2.1/nobelPrizes?limit=2000"

full_nobel_json <- jsonlite::fromJSON(
  full_api_url,
  flatten = TRUE
)

full_nobel_prizes <- full_nobel_json$nobelPrizes

# Validate imported data
stopifnot(
  is.data.frame(full_nobel_prizes),
  nrow(full_nobel_prizes) > 0
)

# Transform data for analysis
full_nobel_clean <- full_nobel_prizes |>
  dplyr::transmute(
    `Award Year` = as.integer(awardYear),
    Category = category.en,
    `Award Date` = dateAwarded,
    `Prize Amount (SEK)` = as.numeric(prizeAmount),
    `Adjusted Prize Amount (SEK)` =
      as.numeric(prizeAmountAdjusted),
    Decade = (as.integer(awardYear) %/% 10) * 10
  )

# Compare initial and historical datasets
dataset_comparison <- data.frame(
  Dataset = c("Initial Approach", "Code Base"),
  `Award Records` = c(
    nrow(nobel_clean),
    nrow(full_nobel_clean)
  ),
  `First Award Year` = c(
    min(nobel_clean[["Award Year"]], na.rm = TRUE),
    min(full_nobel_clean[["Award Year"]], na.rm = TRUE)
  ),
  `Last Award Year` = c(
    max(nobel_clean[["Award Year"]], na.rm = TRUE),
    max(full_nobel_clean[["Award Year"]], na.rm = TRUE)
  ),
  check.names = FALSE
)

format_table(
  dataset_comparison,
  "Table 7. Initial Sample vs. Full Historical Dataset"
)
Table 7. Initial Sample vs. Full Historical Dataset
Dataset Award Records First Award Year Last Award Year
Initial Approach 100 1901 1920
Code Base 688 1901 2026

9.2 Laureate Data Preparation

The Nobel Prize dataset includes information about the laureates associated with each award. I extracted these records into a separate dataset to analyze the number of recipients across decades.

This step distinguishes Nobel Prize awards from laureate award records because one prize may be shared by multiple recipients.

Show code
# Extract laureates from historical award records
laureate_records <- lapply(
  seq_len(nrow(full_nobel_prizes)),
  function(i) {

    laureates <- full_nobel_prizes$laureates[[i]]

    if (is.null(laureates) ||
        !is.data.frame(laureates) ||
        nrow(laureates) == 0) {
      return(NULL)
    }

    data.frame(
      `Laureate ID` = as.character(laureates$id),
      `Award Year` = as.integer(
        full_nobel_prizes$awardYear[i]
      ),
      Category = full_nobel_prizes$category.en[i],
      check.names = FALSE
    )
  }
)

# Combine laureate records
laureate_data <- dplyr::bind_rows(
  laureate_records
) |>
  dplyr::mutate(
    Decade = (`Award Year` %/% 10) * 10
  )

# Validate the extracted records
stopifnot(
  nrow(laureate_data) > 0,
  !anyNA(laureate_data[["Laureate ID"]]),
  !anyNA(laureate_data[["Award Year"]])
)

# Create laureate summary
laureate_summary <- data.frame(
  Description = c(
    "Laureate award records",
    "Unique laureates",
    "Award years represented",
    "Categories represented",
    "Decades represented"
  ),
  Value = c(
    nrow(laureate_data),
    dplyr::n_distinct(laureate_data[["Laureate ID"]]),
    dplyr::n_distinct(laureate_data[["Award Year"]]),
    dplyr::n_distinct(laureate_data$Category),
    dplyr::n_distinct(laureate_data$Decade)
  )
)

format_table(
  laureate_summary,
  "Table 8. Laureate Data Summary"
)
Table 8. Laureate Data Summary
Description Value
Laureate award records 1036
Unique laureates 1028
Award years represented 123
Categories represented 6
Decades represented 13

9.2.1 Validation of Awarded Prizes

Some historical Nobel Prize records may represent years when a prize was not awarded. These records are kept in the original dataset but excluded when counting prizes actually awarded.

Show code
# Identify award years and categories with laureates
awarded_keys <- laureate_data |>
  dplyr::distinct(`Award Year`, Category)

# Keep only records associated with laureates
awarded_nobel_clean <- full_nobel_clean |>
  dplyr::semi_join(
    awarded_keys,
    by = c("Award Year", "Category")
  )

# Compare the original records with awarded prizes
award_validation <- data.frame(
  Description = c(
    "Historical API records",
    "Records with laureates",
    "Records without laureates"
  ),
  Count = c(
    nrow(full_nobel_clean),
    nrow(awarded_nobel_clean),
    nrow(full_nobel_clean) - nrow(awarded_nobel_clean)
  )
)

format_table(
  award_validation,
  "Validation of Historical Award Records"
)
Validation of Historical Award Records
Description Count
Historical API records 688
Records with laureates 639
Records without laureates 49

10 Research Questions and Analysis

10.1 Research Question 1: Which Nobel Prize Categories Have Received the Most Awards Over Time?

This analysis compares the total number of Nobel Prize awards across categories using the historical dataset.

Show code
library(ggplot2)

# Count Nobel Prize awards by category
rq1_data <- awarded_nobel_clean |>
  dplyr::count(Category, name = "Awards") |>
  dplyr::arrange(dplyr::desc(Awards))

# Display results
format_table(
  rq1_data,
  "Table 9. Nobel Prize Awards by Category"
)
Table 9. Nobel Prize Awards by Category
Category Awards
Physics 120
Literature 119
Chemistry 118
Physiology or Medicine 117
Peace 107
Economic Sciences 58
Show code
# Create bar chart
ggplot(
  rq1_data,
  aes(
    x = reorder(Category, Awards),
    y = Awards
  )
) +
  geom_col(fill = "steelblue", width = 0.7) +
  geom_text(
    aes(label = Awards),
    hjust = -0.2,
    size = 3.8
  ) +
  coord_flip() +
  labs(
    title = "Nobel Prize Awards by Category",
    subtitle = "Historical Nobel Prize Data (1901–2026)",
    x = "Nobel Prize Category",
    y = "Number of Awards"
  ) +
  expand_limits(y = max(rq1_data$Awards) * 1.12) +
  theme_minimal(base_size = 12)

10.1.1 Results and Interpretation

Show code
# Identify all categories with the highest award count
top_award_count <- max(rq1_data$Awards)

top_categories <- rq1_data |>
  dplyr::filter(Awards == top_award_count) |>
  dplyr::pull(Category)

# Generate interpretation
cat(
  paste0(
    "The results show that **",
    paste(top_categories, collapse = ", "),
    "** ",
    if (length(top_categories) == 1) "has" else "have",
    " the highest number of Nobel Prize awards, with **",
    top_award_count,
    " awards per category**. ",
    "The chart compares the six Nobel Prize categories ",
    "and shows differences in the number of awards ",
    "across the historical dataset."
  )
)

The results show that Physics has the highest number of Nobel Prize awards, with 120 awards per category. The chart compares the six Nobel Prize categories and shows differences in the number of awards across the historical dataset.

10.2 Research Question 2: How Has the Number of Nobel Prize Laureates Changed Across Decades?

This analysis examines how the number of Nobel Prize laureate award records has changed across decades. Each record represents a laureate receiving an award in a particular year.

Show code
# Count laureate award records by decade
rq2_data <- laureate_data |>
  dplyr::count(Decade, name = "Laureates") |>
  dplyr::arrange(Decade)

# Display formatted table
format_table(
  rq2_data,
  "Table 10. Nobel Prize Laureates by Decade"
)
Table 10. Nobel Prize Laureates by Decade
Decade Laureates
1900 57
1910 40
1920 54
1930 56
1940 43
1950 72
1960 79
1970 104
1980 97
1990 104
2000 123
2010 121
2020 86
Show code
# Create line chart
ggplot2::ggplot(
  rq2_data,
  ggplot2::aes(x = Decade, y = Laureates)
) +
  ggplot2::geom_line(
    color = "steelblue",
    linewidth = 1.2
  ) +
  ggplot2::geom_point(
    color = "steelblue",
    size = 3
  ) +
  ggplot2::scale_x_continuous(
    breaks = rq2_data$Decade
  ) +
  ggplot2::labs(
    title = "Nobel Prize Laureates by Decade",
    subtitle = "Historical Nobel Prize Data (1901–2026)",
    x = "Decade",
    y = "Number of Laureate Award Records"
  ) +
  ggplot2::theme_minimal(base_size = 12) +
  ggplot2::theme(
    axis.text.x = ggplot2::element_text(angle = 45, hjust = 1)
  )

10.2.1 Results and Interpretation

Show code
peak_decade <- rq2_data |>
  dplyr::slice_max(Laureates, n = 1, with_ties = FALSE)

first_decade <- rq2_data |>
  dplyr::slice_min(Decade, n = 1)

latest_decade <- rq2_data |>
  dplyr::slice_max(Decade, n = 1)

cat(
  paste0(
    "The number of Nobel Prize laureate award records changes across decades. ",
    "The highest count occurred in the **",
    peak_decade$Decade,
    "s**, with **",
    peak_decade$Laureates,
    " laureate award records**. ",
    "The first decade in the dataset recorded **",
    first_decade$Laureates,
    "**, compared with **",
    latest_decade$Laureates,
    "** in the ",
    latest_decade$Decade,
    "s. The latest decade is still incomplete, ",
    "so its total should be interpreted carefully."
  )
)

The number of Nobel Prize laureate award records changes across decades. The highest count occurred in the 2000s, with 123 laureate award records. The first decade in the dataset recorded 57, compared with 86 in the 2020s. The latest decade is still incomplete, so its total should be interpreted carefully.

10.3 Research Question 3: Which Countries Are Most Frequently Represented Among Nobel Prize Laureates?

This analysis identifies the most frequently represented birth countries among individual Nobel Prize laureates. Each individual is counted once, and organizations are excluded because they do not have birth countries.

Show code
# Retrieve laureate data
laureate_api_url <- "https://api.nobelprize.org/2.1/laureates?limit=2000"

laureate_json <- jsonlite::fromJSON(
  laureate_api_url,
  flatten = TRUE
)

all_laureates <- laureate_json$laureates

stopifnot(
  is.data.frame(all_laureates),
  nrow(all_laureates) > 0
)

# Identify the birth-country field
country_column <- c(
  "birth.place.country.en",
  "birth.country.en"
)

country_column <- country_column[
  country_column %in% names(all_laureates)
]

stopifnot(length(country_column) > 0)

# Prepare individual laureates
birth_country_data <- all_laureates |>
  dplyr::filter(
    !is.na(gender),
    gender != "org"
  ) |>
  dplyr::transmute(
    `Laureate ID` = as.character(id),
    `Birth Country` = as.character(
      .data[[country_column[1]]]
    )
  ) |>
  dplyr::mutate(
    `Birth Country` = dplyr::na_if(
      trimws(`Birth Country`),
      ""
    )
  ) |>
  dplyr::filter(!is.na(`Birth Country`)) |>
  dplyr::distinct(`Laureate ID`, .keep_all = TRUE)

# Count laureates by birth country
rq3_data <- birth_country_data |>
  dplyr::count(
    `Birth Country`,
    name = "Laureates"
  ) |>
  dplyr::arrange(dplyr::desc(Laureates)) |>
  dplyr::slice_head(n = 10)

# Display formatted table
format_table(
  rq3_data,
  "Table 11. Top 10 Birth Countries of Nobel Prize Laureates"
)
Table 11. Top 10 Birth Countries of Nobel Prize Laureates
Birth Country Laureates
USA 299
United Kingdom 94
Germany 82
France 61
Japan 31
Sweden 30
Canada 23
the Netherlands 20
Switzerland 19
Italy 18
Show code
# Create horizontal bar chart
ggplot2::ggplot(
  rq3_data,
  ggplot2::aes(
    x = reorder(`Birth Country`, Laureates),
    y = Laureates
  )
) +
  ggplot2::geom_col(
    fill = "steelblue",
    width = 0.7
  ) +
  ggplot2::geom_text(
    ggplot2::aes(label = Laureates),
    hjust = -0.2,
    size = 3.8
  ) +
  ggplot2::coord_flip() +
  ggplot2::expand_limits(
    y = max(rq3_data$Laureates) * 1.12
  ) +
  ggplot2::labs(
    title = "Top 10 Birth Countries of Nobel Prize Laureates",
    subtitle = "Individual Laureates in the Nobel Prize API",
    x = "Birth Country",
    y = "Number of Laureates"
  ) +
  ggplot2::theme_minimal(base_size = 12)

10.3.1 Results and Interpretation

Show code
top_country <- rq3_data |>
  dplyr::slice_max(Laureates, n = 1, with_ties = FALSE)

cat(
  paste0(
    "The results show that **",
    top_country[["Birth Country"]],
    "** has the highest number of Nobel Prize laureates by birth country, ",
    "with **",
    top_country$Laureates,
    " individual laureates**. ",
    "The chart shows the ten most frequently represented birth countries. ",
    "These results describe birth countries rather than current citizenship."
  )
)

The results show that USA has the highest number of Nobel Prize laureates by birth country, with 299 individual laureates. The chart shows the ten most frequently represented birth countries. These results describe birth countries rather than current citizenship.

10.3.2 Nobel Prize Categories Among U.S.-Born Laureates

To better understand the representation of the United States, I examined the Nobel Prize categories associated with laureates born in the United States. This analysis uses birth country rather than citizenship.

Show code
# Identify laureates born in the United States
usa_laureates <- birth_country_data |>
  dplyr::filter(`Birth Country` == "USA")

# Match U.S.-born laureates with their award categories
usa_categories <- laureate_data |>
  dplyr::semi_join(
    usa_laureates,
    by = "Laureate ID"
  ) |>
  dplyr::distinct(
    `Laureate ID`,
    Category
  ) |>
  dplyr::count(
    Category,
    name = "Laureates"
  ) |>
  dplyr::arrange(dplyr::desc(Laureates))

# Display formatted table
format_table(
  usa_categories,
  "Table 12. U.S.-Born Nobel Prize Laureates by Category"
)
Table 12. U.S.-Born Nobel Prize Laureates by Category
Category Laureates
Physiology or Medicine 85
Physics 71
Chemistry 59
Economic Sciences 56
Peace 19
Literature 10

The results show that U.S.-born Nobel Prize laureates are most frequently represented in Physiology or Medicine (85), followed by Physics (71) and Chemistry (59). Peace (19) and Literature (10) have much lower counts. This suggests that scientific categories have a stronger representation among U.S.-born laureates in this dataset.

10.4 Research Question 4: How Do Nobel Prize Patterns Differ Across Categories and Time Periods?

This analysis compares Nobel Prize awards across categories and decades. A heatmap is used to identify historical patterns and differences in the number of awards.

Show code
# Count Nobel Prize awards by category and decade
rq4_data <- awarded_nobel_clean |>
  dplyr::count(
    Decade,
    Category,
    name = "Awards"
  ) |>
  tidyr::complete(
    Decade = seq(
      min(awarded_nobel_clean$Decade),
      max(awarded_nobel_clean$Decade),
      by = 10
    ),
    Category = unique(awarded_nobel_clean$Category),
    fill = list(Awards = 0)
  ) |>
  dplyr::arrange(Decade, Category)

# Create a comparison table
rq4_table <- rq4_data |>
  tidyr::pivot_wider(
    names_from = Category,
    values_from = Awards
  ) |>
  dplyr::arrange(Decade)

# Display formatted table
format_table(
  rq4_table,
  "Table 13. Nobel Prize Awards by Category and Decade"
)
Table 13. Nobel Prize Awards by Category and Decade
Decade Chemistry Economic Sciences Literature Peace Physics Physiology or Medicine
1900 9 0 9 9 9 9
1910 7 0 8 6 9 6
1920 9 0 10 7 10 8
1930 9 0 9 8 8 10
1940 7 0 6 5 7 7
1950 10 0 10 8 10 10
1960 10 1 10 8 10 10
1970 10 10 10 9 10 10
1980 10 10 10 10 10 10
1990 10 10 10 10 10 10
2000 10 10 10 10 10 10
2010 10 10 10 10 10 10
2020 7 7 7 7 7 7
Show code
# Create heatmap
ggplot2::ggplot(
  rq4_data,
  ggplot2::aes(
    x = factor(Decade),
    y = Category,
    fill = Awards
  )
) +
  ggplot2::geom_tile(
    color = "white",
    linewidth = 0.5
  ) +
  ggplot2::geom_text(
    ggplot2::aes(label = Awards),
    size = 3.3
  ) +
  ggplot2::scale_fill_gradient(
    low = "#E8F1FA",
    high = "#174A7E",
    name = "Awards"
  ) +
  ggplot2::labs(
    title = "Nobel Prize Awards by Category and Decade",
    subtitle = "Historical Nobel Prize Data (1901–2026)",
    x = "Decade",
    y = "Nobel Prize Category"
  ) +
  ggplot2::theme_minimal(base_size = 12) +
  ggplot2::theme(
    axis.text.x = ggplot2::element_text(
      angle = 45,
      hjust = 1
    ),
    panel.grid = ggplot2::element_blank()
  )

10.4.1 Results and Interpretation

Show code
# Calculate the highest award count
max_awards <- max(rq4_data$Awards, na.rm = TRUE)

# Count combinations sharing the highest value
max_combinations <- rq4_data |>
  dplyr::filter(Awards == max_awards) |>
  nrow()

# Identify the first Economic Sciences award year
first_economics_year <- full_nobel_clean |>
  dplyr::filter(Category == "Economic Sciences") |>
  dplyr::summarise(
    FirstYear = min(`Award Year`, na.rm = TRUE)
  ) |>
  dplyr::pull(FirstYear)

# Generate interpretation
cat(
  paste0(
    "The heatmap shows how Nobel Prize awards are distributed ",
    "across categories and decades. The highest count is **",
    max_awards,
    " awards per category and decade**, reached by **",
    max_combinations,
    " category-decade combinations**. ",
    "This shows that several categories have similar award counts ",
    "over time.\n\n",

    "Economic Sciences has a different historical pattern. ",
    "The prize was established in 1968 and first awarded in **",
    first_economics_year,
    "**. The zero values before 1969 were added to complete ",
    "the comparison table. They represent periods when this ",
    "prize category did not yet exist.\n\n",
    
    "The 2020s have fewer recorded awards because the decade ",
    "is still incomplete. These differences are important ",
    "when comparing Nobel Prize categories across historical periods."
  )
)

The heatmap shows how Nobel Prize awards are distributed across categories and decades. The highest count is 10 awards per category and decade, reached by 40 category-decade combinations. This shows that several categories have similar award counts over time.

Economic Sciences has a different historical pattern. The prize was established in 1968 and first awarded in 1969. The zero values before 1969 were added to complete the comparison table. They represent periods when this prize category did not yet exist.

The 2020s have fewer recorded awards because the decade is still incomplete. These differences are important when comparing Nobel Prize categories across historical periods.

11 Conclusions and Recommendations

11.1 Conclusions

This project analyzed historical Nobel Prize data using R and the official Nobel Prize API. The analysis answered four research questions about award categories, laureates across decades, birth countries, and historical trends.

Show code
# Identify the leading award categories
top_award_count <- max(rq1_data$Awards)

top_categories <- rq1_data |>
  dplyr::filter(Awards == top_award_count) |>
  dplyr::pull(Category)

# Identify the decade with the most laureate award records
top_decade <- rq2_data |>
  dplyr::slice_max(
    Laureates,
    n = 1,
    with_ties = FALSE
  )

# Identify the leading birth country
top_birth_country <- rq3_data |>
  dplyr::slice_max(
    Laureates,
    n = 1,
    with_ties = FALSE
  )

# Identify the leading category among U.S.-born laureates
top_usa_category <- usa_categories |>
  dplyr::slice_max(
    Laureates,
    n = 1,
    with_ties = FALSE
  )

cat(
  paste0(
    "**Award Categories:** ",
    paste(top_categories, collapse = ", "),
    " had the highest number of awarded prizes, with ",
    top_award_count,
    " awards per category.\n\n",

    "**Laureates Across Decades:** ",
    "The highest number of laureate award records occurred ",
    "in the ",
    top_decade$Decade,
    "s, with ",
    top_decade$Laureates,
    " records.\n\n",

    "**Birth Countries:** ",
    top_birth_country[["Birth Country"]],
    " was the most frequently represented birth country, ",
    "with ",
    top_birth_country$Laureates,
    " individual laureates.\n\n",

    "**U.S.-Born Laureates:** ",
    top_usa_category$Category,
    " had the highest representation among U.S.-born laureates, ",
    "with ",
    top_usa_category$Laureates,
    " laureates.\n\n",

    "**Historical Patterns:** ",
    "The analysis showed that Nobel Prize categories have ",
    "different historical backgrounds. Economic Sciences ",
    "was first awarded in 1969, which explains its absence ",
    "from earlier decades.\n\n",

    "Overall, the results show how Nobel Prize data can be ",
    "used to understand historical trends and geographic ",
    "representation."
  )
)

Award Categories: Physics had the highest number of awarded prizes, with 120 awards per category.

Laureates Across Decades: The highest number of laureate award records occurred in the 2000s, with 123 records.

Birth Countries: USA was the most frequently represented birth country, with 299 individual laureates.

U.S.-Born Laureates: Physiology or Medicine had the highest representation among U.S.-born laureates, with 85 laureates.

Historical Patterns: The analysis showed that Nobel Prize categories have different historical backgrounds. Economic Sciences was first awarded in 1969, which explains its absence from earlier decades.

Overall, the results show how Nobel Prize data can be used to understand historical trends and geographic representation.

11.2 Recommendations

Based on the results, future analysis could explore additional information about Nobel Prize laureates.

First, the analysis could examine differences in Nobel Prize representation by gender.

Second, future research could compare birth countries with citizenship to better understand geographic representation.

Third, the analysis could investigate how often Nobel Prizes are shared by multiple laureates.

Finally, historical comparisons should consider years when prizes were not awarded, the introduction of new categories, and incomplete decades.

These recommendations could help provide a more detailed understanding of Nobel Prize patterns.

12 References

NobelPrize.org. (n.d.). Developer zone: Nobel Prize API.
https://www.nobelprize.org/about/developer-zone-2/

NobelPrize.org. (n.d.). The Sveriges Riksbank Prize in Economic Sciences in Memory of Alfred Nobel.
https://www.nobelprize.org/prizes/economic-sciences/

Posit. (n.d.). Quarto documentation.
https://quarto.org/docs/

Wickham, H., & Grolemund, G. (2017). R for Data Science. O’Reilly Media.
https://r4ds.hadley.nz/

13 Appendix: AI Assistance

ChatGPT was used to help understand the assignment requirements, organize the project, improve English writing, and provide guidance for importing and processing JSON data in R.

AI assistance was also used to develop R code, organize tables and visualizations, and improve the interpretation of the results.

I selected the Nobel Prize topic, reviewed the analysis, and verified the results using data from the official Nobel Prize API.