Question

In: Math

Using Rcode solve A company with a large fleet of cars wants to study the gasoline...

Using Rcode solve

A company with a large fleet of cars wants to study the gasoline usage. They check the gasoline usage for 50 company trips chosen at random, finding a mean of 25.02 mpg and sample standard deviation is 4.83 mpg.

a. Which kind of confidence interval is appropriate to use here, z-interval or t-interval?

b. What are the assumptions to check for the interval you chose?

c. Please use R to find the critical value the company needs when constructing a (two-sided) 98% CI.

d. Please use R to construct a (two-sided) 98% CI for the mean of the general gasoline usage.

e. Please use R to construct a 98% upper confidence bound for the mean of the general gasoline usage.

f. Create a R function whose argument is the width of CI, and the output is the sample size necessary to achieve such accuracy. The confidence level is fixed at 98%.

g. Apply the function you created in part (f) to demonstrate that larger sample size is required to achieve better accuracy (i.e, narrower CI width). Confidence level is fixed at 98%. Show at least three examples

Solutions

Expert Solution

SolutionA:

since population standard deviation is not gievn use Z interval.

since sample standard deviation is given use t interval

SolutionB:

distribution to be normal

sample is simple random sample

here n=50

n>30

according to centarl limit theorem follows normal distribution

c. Please use R to find the critical value the company needs when constructing a (two-sided) 98% CI.

n <- 50
criticalt <- qt(0.98,df=n-1)

2.109873

CRITICAL T =2.109873

d. Please use R to construct a (two-sided) 98% CI for the mean of the general gasoline usage.

Rcode:

xbar <- 25.02
s <- 4.83
n <- 50
margn_of_error <-qt(0.98,df=n-1)*s/sqrt(n)
lowerlimit <- xbar-margn_of_error
lowerlimit
upperlimit <- xbar+margn_of_error
upperlimit

lowerlimit
23.57882

upperlimit:

26.46118

98% confidence interval for true mean lies in between 23.57882 and 26.46118

Solutione:

e. Please use R to construct a 98% upper confidence bound for the mean of the general gasoline usage.

upperlimit <- xbar+margn_of_error
upperlimit

26.46118


Related Solutions

Using Rcode solve A company with a large fleet of cars wants to study the gasoline...
Using Rcode solve A company with a large fleet of cars wants to study the gasoline usage. They check the gasoline usage for 50 company trips chosen at random, finding a mean of 25.02 mpg and sample standard deviation is 4.83 mpg. a. Which kind of confidence interval is appropriate to use here, z-interval or t-interval? b. What are the assumptions to check for the interval you chose? c. Please use R to find the critical value the company needs...
A company with a large fleet of cars hopes to keep gasoline costs down and sets...
A company with a large fleet of cars hopes to keep gasoline costs down and sets a goal of attaining a fleet average of at least 2424 miles per gallon. To see if the goal is being​ met, they check the gasoline usage for 5050 company trips chosen at​ random, finding a mean of 22.0522.05 mpg and a standard deviation of 5.555.55 mpg. Is this strong evidence they have failed to attain their fuel economy​ goal? Complete parts a through...
A company with a large fleet of cars sets a goal of attaining a fleet average...
A company with a large fleet of cars sets a goal of attaining a fleet average of at least 26 miles per gallon of gasoline. To see if that goal is being met, they check the gasoline usage for 50 company trips chosen at random, finding a mean of 25.02 mpg and a standard deviation of 4.83 mpg. a) Is this a strong evidence that they have failed to attain their fuel economy goal? Assume significance level of 0.1. b)...
A city in Ohio is considering replacing its fleet of gasoline powered cars with electric cars....
A city in Ohio is considering replacing its fleet of gasoline powered cars with electric cars. The manufacturer of the electric cars claims that this municipality will experience significant cost savings over the life of the fleet if it chooses to pursue this conversion. If the manufacturer is correct, the city will save about $1.5 million. If the new technology employed within the electric cars is faulty as some critics suggest, it will cost the city $675,000. A third possibility...
3. The owner of a gasoline station wants to study gasoline purchasing habits by motorists at...
3. The owner of a gasoline station wants to study gasoline purchasing habits by motorists at his station. He selects a random sample of 55 motorists during a certain week, with the following results: The amount purchased was XBar = 11.0 gallons, S = 3.3 gallons. 15 motorists purchased premium-grade gasoline. At the 0.05 level of significance, is there evidence that the population mean purchase was different from 10 gallons? At the 0.1O level of significance, is there evidence that...
1. A company with a fleet of 1500 cars found that the emissions systems of 17...
1. A company with a fleet of 1500 cars found that the emissions systems of 17 out of the 53 randomly selected cars from their fleet failed to meet pollution control guidelines. If a significant number of vehicles are found to be out of compliance, the whole fleet will need to be inspected and brought up to current regulations. Is there strong evidence that more than 20% of the fleet might be out of compliance? Use a 1% level of...
Your company is considering the purchase of a fleet of cars for $200,000. It can borrow...
Your company is considering the purchase of a fleet of cars for $200,000. It can borrow at 6%. The cars will be used for four years. At the end of four years they will be worthless. You call a leasing agent and find that the cars can be leased for $55,000 per year. The corporate tax rate is 34% and the cars belong in CCA class 10 (a 30% class), what is the net advantage to leasing? a. $1,802 b....
Your company is considering the purchase of a fleet of cars for $200,000. It can borrow...
Your company is considering the purchase of a fleet of cars for $200,000. It can borrow at 6%. The cars will be used for four years. At the end of four years, they will be worthless. You call a leasing agent and find that the cars can be leased for $55,000 per year. The corporate tax rate is 34% and the cars belong in CCA class 10 (a 30% class), what is the net advantage to leasing? Select one: a....
Your company is considering the purchase of a fleet of cars for $195,000. It can borrow...
Your company is considering the purchase of a fleet of cars for $195,000. It can borrow at 8.5%. The cars will be used for four years. At the end of four years they will be worthless. You call a leasing agent and find that the cars can be leased for $55,000 per year. The corporate tax rate is 34% and the cars belong in CCA class 10 (a 30% class), what is the net advantage to leasing? A) $6,594 B)...
The owner of a gas station wants to study gasoline purchasing habits of motorists at this...
The owner of a gas station wants to study gasoline purchasing habits of motorists at this station. He selects a random sample of 60 motorists during a certain week, with the following results: The amount of gas purchased was; mean = 11.3 gallons, standard deviation = 3.1 gallons; Eleven motorists purchased premium-grade gasoline (4 points) At the 0.05 significance level, is there evidence that the population mean purchase was different from 10 gallons? (1 point) Determine the p-value in part...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT