This presentation uses the countries_population.csv dataset to explore how global population has changed over time.
We will introduce the formula for population growth rate and use visualizations to compare trends among selected countries.
2025-03-25
This presentation uses the countries_population.csv dataset to explore how global population has changed over time.
We will introduce the formula for population growth rate and use visualizations to compare trends among selected countries.
countries_population.csvCountry: name of the countryYear: the year of the observationPopulation: total populationGrowth Rate (%): year-over-year growth percentage\[ \text{Growth Rate (%)} = \frac{P_t - P_{t-1}}{P_{t-1}} \times 100 \]
Where:
- \(P_t\): population in the current year
- \(P_{t-1}\): population in the previous year
This helps us see how much the population has increased or decreased each year.
To compare general population levels across countries, we calculate the average population:
\[ { \bar{P} = \frac{1}{n} \sum_{i=1}^{n} P_i } \] Where:
selected_countries <- population %>%
filter(Country %in% c("India", "China", "United States"))
ggplot(selected_countries,
aes(x = Year, y = Population, color = Country)) +
geom_line(linewidth = 1) +
labs(
title = "Population Growth: India, China, and USA",
x = "Year",
y = "Population",
color = "Country"
) +
theme_minimal()