art J K

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

Part J K 

airquality is a built-in R data.frame which gives daily air quality measurements in New York in 1973. We are interested in some descriptive statistics related to the Wind column of the airquality
data.frame. We can access this data directly by using the assignment: x <- airquality$Wind (In R, use ? airquality for info on this data) The values of x if assigned as above:
1] 7.4, 8.0, 12.6, 11.5, 14.3, 14.9, 8.6, 13.8, 20.1, 8.6, 6.9, 9.7, 9.2, 10.9, 13.2, 11.5, 12.0
[18] 18.4, 11.5, 9.7, 9.7, 16.6, 9.7, 12.0, 16.6, 14.9, 8.0, 12.0, 14.9, 5.7, 7.4, 8.6, 9.7, 16.1
[35] 9.2, 8.6, 14.3, 9.7, 6.9, 13.8, 11.5, 10.9, 9.2, 8.0, 13.8, 11.5, 14.9, 20.7, 9.2, 11.5, 10.3
[52] 6.3, 1.7, 4.6, 6.3, 8.0, 8.0, 10.3, 11.5, 14.9, 8.0, 4.1, 9.2, 9.2, 10.9, 4.6, 10.9, 5.1
[69] 6.3, 5.7, 7.4, 8.6, 14.3, 14.9, 14.9, 14.3, 6.9, 10.3, 6.3, 5.1, 11.5, 6.9, 9.7, 11.5, 8.6
[86] 8.0, 8.6, 12.0, 7.4, 7.4, 7.4, 9.2, 6.9, 13.8, 7.4, 6.9, 7.4, 4.6, 4.0, 10.3, 8.0, 8.6
[103] 11.5, 11.5, 11.5, 9.7, 11.5, 10.3, 6.3, 7.4, 10.9, 10.3, 15.5, 14.3, 12.6, 9.7, 3.4, 8.0, 5.7
[120] 9.7, 2.3, 6.3, 6.3, 6.9, 5.1, 2.8, 4.6, 7.4, 15.5, 10.9, 10.3, 10.9, 9.7, 14.9, 15.5, 6.3
[137] 10.9, 11.5, 6.9, 13.8, 10.3, 10.3, 8.0, 12.6, 9.2, 10.3, 10.3, 16.6, 6.9, 13.2, 14.3, 8.0, 11.5
You should get these values from the R assignment above rather than manually entering the data.
a.Calculate the minimum value of x
b. Calculate the sample range of x. (one number)?
c. Calculate the interquartile range of x using R.
Of the
d. Calculate the sum of the cube roots of the elements of x
e. Calculate the sample mean of x.
f. Calculate the sample variance of x.
g. Calculate the sample standard deviation of x.
h. What proportion of the x values are less than 2 sample standard deviations from the sample mean
I. Calculate the maximum value of x.
j. How many times does the maximum value of x appear?
k. How many of the elements of x are larger than the sample mean of x?
Transcribed Image Text:airquality is a built-in R data.frame which gives daily air quality measurements in New York in 1973. We are interested in some descriptive statistics related to the Wind column of the airquality data.frame. We can access this data directly by using the assignment: x <- airquality$Wind (In R, use ? airquality for info on this data) The values of x if assigned as above: 1] 7.4, 8.0, 12.6, 11.5, 14.3, 14.9, 8.6, 13.8, 20.1, 8.6, 6.9, 9.7, 9.2, 10.9, 13.2, 11.5, 12.0 [18] 18.4, 11.5, 9.7, 9.7, 16.6, 9.7, 12.0, 16.6, 14.9, 8.0, 12.0, 14.9, 5.7, 7.4, 8.6, 9.7, 16.1 [35] 9.2, 8.6, 14.3, 9.7, 6.9, 13.8, 11.5, 10.9, 9.2, 8.0, 13.8, 11.5, 14.9, 20.7, 9.2, 11.5, 10.3 [52] 6.3, 1.7, 4.6, 6.3, 8.0, 8.0, 10.3, 11.5, 14.9, 8.0, 4.1, 9.2, 9.2, 10.9, 4.6, 10.9, 5.1 [69] 6.3, 5.7, 7.4, 8.6, 14.3, 14.9, 14.9, 14.3, 6.9, 10.3, 6.3, 5.1, 11.5, 6.9, 9.7, 11.5, 8.6 [86] 8.0, 8.6, 12.0, 7.4, 7.4, 7.4, 9.2, 6.9, 13.8, 7.4, 6.9, 7.4, 4.6, 4.0, 10.3, 8.0, 8.6 [103] 11.5, 11.5, 11.5, 9.7, 11.5, 10.3, 6.3, 7.4, 10.9, 10.3, 15.5, 14.3, 12.6, 9.7, 3.4, 8.0, 5.7 [120] 9.7, 2.3, 6.3, 6.3, 6.9, 5.1, 2.8, 4.6, 7.4, 15.5, 10.9, 10.3, 10.9, 9.7, 14.9, 15.5, 6.3 [137] 10.9, 11.5, 6.9, 13.8, 10.3, 10.3, 8.0, 12.6, 9.2, 10.3, 10.3, 16.6, 6.9, 13.2, 14.3, 8.0, 11.5 You should get these values from the R assignment above rather than manually entering the data. a.Calculate the minimum value of x b. Calculate the sample range of x. (one number)? c. Calculate the interquartile range of x using R. Of the d. Calculate the sum of the cube roots of the elements of x e. Calculate the sample mean of x. f. Calculate the sample variance of x. g. Calculate the sample standard deviation of x. h. What proportion of the x values are less than 2 sample standard deviations from the sample mean I. Calculate the maximum value of x. j. How many times does the maximum value of x appear? k. How many of the elements of x are larger than the sample mean of x?
Expert Solution
steps

Step by step

Solved in 2 steps

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