Programming Homework Help

Suffolk University Distribution of visitPurpose Questions

 

I’m working on a r discussion question and need an explanation and answer to help me learn.

1.Find the average distance traveled by customers based on their eliteStatus rank. Which rank traveled on average the highest distance?

2.Find the average distance traveled by customers based on their visitPurpose. What types of customers based on their purpose of visit traveled on average the highest distance?

3.Combine #1 and #2 in the same function and find out what kind of customer (based on their elite Status rank and visitPurpose) traveled on average the highest distance?

4.What kind of customer (based on their eliteStatus rank and visitPurpose) had total highest number of nightsStayed?

5.What is the relationship between avgWifiSpendPerNight and satWifiPrice based on each eliteStatus rank? Please use visuals to explain the relationship grouped by each eliteStatus rank [in this question, we are trying to understand the relationship between how much a customer on average spend on Wifi and their satisfaction with its pricing]

6.Please use a visual to evaluate the relationship between avgRoomSpendPerNight & avgWifiSpendPerNight & avgFoodSpendPerNight per eliteStatus [in this question, we are trying to understand whether there is any pattern in spending and membership status]

7.Please use the density plot function to evaluate the customers’ avgRoomSpendPerNight based on their eliteStatus. What do you see? Critically evaluate.

8.Create a visual that demonstrates the proportion of visitPurpose in each eliteStatus rank. Please evaluate the output. [in this question we would like to the see the distribution of visitPurpose in each eliteStatus rank.

9.Check the boxplot to see the distribution of avgRoomSpendPerNight per eliteStatus

10.Create a visual that shows the bw plot version of the relationship between avgFoodSpendPerNight and eliteStatus based on each visitPurpose.

11.Create a visual that shows the box plot version of the relationship between avgRoomSpendPerNight and eliteStatus based on each visitPurpose.