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
Binary file added Correlation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions cls_assignment.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import matplotlib.pyplot as plt
import pandas as pd

data = pd.read_csv('/Users/filippos/Documents/istherecorrelation.csv', delimiter=',')
print (data)

fig,ax = plt.subplots()

Graph = ax.plot(data["Year"],data['NL Beer consumption [x1000 hectoliter]'],color='red',label='Beer Consumption')
ax2=ax.twinx()
WO = ax2.plot(data["Year"],data['WO [x1000]'],color='blue',label='WO Students')
ax.set_xlabel("Year")
ax.set_ylabel("NL Beer Consumption [x1000 hectoliter]")
ax2.set_ylabel("WO [x1000]")
ax.set_title("Correlation possible?")

legend = WO+Graph
label = [l.get_label() for l in legend]
ax.legend(legend, label, loc=0)


ax.grid()
fig.savefig('Correlation.png',format='jpg',dpi=300)
plt.show()
13 changes: 13 additions & 0 deletions solution_md.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CLS_Seminars Assignment
by Filippos Dimopoulos, UvA_ID: 14101882


## Papers pivotal to our knowledge

* Fantastic yeasts and where to find them: the hidden diversity of dimorphic fungal pathogens [1](https://www.sciencedirect.com/science/article/pii/S136952741930013X)
* An analysis of the forces required to drag sheep over various surfaces. [2](https://www.sciencedirect.com/science/article/pii/S0003687002000716)
* The neurocognitive effects of alcohol on adolescents and college students [3](https://pubmed.ncbi.nlm.nih.gov/15530577/)

As we can see from the plot, there is a clear correlation between the WO Students and beer consumption over the years.
There is a clear reason tho why these students drink these immense amounts. They need to drink these beers to deal with the errors when coding.
[Correlation](https://github.com/filipposdim/CS_Assignment/blob/master/Correlation.png)