Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CSassignment.py
Original file line number Diff line number Diff line change
@@ -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()
Binary file added NL-beer-consumption.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions solution.md
Original file line number Diff line number Diff line change
@@ -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)