Question

This is meant for R. AirPassengers is a time series giving the monthly totals (in thousands)...

This is meant for R. AirPassengers is a time series giving the monthly totals (in thousands) of international airline passengers, 1949 to 1960. We may convert the time series to a vector,x, with the assignment x <- as.vector(AirPassengers). Let the random variable X represent a random observation from the values in AirPassengers. Assume X has mean mu and standard deviation sigma and that there is no trend in the data and values are independent from one another. Think of x as a random sample from X.h) Calculate the critical value to be used to produce an 97% confidence interval for μ.#Note that this is a large sample so use a normal critical value. i) Find the lower boundary for a 97% confidence interval for μ. Incorrect: Your answer is incorrect. j) Find the upper boundary for a 97% confidence interval for μ. Incorrect: Your answer is incorrect. k) How long is the 97% confidence interval for μ? l) How many outliers does an R box plot of x show? 0 Many 2 -2 4 1 3

Homework Answers

Answer #1

x=as.vector(AirPassengers)

> x

[1] 112 118 132 129 121 135 148 148 136 119 104 118 115 126 141 135 125 149 170 170 158 133 114 140 145 150 178 163 172 178 199

[32] 199 184 162 146 166 171 180 193 181 183 218 230 242 209 191 172 194 196 196 236 235 229 243 264 272 237 211 180 201 204 188

[63] 235 227 234 264 302 293 259 229 203 229 242 233 267 269 270 315 364 347 312 274 237 278 284 277 317 313 318 374 413 405 355

[94] 306 271 306 315 301 356 348 355 422 465 467 404 347 305 336 340 318 362 348 363 435 491 505 404 359 310 337 360 342 406 396

[125] 420 472 548 559 463 407 362 405 417 391 419 461 472 535 622 606 508 461 390 432

>

> ## Median of X ##

> median(x)

[1] 265.5

>

> ## Maximum value of X ##

> max(x)

[1] 622

>

> ## Mean of X ##

> xbar=mean(x)

> xbar

[1] 280.2986

>

> ## 39th percentile ##

> p=quantile(x,0.39)

> p

39%

229

> ## Sample standard Deviation ##

> SD=sqrt(var(x))

> SD

[1] 119.9663

>

>

> ## interquartile RAnge ##

> iqr=IQR(x)

> iqr

[1] 180.5

>

>

> ## number of element in X ##

> e=length(x)

> e

[1] 144

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
BJsales is a time series giving 150 separate sales amounts. We may convert the time series...
BJsales is a time series giving 150 separate sales amounts. We may convert the time series to a vector,x, with the assignment x <- as.vector(BJsales). Let the random variable X represent a random observation from the values in BJsales. Assume X has mean mu and standard deviation sigma and that there is no trend in the data and values are independent from one another. Think of x as a random sample from X. Answer the following using R code: i)...
The built-in ldeaths data set contains measurements giving the monthly deaths from bronchitis, emphysema and asthma...
The built-in ldeaths data set contains measurements giving the monthly deaths from bronchitis, emphysema and asthma in the UK, 19741979, both sexes. We can easily access this data with the assignment x <- as.vector(ldeaths). We can also get the data by entering the values 1 by 1. (You would be wise to not do the 1 by 1 entry.) The following is a screen print of the data values:s: [1] 3035 2552 2704 2554 2014 1655 1721 1524 1596 2074...
Let a random sample be taken of size n = 100 from a population with a...
Let a random sample be taken of size n = 100 from a population with a known standard deviation of \sigma σ = 20. Suppose that the mean of the sample is X-Bar.png= 37. Find the 95% confidence interval for the mean, \mu μ , of the population from which the sample was drawn. (Answer in CI format and round the values to whole numbers.)
The built-in ldeaths data set contains measurements giving the monthly deaths from bronchitis, emphysema and asthma...
The built-in ldeaths data set contains measurements giving the monthly deaths from bronchitis, emphysema and asthma in the UK, 19741979, both sexes. We can easily access this data with the assignment x <- as.vector(ldeaths). We can also get the data by entering the values 1 by 1. (You would be wise to not do the 1 by 1 entry.) The following is a screen print of the data values:s: [1] 3035 2552 2704 2554 2014 1655 1721 1524 1596 2074...
The built-in ldeaths data set contains measurements giving the monthly deaths from bronchitis, emphysema and asthma...
The built-in ldeaths data set contains measurements giving the monthly deaths from bronchitis, emphysema and asthma in the UK, 19741979, both sexes. We can easily access this data with the assignment x <- as.vector(ldeaths). We can also get the data by entering the values 1 by 1. (You would be wise to not do the 1 by 1 entry.) The following is a screen print of the data values:s: [1] 3035 2552 2704 2554 2014 1655 1721 1524 1596 2074...
An Airline executive is interested in knowing the average travel time of all fights from LAX...
An Airline executive is interested in knowing the average travel time of all fights from LAX to Chicago. She takes a random sample of 50 flights from LAX to Chicago. The sample mean ( x bar ) is 180 mins. Th standard Deviation of travel of all flights from LAX to Chicago ( Sigma ) is known to be 20 mins . What is the formula to find 95% confidence interval ? ( Excel Format. )
In order to estimate the mean amount of time computer users spend on the internet each​...
In order to estimate the mean amount of time computer users spend on the internet each​ month, how many computer users must be surveyed in order to be 95​% confident that your sample mean is in error by no more than 14 ​minutes? Assume that the standard deviation of the population of monthly time spent on the internet is 190 min. Use technology to find the estimated minimum required sample size. The minimum sample size required is __ computer users....
*Answer all questions using R-Script* Question 1 Using the built in CO2 data frame, which contains...
*Answer all questions using R-Script* Question 1 Using the built in CO2 data frame, which contains data from an experiment on the cold tolerance of Echinochloa crus-galli; find the following. a) Assign the uptake column in the dataframe to an object called "x" b) Calculate the range of x c) Calculate the 28th percentile of x d) Calculate the sample median of x e) Calculate the sample mean of x and assign it to an object called "xbar" f) Calculate...
The mean waiting time at the​ drive-through of a​ fast-food restaurant from the time an order...
The mean waiting time at the​ drive-through of a​ fast-food restaurant from the time an order is placed to the time the order is received is 85.5 85.5 seconds. A manager devises a new​ drive-through system that she she believes will decrease wait time. As a​ test, she she initiates the new system at her her restaurant and measures the wait time for 10 10 randomly selected orders. The wait times are provided in the table to the right. Complete...
The built-in R dataset swiss gives Standardized fertility measure and socio-economic indicators for each of 47...
The built-in R dataset swiss gives Standardized fertility measure and socio-economic indicators for each of 47 French-speaking provinces of Switzerland at about 1888. The dataset is a data frame containing 6 columns (variables). The column Infant.Mortality represents the average number of live births who live less than 1 year over a 3-year period. We are interested in the Infant.Mortality column. We can convert the data in this colun to an ordinary vector x by making the assignment x <- swiss$Infant.Mortality....