MGSC 291 Project 2 --- Hypothesis Testing and P-values
1. (1 point) Paste the output of the t-test here.
2. (6 points) In one sentence, interpret (state the conclusion for) the results of the test from (1).
3. (3 points)
a. Comment on the shape you see for each QQplot in one short sentence.
b. State whether the assumption we are using the QQplots to check is met or violated and why you reached that conclusion using only one short sentence.
4. Paste the R code and QQplots used for (1) and (3a) here. Do not include errors. (I should be able to paste your R code into my R console and the code should run.) *Note, if you do not paste your R code here, you will not receive credit for the project.
This is a group project of up to 4 members.?You must be in a group.?If you wish to keep the same group from the Data Visualization Project, you do not need to do anything. If you wish to change groups from the Data Visualization Project, click People on the left navigation, then the "Groups" tab and choose an available Project 2 group to join (make sure to let your prevous group members know you are leaving and ask permission of the new group before joining).
For this project, you are free to use your textbook, homework, in-class examples and lectures, other class materials, and the internet. However, you cannot discuss or share analysis, share Excel worksheets, R code, or discuss any of the project deliverables with students outside of your group. Working with students outside of your group will be?considered cheating?and will be dealt with as outlined in the syllabus.
Background and Data
The data are observations, from the Nielsen Home-Scan database, regarding light beer purchases in the US.?.
lightbeer.csv contains:
household: an identifier of the purchasing household
upc description: details on the purchased item (e.g., a 6-pack)
quantity: the number of items purchased
beer brand: Bud Light, Busch Light, Coors Light, Miller Lite, or Natural Light.
beer spend: total dollar value of purchase.
beer floz: total volume of beer, in fluid ounces.
price floz: price per fl.oz. (i.e., beer spend/beer floz)
container descr: the type of container.
promotion Whether the item was promoted (coupon or otherwise).
market: Scantrack market (or state if rural)
demographic data, including buyer type (married couple, male, or female), income, occupation, education, age, and whether the household has a dishwasher or a microwave.
Data
Use the following line of code to read the data into your R console.
lb<-read.csv("https://raw.githubusercontent.com/TaddyLab/MBAmaterials/master/homework/lightbeer/LightBeer.csv",header=TRUE)
Task:?Carry out the 2-sample t-test for the total dollar amount of purchase for those without cable TV versus those who have cable TV. Use a non-directional alternative. Create QQplots for each sample using R and check the assumption that can be checked using those plots.
Note:?Make sure to thoroughly read and work through the R help pages up through? titled "t.test() and test for proportions" and understand lecture examples before asking for help finishing this project.?If you ask for help with R code that is covered in the R help pages or something that was covered in lecture notes, you will be referred to review that material.?
Good luck!
版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。