q5.py imports the Python function median() you used in Block 2 Part 5 to calculate the median
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 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.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill