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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!