The STM in figures: what bus ticket data reveals about Montevideo's transit
An exploratory analysis of open ticket data from Montevideo’s transit system for July 2022: routes, stops, peak hours, operators, fare categories and transfers.
Using 23 million ticket records from Montevideo’s Metropolitan Transport System for July 2022, Ivan Abatte shows which route is the busiest, which stops see the most activity, when ridership peaks and how riders use transfers, and how charts, tables and animations make millions of data points readable.
TABLA DE CONTENIDOS
Have you ever wondered which bus comes most often? Which one is the most crowded on average? Which one makes the most stops?
In this article we answer those questions and many more using open ticket data from Montevideo’s Metropolitan Transport System (STM) for July 2022. The goal is to show how a historical record of sales (in this case, bus tickets) can yield useful conclusions, explain how the business works and point to the main problems to address, using tables, charts and animations that make millions of data points easy to understand.
The available data
We use STM ticket sales data, which is public and published monthly in Uruguay’s open data catalog. Because of its volume (about 20 million tickets are sold each month, which means that on average one in two Montevideo residents rides public transit every day), we work with a single month: July 2022. That rules out some interesting questions, such as whether demand changes by season or whether fewer tickets are sold when the school year ends. But it keeps the analysis manageable in terms of computing time and memory.
The data itself is a table of every ticket sold during the month, including the date and time the passenger bought it, the stop, the route, the passenger type, whether it was a transfer and so on.
Below we show how to turn 23 million records into a series of charts and other tools that summarize them and make them interpretable.
Two clarifications before we start. First, we use “tickets sold” for every type of ticket issued (including transfers and free tickets). Second, every analysis is based on July 2022 data, even when we don’t say so.
With that said, let’s start answering the questions we asked at the beginning.
The most popular routes
Let’s start with the first big question: which route do Montevideo residents use most? How many people ride it? The following chart shows the 10 most used routes and the number of tickets sold on each in July.

The most used route is the 103, with a total of 790,000 tickets sold. Well behind it comes route G, with 630,000 tickets, and the 185 rounds out the top three with 570,000.
The first takeaway is that the 103 is by far the most used bus route, with a considerable lead over its closest competitors, which are much closer to each other. The volumes are also striking: these three routes alone add up to almost 2 million tickets a month.
Just out of curiosity, we can also look at the opposite: the least used routes.

The least popular are mostly local routes, such as the L19, or experimental routes, such as the 135.
Another question is whether this top 10 is the same every day of the week. Are some routes used more on weekends? Are there buses people only take to get to work? To find out, we can rebuild the first chart broken down by day of the week.

At first glance, the most used routes are generally the same every day, except for the last spot: on weekdays it goes to the 307 or the 110, while on Saturdays and Sundays the 137 or the 405 appear. These results could be read in light of each route. Perhaps the 405 shows up on weekends because it runs to Parque Rodó, for example.
The overall top 10 holds almost unchanged from day to day; now we can check whether it holds hour by hour. The next chart shows how demand for these routes evolves throughout the day.

In general, all the top routes follow the same pattern: very few trips overnight (fewer buses are running); demand then rises steadily to a peak at 7 a.m. (people commuting to work), dips a little and peaks again at noon (downtown areas are busy), stays high until the daily peak at 5 p.m. (people heading home) and then declines through the evening.
The 103 keeps its wide lead all day, while others, such as route G, are overtaken after dark. This suggests that some routes are more popular than others at certain times of day, reflecting which parts of Montevideo are busiest at each hour.
These statistics raise an interesting question: how evenly is ridership spread across routes? This is where the Pareto principle comes in, an empirical rule stating that 80% of sales come from 20% of the products available. Applied here, it would mean that 20% of the routes sell 80% of the tickets, while the remaining 80% of routes account for only 20% of sales.
To answer the question we can use a Pareto chart, which shows what share of total monthly sales each percentage of routes represents.

The chart shows that 80% of sales come from 35% of the available routes, a more even distribution than the Pareto principle suggests. It also shows that half of the routes cover 92% of total demand, and that 25% of demand comes from the top 10 routes we analyzed earlier.
To draw direct conclusions from this kind of analysis, however, we would have to assume that Montevideo’s population is evenly distributed across the city, which is not the case: some central areas have a high density of people and services, while others are much less dense and more isolated. That is why the system needs routes that serve the relatively few people on the outskirts, which produces the effect we see in the chart.
The busiest stops
Just as we looked at the most used routes, we can look at the most used stops during the month. Are they on the busiest routes? Are they in central Montevideo? Is any stop far busier than the rest, as happened with the routes? We can answer all of this by analyzing which stops tickets were sold at.
Again, let’s look at the chart.

