Predicting Global Trade Patterns

Team Members:

Rahul Chauhan

Mani Krishna Tippani

Divya Vemula

2024-10-30

Introduction

The project investigates the factors influencing which countries import the most commodities. With globalization, understanding export-import dynamics is crucial for optimizing trade strategies and supporting economic policies. Analyzing import patterns can provide insights into market dependencies, identify potential new markets, and enhance decision-making for exporters.

Dataset Description

Data collect data using the U.S. Census Bureau’s International Trade API, which provides detailed information on exports and imports, including commodity codes and values. This will serve as our primary data source.

Variables Included

Total 41 Variables

Project Investigation

Why is this data interesting?

Data Analysis Framework

Data Exploration(EDA):

Data Wrangling:

Data Modelling:

Model Evaluation:

Model’s performance is evaluated on the test set, using metrics such as RMSE, Adj-R2, MSE for different model and compare their performance.

if (!require('tidyverse')) install.packages('tidyverse'); library('tidyverse')
if (!require('tidyr')) install.packages('tidyr'); library('tidyr')
if (!require('kableExtra')) install.packages('kableExtra'); library('kableExtra')
if (!require('RColorBrewer')) install.packages('RColorBrewer'); library('RColorBrewer')
if (!require('ggplot2')) install.packages('ggplot2'); library('ggplot2')
if (!require('ggthemes')) install.packages('ggthemes'); library('ggthemes')
if (!require('httr')) install.packages('httr'); library('httr')
if (!require('jsonlite')) install.packages('jsonlite'); library('jsonlite')
if (!require('stringr')) install.packages('stringr'); library('stringr')
if (!require('skimr')) install.packages('skimr'); library('skimr')
if (!require('recipes')) install.packages('recipes'); library('recipes')
if (!require('tibble')) install.packages('tibble'); library('tibble')
if (!require('h2o')) install.packages('h2o'); library('h2o')
if (!require('kableExtra')) install.packages('kableExtra'); library('kableExtra')


url <- "https://api.census.gov/data/timeseries/intltrade/exports/hs?get=DISTRICT,DIST_NAME,E_COMMODITY,E_COMMODITY_LDESC,ALL_VAL_MO,ALL_VAL_YR,VES_VAL_MO,VES_VAL_YR,AIR_VAL_MO,AIR_VAL_YR,CC_YR,QTY_1_YR,QTY_2_YR,CTY_CODE,CTY_NAME,COMM_LVL,DF,LAST_UPDATE,YEAR,MONTH,VES_WGT_YR&YEAR=2013&MONTH=12&DISTRICT=13"

response <- GET(url, timeout(60))

Conclusion

This project aims to provide valuable insights into global trade dynamics, supporting stakeholders in making informed decisions about export strategies and market targeting.