Taxi prices around the world

2014-01-09 4 min read

    I initially set out to add some visualizations to an earlier post comparing taxi fares between NYC and Mumbai based on some reader suggestions. After a few visualizations, I wasn’t discovering anything new and decided add taxi fare data from other cities to make it more interesting. I ended up simulating rides in different cities on worldtaximeter.com and combining that with the data from taxiautofare.com and www.numbeo.com in order to break down each city’s fare into a base fare, the included distance, the rate per local distance unit, and the rate per minute. Since each city’s fare came in local units I also had to convert to miles (sorry world) and US dollars (sorry again). Using R we generate the fares for the various combinations of distances and stoppage times and start diving into the data. As usual, the data and code are up on GitHub with contributions, corrections, and suggestions welcome. I’d also love to get the real rates for the cities so either do a pull request or let me know what they are in the comments and I’ll update the post.

    CityBaseInc DistPer DistPer MinDist CvrFare Cvr$ Base$ per Mile$ per MinRatio$ per Hr
    New York2.500.002.500.501.001.002.502.500.505.0030.00
    Mumbai19.001.5012.350.501.610.020.320.330.0139.770.50
    London2.202.001.700.521.611.643.614.490.855.3150.71
    Amsterdam2.660.001.950.321.611.363.624.270.449.8126.11
    Tokyo712.000.00188.0056.001.610.016.842.910.545.4132.26
    Aberdeen2.400.901.100.371.611.643.942.900.614.7936.41
    Austin2.540.201.300.671.611.002.542.090.673.1240.20
    Baltimore1.800.151.360.441.611.001.802.190.444.9826.40
    Barcelona2.050.000.980.381.611.362.792.150.524.1531.01
    Berlin3.000.001.580.411.611.364.083.460.566.2033.46
    Boston2.600.231.730.541.611.002.602.790.545.1632.40
    Chicago2.250.181.110.371.611.002.251.790.374.8322.20
    Dublin4.091.001.030.371.611.365.562.260.504.4830.19
    Edinburgh3.000.521.200.361.611.644.923.170.595.4135.13
    Ibiza3.250.000.980.351.611.364.422.150.484.5128.56
    Las Vegas3.300.001.490.531.611.003.302.400.534.5331.80
    Los Angeles2.850.181.670.501.611.002.852.690.505.3830.00
    Madrid2.040.000.980.321.611.002.041.580.324.9319.20
    Malaga1.420.000.840.341.611.361.931.840.463.9827.74
    Mallorca3.000.000.800.291.611.364.081.750.394.4423.66
    Manchester2.350.431.000.281.611.643.852.640.465.7527.55
    Melbourne3.200.001.611.041.610.892.852.310.932.4955.54
    Montreal3.450.001.700.631.610.933.212.550.594.3435.15
    New Delhi40.000.0015.001.671.610.020.670.400.0314.461.67
    Paris2.200.001.140.751.611.362.992.501.022.4561.20
    Rome2.800.001.520.441.611.363.813.330.605.5635.90
    San Diego2.500.001.670.461.611.002.502.690.465.8527.60
    San Francisco3.100.001.390.471.611.003.102.240.474.7628.20
    Seattle2.500.161.550.521.611.002.502.500.524.8031.20
    Sydney3.400.002.060.911.610.893.032.950.813.6448.59
    Toronto4.250.141.740.531.610.933.952.610.495.2929.57
    Vancouver3.201.001.850.501.610.932.982.770.475.9627.90
    Washington DC3.000.000.930.261.611.003.001.500.265.7615.60
    Zurich6.000.003.801.151.611.106.606.731.275.3275.90
    Beijing13.003.002.300.301.610.172.210.630.0512.343.06
    Shanghai14.000.002.400.501.610.172.380.660.097.735.10
    Moscow245.000.0026.5314.001.610.037.351.280.423.0525.20
    Bangkok35.000.006.001.671.610.031.050.290.055.783.01
    Buenos Aires1.810.001.000.181.611.001.811.610.189.2010.50
    Cairo2.500.001.250.281.610.140.350.280.047.192.35
    Dhaka250.000.0035.004.171.610.013.250.730.0513.513.25
    Istanbul2.800.001.730.331.610.461.291.280.158.449.11
    Jakarta6000.000.003550.00500.001.610.000.490.470.0411.432.46
    Lagos3.320.003.060.161.611.003.324.930.1631.589.36
    Manila50.000.0013.601.751.610.021.100.480.0412.512.31
    Rio de Janeiro4.700.001.700.371.610.421.971.150.167.389.35
    Seoul2800.000.001050.00206.001.610.002.631.590.198.2111.62

    Using this information we can run a few interesting analyses:

    • Heatmap of the fares as a function of time and distance by city 4th

      USD per minute vs USD per mile. The most obvious check is to see the most and least expensive cities by the two dimensions we have - distance and time. The results are expected - Asian and African cities tend to be the least expensive and European cities being the most expensive. Within Asia there's pretty significant variance with South and Southeast Asia being the cheapest but Seoul and Tokyo being more expensive. A city that stood out was Lagos - it has the one of the lowest per minute fares but one of the largest per mile fares. I don't know why this is the case but I suspect it has something to do with t sure why this is the case other than the roads being in poor condition and the price needing to take that into account.

    • Heatmap of the fares as a function of time and distance by city 4th

      Keep time fixed at 10 minutes but vary distance. The idea here is to look at how quickly the prices increase by distance for different cities. This echoes the previous chart of Europe and Lagos having the highest per mile fares.

    • Heatmap of the fares as a function of time and distance by city 4th

      Keep distance fixed at 4 miles but vary time. Similar to the previous plot but look at the way price will increase as a function of time. Not much new data here.

    • Heatmap of the fares as a function of time and distance by city 4th

      What does $10 get you? Another way to look at expenses is to see the maximum time and distance $10 will get you in different cities. This is similar to looking at the inverse of the per minute and per mile prices.

    • Heatmap of the fares as a function of time and distance by city 4th

      What does $10 get you (zoomed)? This zooms in the bottom left corner of the previous plot. Turns out that having $10 in an expensive city doesn't go very far.

    • Heatmap of the fares as a function of time and distance by city 4th

      Ratio of $ per mile vs $ per minute. The goal was to see how many times a mile was more expensive than a minute for the different cities. The reason we see such high ratios is that the price of gas has a lower variance from city to city than the cost of labor - this leads to cities with low labor casts having significantly higher ratios.

    • Heatmap of the fares as a function of time and distance by city 4th

      Heatmap of fares as a function of time and distance. I wanted this to be a bit more insightful in order to be able to compare all cities against each other across both dimensions but the extreme differences make it difficult to visualize. This highlights once more how expensive Zurich is compared to the other cities. The heatmaps below cluster the cities by the sum of price per mile and price per minute in order to visualize them along similar price scales.

    • Heatmap of the fares as a function of time and distance by city 4th

      Heatmap of the fares as a function of time and distance by city (1st quartile).

    • Heatmap of the fares as a function of time and distance by city 4th

      Heatmap of the fares as a function of time and distance by city (2ng quartile).

    • Heatmap of the fares as a function of time and distance by city 4th

      Heatmap of the fares as a function of time and distance by city (3rd quartile).

    • Heatmap of the fares as a function of time and distance by city 4th

      Heatmap of the fares as a function of time and distance by city (4th quartile).