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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started