Question
Answer the following in R STUDIO, CSV FORMAT OF DATA IS BELOW QUESTIONS AND DATA FRAME IS HERE: The data frame that you create will
Answer the following in R STUDIO, CSV FORMAT OF DATA IS BELOW QUESTIONS AND DATA FRAME IS HERE:
The data frame that you create will have 3 variables:
- date - This is the recorded date for each record
- tmax - This is the high for the day in State College.
- new.cases - This is the amount of new cases of COVID19 that were found the designated day
Q1
Create a linear model and run the summary to determine the line of best fit for the data. What is the intercept and slope? Round your answers to the nearest 3 decimal places.
intercept =
slope =
Q2
If the Null hypothesis is that the slope is zero, then can we safely reject the null hypothesis, but the given p-value?
Group of answer choices
Yes
No
Q3
According to the slope you found, how is the new cases when temperature increases?
Group of answer choices
New cases increases
New cases decreases
Q4
How much of the variability in the amount of new cases can be explained by temperature?
_____
Q5
Use R to determine a 75% interval of the average amount of new cases given the temperature is 70. Include the fit. Round all your answers 3 decimal places.
fit =
lower bounds =
upper bounds =
Q6
Use R to determine a 75% interval of the potential range of new cases given the temperature is 70. Include the fit. Round all your answers 3 decimal places.
fit =
lower bounds =
upper bounds =
Q7
What is the mean of the residuals? Round your answer 3 decimal places
Q8
Run a Shapiro-Wilk test on the residuals. Based on the p value and significance level of 0.05, what is safest to say?
Group of answer choices
The residuals are normally distributed.
The residuals are not normally distributed.
Q9
Based on everything calculated, do you think a linear model can be used to represent the relationship between new cases in this town and the high temperature that day? Make sure reference at least one calculation to justify your position.
CSV INFORMATION FILES:
date:
3/1/2020 |
3/2/2020 |
3/3/2020 |
3/4/2020 |
3/6/2020 |
3/7/2020 |
3/8/2020 |
3/9/2020 |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
4/1/2020 |
4/2/2020 |
4/3/2020 |
4/4/2020 |
4/5/2020 |
4/6/2020 |
4/7/2020 |
4/8/2020 |
4/9/2020 |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
5/1/2020 |
5/2/2020 |
5/3/2020 |
5/4/2020 |
5/5/2020 |
5/6/2020 |
5/7/2020 |
5/8/2020 |
5/9/2020 |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
6/1/2020 |
6/2/2020 |
6/3/2020 |
6/4/2020 |
6/5/2020 |
6/6/2020 |
6/7/2020 |
6/8/2020 |
6/9/2020 |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
7/1/2020 |
7/2/2020 |
7/3/2020 |
7/4/2020 |
7/5/2020 |
7/6/2020 |
7/7/2020 |
7/8/2020 |
7/9/2020 |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
8/1/2020 |
8/2/2020 |
8/3/2020 |
8/4/2020 |
8/5/2020 |
8/6/2020 |
8/7/2020 |
8/8/2020 |
8/9/2020 |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
9/1/2020 |
9/2/2020 |
9/3/2020 |
9/4/2020 |
9/5/2020 |
9/6/2020 |
9/7/2020 |
9/8/2020 |
9/9/2020 |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
1/1/2021 |
1/2/2021 |
1/3/2021 |
1/4/2021 |
1/5/2021 |
1/6/2021 |
1/7/2021 |
1/8/2021 |
1/9/2021 |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
2/1/2021 |
2/2/2021 |
2/3/2021 |
2/4/2021 |
2/5/2021 |
2/6/2021 |
2/7/2021 |
2/8/2021 |
2/9/2021 |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
######## |
3/1/2021 |
3/2/2021 |
3/3/2021 |
3/4/2021 |
3/5/2021 |
3/6/2021 |
3/7/2021 |
tmax
27 |
44 |
61 |
51 |
50 |
43 |
45 |
61 |
70 |
59 |
43 |
56 |
60 |
46 |
50 |
47 |
46 |
53 |
59 |
71 |
43 |
47 |
39 |
52 |
42 |
60 |
60 |
49 |
54 |
54 |
48 |
52 |
55 |
58 |
60 |
68 |
64 |
67 |
69 |
54 |
39 |
52 |
63 |
68 |
47 |
48 |
40 |
39 |
46 |
61 |
60 |
50 |
48 |
61 |
55 |
61 |
44 |
53 |
56 |
68 |
58 |
60 |
69 |
76 |
58 |
56 |
43 |
61 |
45 |
41 |
60 |
46 |
53 |
62 |
64 |
82 |
71 |
65 |
68 |
68 |
65 |
69 |
64 |
76 |
71 |
80 |
86 |
76 |
84 |
83 |
71 |
64 |
69 |
76 |
83 |
84 |
79 |
82 |
75 |
79 |
89 |
87 |
76 |
78 |
69 |
70 |
75 |
78 |
79 |
79 |
79 |
80 |
80 |
88 |
82 |
76 |
79 |
82 |
81 |
85 |
87 |
83 |
81 |
89 |
90 |
88 |
90 |
92 |
85 |
90 |
91 |
86 |
78 |
83 |
81 |
82 |
88 |
80 |
87 |
92 |
93 |
88 |
88 |
82 |
84 |
84 |
89 |
87 |
93 |
86 |
90 |
86 |
85 |
79 |
86 |
84 |
82 |
81 |
83 |
79 |
83 |
88 |
91 |
91 |
90 |
89 |
86 |
79 |
83 |
85 |
80 |
78 |
82 |
91 |
86 |
83 |
84 |
81 |
89 |
78 |
83 |
74 |
70 |
70 |
81 |
73 |
78 |
77 |
79 |
80 |
85 |
82 |
80 |
71 |
65 |
67 |
69 |
65 |
70 |
72 |
67 |
61 |
63 |
66 |
78 |
73 |
78 |
73 |
78 |
79 |
60 |
65 |
64 |
60 |
60 |
65 |
59 |
67 |
73 |
62 |
71 |
75 |
64 |
54 |
66 |
68 |
77 |
52 |
58 |
58 |
57 |
66 |
79 |
80 |
78 |
58 |
48 |
53 |
52 |
52 |
46 |
44 |
46 |
50 |
40 |
55 |
69 |
66 |
72 |
73 |
75 |
74 |
75 |
65 |
48 |
54 |
51 |
55 |
49 |
39 |
33 |
47 |
67 |
52 |
48 |
39 |
45 |
50 |
54 |
51 |
48 |
54 |
50 |
36 |
32 |
43 |
49 |
40 |
33 |
34 |
38 |
38 |
46 |
56 |
55 |
45 |
36 |
32 |
27 |
29 |
25 |
30 |
34 |
39 |
39 |
42 |
48 |
26 |
25 |
38 |
45 |
41 |
36 |
42 |
45 |
37 |
38 |
36 |
35 |
40 |
33 |
41 |
43 |
43 |
39 |
42 |
48 |
43 |
38 |
37 |
34 |
37 |
30 |
25 |
37 |
24 |
31 |
35 |
38 |
32 |
27 |
26 |
32 |
29 |
29 |
29 |
37 |
44 |
43 |
34 |
32 |
27 |
33 |
28 |
30 |
23 |
24 |
30 |
33 |
35 |
27 |
25 |
33 |
24 |
35 |
38 |
42 |
59 |
43 |
42 |
47 |
41 |
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
59 |
36 |
52 |
83 |
129 |
55 |
67 |
78 |
69 |
83 |
95 |
80 |
68 |
139 |
51 |
109 |
97 |
98 |
81 |
162 |
65 |
28 |
19 |
82 |
81 |
165 |
124 |
102 |
40 |
97 |
70 |
134 |
172 |
78 |
161 |
62 |
99 |
60 |
95 |
78 |
147 |
63 |
34 |
55 |
79 |
93 |
48 |
83 |
62 |
23 |
71 |
84 |
65 |
69 |
57 |
21 |
73 |
106 |
71 |
97 |
116 |
96 |
61 |
53 |
127 |
33 |
45 |
72 |
81 |
50 |
51 |
59 |
51 |
62 |
63 |
70 |
57 |
71 |
125 |
77 |
53 |
127 |
188 |
51 |
75 |
80 |
82 |
69 |
86 |
134 |
23 |
64 |
39 |
81 |
39 |
100 |
79 |
25 |
24 |
67 |
53 |
47 |
38 |
59 |
38 |
41 |
42 |
24 |
50 |
45 |
40 |
6 |
23 |
32 |
50 |
33 |
41 |
32 |
18 |
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