Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE SOLVE BY PYTHON. Write the missing functions myAverage, myStandardDev, myMin, and myCorrelation in the following code. The formulas for average (mean), standard deviation and

PLEASE SOLVE BY PYTHON.

image text in transcribed

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 - 12 = (x,-FXy; - ) (x,- 5) 6,-1 VA -! import math import random def myAvearage (1st): def myStandardDev(1st): def myMin(1st): def myCorrelation(x, y): def main(): alist = [11, 20, 30, 50, 80, 90, 101, 15, 125, 128, 150, 185, 280, 240, 260, 290] blist = [14, 25, 28, 45, 79, 85, 121, 115, 125, 256, 160, 195, 230, 279, 280, 330] 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(my Correlationalist, clist))) print("Correlation of List A and D = " + str(myCorrelationalist, dList))) main()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

3. How old are they? (children, teens, adults, seniors)

Answered: 1 week ago

Question

1 . Television News channels importantance of our Life pattern ?

Answered: 1 week ago