of the midterm exam grade? (b) How many students are in this dataset? In other words, what is the sample size? (c) Compute the correlation between midterm and final exam grades for all students. What is the correlation coefficient? Attach R code. (d) Subset the first 30 students' data and assign this data to an R object called subsetDat Attach R code. (e) Compute the correlation between midterm and final exam grades for only the stu- dents in subsetData. What is the correlation coefficient? Attach R code. (f) Compare the correlation in part (e) with the correlation in part (c). What one is smaller? Why?

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
Midterm Final
38.64 60.94
39.77 48.68
42.05 52.45
44.32
45.45 36.89
46.59
48.3
47.16 43.96
48.86
51.14
51.7
52.27
52.27
59.09
60.23
60.23
61.93
62.5
53.4
54.55
55.68 64.72
56.82
64.2
51.51
64.2
59.09 57.64
51.51
53.4
41.6
59.66 43.49
55.28
68.96
52.92
37.36
51.51
75
51.04
75
63.07 43.02
66.6
65.66
68.02
60.47
65.34
65.34 77.45
46.79
55.75
67.05 68.49
67.05 50.09
67.05 55.75
43.96
67.05 55.75
68.75 78.87
69.89 61.89
69.89 71.79
69.89 47.74
70.45 63.77
71.02 78.87
71.02 76.04
72.16 65.19
72.73 74.15
73.86 72.26
73.86
73.86 60.47
73.86 60.94
48.68
97.16
64.72
63.3
75.57 54.34
75.57
48.68
76.7
77.27 52.45
77.27 57.17
75.09
77.84 81.7
78.41 86.89
80.68 80.75
80.68 73.21
80.68 64.72
80.68 72.74
81.82 64.72
83.52 96.32
84.09 68.02
84.09 73.21
84.66 64.72
86.36 63.77
86.36 71.79
86.36 65.66
87.5 63.77
88.64 71.32
92.05 89.25
93.18 97.74
94.89
95.45 81.7
97.26
100
Transcribed Image Text:Midterm Final 38.64 60.94 39.77 48.68 42.05 52.45 44.32 45.45 36.89 46.59 48.3 47.16 43.96 48.86 51.14 51.7 52.27 52.27 59.09 60.23 60.23 61.93 62.5 53.4 54.55 55.68 64.72 56.82 64.2 51.51 64.2 59.09 57.64 51.51 53.4 41.6 59.66 43.49 55.28 68.96 52.92 37.36 51.51 75 51.04 75 63.07 43.02 66.6 65.66 68.02 60.47 65.34 65.34 77.45 46.79 55.75 67.05 68.49 67.05 50.09 67.05 55.75 43.96 67.05 55.75 68.75 78.87 69.89 61.89 69.89 71.79 69.89 47.74 70.45 63.77 71.02 78.87 71.02 76.04 72.16 65.19 72.73 74.15 73.86 72.26 73.86 73.86 60.47 73.86 60.94 48.68 97.16 64.72 63.3 75.57 54.34 75.57 48.68 76.7 77.27 52.45 77.27 57.17 75.09 77.84 81.7 78.41 86.89 80.68 80.75 80.68 73.21 80.68 64.72 80.68 72.74 81.82 64.72 83.52 96.32 84.09 68.02 84.09 73.21 84.66 64.72 86.36 63.77 86.36 71.79 86.36 65.66 87.5 63.77 88.64 71.32 92.05 89.25 93.18 97.74 94.89 95.45 81.7 97.26 100
This
In this question, you will work with grades.csv file
data file has two variables: 1) midterm exam grade in percentage; 2) final exam grade in
percentage. Import the data into R and answer the following questions:
(a) Use View() function to take a look at the dataset. Notice that the dataset is ordered
according to the midterm exam grade. Is it ordered in ascending or descending order
of the midterm exam grade?
(b) How many students are in this dataset? In other words, what is the sample size?
(c) Compute the correlation between midterm and final exam grades for all students.
What is the correlation coefficient? Attach R code.
(d) Subset the first 30 students' data and assign this data to an R object called subsetData.
Attach R. code.
(e) Compute the correlation between midterm and final exam grades for only the stu-
dents in subsetData. What is the correlation coefficient? Attach R code.
(f) Compare the correlation in part (e) with the correlation in part (c). What one is
smaller? Why?
Transcribed Image Text:This In this question, you will work with grades.csv file data file has two variables: 1) midterm exam grade in percentage; 2) final exam grade in percentage. Import the data into R and answer the following questions: (a) Use View() function to take a look at the dataset. Notice that the dataset is ordered according to the midterm exam grade. Is it ordered in ascending or descending order of the midterm exam grade? (b) How many students are in this dataset? In other words, what is the sample size? (c) Compute the correlation between midterm and final exam grades for all students. What is the correlation coefficient? Attach R code. (d) Subset the first 30 students' data and assign this data to an R object called subsetData. Attach R. code. (e) Compute the correlation between midterm and final exam grades for only the stu- dents in subsetData. What is the correlation coefficient? Attach R code. (f) Compare the correlation in part (e) with the correlation in part (c). What one is smaller? Why?
Expert Solution
steps

Step by step

Solved in 2 steps with 6 images

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman