Question
Note: Please include both R codes and results in your report. (You may use the Compile Report function under Menu File in RStudio to generate
Note: Please include both R codes and results in your report. (You may use the "Compile Report" function under Menu "File" in RStudio to generate a Word/PDF report)
Question : Compare Groups (40 points)
Read the data marketing_campaign.csv in R. Assume the data is a random sample from a population and each row represents a customer, answer the following questions.
https://1drv.ms/x/s!Aocj0hn12M9m6nluf17ZIW-FpqSH?e=N3SQyJ
(a) Make a subset in which the variable Education only contains "Graduation", "Master" , and "PhD" values, and the variable Marital_Status only contains "Single" and "Married" values. Check how many observations left in the subset. Use the subset to answer the following questions.
(b) Which education group has the highest number of customers? Which education group has the highest marriage rate?
(c) Conduct a statistical test to explore whether the number of customers is the same across education groups. What is the null and alternative hypothesis? What is your conclusion based on the result?
(d) We'd like to know whether Marital_Status is related with Education. What is the null and alternative hypothesis? What is your conclusion based on statistical test?
(e) What is the marriage rate in general? Given the observed marriage rate, can we say that in the population the true marriage rate is 60%? Why?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started