Question

In: Statistics and Probability

CAN YOU PLEASE POST THE R-SCRIPT ONLY The built-in data set LakeHuron is a time series...

CAN YOU PLEASE POST THE R-SCRIPT ONLY

The built-in data set LakeHuron is a time series which provides records of annual measurements of the level, in feet, of Lake Huron 1875 to 1972. Using R we can convert this data into the vector x by the assignment x<-as.vector(LakeHuron). Assume that the n measurements x=(

x1, x2,...,xn) are a random sample from a population with true unknown mean μ and true unknown variance σ2. Remember, let x be defined by x<-as.vector(LakeHuron)

CAN YOU PLEASE POST THE R-SCRIPT ONLY
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 an unbiased point estimate of the population variance, σ2 of faithful waiting times.

e) Assuming normality of LakeHuron levels, calculate the maximum likelihood estimate of μ?

f) Calculate the 70th percentile of x using R.

Calculate a 2/98 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 97% level and we use a normal critical value, then what critical value should we use?

i) Calculate a 97% confidence interval(using a normal critical value) for μ.
(    ,      )

j) How long is the 97% confidence interval just created in part i?

Solutions

Expert Solution


Related Solutions

CAN YOU PLEASE POST R-SCRIPT ONLY!! In Major League baseball, the speed of a pitch is...
CAN YOU PLEASE POST R-SCRIPT ONLY!! In Major League baseball, the speed of a pitch is very important. How fast is the speed of a major league pitchers average pitch? A researcher took a random sample of the speed of 15 pitches from the 2019 Major League baseball season. The following are the speeds of these pitches in miles per hour: 92.8, 87.0, 89.1, 96.2, 75.6, 89.6, 92.5, 83.3, 86.5, 95.6, 94.1, 91.6, 94.2, 93.4, 90.0 It is reasonable to...
CAN YOU PLEASE POST R-SCRIPT ONLY!! Eagle flu can be devastating for those who are hospitalized....
CAN YOU PLEASE POST R-SCRIPT ONLY!! Eagle flu can be devastating for those who are hospitalized. Researchers at JJ Health Services took a random sample of n=2561 hospitalized Eagle flu patients out of a very large population of hospitalized Eagle flu patients. Of these x = 1497 patients showed a symptom of very high fever (VHF). Let p be the (unknown) true proportion of hospitalized Eagle flu patients who show a symptom of VHF. We want to estimate p. X...
In R: Consider dataset “juul” from library “ISwR”. (juul is a built in data set) Are...
In R: Consider dataset “juul” from library “ISwR”. (juul is a built in data set) Are the means of igf1 equal among tanner groups at 5% level? Please use the six step process to test statistical hypotheses for this research problem. Note: You need to convert tanner from numeric to factor type and ignore all the NAs.
warpbreaks is a built-in R dataset which gives This data set gives the number of warp...
warpbreaks is a built-in R dataset which gives This data set gives the number of warp breaks per loom, where a loom corresponds to a fixed length of yarn. We are interested in some descriptive statistics related to the warpbreaks dataset. We can access this data directly and convert the time series into a vector by using the assignment x <- warpbreaks$breaks. (In R, use ? warpbreaks for info on this dataset.) The values of x if assigned as above...
Instructions tell you how to get the data in R R has built in dataset called...
Instructions tell you how to get the data in R R has built in dataset called Iris. This famous (Fisher's or Anderson's) iris data set gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris. The species are Iris setosa, versicolor, and virginica. We are interested in estimating the length of Petal (Y) using the length of Sepal (X). First, load the...
Part (A): Using R to show how to decompose the seasonal time series data and then...
Part (A): Using R to show how to decompose the seasonal time series data and then subtract that effect from the data. This assignment is to practice using R to learn how to decompose seasonal time series data. Please use the data set in “A Little of R for Time Series” Section 2.4 (p.20): • > births <-scan("http://robjhyndman.com/tsdldata/data/nybirths.dat") > birthstimeseries <-  ts(births, frequency=12, start=c(1946,1)) > birthstimeseries • Then you can use the following to show how you can decompose the time...
Using the R built-in data set called Chick Weight, we want to compare the mean weight...
Using the R built-in data set called Chick Weight, we want to compare the mean weight across the different types of Diet. IMPORTANT: We only want to compare chicks at the final value of Time, 21. In this problem, use ?? = 0.05. Make a boxplot to compare weight across the different types of Diet. Based on the boxplot, describe any differences (or lack of differences) you see. Run an ANOVA to compare weight across the different types of Diet....
Please show the calculation process in Excel, thank you With the gasoline time series data from...
Please show the calculation process in Excel, thank you With the gasoline time series data from Table 8.1, show the exponential smoothing forecasts using α=0.1. Applying the MSE measure of forecast accuracy, would you prefer a smoothing constant of α=0.1 or α=0.2 for the gasoline sales time series? Are the results the same if you apply MAE as the measure of accuracy? What are the results if MAPE is used? Week Sales (1000s of gallons) 1 17 2 21 3...
a. Create a line chart for these time series data. What interpretations can you make about...
a. Create a line chart for these time series data. What interpretations can you make about the average price per gallon of conventional regular gasoline over these 36 months? b. Fit a linear trendline to the data. What does the trendline indicate about the price of gasoline over these 36 months? Month Price ($) 1 2.27 2 2.63 3 2.53 4 2.62 5 2.55 6 2.55 7 2.65 8 2.61 9 2.72 10 2.64 11 2.77 12 2.85 13 2.84...
Consider the following quarterly time series. The regression model developed for this data set that has...
Consider the following quarterly time series. The regression model developed for this data set that has seasonality and trend is as follows, yˆt = 864.08 + 87.8Qtr1t + 137.98Qtr2t + 106.16Qtr3t + 28.16t Compute the quarterly forecasts for next year based on the regression model? Quarter Year 1 Year 2 Year 3 1 923 1112 1243 2 1056 1156 1301 3 1124 1124 1254 4 992 1078 1198
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT