π Week 3 Homework β Feedback
π Week 3 Homework β Feedback
Student: Giovanni Rampello
Files received: week3_homework_starter.m, API_NY.GDP.MKTP.KD.csv, week3_workspace.mat
Assignment: World Bank Real GDP & Growth (API/CSV accepted)
β Overall Assessment
Result: βPartially done
You included a data file (API CSV) and a script, but the submission is missing the required outputs (figures and panel CSV). The script is still named week3_homework_starter.m. I could not verify the computations or plots end-to-end.
π Task-by-Task Check (Slides Tasks 1β8)
| Task | Description | Status | Notes |
|---|---|---|---|
| 1 | Obtain NY.GDP.MKTP.KD (API or CSV) |
β | API_NY.GDP.MKTP.KD.csv provided. |
| 2 | Inspect & extract (country/iso3, year, value) | β οΈ | Not verifiable from files; ensure proper header handling & types. |
| 3 | Build tidy table (country/iso3, year, value) |
β οΈ | No panel file submitted. |
| 4 | Compute logs & annual growth (guard non-positive) | β οΈ | Not verifiable without outputs. |
| 5 | Verify US growth vs Week 1 (plot) | β | Figure not submitted. |
| 6 | Plot Real GDP for selected countries + legend | β | week3_rgdp_comparison.png missing. |
| 7 | Growth rates in subplots + average line | β | week3_rgdp_growth.png missing. |
| 8 | Export panel with growth to CSV | β | No CSV panel submitted (filename can differ, but must be present). |
π οΈ Required Fixes (aligned with course reference)
- Rename & make reproducible
- Rename your main script to
week3_homework_solution.m. - Do not rely on a saved
.matworkspaceβyour script should run from a clean MATLAB session.
- Rename your main script to
- Robust import of the WB CSV
opts = detectImportOptions('API_NY.GDP.MKTP.KD.csv'); T = readtable('API_NY.GDP.MKTP.KD.csv', opts); % header & types preserved - For the rest see solution files.