Question

Use R. Provide Solution and R Code within each problem. For this section, use the mtcars...

Use R. Provide Solution and R Code within each problem. For this section, use the mtcars dataset available in R (you do not need to download any packages). Assume that the distribution of weights (wt) are approximately normally distributed within transmission types (am) and the samples are drawn independently.

a.Write the null and alternative hypothesis to determine if the mean weight of cars differs by transmission type in the population.

b.Using = 0.05, conduct a statistical test for the hypotheses in 1. . Interpret your conclusion in the context of the problem.

i.Pvalue

ii.Conclusion

c.Calculate a 95% confidence interval for the difference in the mean weights of cars with automatic transmissions and standard transmissions.

d.Write the null and alternative hypothesis to determine if the mean weight of automatic cars is less than the mean weight of standard transmission cars in the population. e.Using = 0.05, conduct a statistical test for the hypotheses in 4. Interpret your conclusion in the context of the problem.

i.Pvalue

ii.Conclusion

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

a. Let \mu 1 be the mean weight of cars where am =0 and \mu 2 be the mean weight of the cars where am = 1.

The null hypothesis H0 and alternative hypothesis H1 is given by

Ho :μι – μ2 = 0

against

Hul - 2 + 0

(b) We compute two sample t test.

Two Sample t-test

data: data1 and data2
t = 5.2576, df = 30, p-value = 1.125e-05
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
0.8304317 1.8853577
sample estimates:
mean of x mean of y
3.768895 2.411000

(i) p-value = 1.125e-05

(ii)A p-value less than 0.05 (typically ≤ 0.05) is statistically significant. It indicates strong evidence against the null hypothesis, as there is less than a 5% probability the null is correct (and the results are random). Therefore, we reject the null hypothesis, and accept the alternative hypothesis

c. .95 percent confidence interval:
0.8304317 1.8853577

(d)

The null hypothesis H0 and alternative hypothesis H1 is given by

Ho :μι – μ2 = 0

against

H, :μι – μ2 > 0

Two Sample t-test

data: data1 and data2
t = 5.2576, df = 30, p-value = 5.627e-06
alternative hypothesis: true difference in means is greater than 0
95 percent confidence interval:
0.9195388 Inf
sample estimates:
mean of x mean of y
3.768895 2.411000

(i) p-value = 5.627e-06

(ii) A p-value less than 0.05 (typically ≤ 0.05) is statistically significant. It indicates strong evidence against the null hypothesis, as there is less than a 5% probability the null is correct (and the results are random). Therefore, we reject the null hypothesis, and accept the alternative hypothesis.

The R code is attached.

- 0 X RRGI (64-bit File Edit Packages Windows Help Untitled - R Editor attach tears) detal<- subset (mt cars, 0, w)) data

Add a comment
Know the answer?
Add Answer to:
Use R. Provide Solution and R Code within each problem. For this section, use the mtcars...
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
  • When 40 people use the Weight Watchers diet for one year, their mean weight loss was...

    When 40 people use the Weight Watchers diet for one year, their mean weight loss was 3.0 pounds. Historically the standard deviation is σ = 4.9 pounds (based on data from “Comparison of the Atkins, Ornish, Weight Watchers, and Zone Diets for Weight Loss and Heart Disease Reduction,” by Dansinger, et al., Journal of the American Medical Association, Vol. 293, No. 1). Use a 0.01 significance level to test the claim that the mean weight loss is greater than 0....

  • please help me to solve this problem below Problem 2: Pizza Prices in Different Cities (no...

    please help me to solve this problem below Problem 2: Pizza Prices in Different Cities (no data set in StatCrunch)- A food blogger is interested in comparing the price of pizzas available for purchase in New York City to those available in Washington, D.C. To do so, they collected a random sample of 30 large cheese pizzas from each of the cities. The New York pizzas had an average price of S12.83 with a standard deviation of $4.45. The Washington,...

  • READ THE DIRECTIONS PLEASE 6) Make your own word problem of the form of this problem. Your word problem should apply directly to biology major. State the null and alternative hypotheses and alpha (α)...

    READ THE DIRECTIONS PLEASE 6) Make your own word problem of the form of this problem. Your word problem should apply directly to biology major. State the null and alternative hypotheses and alpha (α) . (Since you don’t have any data, you need not actually conduct the hypothesis test). Please make a word problem stated above and answer all the parts based on the question below. 2 A data set includes data from student evaluations of courses. The summary statistics...

  • Use SPSS and work the difference of two means problem Your task is to determine if...

    Use SPSS and work the difference of two means problem Your task is to determine if Weight Lifters of Group B have more weight gain than Weight Lifters of Group A. Translate your computer readout into the 6 step hypothesis testing model. Test the assumption at 5% error. Remember, is this a one-tailed or two-tailed alternative hypotheses? What type of test does SPSS conduct (one or two- tailed)? Pay attention to your critical value. Weight Gain Weight Lifters - Group...

  • Problem 2: Pizza Prices in Different Cities (no data set in StatCrunch) A food blogger is...

    Problem 2: Pizza Prices in Different Cities (no data set in StatCrunch) A food blogger is interested in comparing the price of pizzas available for purchase in New York City to those available in Washington, D.C. To do so, they collected a random sample of 30 large cheese pizzas from each of the cities. The New York pizzas had an average price of $12.83 with a standard deviation of $4.45. The Washington, D.C. pizzas had an average price of $10.71...

  • Homework 5, STAT 33001 Due April 9, 2019 For problems with R, include the R-code and the output f...

    Homework 5, STAT 33001 Due April 9, 2019 For problems with R, include the R-code and the output from R with answers For test of hypothesis problems, if it is not specified, include the null- and alternative hy- pothesis, test statistic, critical value or P-value, and conclusion Learning Outcomes from this assignment: .Students will be able to perform hypothesis testing for one and two samples. Students will be able to perform hypothesis testing for paired samples. . Students will be...

  • Homework 5, STAT 33001 Due April 9, 2019 For problems with R, include the R-code and...

    Homework 5, STAT 33001 Due April 9, 2019 For problems with R, include the R-code and the output from R with answers For test of hypothesis problems, if it is not specified, include the null- and alternative hy- pothesis, test statistic, critical value or P-value, and conclusion Learning Outcomes from this assignment: .Students will be able to perform hypothesis testing for one and two samples. Students will be able to perform hypothesis testing for paired samples. . Students will be...

  • document or pdf with your answer. Your solution to each problem must have the following: •...

    document or pdf with your answer. Your solution to each problem must have the following: • The null and alternative hypotheses with the appropriate symbols. • The significance level of the test. If it is not given use a significance level of 0.05. • The P-value for the test. • State whether you reject or fail to reject the null hypothesis. In other words, compare the P-value to the significance level to decide whether to reject or fail to reject...

  • 21. In a certain chemical process, it is very important that a particular solution that is...

    21. In a certain chemical process, it is very important that a particular solution that is to be used as a reactant have a pH of exactly 8.2. A method for determining pH that is available for solutions of this type is known to that are normally distributed with a mean equal to the actual pH. Suppose 10 ylelded the following pH values: 8.18,8.21, 8.17,8.22, 8.16, 8.16, 8.17, 8.19, give 8.15, 8.18 Fill in the blanks. Use ? = 0.05....

  • 1. Formulate the indicated conclusion in nontechnical terms. Be sure to address the original claim. Choose...

    1. Formulate the indicated conclusion in nontechnical terms. Be sure to address the original claim. Choose the best conclusion. The owner of a football team claims that the average attendance at games is over 523, and he is therefore justified in moving the team to a city with a larger stadium. Assuming that a hypothesis test of the claim has been conducted and that the conclusion is failure to reject the null hypothesis, state the conclusion in nontechnical terms. a....

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