This repository contains Yi Fan (Eric) Wang's midterm project for JSC370 (Winter 2026) at the University of Toronto.
How have carbon dioxide emissions per capita evolved across countries from 1990 to 2023, and which economic, energy, and land-use factors explain these differences?
GitHub does not render the HTML report as a webpage. Download
Midterm.html and open it locally, or use the PDF report for an in-browser
preview.
| File | Description |
|---|---|
Midterm.qmd |
Executable Quarto source for the analysis |
Midterm.html |
Self-contained rendered HTML report |
Midterm.pdf |
Final rendered PDF report |
midterm_2026.pdf |
Original assignment instructions |
wb_wide.csv |
Generated country-year data snapshot used for the final analysis |
The report retrieves World Development Indicators through the World Bank Open Data API. It examines country-level carbon dioxide emissions per capita from 1990 to 2023 alongside economic, energy, land-use, and urbanization indicators. The analysis uses exploratory graphics, linear regression, and generalized additive models.
Install Quarto, Python 3, and a Jupyter kernel, then install the required Python packages:
python -m pip install jupyter matplotlib numpy pandas seaborn plotnine requests statsmodels pygamRender the self-contained HTML report:
quarto render Midterm.qmdRender the PDF report with a working LaTeX installation:
quarto render Midterm.qmd --to pdfRendering executes the analysis and makes live World Bank API requests.
Because source data can be revised, a future render may differ from the
committed reports and wb_wide.csv snapshot.
This analysis continues in the final project:
This repository is available under the MIT License.