With a considerable lead over the rest, the busiest stop was Agraciada y Freire, in the viaduct area, one of Montevideo’s main hubs. Route G, the second most used route in the system, stops there. Second is the Portones stop, which is also where route G ends. Next comes Agraciada y Freire again, in the opposite direction, toward Belvedere. After that come some notable stops, such as Punta Carretas Shopping, Montevideo Shopping and the Cerro terminal, where it is easy to see why they make the list.
Beyond the curiosity, this analysis helps identify the busiest parts of Montevideo and where services, offices and other activity are concentrated. Because the data includes the date and time each ticket was issued, we could also see how these areas change throughout the day, whether the city behaves differently at night, or whether people move between areas during the workday. We won’t go that deep in this article, but we will use the time data to explore some specific cases, as we did with the peak hours of the top routes.
The busiest hours and days
Using the date and time of each ticket, we can see which days are busiest in the capital and at what times people ride public transit the most.
The following chart shows the total number of tickets sold during the month by hour, for each day of the week.

Hourly behavior is roughly the same from Monday to Friday (the pattern we saw for the most popular routes), and ticket volumes are very similar on those days, except on Mondays, which show noticeably fewer tickets. Why? Are we much less active on Mondays? Remember that we are analyzing a single month, which had four Mondays, and one of them, July 18, was a public holiday in Uruguay. Very few tickets were sold that day compared with the other Mondays. In another month, Mondays would most likely look much more like the rest of the workweek.
What is clear is that demand is much lower on Saturdays and Sundays. That makes sense, since most people work Monday through Friday, although many also work on Saturdays. That is why Saturday sits well above Sunday, which is by far the least busy day, when most people stay home.
We can also see that at night the busiest days are Fridays and Saturdays, and in the early morning hours, Saturdays and Sundays, which most likely reflects Montevideo’s nightlife, concentrated on weekends.
The largest operators
Another brief but interesting point is how ticket sales are split among the bus companies (CUTCSA, COETC, UCOT and COMESA). Let’s look at the following bar chart.

CUTCSA clearly dominates, with about 64% of the market. The other three companies split the remaining 36% of demand in similar shares.
Riders by fare category
STM cards are issued in different fare categories, such as students, retirees and regular riders. The following table shows how these categories break down.

Most tickets go to regular riders, a little over half of total ridership. Students come next, also with a large share. Then comes the “NO CORRESPONDE” (not applicable) category, which covers riders who pay cash instead of using a card. Retirees and the remaining categories follow.
When some values are much smaller than others, as in this case, a table works better than a chart for showing the magnitude of each value correctly.
Are these percentages the same throughout the day? The following chart answers that.

The mix changes during the day. Regular riders are always the majority, especially in the early morning, when students reach their lowest share of the day. There are other curious findings too: transport-linked riders are almost absent all day except at 3 a.m., when they account for a considerable share.
The same analysis can be done by day of the week. Is the share of students higher on weekdays? What about retirees? Let’s look at the next chart.

Contrary to what we expected, there are no significant changes across days: the proportions stay the same, which is also interesting.
These 9 categories are further divided into subcategories, such as free or paying students, or class A and class B retirees. Others, like regular riders, have no subdivisions. The next chart shows how the subgroups break down within each category (only for categories that have them).

Several analyses could follow, but they would require understanding what each category means and how riders are segmented, which is beyond the scope of this article. We’ll stick to simpler observations: students who ride for free are roughly half of all students, and most riders listed as “VINCULADO AL TRANSPORTE” (transport-linked) are transit workers themselves.
One last question about categories, which we have already crossed with days and hours but not with routes: do some routes carry more riders of a given category than others? For example, which routes have the highest share of students, and which the lowest?
The next table shows, on the left, the 10 routes with the highest share of student tickets and, on the right, the 10 with the lowest. Local routes with few riders were excluded to get more robust and meaningful results.

