Question: def calc _ mean ( X ) : ' ' ' IMPLEMENT THIS FUNCTION. ' ' ' return - 9 9 9 # replace this

def calc_mean(X):
'''
IMPLEMENT THIS FUNCTION.
'''
return -999 # replace this line
def calc_stdev(X):
'''
IMPLEMENT THIS FUNCTION.
'''
return -999 # replace this line
def calc_cov(X, Y):
'''
IMPLEMENT THIS FUNCTION.
'''
return -999 # replace this line
def calc_pearson(X, Y):
'''
IMPLEMENT THIS FUNCTION.
'''
return -999 # replace this line
def main():
'''
You can test your implementations using the function calls here.
These function calls are here only to help you test your function.
'''
X =[1.5,3.2,0.8]
Y =[1.9,4.5,6.0]
print('mean for X:',calc_mean(X))
print('mean for Y:',calc_mean(Y))
print('std for X:',calc_stdev(X))
print('std for Y:',calc_stdev(Y))
print('covariance:',calc_cov(X,Y))
print('pearson:',calc_pearson(X,Y))
################################################################
'''
DO NOT EDIT BELOW THIS LINE
'''
main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!