Question: q5.py imports the Python function median() you used in Block 2 Part 5 to calculate the median of a list of numbers. Use this function

q5.py imports the Python function median() you used in Block 2 Part 5 to calculate the median of a list of numbers.

Use this function to find the median of imports_EU.

In your solution document give the median rounded to two decimal places. Also provide the Python code you used for calling the median() function and explain how you executed it.

ii.Briefly explain what dispersion means and give an example of how dispersion can be measured.

b.The Python file q5.py imports the function corr_coef() which you used in Section5.4of Block 2 Part 5 to calculate the correlation coefficient between two lists.

i.Use this function to calculate the correlation coefficient between imports_EUand imports_nonEU.

In your solution document, provide the resulting figure rounded (manually or using Python) to two decimal places. Also provide the Python code you used for calling the corr_coef() function and explain how you executed it.

ii.Classify the size of the effect, following Table5.5 (p.290) in Block 2 Part 5.

iii.Briefly discuss whether any effect you have found is likely to be causal.

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 Algorithms Questions!