
	import matplotlib.pyplot as plt
	from scipy import stats
	time = [5,10,15,20,25,30,35,40,45,50,55,60]
	money = [5,7,25,42,88,91,103,150,152,190,195,200]
	slope, intercept, r, p, std_err = stats.linregress(time, money)
	def myfunc(time):
		return slope * time + intercept

	model = list(map(myfunc, time))
	print("the coefficient of correlation = "+ str(r))

	plt.xlabel("Time")
	plt.ylabel("Money")
	plt.title("Linear")
	plt.grid()
	plt.scatter(time, money)
	plt.plot(time, model)
	plt.show()
	plt.savefig('/var/www/html/linear.png')
