Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit



Fall 2021: CIS 321 Introduction to Probability & Statistics

 

Homework assignment 11

 

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

49

61

2

37

45

3

33

49

4

44

56

5

55

69

6

48

59

7

43

55

8

72

81

9

45

57

10

73

91

11

36

54

12

68

80

13

46

58

14

67

79

15

40

52

16

71

80

17

63

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

 

 

 

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