Wine Quality :
North America vs. Europe
It is often said that European wines were not the same quality as North American wines. With the rise of California wine culture, views seem to be changing. Let’s find out how North American (defined as: Mexico, US, Canada) wines differ from European (defined as: France, Spain) wines using ratings of experts.
We will be conducting the Contrasts in ANOVA hypothesis testing:
Overview
Data
The data for wine scores from a ton of wines all over the world is too large for the website to handle. So I will take a screenshot of what the general data looks like.
Code
The aim of our code is to make a side by side boxplot
What the code below does:
Read the data into R
Made a separate dataframe consisting of only countries and points (numerical)
“Countries” column aren’t factors yet, so I assigned factor based on the levels
“Countries” column contains many other countries, so I factored them out
Make corresponding boxplot
Run Contrast in ANOVA to find p-value
With a p-value of 1.95e-07, we reject in favor of null hypothesis. Wine quality in countries of North America is different from wine quality in countries of Europe. With our hypothesis test, we can only keep or reject null. We would need to run 1-sided hypothesis test in order to find if European countries have better wine or if North American countries have better wine.