Fall 2021: CIS 321 Introduction to Probability & Statistics Date: November 29, 2021 Student name: ___________________ Student ID: ___________________ Homework assignment 11 (Assignment Due: December 7, 2021 at 8 AM) Problem 1 (20 extra credit points): Consider tabulated information of morning (6 AM) and afternoon (5 PM) temperatures (in F) recorded for several large cities in the USA on November 12, 2021. For full credit upload your code scripts and displayed results. City T_Morn T_Afte 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 49 37 33 44 55 48 43 72 45 73 36 68 46 67 40 71 63 61 45 49 56 69 59 55 81 57 91 54 80 58 79 52 80 82 Perform the tasks below and answer the questions, by writing the code (Python3 or RStudio or Matlab) followed by displayed results to calculate: a) (2 point) whether the morning temperature in city #10 was higher than the afternoon temperature in city #6? Here, insert your code and displayed result, as well as explanation you find necessary b) (2 point) how many cities are included in this temperature study? Here, insert your code and displayed result, as well as explanation you find necessary Show your work for the credit. Use Matlab to check the result. Use back side of this sheet for your notes and comments. Page 1 of 2 c) (2 point) what was the minimal morning temperature and what is the number of the city in which it was recorded? Here, insert your code and displayed result, as well as explanation you find necessary d) (2 point) how many cities had the morning temperature less than 50F? Here, insert your code and displayed result, as well as explanation you find necessary e) (2 point) how many cities had the afternoon temperature greater than 70F? Here, insert your code and displayed result, as well as explanation you find necessary f) (2 points) What is the average morning temperature in those 17 cities? Here, insert your code and displayed result, as well as explanation you find necessary g) (2 point) What is the median afternoon temperature in first 15 cities? Here, insert your code and displayed result, as well as explanation you find necessary h) (2 point) what was the standard deviation of the afternoon temperature in the last 13 cities? Here, insert your code and displayed result, as well as explanation you find necessary i) (2 point) construct a 98% confidence interval for the unknown expectation of the afternoon temperature in first 10 cities. Here, insert your code and displayed result, as well as explanation you find necessary j) (2 point) for the last 7 cities plot morning temperature vs. afternoon temperature diagram and determine the correlation factor between morning and afternoon temperature for the same 7 cities. Here, insert your code and displayed result, as well as explanation you find necessary Show your work for the credit. Use Matlab to check the result. Use back side of this sheet for your notes and comments. Page 2 of 2