answer and R code for: 'h' and 'i'

A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
icon
Related questions
Question

answer and R code for: 'h' and 'i'

The built-in data set, rock, is a data frame recording the measurements of rock sample from a petroleum reservoir. We are interested in the area column of rock. Using R we can convert this column into the vector x by the
assignment x<-rock$shape. Assume that the n area measurements x=(X₁, X2,...,xn) are a random sample from a population with true unknown mean μ and true unknown variance 02. Remember, let x be defined by x<-
rock$shape.
a) Calculate, n, the number of elements in x.
b) Calculate the sample standard deviation s, of x.
c) Estimate true mean μ, using this data by calculating the sample mean.
d) Calculate the sample variance of x.
e) Calculate the interquartile range of x, using R.
f) Calculate the 50th percentile of x using R.
g) Calculate a
48
trimmed mean for x using R.
h) Since the sample size is >30 we can create a confidence interval for μ using a normal critical value. If we want the confidence interval to be at the 94% level and we use a normal critical value, then what critical value
should we use?
i) Calculate a 94% confidence interval(using a normal critical value) for μ.
(
j) How long is the 94% confidence interval just created in part i?
k) Copy your R script for the above into the text box here.
Transcribed Image Text:The built-in data set, rock, is a data frame recording the measurements of rock sample from a petroleum reservoir. We are interested in the area column of rock. Using R we can convert this column into the vector x by the assignment x<-rock$shape. Assume that the n area measurements x=(X₁, X2,...,xn) are a random sample from a population with true unknown mean μ and true unknown variance 02. Remember, let x be defined by x<- rock$shape. a) Calculate, n, the number of elements in x. b) Calculate the sample standard deviation s, of x. c) Estimate true mean μ, using this data by calculating the sample mean. d) Calculate the sample variance of x. e) Calculate the interquartile range of x, using R. f) Calculate the 50th percentile of x using R. g) Calculate a 48 trimmed mean for x using R. h) Since the sample size is >30 we can create a confidence interval for μ using a normal critical value. If we want the confidence interval to be at the 94% level and we use a normal critical value, then what critical value should we use? i) Calculate a 94% confidence interval(using a normal critical value) for μ. ( j) How long is the 94% confidence interval just created in part i? k) Copy your R script for the above into the text box here.
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer