Question

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

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!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

> 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!)

\\H_0:\mu=1\\ H_a: \mu \ne 1

(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:
(0.592, 1.003)

Add a comment
Know the answer?
Add Answer to:
Using R to solve these questions: 1.Consider the following dataset: fuel <- c(0.95, 0.52, 0.82...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please solve 2.7, 2.8 and 2.9 problems. 2.7. Suppose that we are testing Ho : μ1...

    Please solve 2.7, 2.8 and 2.9 problems. 2.7. Suppose that we are testing Ho : μ1 Ha versus Ho: > μ2 where the two sample sizes are ni n, 10. Both sample variances are unknown but assumed equal. Find bounds on the P-value for the following observed values of the test statistic. (a) to= 2.31 (b) toー3.60 (c) to-1.95 (d) 0-219 2.8. Consider the following sample data: 9.37, 13.04, 11.69, 8.21, 11.18, 10.41, 13.15, 11.51, 13.21, and 7.75. Is it...

  • Consider the following hypotheses: Họ: H = 174 HA: u < 174 A sample of 79...

    Consider the following hypotheses: Họ: H = 174 HA: u < 174 A sample of 79 observations results in a sample mean of 171. The population standard deviation is known to be 25. (You may find it useful to reference the appropriate table: z table or t table) a-1. Calculate the value of the test statistic. (Negative value should be indicated by a minus sign. Round intermediate calculations to at least 4 decimal places and final answer to 2 decimal...

  • Consider the following hypothesis statement using alpha equals0.05 and data from two independent samples. Assume the...

    Consider the following hypothesis statement using alpha equals0.05 and data from two independent samples. Assume the population variances are equal and the populations are normally distributed. Complete parts a and b. Upper H 0 : mu 1 minus mu 2 equals 0 x overbar 1 equals 14.7 x overbar 2 equals 12.0 Upper H 1 : mu 1 minus mu 2 not equals 0 s 1 equals 2.7 s 2 equals 3.3 n 1 equals 20 n 2 equals 15...

  • Consider the following hypotheses: HO: > 220 HA: U <220 A sample of 72 observations results...

    Consider the following hypotheses: HO: > 220 HA: U <220 A sample of 72 observations results in a sample mean of 209. The population standard deviation is known to be 18. (You may find it useful to reference the appropriate table: z table or t table) a-1. Calculate the value of the test statistic. (Negative value should be indicated by a minus sign. Round intermediate calculations to at least 4 decimal places and final answer to 2 decimal places.) Test...

  • 3. -/3 points MINTROSTAT9 6.E.075. My Notes Ask Your Teacher v Computers in some vehicles calculate...

    3. -/3 points MINTROSTAT9 6.E.075. My Notes Ask Your Teacher v Computers in some vehicles calculate various quantities related to performance. One of these is the fuel efficiency, or gas mileage, usually expressed as miles per gallon (mpg). For one vehicle equipped in this way, the miles per gallon were recorded each time the gas tank was filled, and the computer was then reset. In addition to the computer's calculations of miles per gallon, the driver also recorded the miles...

  • Consider the following hypotheses: Ho: 4 = 150 HA: H < 150 A sample of 80...

    Consider the following hypotheses: Ho: 4 = 150 HA: H < 150 A sample of 80 observations results in a sample mean of 144. The population standard deviation is known to be 28. (You may find it useful to reference the appropriate table: z table or t table) a-1. Calculate the value of the test statistic. (Negative value should be indicated by a minus sign. Round intermediate calculations to at least 4 decimal places and final answer to 2 decimal...

  • Exercise 9-15 Algo Consider the following hypotheses: H0: μ ≥ 130 HA: μ < 130 A...

    Exercise 9-15 Algo Consider the following hypotheses: H0: μ ≥ 130 HA: μ < 130 A sample of 74 observations results in a sample mean of 125. The population standard deviation is known to be 31. (You may find it useful to reference the appropriate table: z table or t table) a-1. Calculate the value of the test statistic. (Negative value should be indicated by a minus sign. Round intermediate calculations to at least 4 decimal places and final answer...

  • Consider the following hypotheses: HO: 220 HA u < 220 A sample of 72 observations results...

    Consider the following hypotheses: HO: 220 HA u < 220 A sample of 72 observations results in a sample mean of 209. The population standard deviation is known to be 18. (You may find it useful to reference the appropriate table: z table or tablet a-1. Calculate the value of the test statistic. (Negative value should be indicated by a minus sign. Round intermediate calculations to at least 4 decimal places and final answer to 2 decimal places.) Test statistic...

  • Exercise Chapter 9 Saved Help Consider the following hypotheses: He: 192 HA < 192 A sample...

    Exercise Chapter 9 Saved Help Consider the following hypotheses: He: 192 HA < 192 A sample of 78 observations results in a sample mean of 182. The population standard deviation is known to be 20. (You may find i useful to reference the appropriate table: z table or table) Book Him a-1. Calculate the value of the test statistic (Negative value should be indicated by a minus sign. Round intermediate calculations at least 4 decimal places and final answer to...

  • Consider the following competing hypotheses and accompanying sample data drawn independently from normally distributed populations. (You...

    Consider the following competing hypotheses and accompanying sample data drawn independently from normally distributed populations. (You may find it useful to reference the appropriate table: z table or t table) Ho: H1-Hu2 0 HA: H1 Hz< e 251 252 s1 39 s=19 n1=7 n 7 a-1. Calculate the value of the test statistic under the assumption that the population variances are equal. (Negative values should be indicated by a minus sign. Round all intermediate calculations to at least 4 decimal...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT