Question: QUESTION 11 (30p) : Write the missing functions myAverage, myStandardDev, myMin, and myCorrelation in the following code. The formulas for average (mean), standard deviation and

 QUESTION 11 (30p) : Write the missing functions myAverage, myStandardDev, myMin,

QUESTION 11 (30p) : Write the missing functions myAverage, myStandardDev, myMin, and myCorrelation in the following code. The formulas for average (mean), standard deviation and correlation are given below. mean deviation - (x; FX 0; - ;) (+; )? 0; - ;) import math import random def myAvearage(1st): def myStandardDev(1st): def myMin(1st): def myCorrelation(x, y): def main(): alist - (10, 20, 30, 50, 80, 90, 100, 15, 125, 128, 150, 185, 200, 240, 260, 280) bList = [13, 25, 28, 45, 79, 85, 111, 115, 125, 256, 160, 195, 238, 279, 280, 320] clist - blist.copy() CList.reverse() dList = [random.randint(1,99) for x in range(len(alist))] print("Lists:") print("List A = " + str(alist)) print("List B = " + str(blist)) print("List C = " + str(clist)) print("List D = " + str(dList)) print() print("List A Average = " + str(myAvearage(alist))) print("Standart Deviation of List A = " + str(myStandardDev(alist))) print("Minimum of List A =" + str(myMin(alist))) print() print("List B Average = " + str(myAvearage(alist))) print("Standart Deviation of List B = str(myStandardDev(alist))) print("Minimum of List B = " + str(myMin(alist))) print() print("Correlation of List A and B = " + str(myCorrelationalist, blist))) print("Correlation of List A and C = " + str(myCorrelationalist, clist))) print("Correlation of List A and D = + str(myCorrelationalist, dList))) 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 Databases Questions!