Answer:
function predicting vertical
def predict_vertical(triple):
# using least squares model parameters
ls_vertical = ls_slope*triple + ls_intercept
return ls_vertical
# Johnathan Edwards prediction
triple = 18.29 # m
vertical = predict_vertical(triple)
print("Edward's vertical jump prediction would be {:.2f} meters.".format(vertical))
plt.legend(['linear regression','least squares','data'])
plt.grid()
plt.show()
Step-by-step explanation: