Using Data to Analyze Coffee Stats
The skills the author demonstrated here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.
Coffee! Based on data, humans has been consuming coffee since 9th century. Coffee is a major export commodity, being the top legal agricultural export for numerous countries. It is one of the most valuable commodities exported by developing countries. This shiny app, Coffee Stats presents the trends of the coffee production and consumption among the countries in the world. The code for this project is present in the Github.
Using Data to Analyze World's Top 5
The bar charts depict the World's Top five countries in 'Domestic Consumption' and 'Total Production' categories. Brazil is the leading country in production and consumption of the coffee crop. Vietnam is the next leading producer in the world after Brazil whose total production is twice that of Vietnam. Each graph shows the top five countries in their respective categories with data in the recent years. The text in the hovering box displays country, year and production/consumption information of that particular year.
Using Data to Analyze Percentage Change in the Total Production
This tab presents the percentage change in the total production of the crop in the member countries whose median total production greater than three million bags per year in recent years (2010 - 2017). The hovering text presents country, year and percentage change in the production information for that year. Based on my observation from the graph, there is production decrease in Latin American countries like Brazil, Colombia, Honduras and Mexico due to coffee rust fungus which has been reducing the yield of the crop. In countries like Vietnam and India with a production increase of 15% and 12% respectively in recent years are identified as emerging markets. These emerging markets serve investing opportunities for big coffee retailers like Starbucks and Tim Hortons.
Trend Over The Years (1990-2017)
This tab presents the trend of Production and Consumption of the member countries over the years 1990 to 2017 using a scatter plot of the countries whose median total production is greater than three million bags per year since 1990. The hovering text presents the country, total production and domestic production information.
Using Data to Analyze Crop by Seasons
This tab presents the scatter plots of consumption and production by Spring, Summer and Fall seasons. I calculated the correlation between domestic consumption and total production per season Spring (0.98), Summer(0.06) and Fall(0.58) which suggests the existence of a relationship between domestic consumption and total production for seasons Spring and Fall.
The data indicates that in recent years in Latin American countries like Brazil, Colombia, Honduras and Mexico, the coffee crop yield has been affected by Coffee Rust fungus. While the governments of those countries take up the measures to contain the fungus and plant more of the fungus resistant variety seeds, big coffee retailers can invest in the emerging markets like Vietnam and India whose production has been increasing in recent years to offset the crop production deficit in Latin countries.
I would like to continue my work on this project by getting my hands on the datasets of coffee importing countries and coffee prices over the years to see how the demand for coffee in the importing countries drives up the prices of coffee. Also would like to see if there is any relation between changing climate and production of coffee.
Thanks for reading.