Question: Q2. Create a logical vector that flags all trips where the user returned their bike to the same station where they rented it from. What

Q2. Create a logical vector that flags all trips

Q2. Create a logical vector that flags all trips where the user returned their bike to the same station where they rented it from. What proportion of trips resulted in the user returning their bike to the same station? (2 pts) Q3. Generate a proportion table showing the percentage of sessions that were initiated by subscribers vs. non- subscribers. What proportion of sessions were initiated by subscribers? (2 pts) Q4. Create a variable called trip_minutes that converts the duration of each trip from seconds to minutes. What is the average length of a trip in minutes? What was the length in minutes of the longest trip recorded? (2 pts) Q5. Using the aggregate() command, find the average trip length in minutes among subscribers vs. non- subscribers. (2 pts) Q6. Write the command to create a new variable called weekend that flags all trips that occurred on either Saturday OR Sunday. What proportion of trips occur on the weekend? (2 pts) Q7. Use the aggregate() command to calculate the proportion of trips that occurred on the weekend among subscribers vs. non-subscribers. Provide a clear interpretation of the numbers you see, and answer whether there appears to be a difference in bike usage on weekdays vs. weekends among subscribers vs. non-subscribers? (2 pts) Q8. Using the information found in Q5 and Q7, offer a possible explanation for why you're observing the differences in ride length and weekend vs. weekday usage among subscribers vs. non-subscribers. Why do you think each group might be using the service? (2 pts) Q9. Citi Bike's pricing works as follows: For each session, the user pays a flat fee of $3.50, plus a variable fee of $0.18 per minute. Create a variable called revenue that calculates the revenue generated by each trip. (Tip: use parentheses to ensure the correct order of operations in your calculation.) Then, calculate the total revenue generated each day of the week. On which day has the most revenue been generated, and what is the total amount that has been generated on that day? (2 pts) Q2. Create a logical vector that flags all trips where the user returned their bike to the same station where they rented it from. What proportion of trips resulted in the user returning their bike to the same station? (2 pts) Q3. Generate a proportion table showing the percentage of sessions that were initiated by subscribers vs. non- subscribers. What proportion of sessions were initiated by subscribers? (2 pts) Q4. Create a variable called trip_minutes that converts the duration of each trip from seconds to minutes. What is the average length of a trip in minutes? What was the length in minutes of the longest trip recorded? (2 pts) Q5. Using the aggregate() command, find the average trip length in minutes among subscribers vs. non- subscribers. (2 pts) Q6. Write the command to create a new variable called weekend that flags all trips that occurred on either Saturday OR Sunday. What proportion of trips occur on the weekend? (2 pts) Q7. Use the aggregate() command to calculate the proportion of trips that occurred on the weekend among subscribers vs. non-subscribers. Provide a clear interpretation of the numbers you see, and answer whether there appears to be a difference in bike usage on weekdays vs. weekends among subscribers vs. non-subscribers? (2 pts) Q8. Using the information found in Q5 and Q7, offer a possible explanation for why you're observing the differences in ride length and weekend vs. weekday usage among subscribers vs. non-subscribers. Why do you think each group might be using the service? (2 pts) Q9. Citi Bike's pricing works as follows: For each session, the user pays a flat fee of $3.50, plus a variable fee of $0.18 per minute. Create a variable called revenue that calculates the revenue generated by each trip. (Tip: use parentheses to ensure the correct order of operations in your calculation.) Then, calculate the total revenue generated each day of the week. On which day has the most revenue been generated, and what is the total amount that has been generated on that day? (2 pts)

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 General Management Questions!