1Introduction and Problem Statement
Goal
The price of a ride in a ride-hailing service depends on the data collected about the ride, including the distance traveled, the ride duration, and GPS data. When a ride is ordered, the customer is shown an upfront price based on the predicted distance and duration. The actual ride can differ from the prediction, and some customers contact customer support after the ride to complain that the price charged was too high.
The goal of this work is to analyze customer support tickets related to overcharging and to identify the attributes and situations in which such complaints occur more often. The goal of the analysis is to find the main opportunities for reducing the number of overcharge tickets.
The goal of the technical part is to prepare the raw data for analysis, check data quality, build a dimensional model in PostgreSQL, and build an analytical model, measures, and visualizations in Power BI.
Relevance
Overcharge complaints matter to the company both for customer experience and for operational efficiency. Identifying the attributes and situations associated with complaints helps to better understand possible problem areas in pricing, ride predictions, and ride data quality. The results can be used to investigate these problem areas in more detail and to find ways to reduce overcharge complaints.
Research Questions
The five questions move from where the problem is to what interventions to make. Questions 1–4 look for factors from different angles; question 5 brings them together.
-
Answers the question: WHERE is the problem?
Question 1. In which ride categories are overcharge tickets disproportionately frequent?
- Goal
- Identify which ride segments the overcharge problem is most concentrated in, and what further analysis should focus on.
- We analyze
- EU vs non-EU
- segment share and overcharge ticket rate
- Analyst
- Felena Sooaluste
-
Answers the question: WHAT in the ride itself distinguishes problem rides?
Question 2. Which differences between the ride and the prediction are associated with a higher likelihood of an overcharge ticket?
- Goal
- Identify which differences between the predicted and the actual ride are most strongly associated with overcharging.
- We analyze
- actual vs predicted distance (deviation and direction)
- actual vs predicted duration (deviation and direction)
- ride length and duration
- time, if needed
- Analyst
- Raiko Karpov
-
Answers the question: WHAT KIND OF PRICING comes with the problem?
Question 3. Which pricing factors are associated with a higher likelihood of an overcharge ticket?
- Goal
- Find pricing conditions that the company can influence at the product or system level.
- We analyze
- price type:
predictionvsupfront - price deviation on upfront-price rides
- destination change
- reason for price change and who entered the address (
change_reason_pricing,entered_by) - combinations of pricing factors
- price type:
- Analyst
- Liis Normak
-
Answers the question: WHAT TECHNICAL CONDITIONS come with the problem?
Question 4. Which technical factors are associated with a higher likelihood of an overcharge ticket?
- Goal
- Find technical conditions that the company can influence at the product or system level.
- We analyze
- GPS confidence (
gps_confidence) - rider and driver app version
- device
- their combinations, if needed
- GPS confidence (
- Analyst
- Hannes Seeberg
-
Answers the question: WHAT should be prioritized based on the results?
Question 5. Our proposals for reducing overcharge tickets
- Goal
- Identify problem areas that are high-risk but also large enough in volume that fixing them could reduce the total number of overcharge tickets.
- Analysts
- Raiko KarpovLiis NormakHannes SeebergFelena Sooaluste
Business Terms
| Term | Estonian term | Meaning |
|---|---|---|
| Ride | Sõit | One ride linked to an order. |
| Predicted distance | Prognoositud distants | The ride distance predicted at the time of ordering, based on the pickup and destination entered. |
| Actual distance | Tegelik distants | The distance actually traveled during the ride. |
| Predicted duration | Prognoositud kestus | The ride duration predicted at the time of ordering. |
| Actual duration | Tegelik kestus | The actual duration of the ride. |
| Upfront price | Eeldatav hind | The estimated price shown to the customer before the ride, based on the predicted distance and duration. |
| Metered price (final price) | Lõpphind | The price calculated from the actual ride parameters. |
| Overcharge ticket | Hinnakaebus | A customer support ticket in which the customer complains that the price charged for the ride was too high. |
| Overcharge ride | Hinnakaebusega sõit | A ride whose order has at least one overcharge ticket. One order can have several customer support tickets, but the analysis counts such a ride as one overcharge ride to avoid counting the same ride more than once. |
| GPS confidence | GPS-ühenduse kvaliteet | An indicator of GPS connection quality, where 1 means a good and 0 a poor GPS connection. |
| Distance deviation | Distantsi hälve | The relative difference between the actual and the predicted ride distance. |
| Price deviation | Hinnahälve | The relative difference between the final price and the upfront price. |
2Data Sources and Data Flow
Origin
The analysis is based on an anonymized ride-hailing dataset. It contains data on rides, orders, pricing, devices used, app versions, and customer support tickets.
The data comes from a ride-hailing provider that shares it as a Google Sheets file with candidates for a product manager position. The data may not be fully reliable: some business and ride data has been removed from the file.
The dataset contains only completed rides that have a customer support ticket. The results therefore do not describe all of the ride-hailing provider's rides.
Among other things, the raw dataset contains the following attributes:
- order and ride identifiers
- actual and predicted ride distance and duration
- upfront price and metered (final) price
- GPS confidence
- ride and order state
- number of destination entries and changes
- attributes related to pricing and price changes
- rider and driver app versions
- device data
- EU / non-EU indicator
- fraud score
- customer support ticket identifier
- overcharge ticket indicator (overpaid ride ticket)
To ensure confidentiality, the actual name of the dataset or of the company it comes from is not used in the project or in the Git repository.
Raw file in Google Sheets
Excerpt: first 25 rows, columns A–J
upfront_price).Data Flow Diagram
The data's path from raw file to dashboard
Main data processing stages: Python, PostgreSQL, and Power BI
-
Python / Jupyter Notebook
- Input
- Raw datasetCSV file, 4,943 rows
- Done
- data cleaning
- initial quality checks
- saving the cleaned CSV
- Output
- Cleaned CSV
-
PostgreSQLSQL / DBeaver
- Input
- Cleaned CSV
- Done
- loading data into the database
- building the dimensional model
- checking keys and relationships
- Output
- Fact and dimension tables
-
Power BIPower Query, DAX
- Input
- Fact and dimension tablesvia the PostgreSQL connector
- Done
- cleaning up field names
- DAX measures and additional analytical fields
- Output
- Power BI analysis and dashboard
takso_andmed_clean.csv, not from the Power BI model.The raw data was first cleaned and checked in Python in a Jupyter Notebook and saved as a cleaned CSV file. The data was then loaded into PostgreSQL, where fact and dimension tables were created with SQL in DBeaver and the model's keys and relationships were checked. Power BI reads these tables via the PostgreSQL connector. Field names were cleaned up in Power Query, and measures and analytical fields were added with DAX.
Dimensions in the SQL Database
A dimensional model was built in PostgreSQL for the analysis. Its central fact table is fact_rides. The fact table is linked by keys to the date, device, app version, pricing context, and order dimensions. Customer support tickets are in a separate fact_tickets table and are linked to rides via dim_order.
Why dim_order matters
dim_order is central to the model: it links ride data to customer support tickets at the order level. This makes it possible to analyze whether an order had at least one overcharge ticket without counting orders with several tickets more than once.
Star schema: facts, dimensions, and keys
Select a table to see its description and relationships. The arrow shows the relationship from the dimension to the fact table.
Show as table
Table Grain
The tables of the dimensional model have different levels of detail. The grain of each table defines what one row of the table represents.
| Table | Grain |
|---|---|
| Fact tables | |
fact_rides | 1 row = ride (one order = one ride) |
fact_tickets | 1 row = customer support ticket |
| Dimensions | |
dim_order | 1 row = unique order |
dim_date | 1 row = date |
dim_device | 1 row = unique device |
dim_app_version | 1 row = combination of rider and driver app versions |
dim_pricing_context | 1 row = unique combination of pricing context |
The different levels of detail matter mainly when joining rides and tickets. One order can have several tickets. If tickets were counted directly in the ride analysis, the same order would be counted more than once.
To avoid this, an order-level attribute was created in the dim_order table that shows whether the order had at least one overcharge ticket. This makes it possible to analyze overcharge tickets at the order level, regardless of how many tickets the order has.
Text based on the group's description; terms aligned with the glossary on this page.
Column Descriptions
The columns are grouped by the stages of the rider's journey: when the value is created.
-
start
Booking
The rider orders a car and sees the price.
upfront_pricenumber- Upfront price: the price shown to the rider before the ride. Calculated from the predicted distance and duration.
predicted_distancenumber- Predicted distance based on the pickup and drop-off locations entered by the rider.
predicted_durationnumber- Predicted duration based on the pickup and drop-off locations entered by the rider.
prediction_price_typetext- Prediction type. «upfront», «prediction»: before the ride. «upfront_destination_changed»: after the destination was changed during the ride.
entered_bytext- Who entered the address: the rider, the driver, or a reseller.
calc_createddate and time- Time the order was created.
-
en route
Ride
The car is driving; the route and destination may change.
distanceinteger- Actual distance traveled (m).
durationinteger- Actual ride duration (s).
gps_confidenceinteger- GPS connection: 1 = good, 0 = poor.
dest_change_numberinteger- Number of destination changes by the rider and the driver, including the initial entry. The minimum value is 1.
-
end
End and Billing
The ride ends and the final price is calculated.
metered_pricenumber- Final price: the price of the actual ride.
change_reason_pricingtext- Whose action changed the price: the driver or the rider changed the destination or a stop. Empty in 94% of rows.
b_statetext- Ride state. «finished» = the ride took place. «finished» in all rows.
order_statetext- Order state. «finished» in all rows except one, which is «active».
order_try_statetext- Order try state. «finished» in all rows.
-
after
Ticket
The rider contacts customer support.
overpaid_ride_ticketinteger- Whether the rider complained that the ride price was too high (overcharge ticket): 1 = yes.
ticket_id_newinteger- Customer support ticket ID. One row = one ticket.
fraud_scorenumber- The rider's fraud score. The higher it is, the more likely the rider is committing fraud. Empty in 56% of rows.
Across the whole journey: identifiers and context
order_id_newinteger- Order ID.
order_try_id_newinteger- Order try ID.
eu_indicatorinteger- Whether the ride took place in the EU: 1 = yes, 0 = no.
device_nametext- Phone model.
driver_device_uid_newinteger- Device ID of the driver's phone.
rider_app_versiontext- App version on the rider's phone.
driver_app_versiontext- App version on the driver's phone.
device_token, device_token_new–- Device token ID. All values empty; not included in the cleaned file.
Columns added during cleaning (8)
| Column | Type | Meaning |
|---|---|---|
date, time | date, text | Date and time of creation, as separate columns. |
day_of_week, day_of_week_nr | text, integer | Day of the week and its number (Monday = 1, Sunday = 7). |
month, year | integer | Month and year. |
is_invalid_ride | Boolean | Invalid ride: the distance traveled is 0. |
fraud_score_status | text | Fraud score class: Negative, Zero, Positive, Missing. |
Volume and Profile
The raw dataset has 4,943 rows and 4,166 unique orders. The difference is because one order can have several tickets. The maximum number of tickets for one order is six.
The grain check found no order with more than one distinct order try ID (order_try_id).
| Metric | Orders (4,166) | Rows (4,943) |
|---|---|---|
| Period | Feb 2 – Mar 13, 2020 (41 days) | |
| Ride in the EU | 59.6% 2,484 | 56.0% 2,770 |
| Ride outside the EU | 40.4% 1,682 | 44.0% 2,173 |
Poor GPS (gps_confidence = 0) | 18.3% 762 | 19.9% 985 |
| With overcharge ticket | 7.4% 309 | 6.8% 337 |
| State «finished» | 4,165 1 «active» | 4,942 1 «active» |
The analysis uses order-level counts. The row level shows how much double counting would skew the numbers. Ride state (b_state) and order try state are «finished» in all rows; order state has one exception («active»).
To profile the dataset in more detail, the following metrics are also described in relation to overcharge tickets:
- share of EU and non-EU rides;
- share of
gps_confidence= 0; - pricing-related metrics;
- actual and predicted distances and durations.
Orders per day by region
All 4,166 orders, Feb 2 – Mar 13, 2020
- EU
- Non-EU
Show as table
3Data Processing
Data Protection During Loading
The raw dataset used for the analysis was anonymized. It contained no customer names or other directly identifying personal data. The analysis used technical identifiers that made it possible to link data on rides, orders, and customer support tickets.
To ensure confidentiality, the actual name of the dataset or of the company it comes from is not used in the project files or in the Git repository.
Data Quality
During data preparation, the main checks were key uniqueness, table grain, correctness of relationships between tables, and possible risks of double counting.
An important structural issue was the different grain of orders and customer support tickets. The raw dataset had 4,943 rows but 4,166 unique orders. One order could have several customer support tickets, and the maximum number of tickets found for one order was six. Counting tickets directly in the ride analysis would therefore count the same order more than once.
To avoid this, the order-level attribute had_overpaid_ride_ticket was created in the dim_order table. It shows whether the order had at least one overcharge ticket. This makes it possible to analyze overcharging at the order level, regardless of the number of tickets linked to one order.
During data preparation, the following were also checked:
- that dimension table keys match the keys in the
fact_ridestable; - that order-related attributes are unique per
order_key; - that
order_stateandorder_try_statevalues match before adding them to thedim_ordertable; - that
order_try_id_newis unique per order; - that
calc_created(order creation time) is unique per order; - that values in the fact and dimension tables match after the attributes were moved.
These checks found no value mismatches, and the checked dim_order fields had no missing values.
The raw data also had the columns device_token and device_token_new, but because they were always empty, they were removed from further analysis. Some columns were only partly filled. Given the volume and importance of this data, it was kept and analyzed carefully afterwards, taking its limitations into account.
Anomalies and Limitations
Shares are calculated from 4,943 rows.
| Finding | Rows | Why it matters | What was done |
|---|---|---|---|
Device token missing device_token | 4,943 (100%) | No analytical value. | Excluded. |
Price change reason missing change_reason_pricing | 4,645 (94.0%) | Too sparse to be a main explanatory attribute. | Kept; not used as a main analytical attribute because so much is missing. |
Fraud score missing fraud_score | 2,759 (55.8%) | Too much missing for a simple comparison. | Missing values were marked «Missing» in the helper column fraud_score_status. |
Upfront price missing upfront_price | 1,534 (31.0%) | Structural: rides with «prediction» pricing and rides with a changed destination have no upfront price. | Excluded from the price deviation calculation, because price deviation cannot be calculated without an upfront price. |
| Final price and predictions missing | 20 (0.4%) | The same 20 rows are missing in all four columns. Excluded from ratios. | Marked as «ghost rides»; excluded from pricing and prediction analyses. |
Order ID repeats order_id_new | 777 (15.7%) | 4,943 rows = 4,166 orders. A row is a ticket, not a unique ride. | The analysis was aggregated to the ride (order) level so that the same order is not counted more than once because of multiple tickets. |
| Order ID and order try ID differ | 58 (1.2%) | Checked: each order has exactly one order try ID, so there are no retries. Only the ID number differs. | No effect on the analysis. |
| Distance traveled is 0 (invalid ride) | 64 (1.3%) | Possible tracking error or special case. | Flagged; excluded from the analysis. |
| Duration is 0 | 25 (0.5%) | All 25 are also among the zero-distance rows. | Covered by the previous row. |
| Implausible predicted distance | 9 (0.2%) | Prediction 0–1 m, actual over 1 km (e.g. 6,083 m vs 1 m). Distorts ratios. | Kept in the dataset but treated as outliers; their effect was taken into account when interpreting ratio-based results. |
| Price scales differ by region | all | Median final price is 5.90 in the EU and 12,768 outside the EU. Probably different currencies. Absolute prices are not compared across markets. | Only relative deviation is used. |
| Order state «active» although the ride is finished | 1 (0.0%) | Inconsistent states. | Flagged as an inconsistent record; the single case was kept in the dataset but not relied on in the analysis. |
Because price scales differ, this analysis does not claim that a higher nominal price causes tickets.
Transformation
The main data transformation was done in PostgreSQL with SQL. Separate fact and dimension tables, and the keys needed to join them, were created from the raw data for the analysis. The goal was a dimensional model that can be used directly as the basis of the Power BI analytical model.
Descriptive order attributes were consolidated into the dim_order table. They include:
order_id_new;order_try_id_new;order_state;order_try_state;calc_created.
Attributes describing the pricing context were consolidated into the dim_pricing_context table. Device, app version, and date attributes were placed in the dim_device, dim_app_version, and dim_date tables respectively.
After the changes in SQL, keys and values were checked to make sure the dimension tables were correct before using them in Power BI.
The dimensional model was not rebuilt in Power BI Power Query. Power Query was used mainly to improve report usability and to clean up technical column names. For example, gps_confidence was renamed GPS Confidence and metered_price was renamed Metered Price. The names of other fields used in the report were cleaned up the same way.
Enrichment
Additional calculated attributes were created from the raw data for the analysis. They make it possible to compare the actual ride parameters with the predictions made before the ride.
Distance Deviation % shows the relative difference between the actual and the predicted ride distance:
Distance Deviation % =
DIVIDE(
'Rides'[Distance] - 'Rides'[Predicted Distance],
'Rides'[Predicted Distance]
)
A positive value means the actual distance was longer than predicted; a negative value means it was shorter than predicted.
To analyze distance deviations, Distance Deviation Group was also created. It groups rides by the size of the deviation.
Distance Deviation Group =
SWITCH(
TRUE(),
'Rides'[Distance Deviation %] < -0.25, "< -25%",
'Rides'[Distance Deviation %] < -0.10, "-25% to -10%",
'Rides'[Distance Deviation %] <= 0.10, "-10% to +10%",
'Rides'[Distance Deviation %] <= 0.25, "+10% to +25%",
'Rides'[Distance Deviation %] <= 0.50, "+25% to +50%",
"> +50%"
)
Distance Deviation Sort
A technical sort field that puts the groups of the previous attribute in logical order.
Distance Deviation Sort =
SWITCH(
TRUE(),
'Rides'[Distance Deviation %] < -0.25, 1,
'Rides'[Distance Deviation %] < -0.10, 2,
'Rides'[Distance Deviation %] <= 0.10, 3,
'Rides'[Distance Deviation %] <= 0.25, 4,
'Rides'[Distance Deviation %] <= 0.50, 5,
6
)
To analyze price deviation, Price Deviation % was created. It shows the relative difference between the final price and the upfront price:
Price Deviation % =
DIVIDE(
'Rides'[Metered Price] - 'Rides'[Upfront Price],
'Rides'[Upfront Price]
)
Using a percentage price deviation makes it possible to compare price changes within a ride also across EU and non-EU segments, where comparing absolute prices directly is not appropriate because of different currencies.
It can only be used for rides that have an upfront price (Upfront Price).
The analysis also uses absolute deviation where the size of the deviation matters, not its direction. For example, for distance the median absolute deviation is used so that positive and negative differences do not cancel each other out.
Destination Change Group
Turns the raw number of destination changes into categories that are easier to read in the analysis.
Destination Change Group =
SWITCH(
TRUE(),
'Rides'[Destination Change Number] = 1, "No change",
'Rides'[Destination Change Number] = 2, "1 change",
'Rides'[Destination Change Number] = 3, "2 changes",
'Rides'[Destination Change Number] >= 4, "3+ changes",
"Unknown"
)
Destination Change Number = 1 means no change took place, because the initial destination entry is included in the count.
EU / Non-EU
Turns the binary EU Indicator field into a category that is readable in the report.
EU / Non-EU =
IF(
'Rides'[EU Indicator] = 1,
"EU",
"Non-EU"
)
GPS Confidence Level
Turns the binary GPS attribute into a more user-friendly category.
GPS Confidence Level =
IF(
'Rides'[GPS Confidence] = 1,
"High",
"Low"
)
Handover
The technical solution is built so that each group member can restore the same database structure and Power BI report in their local environment. A Git repository is used for version control of the project files, SQL scripts, and changes.
Running and restoring the solution
8 steps in three stages, in the same order as the data flow
- Before you start: clone the project's Git repository to your computer.
-
Python / Jupyter Notebookalready done, no need to run again
- Input
- Raw dataset
- Done
The cleaned CSV is in the Git repository. The user takes it from there.
The cleaning process is documented: see Data Flow Diagram and Data Quality.
- Output
- Cleaned CSVin the Git repository
-
PostgreSQLSQL / DBeaver
- Input
- Cleaned CSVfrom the Git repository
- Done
- Install and start PostgreSQL and create the local database used in the project.
- Load the cleaned CSV from the Git repository into the local PostgreSQL database.
- Run the SQL scripts in the Git repository. They create the fact and dimension tables needed for the analysis and the relationships between them.
- Run the data quality checks to verify keys, table grain, and relationships.
- Output
- Fact and dimension tables
-
Power BIPower BI Desktop
- Input
- Fact and dimension tables
- Done
- Open the Power BI file in the Git repository (
power_bi/sõiduteenus_final.pbix) in Power BI Desktop. - Connect Power BI to the local PostgreSQL database and refresh the data.
- Open the Power BI file in the Git repository (
- Output
- Working Power BI report
When making changes
- When the data model changes, save the corresponding SQL changes in the scripts and commit them to the Git repository so that they can also be restored in the other group members' local environments.
The Git repository holds the SQL scripts, the Power BI file (.pbix), and the project documentation. Local database files, passwords, and uncleaned raw data are not added to the Git repository. Only the cleaned CSV file is public.
Additional Technical Description
- The raw data is in a shared Google Sheets file.
- Python was used to process it and prepare the data for loading into the database. The processed data was loaded into a local PostgreSQL database via DBeaver. In PostgreSQL, the data model and the fact and dimension tables needed for the analysis were created with SQL scripts.
- The SQL scripts are run in dependency order: first the base tables and dimension tables needed for the analysis are created, then the fact tables and the data quality checks.
- Power BI is connected to the local PostgreSQL database via the PostgreSQL connector. The connection uses the local database server, database, and user credentials. After connecting, the Power BI data is refreshed and the data model and visualizations are checked to make sure they work correctly.
4Analysis and Visualization
Power BI Report
Power BI Desktop was connected to the dimensional model built in PostgreSQL. No new dimensional model was built in Power Query; instead, the report is based on the fact_rides, fact_tickets, and dimension tables prepared in SQL.
Power Query was used mainly to clean up field names and make the report more user-friendly. Technical column names were renamed to clearer business names. In Power BI Report view, technical keys were hidden, as were attributes in the fact table that the report uses via the corresponding dimension tables. This reduces the chance of using duplicate fields and helps ensure that the analysis consistently uses attributes from the right tables.
The Power BI data model follows the dimensional model built in PostgreSQL. The main relationships are:
dim_date→fact_rides;dim_device→fact_rides;dim_app_version→fact_rides;dim_pricing_context→fact_rides;dim_order→fact_rides;dim_order→fact_tickets.
The relationship between dim_order and fact_rides is 1:1, because in the analytical model one order corresponds to one ride. The relationship between dim_order and fact_tickets is 1:*, because one order can have several customer support tickets.
The model's keys and relationships were checked in SQL before the data was used in Power BI. The checks found no missing dimension keys.
A separate _Measures table was created in Power BI to hold the DAX measures. No additional fact or dimension tables were created in Power BI.
DAX Measures
DAX measures were created in Power BI for the analysis. They calculate the number of rides, the occurrence of overcharge tickets, GPS quality, and the difference between the actual and predicted distance.
Distinct Ride Count
Distinct Ride Count =
DISTINCTCOUNT('Rides'[Order Key])
The measure calculates the number of unique rides based on Order Key. Using a distinct count ensures that each order is counted once in the analysis.
Overcharge Ride Count
Overcharge Ride Count =
CALCULATE(
DISTINCTCOUNT('Rides'[Order Key]),
'Order'[Had Overpaid Ride Ticket] = 1
)
The measure calculates the number of overcharge rides, i.e. unique rides whose order has at least one overcharge ticket. An order is counted only once, even if it has several customer support tickets.
Overcharge Ride Rate
Overcharge Ride Rate =
DIVIDE(
[Overcharge Ride Count],
[Distinct Ride Count],
0
)
The measure shows the share of overcharge rides among all analyzed rides. It makes it possible to compare how often overcharge tickets occur across segments and attributes.
Low GPS Ride Rate
Low GPS Ride Rate =
DIVIDE(
CALCULATE(
[Distinct Ride Count],
'Rides'[GPS Confidence] = 0
),
[Distinct Ride Count],
0
)
The measure shows the share of rides with a poor GPS connection among all analyzed rides. A ride counts as having a poor GPS connection if its GPS Confidence value is 0.
Median Absolute Distance Deviation %
Median Absolute Distance Deviation % =
MEDIANX(
'Rides',
ABS('Rides'[Distance Deviation %])
)
The measure shows the median of the absolute percentage difference between the actual and predicted ride distance. Using the absolute value makes it possible to assess the size of the deviation regardless of whether the actual distance was longer or shorter than predicted. The median is used instead of the mean so that a few very large deviations affect the result less.
Average Price Deviation
Average Price Deviation =
AVERAGE('Rides'[Price Deviation %])
The measure shows the average relative difference between the upfront price and the final price. It is calculated only for rides with an upfront price, because rides with prediction-type pricing have no upfront price.
Overcharge Share by Region %
Overcharge Share by Region % =
DIVIDE(
[Overcharge Ride Count],
CALCULATE(
[Overcharge Ride Count],
REMOVEFILTERS('Rides'[EU / Non-EU])
),
0
)
The measure shows what share of all overcharge rides belongs to the EU or the non-EU segment. For example, 296 non-EU overcharge rides out of 309 make up 95.8%. REMOVEFILTERS ensures that the denominator uses the total number of overcharge rides across all regions.
Ride Share by Region %
Ride Share by Region % =
DIVIDE(
[Distinct Ride Count],
CALCULATE(
[Distinct Ride Count],
REMOVEFILTERS('Rides'[EU / Non-EU])
),
0
)
The measure shows what share of all analyzed rides the selected EU or non-EU segment makes up. For example, if there are 1,682 non-EU rides and 4,166 rides in total, non-EU rides make up 40.4% of all rides. REMOVEFILTERS ensures that the denominator uses the total number of rides across all regions, not just the currently selected segment.
Initial Analysis
The first stage of the analysis focused on which ride attributes distinguish rides with and without overcharge tickets. The goal was to identify attributes that show larger differences between the two groups and should be investigated in more depth.
The initial analysis compared the following attributes:
- GPS confidence;
- difference between actual and predicted distance;
- difference between actual and predicted ride duration;
- relative difference between the final price and the upfront price;
- EU and non-EU rides.
Based on the initial results, the most important directions for further research were GPS confidence, EU and non-EU rides, pricing types, and the difference between actual and predicted distance. The further analysis looks at these attributes both separately and together, to assess whether a poor GPS connection combined with a larger distance deviation is associated with a higher share of overcharge tickets.
Analysis of EU and Non-EU Rides
The purpose of comparing EU and non-EU rides is to assess whether the two segments differ in attributes that may be associated with overcharge tickets.
The segment comparison analyzes:
- number and share of rides;
- overcharge ride rate (
Overcharge Ride Rate); - share of rides with a poor GPS connection;
- median absolute distance deviation;
- direction of the distance deviation;
- relative price deviation;
- difference between actual and predicted ride duration.
Absolute prices of EU and non-EU rides are not compared, because the dataset contains different currencies and the analysis does not convert prices into a single currency using exchange rates. To assess pricing differences, the percentage difference between the final price and the upfront price within the same ride is used instead.
Visualization Principles
The Power BI report visualizations are built so that the user can move from a general overview to a more detailed analysis of the possible factors behind overcharge tickets. The analysis follows this logic:
- Overall occurrence of overcharge tickets
- Ride attributes
- Deviations between predicted and actual values
- Segment comparison
The visualizations mainly use descriptive attributes from the dimension tables and separately created DAX measures. Technical keys and fields the report user does not need are hidden in Report view.
Numeric fields are summed only when this is analytically justified. Attributes such as Fraud Score, GPS Confidence, and percentage deviations are not treated as automatically summable values.
The report consistently uses the same terms, measures, and names so that results from different visualizations are comparable. The meanings of fields and measures are documented in the Power BI Description property.
Research Question 1: Where Is the Problem?
In which ride categories are overcharge tickets disproportionately frequent?
Felena Sooaluste
Data and Method
The analysis is done at the ride (order) level. Measures: Distinct Ride Count, Overcharge Ride Count, Overcharge Ride Rate, Ride Share by Region %, Overcharge Share by Region %. Influencing factors were found with the Power BI Key influencers visual. The visualizations are the same as on Felena's Power BI page.
- 4,943customer support tickets
- 4,166rides
- 309overcharge rides
- 7.42%overcharge ticket share
Results
Non-EU rides make up 40% of rides but 96% of overcharge tickets
Share of rides and share of overcharge rides, by region
- Share of rides
- Share of overcharge rides
Ride Share by Region % and Overcharge Share by Region %. Numbers verified against the file takso_andmed_clean.csv.Show as table
Overcharge ride rate: almost 34 times higher outside the EU
Overcharge Ride Rate by region
- 296overcharge rides (non-EU)
- 13overcharge rides (EU)
Show as table
Key influencers analysis highlights the attributes with the highest overcharge ride rate
Select an attribute on the left: the right side shows the overcharge ticket share by value of that attribute
When……the likelihood of an overcharge ticket increases by
So we look more closely at:
Answer to the Question
The first stage of the analysis showed that overcharge tickets are concentrated in non-EU rides. They are 40.4% of the analyzed rides but 95.8% of overcharge rides; the overcharge ticket share is 17.60% there, compared with 0.52% in the EU. The further analysis therefore focuses on the ride, technical, and pricing attributes of the non-EU segment. EU rides remain the comparison group where the sample allows.
Limitations
The analysis is based only on rides with a ticket. There are only 13 overcharge tickets in the EU, so the EU share is uncertain. The influencing factors show association, not causation.
Research Question 2: What in the Ride Itself Distinguishes Problem Rides?
Which differences between the ride and the prediction are associated with a higher likelihood of an overcharge ticket?
Raiko Karpov
Data and Method: Attributes, Measures, and Filters
The analysis first used two bar charts. Their x-axes showed ride distance and duration ranges (distance_group and duration_group), ordered from smallest to largest. The y-axis showed the overcharge ticket share of each group (overcharge_rate). The number of rides in each group (total_rides) was shown above each bar, to give the overcharge ticket share the context of sample size.
The second part of the analysis used two scatter plots. The first compared predicted ride duration (predicted_duration) with actual ride duration (actual_duration), and the second compared predicted distance (predicted_distance) with actual distance (actual_distance). In both visuals, the predicted value was on the x-axis and the actual value on the y-axis.
Rides were marked using the overpaid_ride_ticket attribute, which distinguished rides with and without an overcharge ticket by color.
The comparison was based on the ideal line y = x, which represents the case where the predicted and the actual value are exactly the same. For rides above the ideal line, the actual value was greater than predicted; for rides below it, smaller; and for rides on the ideal line, the actual value equaled the prediction.
A regression line and R² were also shown. The regression line describes the linear relationship between the predicted and the actual value, and R² shows how much of the variation in the actual value is explained by its linear relationship with the predicted value. Separate counters show the number of rides above, on, and below the ideal line.
See the report here: vali-it-zbqb2vb4c9bxuexkw9jna5.streamlit.app/ (opens in a new window)
Results
Overcharge ticket share by ride distance and duration; predicted vs actual
Select filters: all four visualizations and the metrics update. On a scatter plot, drag to select an area and zoom in.
Overcharge ticket share by actual ride distance
Overcharge ticket share by actual ride duration
Actual vs predicted distance (km)
- no complaint
- with overcharge ticket
Actual vs predicted duration (min)
- no complaint
- with overcharge ticket
Answer to the Question
A ride that turned out longer than predicted does not by itself seem to explain a high overcharge ticket share. In the upfront group, the actual duration was longer than predicted in 59.3% of rides, yet the overcharge ticket share in this group was only 3.5%. In the prediction group, the actual duration was longer than predicted in 75.4% of rides, and the overcharge ticket share reached 20.4%.
This shows that the prediction and upfront groups differ markedly both in the ratio of predicted to actual ride duration and in the overcharge ticket share. However, it does not prove that the difference between the prediction and the actual ride caused the overcharge tickets.
So We Look More Closely at the Pricing Type
As the next step, we look at pricing types separately to find out whether any pricing type is associated with a higher overcharge ticket share (Research Question 3).
Additional Observations
- When the actual distance is more than 20% longer than predicted, the overcharge ticket share is 11.3%, compared with 5.8% for other rides. For duration, the figures are 9.7% and 5.5%.
- The pattern also holds outside the EU: the share grows from 7.5% (0–2 km) to 33.5% (20 km or more).
- In the scatter plots, overcharge rides are concentrated in the area of short predictions where the actual value exceeds the prediction.
- By actual duration, the overcharge ticket share grows up to rides of 30–60 minutes (14.7%); for rides over 60 minutes it is 13.6%.
Limitations
The analysis is based only on rides with a ticket. The association does not prove that a longer ride or a longer-than-predicted duration causes a complaint. 19 rides have no prediction; they are not in the scatter plots.
Research Question 3: What Kind of Pricing Comes with the Problem?
Which pricing factors are associated with a higher likelihood of an overcharge ticket?
Liis Normak
Data and Method
The analysis is done at the ride (order) level with the measures Distinct Ride Count, Overcharge Ride Count, and Overcharge Ride Rate. Four pricing factors are examined: price type, the difference between the upfront price and the final price, the reason for the price change, and destination change. The visualizations are the same as on Liis's Power BI page; the region filter corresponds to the page's EU Indicator selection.
- 4,166rides (
Distinct Ride Count) - 309overcharge rides
- 7.4%overcharge ticket rate
- 2,946rides with both prices
- 1,682non-EU rides
- 296non-EU with overcharge ticket
- 17.6%non-EU rate
- 672non-EU, both prices
1. Price Type
Is the pricing type associated with the occurrence of overcharge tickets?
prediction: a metered ride with no upfront price given.upfront: an upfront price is given.upfront_destination_changed: an upfront price is given, but the destination changed during the ride.upfront_waypoint_changed: an upfront price is given, but a stop was added.
Price type distribution: EU and non-EU
Share of rides, 100%
- prediction
- upfront
- upfront_destination_changed
- upfront_waypoint_changed
- missing
Distinct Ride Count by price type.- Prediction pricing is almost entirely a non-EU phenomenon: 997 of the 998 prediction rides are outside the EU. The high overcharge ticket rate of prediction pricing therefore cannot be treated separately from region.
- Of non-EU rides, 59% were prediction and 40% upfront.
- Of EU rides, 92% were upfront.
Overcharge ticket rate by price type
Bars: number of rides; line: overcharge ticket rate
- number of rides
- overcharge ticket rate
Distinct Ride Count and Overcharge Ride Rate. «missing» = 19 rides without a price type.- Rides with prediction pricing have more overcharge tickets than rides with upfront pricing.
- 20.3% of prediction rides have an overcharge ticket, compared with only 3.5% of upfront rides.
- Outside the EU, 20.4% of prediction rides and 13.4% of upfront rides have an overcharge ticket. The share was also high for rides whose destination changed, but there were few such rides (13).
→ Outside the EU, prediction pricing is associated with a higher overcharge ticket rate, but region explains part of the large difference seen at first.
2. Price Deviation
Is the difference between the upfront price and the final price associated with the occurrence of overcharge tickets?
- The analysis covers only the 2,946 rides that have both an upfront price (
Upfront Price) and a final price (Metered Price). - Upfront price: the approximate price offered before the ride started.
- Final price: the actual price of the ride.
Overcharge ticket rate by price change
Bars: number of rides; line: overcharge ticket rate (only rides with both prices)
- number of rides
- overcharge ticket rate
Price Deviation Group, measures Both Prices Count and Both Prices Overcharge Ride Rate. At group boundaries, counts may differ from Power BI by 1–4 rides due to rounding.- For positive price deviations up to 50%, there is no clear increasing pattern.
- 50–100% → 6.5%.
- 100%+ → 18.7%.
- Rides with exactly 0% deviation also have an overcharge ticket rate of 5.1%. This suggests that not all overcharge tickets can be explained by an increase in the final price.
→ Rides with a price increase of more than 100% stand out most clearly: almost one in five of them got an overcharge ticket.
3. Reason for Price Change
Is a price change during the ride associated with the occurrence of overcharge tickets?
driver_destination_changed: the driver changed the destination.client_destination_changed: the customer changed the destination.driver_waypoint_changed: the driver added a stop.
Overcharge ticket rate by reason for price change
Overcharge Ride Rate
Reason for Pricing Change. «No reason» = the price was not changed.- The overcharge ticket rate did not differ much between price change reasons.
- Without a price change reason, the overcharge ticket rate was 7.6%; for
client_destination_changedit was 8.9%. - The other price change groups had practically no overcharge tickets.
→ The reason for the price change does not appear to be an important standalone risk factor for overcharge tickets.
4. Destination Change
Is changing the destination during the ride associated with the occurrence of overcharge tickets?
Overcharge ticket rate by number of destination changes
Bars: number of rides; line: overcharge ticket rate
- number of rides
- overcharge ticket rate
Destination Change Group.- Destination changes did not show a significant difference in the overcharge ticket rate.
- 92% of rides took place without a destination change, and they included 96% of all overcharge rides.
- Without a destination change, the overcharge ticket rate was 7.8%; it was lower in the groups with a destination change.
- Destination change also does not explain the higher rate of prediction rides: for prediction rides without a destination change, the rate was still approximately 20.6%.
→ Destination change does not appear to be an important risk factor for overcharge tickets.
Answer to the Question (Summary)
- Rides with prediction pricing have clearly more overcharge tickets than upfront rides (20.3% vs 3.5%). However, prediction is almost entirely tied to non-EU rides, so the effect of price type cannot be separated from the effect of region.
- For upfront rides, a very large price increase stands out most clearly: when the final price was more than 2× the upfront price, the overcharge ticket rate was 18.7%. Smaller price increases showed no clear increasing pattern.
- Destination change and the reason for the price change did not appear to increase the risk of overcharge tickets, nor did they explain the higher rate of prediction rides.
→ From a pricing perspective, the main risk areas are prediction pricing and very large price increases on upfront rides. For prediction pricing, further analysis is needed to determine whether the higher rate comes from the pricing itself or from other characteristics of non-EU rides.
Limitations
The effects of price type and region cannot be separated in the data. Price deviation can only be calculated for 2,946 rides (71%). Association does not prove causation.
Research Question 4: What Technical Conditions Come with the Problem?
Which technical factors are associated with a higher likelihood of an overcharge ticket?
Hannes Seeberg
Data and Method
Factors: GPS confidence, rider and driver app, driver's phone model, and their combinations. Each comparison is made in three views: all rides, EU, and non-EU. Average overcharge ticket rate: all 7.4%, EU 0.5%, non-EU 17.6%. Always compare a bar with the average of its own view.
Tables RQ4 T1–T6 were calculated at the order level from the file takso_andmed_clean.csv and added to the Power BI model as calculated tables. The regression (F) is a logistic regression; the result is an odds ratio.
A. How Big Is the Problem?
The share of all rides that ended with an overcharge ticket. Expected result: 7.4%, or approximately 7 rides out of 100.
- 7.4%share of overcharge rides
B. Is GPS Quality Associated with Overcharge Tickets?
Poor GPS increases the overcharge ticket rate in all three views: in the EU from 0.4% to 3.6% (9 times), outside the EU from 11.1% to 28.0%. Rides with poor GPS are 18% of all rides but account for 60% of all overcharge tickets.
Overcharge ticket rate by GPS quality
Views: all rides, EU, non-EU
- poor GPS
- good GPS
C. Is the App Platform or Version Associated with Overcharge Tickets?
The rider app has no effect: in the EU and non-EU views, Android and iOS are similar. A driver app that is 9 or more versions older than the latest doubles the overcharge ticket rate outside the EU (32.3% vs approximately 16%). In the EU, rides with an old app have only 1 overcharge ticket, so the effect can be neither confirmed nor ruled out there.
Overcharge ticket rate by app platform and driver app age
Views: all rides, EU, non-EU
lighter = lower, darker = higher rate
D. Is the Driver's Phone Model Associated with Overcharge Tickets?
The table has 59 phone models with at least 20 rides each. The share of poor GPS varies greatly between models: for TECNO B1, GPS was poor on 94% of rides; for most EU models, below 10%. The difference within the same brand is large (TECNO LA7 29%, TECNO B1 94%), so looking at brand level would hide the problem.
Outside the EU, a model's share of poor GPS and its overcharge ticket rate are strongly related (correlation 0.76). Three models (TECNO B1, TECNO B1p, TECNO-J8) are 4% of rides but account for 17% of all overcharge tickets. The table shows whether a model has more overcharge tickets than GPS, app age, and region predict. When testing 59 models, 2–3 «findings» can occur by chance.
Share of poor GPS by phone model
59 models, at least 20 rides; color = region
- EU
- non-EU
- mixed
Show as table
Models: poor GPS (X) and overcharge ticket rate (Y), color = brand
Bubble size = number of rides. Color: red shades = the 3 brands with the most poor GPS; greens and blues = the least. Percentage in the legend = the brand's share of poor GPS.
- TECNO 50%
- Infinix 40%
- Nokia (HMD) 24%
- Itel 21%
- iPhone 7%
- Huawei 7%
- Samsung 6%
- Xiaomi 0%
Overcharge tickets: actual vs expected
GPS, app age, and region taken into account
E. Do the Factors Amplify Each Other?
Outside the EU, an old driver app doubles the overcharge ticket rate both with good GPS (9.8% → 19.5%) and with poor GPS (24.1% → 50.0%). Poor GPS and an old app together: approximately every second ride ended with an overcharge ticket. In the EU, there are only 3 rides with an old app and poor GPS, so the combination cannot be assessed there.
GPS and driver app age combined, by view
Overcharge ticket rate
- newer driver app (up to 8 versions older)
- old driver app (9+ versions older)
F. What Remains When Other Factors Are Taken into Account? (Main Answer)
Odds ratio: 1 = no effect, above 1 = more overcharge tickets. Poor GPS is significant in all three models (all 3.2; EU 9.8; non-EU 3.1). An old driver app is significant outside the EU (2.7). In the EU, it is associated with only 1 overcharge ticket, so the result cannot be confirmed there. The driver and rider app platforms are not statistically significant in any model. The EU model is based on only 13 overcharge tickets, so its confidence interval is very wide.
Odds ratio by factor and model
Dashed line: 1 = no effect
- all, controlled for region
- EU only
- non-EU only
Confidence intervals (95%)
Select a model
G. Where Should the Company Intervene?
Right = many rides, top = high overcharge ticket rate, large bubble = many overcharge tickets. Poor GPS accounts for 60% of overcharge tickets, the biggest impact. An old driver app is 10% of rides but accounts for 24% of overcharge tickets, and updating it is the easiest step. The phone models with the highest share of poor GPS are a concrete target.
Segments: number of rides, overcharge ticket rate, and number of overcharge tickets
All rides
- empty circle = good GPS
- filled = poor GPS
- newer app (up to 8 versions older)
- old app (9+ versions older)
Answer to the Question
The strongest technical factor is a poor GPS connection: it remains significant even when other factors are taken into account (odds ratio 3.2), and it accounts for 60% of overcharge tickets from 18% of rides. Outside the EU, the second factor is an old driver app (9+ versions older, odds ratio 2.7). The rider and driver app platform (Android or iOS) is not significant.
Conclusions
- Poor GPS and an old driver app amplify each other: outside the EU, every second ride with this combination ended with an overcharge ticket.
- The simplest intervention is updating the driver app: 10% of rides, 24% of overcharge tickets.
- The GPS problem is model-specific: individual phone models (especially TECNO B1, B1p, J8) account for a disproportionate number of overcharge tickets.
Limitations
The EU results are based on only 13 overcharge tickets. In the comparison of 59 phone models, 2–3 «findings» can occur by chance. The analysis shows association, not causation.
Research Question 5: What Should Be Prioritized Based on the Results?
Our proposals for reducing overcharge tickets
Felena SooalusteRaiko KarpovLiis NormakHannes Seeberg
Data and Method
The proposals follow from the results of research questions 1–4. Each proposal addresses a specific problem and is ranked by how large a share of current overcharge tickets (309) that problem affects, and by whether the association holds when other factors are taken into account. According to research question 1, 96% of overcharge tickets are outside the EU, so the proposals would have the largest impact there.
Prediction pricing and poor GPS each affect more than half of overcharge tickets
Share of all 309 overcharge tickets, by problem
Show as table
Priority 1: Proposals with Measurable and Verifiable Impact
- 1Make the final price predictable: an upfront price before the ride and a capped price increase82% of overcharge tickets (poor GPS or prediction pricing)
- Problem
- Overcharge tickets are most frequent when the final price is not based on a reliable measurement or when the rider was not shown a price in advance. Of rides with poor GPS, 24.4% got a complaint (good GPS: 3.6%; Research Question 4); of prediction rides, 20.3% (upfront rides: 3.5%; Research Question 3). In total, these rides accounted for 253 / 309 overcharge tickets.
- What to do
- With poor GPS, calculate the final price from the predicted distance or send the ride for review. GPS quality is known at the time of billing, so it does not need to be known in advance.
- Outside the EU, offer the rider an upfront price instead of prediction pricing.
- Cap the final price increase, for example at 2× the upfront price, except for justified changes (destination change).
- Risks
- The effect of prediction pricing cannot be fully separated from region, because 997 / 998 prediction rides are outside the EU. If the actual route was justifiably longer, the driver earns less; a rule is needed for when the driver can request an exception.
- 2Show a price range on long rides (over 20 km) and check before billing that the price stays within it 24% of overcharge tickets
- Problem
- Long rides (Research Question 2). Of rides over 20 km, 19.1% got a complaint; of 0–2 km rides, 4.2%. Two thirds of the complaints on long rides (48 / 73) came from prediction rides, where the rider did not see the price in advance: their complaint rate was 44.9%, compared with 9.7% for upfront rides. The problem is therefore the missing price expectation.
- What to do
- When the predicted distance is over 20 km, the rider sees a price range instead of a single price (for example, EUR 30–38). Before billing, the system automatically checks whether the final price is within the range; if it is not, the price is reviewed before the bill is issued.
- Risks
- If the final price exceeds the upper limit of the range, a complaint is likely, so the check must be reliable. A range that is too wide may put riders off. Partly overlaps with proposal 1 (upfront price outside the EU).
- 3Update the driver app regularly24% of overcharge tickets
- Problem
- Old driver app (9+ versions older) (Research Question 4). An old driver app is used on 10% of rides but accounts for 24% of overcharge tickets. Outside the EU, it doubles the overcharge ticket rate (odds ratio 2.7); combined with poor GPS, every second ride ends with an overcharge ticket.
- What to do
- Force or remind drivers to update when the driver app is more than 8 versions older than the latest. The simplest and cheapest step.
- Risks
- Old phones may not support the new version; the association may partly come from the phone, not the version.
- 4Offer drivers rental phones (refurbished devices)17% of overcharge tickets
- Problem
- Phone models with poor GPS (Research Question 4). Three phone models (TECNO B1, TECNO B1p, TECNO-J8) are 4% of rides but account for 17% of overcharge tickets. For TECNO B1, GPS was poor on 94% of rides.
- What to do
- Offer drivers whose phone has a high share of poor GPS a refurbished rental phone with better GPS.
- Risks
- Cost and logistics; the impact appears slowly. Overlaps with proposal 1, which solves the same problem with software.
Priority 2: Nice-to-Have
For these proposals, the perceived problem must first be validated before they can be ranked by impact.
- Notifying the customer before the end of the ride that the price will increase. This may increase pricing transparency, but a warning at the end of the ride may come as an unpleasant emotional shock to the customer and leave an impression of fraud. Before rollout, the problem must be validated and the timing and wording of the notification tested; as an alternative, show the price change transparently in the app throughout the ride.
- Protective partitions between the driver and the rider. These may reduce conflicts between drivers and riders and improve safety. The data in this analysis does not show an association with overcharge tickets, so the perceived problem must first be validated.
Answer to the Question
Overcharge tickets are most frequent when the ride has a poor GPS connection, especially together with an old driver app and outside the EU. The first priority is to make the final price predictable: with poor GPS, calculate the price from the predicted distance; outside the EU, offer an upfront price; and cap large price increases. Together, these rides account for 82% of overcharge tickets. Next come a price range on long rides and updating the driver app.
Limitations
Impact is estimated by the share of overcharge tickets; the actual reduction may be smaller, because the analysis shows association, not causation. The problems partly overlap. The proposals should be tested in a smaller region (A/B test) before wider rollout.
User Guide
The user guide describes how to create the project database on your computer and open the Power BI report. You need PostgreSQL, DBeaver, and Power BI Desktop, plus three files from the GitHub repository: the cleaned CSV, the star schema SQL script, and the Power BI file.
The steps are: import the CSV with DBeaver into the table public.takso_andmed_clean, run the star schema script, then connect the Power BI data source to the local database and refresh the data. After each step there is a check query with the expected numbers (for example, 4,943 rows and 4,166 rides).
The guide also explains how to read the four pages of the report and reminds the reader that the results show associations within the dataset of rides with customer support tickets, not across all rides.
Full guide (in Estonian): kasutusjuhend.md on GitHub (opens in a new window)
Metrics Table
| Metric | Meaning |
|---|---|
| Price deviation | (final price − upfront price) ÷ upfront price |
| Share of large deviation | orders with a deviation over ±20% ÷ valid orders with an upfront price |
| Complaint rate | orders with an overcharge ticket ÷ valid orders |
5Data Management
Metadata Management
To make the analytical model easier to read and reuse, the meanings of fields and measures were documented in the Power BI model using the Description property. Descriptions of fields from the raw data were based on the data dictionary provided with the dataset. For attributes and measures created during the project, a description was added according to their calculation logic and analytical purpose.
Descriptions were added to, among others, technical keys, analytical attributes, and DAX measures. For example, the meanings of Distance Deviation %, Price Deviation %, Overcharge Ride Count, and Median Absolute Distance Deviation % were documented, and for technical keys, their role in joining tables.
When adding a new field or measure, its meaning must also be documented. At the Power BI report level, the Description property is used for this.
Roles in Using the Solution
For using and managing the solution, the following roles are distinguished:
- Owner
- responsible for the business goal of the analysis, the core terms, and the research questions.
- Administrator / developer
- responsible for the PostgreSQL data model, the SQL scripts, the Power BI model, and the technical operation of the data flow.
- Analyst
- uses the prepared data model, creates and checks measures, and analyzes patterns related to overcharge tickets.
- Report user
- uses the Power BI dashboard to view results and find answers to the research questions. Using the report does not require knowledge of SQL or the technical structure of the data model.
Rule and Quality Checks
Data quality checks are done mainly in PostgreSQL before the data is used in Power BI. When the star schema is changed, it is checked that an attribute moved into a dimension table is uniquely determined at the level of the corresponding key.
For example, before adding order_state, order_try_state, order_try_id_new, and calc_created to the dim_order table, it was checked that no order_key had more than one distinct value. After the attributes were added, the values in the fact and dimension tables were checked for consistency. These checks found no differences.
New fields and model changes follow the same principle: first check the field's grain and key consistency, then make the change, and finally check that the result is complete and consistent.
Security in the Finished Report
The dataset used for the analysis contains technical identifiers and data describing the company's operations and pricing. The dataset does not contain directly identifying personal data needed for the analysis, such as the customer's name or contact details.
In the context of the solution, data fields are classified as follows:
| Classification | Data |
|---|---|
| Personal data / pseudonymous identifiers | technical rider, device, and order identifiers, if they can be used to link data to a person |
| Special categories of personal data | none found in the dataset |
| Sensitive business information | prices, pricing context, fraud score, overcharge tickets, and internal prediction types |
| General analytical information | distance, duration, GPS confidence, ride state, number of destination changes, and EU indicator |
The public dashboard does not show row-level technical identifiers or any other information that could be used to identify a specific ride, device, or user. The dashboard mainly uses aggregated measures and segment comparisons.
In the Power BI model, technical keys and technical fields not needed for the analysis are hidden from the user in Report view. Hiding a field improves the model's usability, but it is not treated as an access control or data security measure.
The final Power BI model is uploaded to the group's GitHub, which is a public folder for group members to use and to share with potentially interested people. The public repository contains the cleaned CSV file; the uncleaned raw file is not published.
6Additional Results
How Can a Rider Manipulate the Driver or the Ride-Hailing Provider?
Read the analysis
The ride-hailing provider pays the driver and charges the rider. Every time a rider gets an unjustified refund or discount, or does not pay, the ride-hailing provider or the driver bears the loss. The fraud score helps decide automatically whether to accept a complaint immediately or send it for manual review.
Typical Schemes
The following is based on general knowledge about ride-hailing providers. There is no verified source describing the data provider's own scoring logic.
| Scheme | How | Who suffers |
|---|---|---|
| False overcharge ticket | The rider complains that the price was too high although the ride was fine, hoping for an automatic refund. | Ride-hailing provider |
| Repeated complaints | The same rider complains systematically, having learned that support accepts small amounts without checking. | Ride-hailing provider |
| Destination change | Orders a short ride at a low upfront price, then changes the destination or asks the driver to go further. | Driver or ride-hailing provider |
| Promo code abuse | Several accounts and devices to get new-user discounts repeatedly. | Ride-hailing provider |
| Non-payment | Card payment fails on purpose, for example with an empty or blocked card. | Driver or ride-hailing provider |
| False complaint about the driver | Claims the driver took a detour or behaved badly, to get compensation. | Driver (rating, income) |
On Almost Half of Rides, the Final Price Differs from the Upfront Price by More Than 20%
Of orders with an upfront price, 45% got a final price that differed by more than 20%. Almost four fifths of them were more expensive than the upfront price.
Orders by price deviation
Share of orders with an upfront price, 10-percentage-point bins
- Large deviation (over ±20%)
- Within ±20%
Show as table
Orders Peak on Friday Afternoon
The busiest hour is Friday 3–4 p.m. The fewest orders are between 4 and 5 a.m.
Orders by day of week and hour
Show as table
Visualization: Complaints by Phone Model
Across all data, 22% of orders were made with Tecno and Infinix phones, but they accounted for 55% of overcharge tickets. With these phones, GPS was poor about 4 times out of 10.
The association comes largely from the market: all Tecno and Infinix orders are outside the EU. By default, the chart shows non-EU orders with prediction pricing (984): there, the complaint rate is 21.7% vs 19.1% for other phones.
Order flow: phone brand → GPS connection → overcharge ticket
Band width = number of orders
- Budget model (Tecno, Infinix) and complaint
- Poor GPS
- Other
Show as table
7Summary and Discussion
Answers to the Research Questions
1. In which ride categories are overcharge tickets disproportionately frequent?
The analysis compares rides with and without an overcharge ticket to assess which ride characteristics distinguish the two groups. The attributes analyzed include GPS quality, the difference between actual and predicted distance, the difference between actual and predicted duration, price deviation, the number of destination changes, and other ride and pricing attributes in the dataset.
Based on the initial analysis, the most important directions for further research turned out to be GPS quality and the difference between actual and predicted distance.
EU and non-EU rides are compared using the overcharge ticket rate, the share of poor GPS, and distance, duration, and price deviations.
Absolute prices are not compared between EU and non-EU rides, because the dataset contains different currencies and the analysis does not convert prices into a single currency using exchange rates. To assess pricing differences, the percentage difference between the final price and the upfront price of the same ride is used instead.
Result: overcharge tickets are concentrated in non-EU rides. They make up 40.4% of rides but 95.8% of overcharge rides; the overcharge ticket rate is 17.60% outside the EU and 0.52% in the EU. The main influencing factors were poor GPS connection (6.76×), prediction pricing (6.08×), a distance deviation over +50% (3.09×), and a duration deviation over 36.88% (2.04×).
2. Which differences between the ride and the prediction are associated with a higher likelihood of an overcharge ticket?
To assess the difference between the actual and predicted ride duration and distance, the corresponding values were compared in scatter plots. Duration was expressed in minutes and distance in kilometers to make the results easier to interpret. The difference between the prediction and the actual value was also assessed through the direction and size of the deviation.
Result: a ride that turned out longer than predicted does not by itself seem to explain a high overcharge ticket share. In the upfront group, the actual duration was longer than predicted in 59.3% of rides, but the overcharge ticket share was only 3.5%; in the prediction group, the corresponding figures were 75.4% and 20.4%. The groups differ both in the duration ratio and in the overcharge ticket share, but this does not prove a causal relationship. That is why pricing types were examined next (question 3).
3. Which pricing factors are associated with a higher likelihood of an overcharge ticket?
To assess pricing associations, the Overcharge Ride Rate measure was compared across price types (Prediction Price Type), and their distribution in the EU and non-EU regions was analyzed. The difference between the upfront price and the final price, the reasons for price changes, and the number of destination changes were also examined.
The analysis showed that rides with prediction pricing had overcharge tickets more often than upfront rides (20.3% vs 3.5%). However, prediction rides were almost entirely tied to the non-EU region. Rides whose final price was more than twice the upfront price also stood out with a higher overcharge ticket frequency (18.7%). Destination change and the reasons for price changes showed no clear association with a higher overcharge ticket rate.
In summary, prediction pricing and very large price increases stood out as the main risk areas, but the association with prediction pricing must be interpreted together with the effect of region.
4. Which technical factors are associated with a higher likelihood of an overcharge ticket?
To assess the effect of GPS quality, the Overcharge Ride Rate measure is compared between rides with good (GPS Confidence = 1) and poor (GPS Confidence = 0) GPS. GPS quality is also analyzed together with other attributes, especially the difference between actual and predicted distance.
The analysis showed that a poor GPS connection is the strongest technical factor: rides with poor GPS make up 18% of rides but account for 60% of overcharge tickets (overcharge ticket rate 24.4% vs 3.6%). The association holds even when other factors are taken into account (odds ratio 3.2). Outside the EU, the second important factor is an old driver app (9 or more versions older than the latest): it doubles the overcharge ticket rate (odds ratio 2.7), and together with poor GPS approximately every second ride ended with an overcharge ticket. The rider and driver app platforms (Android or iOS) were not statistically significant.
The share of poor GPS varied greatly by phone model: three TECNO models made up 4% of rides but 17% of overcharge tickets.
In summary, a poor GPS connection and an old driver app stood out as the main technical risk areas. The EU results are based on a small number of overcharge tickets (13) and are therefore uncertain.
5. Our proposals for reducing overcharge tickets
Based on a synthesis of the analysis results, the group proposes interventions in two priorities. Priority 1 covers proposals whose possible impact is measurable and verifiable; they are ranked by how large a share of current overcharge tickets (309) the problem affects and whether the association holds when other factors are taken into account. Priority 2 covers nice-to-have proposals whose perceived problem must first be validated.
Priority 1
- Making the final price predictable. Overcharge tickets are most frequent when the final price is not based on a reliable measurement or when the rider was not shown a price in advance. The proposal has three parts: with poor GPS, calculate the final price from the predicted distance or send the ride for review (GPS quality is known at the time of billing, so it does not need to be known in advance); outside the EU, offer the rider an upfront price instead of prediction pricing; cap the final price increase, for example at 2× the upfront price, except for justified changes (destination change). Of rides with poor GPS, 24.4% got a complaint (good GPS: 3.6%); of prediction rides, 20.3% (upfront rides: 3.5%). The effect of prediction pricing cannot be fully separated from region, because 997 / 998 prediction rides are outside the EU.
- A price range on long rides. When the predicted distance is over 20 km, the rider sees a price range instead of a single price, and before billing the system automatically checks whether the final price is within it; if it is not, the price is reviewed before the bill is issued. Of rides over 20 km, 19.1% got a complaint (0–2 km rides: 4.2%). Two thirds of the complaints on long rides came from prediction rides, where the rider did not see the price in advance (complaint rate 44.9%, upfront rides 9.7%).
- Keeping the driver app up to date. Because outside the EU there was an association between older app versions and a higher frequency of overcharge tickets, automatic updates or restricting the use of outdated versions could be considered. Of rides with an app 9+ versions older, 17.6% got a complaint; with the latest version, 6.6%.
- Improving the technical quality of drivers' devices. A possible solution is a rental program of refurbished smartphones with verified quality. Of rides with the three TECNO models with the worst GPS, 34.4% got a complaint (average 7.4%). To justify this measure, the relationship between device age and technical characteristics and GPS quality should be assessed further.
Priority 2 (nice-to-have)
- Notifying the customer of a possible price change. In case of a significant price deviation, the system could notify the customer before the end of the ride and explain the reason for the price change. The perceived problem must first be validated: the notification may leave an impression of fraud, so its timing and wording should be tested.
- Increasing physical separation between the driver and the passenger. As a possible measure, installing protective partitions in vehicles could be considered to reduce conflicts between drivers and passengers and improve safety. The perceived problem must first be validated: the data in this analysis does not show an association between protective partitions and overcharge tickets.
Making the final price predictable should be tested first, because rides with poor GPS and prediction rides together account for 82% of overcharge tickets. Next come a price range on long rides and updating the driver app, which is the simplest to implement.
Practical Recommendations for Using the Solution
When using the Power BI report, start with the general metrics and then move on to more detailed segments and possible problem factors.
When analyzing overcharge tickets, do not rely only on the number of customer support tickets, because one order can have several tickets. To compare rides, use the Overcharge Ride Count and Overcharge Ride Rate measures, which count each order only once.
When analyzing deviations, distinguish between the direction and the size of the deviation. For example, positive and negative distance deviations can cancel each other out when calculating the mean. For this reason, the median of the absolute deviation is also used to assess the typical size of the deviation.
When comparing prices of the EU and non-EU segments, absolute values of the final price or the upfront price are not used, because the dataset contains different currencies. To compare segments, the percentage price deviation calculated within the same ride is used.
When filtering visualizations, keep track of which population a measure currently applies to. Changing filters also changes the filter context of the measures, so results must be interpreted in the context of the selected segment.
Limitations
Different Currencies
The prices in the dataset are in different currencies. Because exchange rate information was not added to the analysis, absolute prices in different currencies cannot be reliably compared. For this reason, segment pricing comparisons mainly use the percentage difference between the upfront price and the final price.
Limited Data
The dataset contained only data linked to at least one customer support ticket, which means these rides already deviated in some way from a normal, ideal ride. The dataset also only showed whether a customer support ticket was about overcharging or about something else. The other reasons were not coded in more detail.
Missing Values
Several attributes (fraud score, prices, etc.) had up to 50% missing values, which at times made certain analyses less reliable because of the smaller amount of data.
Definition of an Overcharge Ticket
An overcharge ticket is defined based on the overcharge complaint submitted by the customer (overpaid_ride_ticket). The measure therefore shows that a customer complaint exists, not a pricing error confirmed by independent verification. An overcharge ticket does not automatically mean that the price was objectively wrong, and the absence of an overcharge ticket does not prove that there was no pricing problem.
Descriptive Analysis
The analysis makes it possible to identify attributes and situations that occur more often with overcharge tickets, but a causal relationship cannot automatically be inferred from it. For example, the association between poor GPS and overcharge tickets does not in itself prove that poor GPS caused the pricing problem.
Data Documentation
The exact business definition of every field in the raw dataset was not described in the source data documentation. For such attributes, assigning a speculative meaning was avoided, and the analysis mainly used attributes whose meaning was known.
Project Scope
The project is carried out within the limited time of a training course and therefore focuses on the attributes most important for the research questions. An exhaustive analysis of all variables in the dataset or building a causal model is not within the current scope of the project.
Further Development
One possible further development of the solution is adding exchange rates, which would make it possible to convert prices from different markets into a single currency and compare absolute prices more reliably.
The analysis could be developed further toward assessing the combined effect of several attributes. For example, it could quantify how the likelihood of an overcharge ticket changes when poor GPS, a large distance deviation, and other attributes found to be important occur at the same time.
With additional geographic data, specific countries or markets could be analyzed instead of the EU / non-EU split. This would make it possible to assess whether possible differences in non-EU rides come from a specific market or are visible more broadly.
With data covering a longer period, changes over time in overcharge tickets and related attributes could also be analyzed, and the impact of possible product or pricing changes assessed.
Because the analysis could only use data that was all linked to a customer support ticket, a useful next step would be to compare the full volume of rides that took place, including rides that were, so to speak, ideal. This would help assess in even more depth what distinguishes rides with an overcharge ticket from rides without a complaint.
Use of AI
During the project, AI was used as an aid for writing and explaining SQL and DAX queries, discussing the structure of the data model, planning data quality checks, finding analysis options, and structuring and wording the documentation.
AI outputs were not automatically treated as correct. SQL and DAX solutions were checked against the actual data and Power BI results and corrected where needed. Checking was especially important where the result depended on the data model's relationships, the tables' grain, or the business meaning of a specific field.
The final analytical results and conclusions are based on the project data and the group's own analysis, not on AI-generated results.
8Division of Work and Self-Reflection
Division of Work
The project was carried out by a group of four. The work was divided between data preparation, building the data model, analysis, visualization, documentation, and project coordination. The most important decisions about the data model and the analysis were discussed together in the group.
Liis and Felena (jointly)
- Cleaning and preparing the data in Python.
- Building and checking the data model and the relationships and keys of the fact and dimension tables in DBeaver.
- Setting up relationships in Power BI, and creating and describing the additional attributes and DAX measures needed for the analysis.
Liis NormakResearch Question 3: pricing
- Associations of overcharge tickets with pricing and destination changes; identifying the main influencing factors.
- Checking Power BI results with SQL queries.
- Managing her own Power BI project file on GitHub and writing documentation.
Felena SooalusteResearch Question 1: regions
- Differences in overcharge tickets between EU and non-EU regions; identifying the main influencing factors.
- Checking Power BI results with SQL queries.
- Managing her own Power BI project file on GitHub.
Hannes SeebergResearch Question 4: technical factors
- Analysis of technical factors: GPS, apps, phone models, and their combinations.
- Choosing the project topic and the kickoff.
- Planning the first phase of the project, standup routines, and planning the final phase of the project.
- Building and designing the presentation and documentation solution.
Raiko KarpovResearch Question 2: ride vs prediction
- Research question 2: which differences between the ride and the prediction are associated with a higher likelihood of an overcharge ticket.
- Creating visuals in the Visual Studio Code development environment and in Power BI.
- Finding a solution to the research question's problem and interpreting the results.
Technical and Organizational Self-Reflection
Felena Sooaluste
What Went Well?
Dividing the work into stages, keeping the focus on the main business question, cleaning the data in Python, building the model in DBeaver, and checking the visualized results with SQL queries. Dividing the research questions also went smoothly, as did regular group communication to share the latest findings and combine them into conclusions.
Where Did We Struggle?
Managing the analytical attributes of the data model consistently is difficult when four people use the model at the same time. Attributes and measures can start to duplicate each other, and finding your way around them can become harder.
We had setbacks with GitHub version control, in which some work was lost and had to be restored, merges had to be reverted, and conflicts had to be resolved again.
What Would We Do Differently?
We would document new fields and measures right when they are created, not at the end of the project. This reduces duplication and later checking work.
Raiko Karpov
What Went Well?
First, the research topic is very relevant, and second, it is interesting, so researching it was never boring. I want to praise the team's synergy and willingness to cooperate, its patience, and its lasting passion throughout the search for the research problem. I would also like to praise the capability of the Python programming language and how friendly it is to use.
Where Did We Struggle?
This was the first time the newly formed team worked toward a shared goal, and we knew each other only superficially, so on the one hand we had to solve the puzzle, and at the same time take into account each team member's individual character. I would see the difficulty of combining these two as fertilizer for the future, which over time grew into a more solid shape. Among the tools, I would point out how stubborn GitHub version control is, but it is the same as with people: the more you practice and use it, the easier it becomes to handle.
What Would We Do Differently?
I cannot single out anything; I take the whole project experience as a whole. There are certainly many technical and communication nuances that I will take with me, and in new challenges I will be able to respond to difficulties more consciously and with more experience.
Liis Normak
One of the most important technical challenges of the project was joining data with different levels of detail so that no double counting occurred in the Power BI analysis. Because one order could have several customer support tickets, we had to make sure that the same ride was not counted more than once in the analysis. To solve this, the had_overpaid_ride_ticket attribute in the dim_order table was used to identify whether the order had at least one overcharge ticket. This taught me how important it is to understand the grain of the data and the relationships between tables before starting the analysis.
A second important lesson was understanding the structure of the star schema and the role of dimension tables. During the project, the data model was cleaned up and different attributes were moved into the corresponding dimension tables. Duplicate fields were also hidden in Power BI so that the analysis would consistently use the right attributes. I came to understand better that a correct data model is a prerequisite for reliable analysis results.
Overall, the project gave me a better understanding of building a data model, ensuring data correctness, and the importance of teamwork and version control when developing a shared analytics solution.
Synchronizing the work of four group members highlighted the need to distinguish between the database itself and the code needed to restore it. The PostgreSQL database runs in a local environment, while the SQL scripts and the Power BI project must be accessible to and restorable by the other group members.
A Git repository is used for version control of the project files. The SQL scripts and the Power BI file are stored in the repository. The database itself is not stored in the Git repository; the goal is that each group member can restore the same data structure in their local environment from the solution in the repository.
Hannes Seeberg
What Went Well?
We got a good topic that makes it possible to analyze a SaaS company's product data. The team was joined by people who liked this topic.
The start of the project, the team vibe, and self-directed team members who took the initiative and found tasks that suited them and that they enjoyed.
Where Did We Struggle?
Not every task suits everyone. Sometimes we had to do things that were not our strengths or that we simply did not enjoy, for example using Power BI: a difficult user interface and very complicated file synchronization via GitHub.
What Would We Do Differently?
Because using AI turned out to be an unplanned but natural part of everyone's work, we could acknowledge its use and plan it into the project. We could think about what could be automated with AI next time, and save tokens that way too.
Experience with AI
Liis Normak
During the project, AI was most useful for solving technical problems step by step, explaining SQL and DAX logic, and comparing possible solutions. AI was also used to help structure and word the documentation.
However, the solutions AI suggested had to be checked against the project's actual data model and data. For example, in Power BI the cause of a wrong result may at first look like a problem with a DAX formula or a relationship, while the real cause may be a field used in the visualization coming from the wrong table or from a table not connected to the data model. This happened during the project when using the device attribute.
Such cases showed that AI is a useful aid for solving problems and learning, but it does not replace understanding the data model or checking the results. AI suggestions were validated with SQL queries, the Power BI model, and the actual analysis results.
Felena Sooaluste
AI helped write Python code in the data cleaning phase, SQL queries in the data modeling stage, and DAX when creating visuals. I used it as a private tutor to explain DBeaver, Power BI, and GitHub workflows and to find the features I needed, fix broken visuals, merge file versions, revert them, and resolve conflicts. I also bounced my analysis ideas off AI and saved time when, in its assessment, an analysis would not have led to a valuable conclusion based on our data.
Raiko Karpov
Throughout this period, AI helped me find my way around both Visual Studio Code and GitHub. It also guided me toward a better and more precise understanding and helped resolve situations where errors occurred for some reason.
Hannes Seeberg
I used AI even before the group work started, to create an initial prototype of the report. This helped me better understand how what we learned in the course directly affects data cleanliness, the data model, and the facts and conclusions drawn from them.
Once the team members had finished the star schema and the SQL scripts, I used AI every day to run analyses and word conclusions.
The entire solution on this page, both the presentation and the documentation, was created with the help of Claude Opus 5.5 (Medium effort).