Question

In: Statistics and Probability

Using R Studio/R programming... A consumer-reports group is testing whether a gasoline additive changes a car's...

Using R Studio/R programming...

A consumer-reports group is testing whether a gasoline additive changes a car's gas mileage. A test of seven cars finds an average improvement of 0.4 miles per gallon with a standard deviation of 3.57. Is the difference significantly greater than 0? Assume that the values are normally distributed.

What would the code be?

Solutions

Expert Solution

Attached is the R code marked in BOLD

# Test of Hypotheis
# Ho : mu =0 , vs Ha : mu >0

mu <- 0
x <- 0.4
s <- 3.57
n <- 7
t <- (x-mu)/(s/sqrt(n))
p_value <- pt(t, n-1, lower.tail = FALSE)
print(t)
print(p_value)

Ans

t = 0.2964427 with 6 degrees of freedom

p_value = 0.3884428

Conclusion

Since p_value > =0.05 we do not have sufficient evidence to reject Ho and conclude that there is no significant improvement in mileage.


Related Solutions

Using R Studio/R programming... Usually, we will use a random sample to estimate the statistics of...
Using R Studio/R programming... Usually, we will use a random sample to estimate the statistics of the underlying population. If we assume a given population is a standard normal distribution and we want to estimate its mean, which is the better technique to estimate that mean from a sample: Use the mean of one random sample of size 500 Use the mean of 300 random samples of size 10 Run your own experiment and use your results as a supporting...
Answer using R Studio Here we consider the amount of data needed to perform hypothesis testing....
Answer using R Studio Here we consider the amount of data needed to perform hypothesis testing. Suppose we are testing a coin using observations of tosses. We wish to test H0: p = 0.5 against an alternative of HA : p = 0.6 (in this question use one-sided tests only). How many tosses are needed to guarantee a size Æ∑ 0.05 and Ø∑ 0.2? Now generalize to consider HA : p = 0.5+delta. Choose sensible values for delta and quantify...
Using R studio: We will test whether the Shapiro-Wilk test is resistant to outliers. Run the...
Using R studio: We will test whether the Shapiro-Wilk test is resistant to outliers. Run the code below and decide whether the presence of a single outlier [the 5] changes the ability of the test to determine normality. What conclusions can you make from this experiment? shapiro.test(c(rnorm(100), 6)) shapiro.test(c(rnorm(1000), 6)) shapiro.test(c(rnorm(4000), 6))
The following table reports the average prices of gasoline and apples, as well as the consumer...
The following table reports the average prices of gasoline and apples, as well as the consumer price index for three years. Gasoline (price per pound) Red Delicious Apples (Price per Pound) Consumer Price Index 1982 -1984 =100) 1995 $1.15 $0.83 152.4 2005 $2.30 $0.95 195.3 2015 $2.45 $1.36 237.0 What was the percentage increase in the price of gasoline from 1995 to 2015? ______% What was the percentage increase in the price of apples from 2005 to 2015? ______% Did...
How would I go about this question using R studio? In a multiple regression, investigate whether...
How would I go about this question using R studio? In a multiple regression, investigate whether the categorical variable "Type" has a statistically significant interaction effect with any of the other covariates, A, B, C and D. Of those interactions that are statistically significant (if any), determine which one has the most impact on the model and add it to your model. Please include general 'formulas' for the commands needed!
R - STUDIO R PROGRAMMING STATISTICS Imagine that you and your friend have catched COVID-19 while...
R - STUDIO R PROGRAMMING STATISTICS Imagine that you and your friend have catched COVID-19 while jogging without social distancing. Your case is more severe than your friend’s at the beginning: there are 400 millions of coronavirus in you, and only 120 millions in your friend. However, your immune system is more effective. In your body the number coronavirus decrease by 20 percent each day (new = 0.8 × orginal), while in your friend it increases by 10 percent each...
I want this to be solved using R studio or R software, please. Here is the...
I want this to be solved using R studio or R software, please. Here is the example: The data in stat4_prob5 present the performance of a chemical process as a function of sever controllable process variables. (a) Fit a multiple regression modelrelating CO2product (y) to total solvent (x1) and hydrogen consumption (x2) and report the fitted regression line. (b) Find a point estimatefor the variance term σ2. (c) Construct the ANOVA tableand test for the significance of the regression using...
Use R-Studio to plot this PAIRED SAMPLES T-TEST To motivate citizens to conserve gasoline, the government...
Use R-Studio to plot this PAIRED SAMPLES T-TEST To motivate citizens to conserve gasoline, the government is considering mounting a nationwide conservation campaign. However, before doing so on a national level, it decides to conduct an experiment to evaluate the effectiveness of the campaign. For the experiment, the conservation campaign is conducted in a small but representative geographical area. Twelve families are randomly selected from the area, and the amount of gasoline they use is monitored for 1 month before...
****MUST BE FAMILIAR WITH R STUDIO PROGRAMMING***** Random samples of resting heart rates are taken from...
****MUST BE FAMILIAR WITH R STUDIO PROGRAMMING***** Random samples of resting heart rates are taken from two groups. Population 1 exercises regularly, and population 2 does not. The data from these two samples (in beats per minute) are given below: Exercise group (sample from population 1): 62.4, 64.1, 66.8, 60.7, 68.2, 69.2, 64.9, 70.9, 67.7, 68, 58.5, 58.9, 64.7 No exercise group (sample from population 2): 79.3, 73.8, 75.3, 74.7, 76.9, 74.9, 73.2, 75.7, 75.2, 76.7, 78.7 Estimate the difference...
Can You please Answer the question using R studio and R cloud Telomeres are complexes of...
Can You please Answer the question using R studio and R cloud Telomeres are complexes of DNA and protein that cap chromosomal ends. They consist of the same short DNA sequence TTAGGG repeated over and over again. They tend to shorted with cell divisions and with advancing cellular age, which will lead to chromosome instability or apoptosis (programmed cell death). Eukaryotic cells have the ability to reverse telomere shortening by expressing telomerase, an enzyme that extends the telomeres of chromosomes....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT