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:
Which Nobel Prize categories have received the most awards over time?
How has the number of Nobel Prize laureates changed across decades?
Which countries are most frequently represented among Nobel Prize laureates?
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. For this Approach, I imported an initial sample of 100 award records. The full historical dataset and laureate birth countries will be examined in the Code Base.
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.
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.
This project is expected to identify patterns in Nobel Prize awards across categories, decades, and countries.
The analysis will help us understand:
Which Nobel Prize categories have the highest number of awards.
How the number of laureate award records has changed over time.
Which birth countries are most frequently represented among individual laureates.
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 References
NobelPrize.org. (n.d.). Developer zone: Nobel Prize API.
https://www.nobelprize.org/about/developer-zone-2/
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/
10 Appendix: AI Assistance
ChatGPT was used to help understand the assignment requirements, organize the planned approach, improve English writing, and provide guidance for importing and processing JSON data in R.
I selected the Nobel Prize topic for this project and will run, review, and verify the data transformations, analysis, visualizations, and final conclusions during the Code Base stage.