🌍 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)

  1. Rename & make reproducible
    • Rename your main script to week3_homework_solution.m.
    • Do not rely on a saved .mat workspaceβ€”your script should run from a clean MATLAB session.
  2. 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
    
  3. For the rest see solution files.