(Solved) : Please Add Required Code Necessary Call Imported Median Corrcoef Enable Calculation Median Q43978523 . . .
Please add the required code necessary to call the importedmedian and corr_coef to enable calculation of the median of the twolists and the correlation coefficient between the two lists.
from tma02_stats import median
from tma02_stats import mean
from tma02_stats import corr_coef
“”” You can use one of two approaches
— add suitable code below and then run thisfile
“””
“””
U.S. college enrollment statistics for public colleges from 1971 to2016 (in millions).
“””
college = [6.8, 7.07, 7.42, 7.99, 8.83, 8.65, 8.85, 8.79, 9.04,9.46, 9.65, 9.7, 9.68, 9.48, 9.48, 9.71, 9.97, 10.16, 10.58, 10.84,11.31, 11.38, 11.19, 11.13, 11.09, 11.13, 11.2, 11.14, 11.38,11.75, 12.23, 12.75, 12.86, 12.98, 13.02, 13.18, 13.49, 13.97,14.81, 15.14, 15.12, 14.88, 14.75, 14.65, 14.57, 14.56]
“””
Average annual price of a barrel of oil in US dollars from 1971 -2016.
“””
oil = [1.7, 1.82, 2.7, 11.0, 10.43, 11.6, 12.5, 12.79, 29.19,35.52, 34.0, 32.38, 29.04, 28.2, 27.01, 13.53, 17.73, 14.24, 17.31,22.26, 18.62, 18.44, 16.33, 15.53, 16.86, 20.29, 18.86, 12.28,17.44, 27.6, 23.12, 24.36, 28.1, 36.05, 50.59, 61.0, 69.04, 94.1,60.86, 77.38, 107.46, 109.45, 105.87, 96.29, 49.49, 40.68]
Expert Answer
Answer to Please add the required code necessary to call the imported median and corr_coef to enable calculation of the median of …
OR