Question

In: Statistics and Probability

Using R to solve these questions: 1.Consider the following dataset: fuel <- c(0.95, 0.52, 0.82, 0.89,...

Using R to solve these questions:

1.Consider the following dataset:

fuel <- c(0.95, 0.52, 0.82, 0.89, 0.81)

The numbers correspond to the amount of fuel burnt by a new type of high-efficiency engine under a randomised test load. A value of 1 corresponds to the same fuel efficiency as the old engine, values greater than one correspond to more fuel burned (hence lower efficiency) and values less than one correspond to greater efficiency.

(a) One-sided or two-sided test? Justify.

(b) State a sensible null hypothesis (care!)

(c) Test your hypothesis using Student t test and interpret

(d) Interpret the -Inf in the confidence interval reported by R in such a way that a non statistician could understand it.

2.Here we consider the amount of data needed to perform hypothesis testing.

(a) 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?

(b) Now generalize to consider HA : p = 0.5+δ. Choose sensible values for δ and quantify the number of observations needed as a function of δ.

Thank you so much!

Solutions

Expert Solution

> fuel <- c(0.95, 0.52, 0.82, 0.89, 0.81)
> t.test(fuel,alternative = "two.sided",mu=1,conf.level = 0.95)

   One Sample t-test

data: fuel
t = -2.7302, df = 4, p-value = 0.05243
alternative hypothesis: true mean is not equal to 1
95 percent confidence interval:
0.5925806 1.0034194
sample estimates:
mean of x
0.798

(a) One-sided or two-sided test? Justify.

It's a two-sided test as there is no claim that the car is better or lesser than the old car.

(b) State a sensible null hypothesis (care!)

(c) Test your hypothesis using the Student t-test and interpret

t = -2.7302, df = 4, p-value = 0.05243

p-value >0.05 So we cannot reject the null hypothesis and conclude that the amount of fuel burnt the new type of high-efficiency engine is similar to old one.

(d) Interpret the -Inf in the confidence interval reported by R in such a way that a non-statistician could understand it.

95 per cent confidence interval:


Related Solutions

Using R to solve these questions: 1.Consider the following dataset: fuel <- c(0.95, 0.52, 0.82, 0.89,...
Using R to solve these questions: 1.Consider the following dataset: fuel <- c(0.95, 0.52, 0.82, 0.89, 0.81) The numbers correspond to the amount of fuel burnt by a new type of high-efficiency engine under a randomised test load. A value of 1 corresponds to the same fuel efficiency as the old engine, values greater than one correspond to more fuel burned (hence lower efficiency) and values less than one correspond to greater efficiency. (a) One-sided or two-sided test? Justify. (b)...
Solve it by R Use the “d_logret_6stocks” dataset to answer the questions. Test by using α=...
Solve it by R Use the “d_logret_6stocks” dataset to answer the questions. Test by using α= .01. (General Motor: GenMotor). (1) Regress the return of General Motor on the returns of Citigroup (with intercept). Report the estimated coefficients. Is there any evidence to show strong linear relationship between these two variables at significance level 5%? (2) Suppose we “know” the return of Citigroup tomorrow is 0.05, what is the predicted return of General Motor tomorrow? (3) Compute the correlation of...
Please do these questions in the R language 1. Load the cars dataset into R. It...
Please do these questions in the R language 1. Load the cars dataset into R. It is a built-in dataset. 2. Do an str() to determine the number of observations and variables. Enter your answer as a comment. 3. Plot speed on x axis and distance on y axis. 4. Find the correlation between speed and distance. What does the magnitude and sign indicate? Enter your answer as a comment. 5. Build a linear regression model with speed as the...
Use the “d_logret_6stocks” dataset to answer the questions. (General Motor: GenMotor)(using R) (1) Regress the return...
Use the “d_logret_6stocks” dataset to answer the questions. (General Motor: GenMotor)(using R) (1) Regress the return of General Motor on the returns of Citigroup with intercept and without intercept, respectively. Report the estimated coefficients. (2) Generate an ANOVA table to conclude if regression effects are significant. (3) Compute the correlation of General Motor and Citigroup, and test if their correlation is zero. (4) Test if the proportion of returns of Citigroup greater than Pfizer is 0.6. dataset below Date   Pfizer  ...
Solve it by R Use the ‘cement’ dataset in ‘MASS’ package to answer the question. (1)...
Solve it by R Use the ‘cement’ dataset in ‘MASS’ package to answer the question. (1) Conduct the multiple linear regression, regress y value on x1, x2, x3 and x4 (without intercept). Report the estimated coefficients. Which predictor variables have strong linear relationship with response variable y at significance level 0.05? (2) What is the adjusted R square of your regression? What is the interquartile range (IQR) of the residuals from your regression? (3) Conduct a best subset regression (with...
Consider Dataset C for answering the questions that follows below. Teams A, B and C have...
Consider Dataset C for answering the questions that follows below. Teams A, B and C have been used to serve as respondents in a recently concluded webinar in Cybercrime to evaluate the delivery of the webinar. Is there any reason to believe that the mean responses of the three teams are different from one another? Test this using a level of significance of 0.05. All the teams are being categorized as either Male or Female. In this scenario, can we...
Solve using R. You will need library(resampledata) and the dataset FlightDelays. Conduct a hypothesis test to...
Solve using R. You will need library(resampledata) and the dataset FlightDelays. Conduct a hypothesis test to see whether there is a difference in the variances of flight delay length between the two airlines. 1) Set a hypothesis for this test using appropriate notation 2) Using R, find the value of the observed test statistic 3) Using R, compute the P-value of the observed test statistic using a permutation distribution with N=10^5-1 resamples. If possible use comments so that it is...
Consider Dataset C for answering the questions that follows below. Team Gender Responses 1 A Male...
Consider Dataset C for answering the questions that follows below. Team Gender Responses 1 A Male 3.25 2 A Male 3.54 3 A Male 1.08 4 A Male 2.14 5 A Male 3.60 6 B Male 4.36 7 B Male 4.66 8 B Male 1.52 9 B Male 3.99 10 B Male 3.60 11 C Female 3.86 12 C Female 4.89 13 C Female 1.46 14 C Female 4.74 15 C Female 4.16 Teams A, B and C have been...
Please tell me how to solve the following questions a) to c) using a graph. In...
Please tell me how to solve the following questions a) to c) using a graph. In particular, please elaborate on c). Cellwave is a cellular phone company. Answer the following questions relating to its pricing policies: a) When Cellwave started, it sold to a group of homogeneous retail customers. Each person’s monthly demand for cell phone minutes was given by P = $2 - 0.02Q , where P = the price per minute and Q = the quantity of minutes...
3) Solve the initial value problems c) R′ + (R/t) = (2/(1+t2 )) , R(1) =...
3) Solve the initial value problems c) R′ + (R/t) = (2/(1+t2 )) , R(1) = ln 8. e) ) cos θv′ + v = 3 , v(π/2) = 1. 5) Express the general solution of the equation x ′ = 2tx + 1 in terms of the erf function. 7) Solve x ′′ + x ′ = 3t by substituting y = x ′ 9) Find the general solution to the differential equation x ′ = ax + b,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT