Project Demo

Investigation into Chicago taxis

Author

Phoebe

Packages

Description

A taxi is a type of vehicle for hire with a driver. Often seen as a yellow vehicle, taxi drivers charge passengers money to transport them from one place to another. These data contain information on a subset of taxi trips in the city of Chicago in 2022. For example, it may be reasonable to think the longer the taxi ride is, the more likely a passenger is to tip. If someone is considering working for a taxi company, they may wonder if one company tends to get more tips than the others.

Research Questions:

  1. Is there there a relationship between the distance (in miles) someone travels in a taxi and if they tip or not?

  2. Do taxi passengers tend to tip more for the company Chicago Independents than the other companies?

Question 1

Is there there a relationship between the distance (in miles) someone travels in a taxi and if they tip or not?

`geom_smooth()` using formula = 'y ~ x'

Conclusion:

The analysis shows a significant relationship between the distance traveled in a taxi and the likelihood of receiving a tip. Longer taxi trips consistently show a higher probability of tipping, as evidenced by logistic regression and supported by box and violin plot distributions. These findings suggest that passengers are more inclined to tip on longer journeys, likely due to the higher fares and increased service satisfaction over extended trips.

Question 2

Do taxi passengers tend to tip more for the company Chicago Independents than the other companies?

# A tibble: 2 × 4
  company_group        Mean_Distance Median_Distance SD_Distance
  <chr>                        <dbl>           <dbl>       <dbl>
1 Chicago Independents          7.08            2.09        7.57
2 Other Companies               6.15            1.75        7.36

Conclusion:

Based on the analysis of the provided data, it appears that there is a difference in tipping behavior between the company Chicago Independents and other taxi companies. Specifically, the data indicates that passengers tend to tip more frequently when riding with Chicago Independents compared to other companies.

The comparison shows that the tipping percentage for Chicago Independents is approximately 94.8%, whereas for other companies it is around 91.8%. This suggests that passengers are slightly more inclined to leave a tip when they use the services of Chicago Independents.

Factors to Consider:

Service Quality: It could be inferred that Chicago Independents may offer better service, leading to higher tips.

Customer Satisfaction: High tipping rates could also suggest greater customer satisfaction with Chicago Independents.

Company Policies: Differences in tipping could be influenced by company policies regarding driver interaction, fare rates, or other service-related factors.