diff --git a/CSassignment.py b/CSassignment.py new file mode 100644 index 0000000..6f8994a --- /dev/null +++ b/CSassignment.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +""" +Created on Mon Sep 27 11:10:55 2021 + +@author: LPras +""" + +import pandas as pd +import matplotlib.pyplot as plt + +df1 = pd.read_csv('istherecorrelation.csv', delimiter=';') + +#plt.plot(df1['Year'], df1['WO [x1000]']) + +plt.figure(dpi=300) +plt.subplot(211) +plt.plot(df1['Year'], df1['NL Beer consumption [x1000 hectoliter]'], '-g') +plt.title('Beer consumption of WO students') +plt.ylabel('x1000 hectoliter') +plt.subplot(212) +plt.plot(df1['Year'], df1['WO [x1000]'], '-r') +plt.xlabel('Year') +plt.ylabel('WO students [x1000]') +plt.show() diff --git a/NL-beer-consumption.png b/NL-beer-consumption.png new file mode 100644 index 0000000..007dbc2 Binary files /dev/null and b/NL-beer-consumption.png differ diff --git a/solution.md b/solution.md new file mode 100644 index 0000000..917ed01 --- /dev/null +++ b/solution.md @@ -0,0 +1,10 @@ +Laurens Prast 11297018 + +The Rise of Coccidioides: Forces Against the Dust Devil Unleashed - MCC Van Dyke et al., 2019 +An analysis of the forces required to drag sheep over various surfaces - JT Harvey, Applied Ergonomics, 2002 +The neurocognitive effects of alcohol on adolescents and college students - DW Ziegler et al., 2005 + +From the first graph you could conclude that the average beer consumption under WO students has increased. What should be noted with this message is that the total of WO students also have increased. From 2006 to 2018 the beer consumption has increased 12048/11402 * 100%=105% and the total WO students has increased 280.1/205.9 * 100% = 136%. So while the first graph makes it look like that the average WO student would drink more beer right now compared to 2006, but in reality the average WO students drinks less beer, because there are more WO students. + +![](NL-beer-consumption.png) +