# import statistics library as stat
#
import statistics as stat
#
# import matplotlib.pyplot as plt and NumPy as np
import matplotlib.pyplot as plt
import numpy as np
temps = [45, 51, 38, 42, 47, 51, 52, 55, 48, 43]
n = len(temps)
# for plotting purposes I have added an array of days from 1 to 10
days = np.linspace(1,n,n)
temp_mean=stat.mean(temps)
stat.median(temps)
stat.mode(temps)
temp_std=stat.stdev(temps)
stat.variance(temps)
# Plot the temperatures vs the days as a scatter plot using a red "x"
plt.scatter(days,temps,c='red',marker='x')
#
# Plot the mean as a horizontal line in green
plt.axhline(y=temp_mean,color='green')
#
# Illustrate 1 standard deviation away from the mean by drawing two horizonal lines in
# as dotted blue lines
plt.axhline(y=temp_mean-temp_std,color='blue')
plt.axhline(y=temp_mean+temp_std,color='blue')
plt.show()
random_numbers=np.random.randint(100,200,15)
print(random_numbers)
random_floats=np.random.uniform(0,1,15)
print(random_floats)
random_floats_2=np.random.uniform(10,40,15)
print(random_floats_2)
normal_random=np.random.normal(0,1,15)
print(normal_random)
normal_random_2=np.random.normal(20,0.5,15)
print(normal_random_2)