Data Visulization and Analysis

In 2017, I started my first coding practice by using R. Then, I realize that computer language is not rocketscience that I can’t never understand.

Practice 1

The potential relationship between United States GDP and Some other economic indicators (from year 1960 to 2015)

 The data set pick for first practice is aimed to study the potential relationship between United States GDP and some other economic indicators such as population, exports of goods and service, electric power consumption, unemployment rate and average rate index from year 1960 to 2015. The source of data is from World Bank Open Data ( https://data.worldbank.org) and National Average Wage Index (https://www.ssa.gov/oact/cola/AWI.html.)
In order to find the relationship, I first need to find out the trend of indicators from 1960 to 2015 and make some logical assumptions in mind.

Load library needed, read the excel file and rename the columns

library(readxl)
library(ggplot2)
USA_GDP = read_excel("USA GDP.xlsx")
names(USA_GDP)
## [1] "Year" "Gdp" "Pop" "Exports" "Electric" "House"
## [7] "Urate" "Wage"

The Change of indicators from 1960 to 2015

#The change of GDP from 1960 to 2015
ggplot(USA_GDP,aes(Year,Gdp))+geom_line()  

upload successful

#The change of population from 1960 to 2015
ggplot(USA_GDP,aes(Year,Pop))+geom_line()

upload successful

#The change of Household final consumption expenditure from 1960 to 2015
ggplot(USA_GDP,aes(Year,House))+geom_line()

upload successful

Data Visulization Project(Tableau)

Project Introduction

 We may have noticed that recently the United States has brought up several new policies about US tariffs. Especially, when Donald Trump signed a Presidential
Memorandum, the United States has announced levies on up to $60 billion in Chinese goods and would impose stiff tariffs on imports of steel and aluminum to all the countries. However, the United States may plan to give exemption to a broad group of allies which include Canada, Mexico. Since China is also a big steel export country,apparently, this policy in some degree will possible have a big effect on Chinese steel and iron industries. We may assume this policy is aimed to against the influx cheap Chinese metal and goods, which may harm American local industry. If the exemption were successfully applied to other countries, China is going to face more severe situation under this circumstance, and the trade battle between U.S and China can possibly turn into a Trade War. This project will analyze basic American import and export of certain taxed product relates to this policy to make logic prediction of the stakes in this competition from my point of views in certain aspects.

Data Source

 All the data can be find in following data website:

Research Questions

  • Which countries that United States import and export the most?
  • Which categories that United States has the most import and export?
  • If China levy on some American export products, how this policy is going to affect the United States?

Final Data Visualization

 R and Excel will be used for data cleaning, and Tableau will be considered as my data visualization tools. Since I am going to compare the categories and volume of import and export, bar graphs, heatmaps and pie chart are good methods to express the data. Therefore, Tableau will be my first choice to visualize my data. The data in this project is quite large and complicate, sometimes I have use R to transform my data to fit the format of Tableau. Of course, Excel will also consider as my data editing tool. Visualization types will be:
• Bar graph of Overall import and export value from 2000-2017
• Line chart of Trade deficit from 2007-2017
• Heatmap of Product categories that United States export and import
• Pie Charts of Proportion of World Soybean total production

Data Analysis

U.S 2000 - 2017 Overall Import and Export (goods and service)

upload successful
upload successful

  • According to the bar graph of U.S overall Import and Export. From 2000 – 2017, the export and import appear rising tendency. But the trade deficit reach the highest in 2006 and reduce to 384 billions dollars then kept fluctuating around 500 billions dollars. In order to reduce the trade deficit, Trump brought up a series of trading policy on export and import.
March 2018, The Value of U.S Export and Import To Top 15 Countries. (goods only)

upload successful

upload successful

  • By comparing two bar graphs, we can easily see that Canada, Mexico, China are top three countries in the value of American import and export. Canada is the biggest American exportation country. And China is the biggest American importation country. Since America relies on China more than China rely on America, we may logically assume once China start its retaliatory tariffs on US exports, the United State may have more loss than Chinese.
Products that United States Imports from China in 2017

upload successful

  • From the heatmap, we can find that the major categories that United States import are cell phones and other household goods, computer and computer accessories, telecommunication equipment and so on… These are major areas on which Donald Trump wants to apply tariffs, in order to slow down or restrict the rising trend of China taking dominant in these areas(high-tech products), and try to take America back into the leading position in these areas.
Products that United States Exports to China in 2017

upload successful

  • From the heatmap, we can find that the major categories that United States export to China are civilian aircraft, engines, soybeans, Passenger cars, semi-products. Those categories will be the threatens to United States and have a big chance becoming the target of China as revenge. As far as we know, Chinese government has announced that it will impose 15% tariffs on 128 American made products include fruit, nuts and wine and up to 25% on pork as initially fight back. Furthermore, Chinese government will probably keep imposing tariffs on more products made by United States depend on how the battle goes.
Threaten - Tariffs on Soybeans

upload successful

  • Obviously, the United State and Brazil are two major soybeans producers as well as exporters in this world. If China imposes tariffs on soybean, which means it gives up one of the largest soybean import resource in the world, I believe that China won’t insist for a long time because there is no other supplier except U.S can provide such tremendous amount of soybeans.

upload successful

upload successful

  • By comparing two graphs, it is easy to see the export pattern of two countries. Most of soybeans in brazil were exported to China in the period from March to September. In rest of the year , China has imported soybeans from the United States, which is the reason I consider that China will keep suffering from the loss until it find a way to solve domestic demand of soybeans. In a short period, Brazil and Argentina would be the best choice and support for China to pass through the “harsh time”. However, It is hard for China to find suppliers that can really fill China’s soybeans needs for a long term. The structure of global supply chain is not that easy to change.

  • Moreover, We may consider another situation: Is it possible for Brazil to provide enough soybean to fulfill the demand of China? The answer is No. Maybe there are several ways that can mitigate the reliance on American soybeans such as importing more soybeans from Brazil and Argentina; however, there is no way that China can stay away from the loss.

Threaten - Tariffs on Pork and Meat Products

upload successful

  • Broiler and pork are the main meat export product of United States, which take up42.5% and 32.35% of total meat exportation respectively. If China wants to increase the tax on meat product, the United State would have big effect on domestic farmers only if China is the big pork and broiler importer of the United States.

Future Work

  • The effect of Tariffs between two large countries has always been a complicate issue. The change of tariffs in a large will not only affect domestic supply and demand or domestic price, but also will have big global effect. Taking a simple example in this case, the policy that China imposes tariffs on soybeans will definitely benefit to Brazil, Argentina and all other countries who have ability to provide soybeans.

  • This project can expend to many areas. Base on the information I concluded, we just need to gather a little bit more of data on globe soybean price to calculate the effect of tariffs on the volume change of Import and export as result.

  • We can furthermore investigate whether the tariffs on Auto has really harmed the interest of those Giant Auto companies. Because Tariffs is such a complicate topic, we can apply many economic concepts and do the research

Conclusion and Prediction

 All the activities between China and the United State are just the “normal”friction in the international trade. I don’t believe that the tension and friction between these two superpower countries so far will escalate into the real Trade War. And I don’t think they will even allow this happen. We know China and America play vital roles in the global economy, the chain reaction of trade war in global and national economy is going to be destructive; therefore, there is no way for both China and the United State to be involve in a long-term trade battle. China won’t, neither Donald Trump. Overall, people are responsible for countries’ international trade policies. Even though statistics says the effect of certain policy is minor, the loss is on people and people who has business involved. It is simple logic for everyone to understand that collaboration between two countries can lead to win-win situation. Negotiation is the best way to reduce the friction and solve problems, which is what China and America are doing right now. If two countries reach a common agreement, the trade battle will eventually end.

  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2020-2021 By Yang Yue
  • Visitors: | Views:

请我喝杯奶茶吧~