diff --git a/istherecorrelation.py b/istherecorrelation.py new file mode 100644 index 0000000..57a9680 --- /dev/null +++ b/istherecorrelation.py @@ -0,0 +1,14 @@ +import pandas as pd +import matplotlib.pyplot as plt + +df = pd.read_csv("istherecorrelation.csv", sep=";", decimal=",") + +print(df.head()) + +plt.figure() +plt.scatter(df["WO [x1000]"], df["NL Beer consumption [x1000 hectoliter]"]) +plt.xlabel("University Graduates (x1000)") +plt.ylabel("Beer Consumption (x1000 hectoliters)") +plt.grid(True) +plt.savefig("correlation_scatter.png", dpi=300) +plt.show() diff --git a/solution_.md b/solution_.md new file mode 100644 index 0000000..499db76 --- /dev/null +++ b/solution_.md @@ -0,0 +1,9 @@ +Student ID: 12609536 + +MCC Van Dyke et al., 2019 +JT Harvey, Applied Ergonomics, 2002 +DW Ziegler et al., 2005 + +![Scatterplot](correlation_scatter.png) + +As the number of WO university students in the Netherlands goes up, so does the amount of consumed alcohol. \ No newline at end of file