The route with the highest share of students is the 117. Its path offers an explanation: it runs past several university schools, such as Law, Engineering and Economics, near Architecture and Psychology, and past some large high schools, such as IAVA and Zorrilla.
The 117 reaches almost 30% students, compared with 22% across the whole system. Other routes follow with similar shares, such as the 140 and the 407.
At the other end, the route with the lowest share is the 133, with just 16%, almost as far below the average as the 117 is above it.
Done in more depth, and taking time and day into account, this kind of analysis would show how students move around Montevideo. It could reveal how decentralized the city’s schools are, and even suggest where new ones would improve access.
How riders use transfers
The STM allows transfers: riders can chain several trips on different routes for the price of a single fare, as long as they do it within a set time window.
Most riders who transfer do so for two trips, but there is no limit, and some use it more times. That raises some questions: how common are transfers, and what was the longest chain of transfers?
To answer them we use one of the available fields: the transfer number recorded with each ticket. From it we can build the following chart, showing the number of trips by transfer number.

The chart uses a logarithmic scale, a way to show very large and very small values at the same time. We can also build a table with the percentages.

Both figures show that most riders don’t transfer at all (73% of trips), and among those who do, the vast majority transfer only once. Very few transfer several times, yet some people go beyond 10! What was July’s record? Twenty-four transfers. It was made by a regular rider with a two-hour ticket. Riders with many transfers are most likely street vendors or musicians who board buses to sing or play, buying a two-hour ticket and hopping from bus to bus until it expires.
The most and least frequent routes
We have all felt that the bus we’re waiting for takes too long and should run more often, or that some other bus runs very frequently for the few people it carries.
So in this section we look at how often the different routes run (something we hadn’t covered yet) and how many people they carry by comparison.
The following chart shows the 10 routes with the most buses in the month, along with their total number of riders.

Some routes reappear, but this is not the same top 10 we saw for tickets sold. The most frequent route is the 181, followed by the 183 and the 103, the one with the most riders. The ratio between buses and riders also varies by route: on average, the 181 runs emptier than the 103 because it has fewer riders per bus. The next chart looks at this ratio in more detail, showing the routes with the highest and lowest riders per bus.

The routes with the highest riders per bus are the 306 and route G, with more than 200 tickets per bus recorded in the month (that doesn’t mean everyone rides at once: it is total tickets divided by the number of buses that ran). At the other end are local routes, with between 6 and 18 tickets per bus. This finding ties back to what we saw with the Pareto principle: the centrality of Montevideo and the way services and infrastructure are distributed.
We can also cross this information with the time of day to see how the number of buses in service changes and how well it matches demand. The next chart shows riders and buses throughout the day.

The red bars, riders per hour, show the same pattern we saw earlier. The blue bars, buses in service per hour, follow a similar pattern with some differences. The main one is that although demand drops between 8 a.m. and noon, the number of buses in service stays flat during that period.
Overall, service ramps up sharply from 5 a.m., levels off around 10 a.m., holds until 7 p.m. and then gradually declines.
One conclusion is that, since service is constant from 10 a.m. to 6 p.m. but ridership is not, buses tend to be more crowded in the afternoon than in the morning.
Does that mean frequency should be cut at times like 10 a.m. and increased at times like 6 p.m.? Not necessarily, because many factors not considered here come into play: how each route behaves, geographic coverage, making sure no one is left without service and so on.
A closer look at route 199
As we’ve said, more complex analyses could combine the ones we’ve done. To close, we look at a single route, the 199 (Punta Carretas-Cementerio Norte), and how the use of its stops changes throughout the day. Are the busiest stops always the same? Is any stop used only at certain times?
We also show another data visualization tool: animation, which adds another dimension, usually time. The following animation shows how stop usage evolves throughout the day (outbound stops only).

Overall, the busiest stop is H. Miranda, at Punta Carretas Shopping, but it only takes the lead after midday; in the morning it is less used than others. The origin area (Punta Carretas) is always busier than the destination area (Cementerio Norte), which makes sense given that Punta Carretas is one of Montevideo’s main hubs. Some stops are always less busy than their neighbors, others fluctuate throughout the day and some move as a group, among many other patterns the animation reveals.
What STM data shows, and how carefully to read it
As we said at the start, the goal was to answer some questions we have all asked ourselves and to show the potential of analyzing tabular data through charts, tables and animations. It is tempting to think about how the STM could be improved based on what we’ve seen. But running a system that most of the capital’s population depends on is not simple, so conclusions should be drawn with caution, keeping in mind the thousands of variables involved, as we noted along the way. That doesn’t mean this kind of analysis can’t drive significant improvements: when it is focused correctly, with a clear goal rather than open-ended exploration, it can lead to results that optimize the system.
Finally, although this article focuses on STM data, the same kind of analysis can be applied to almost any structured dataset, to understand the data visually, identify the key factors in a system and even optimize it.
Ivan Abatte
Data & Analytics Consultant