Part III — Choices and policy · Chapter 8
What tip payments reveal about the payment screen
Card tips in New York's yellow cabs still pile up, to the cent, on a few whole percentages: the likely buttons on the back-seat screen. Read back from 2009 to 2026, the inferred buttons reproduce a published study and shift when TLC adds a fee.
On this page
- What the trip files record about tips
- How a default shows up in payment records
- The 2009 comparison, reproduced
- Where the buttons applied: by fare
- When the inferred defaults changed
- What the screen counts as the fare, and when fees were added
- How the pipeline tests every tip to the cent
- Reusing the approach
In 2009 a New York cab passenger paying by card saw a screen with three tip buttons. Which three depended on who had supplied the cab's meter. Kareem Haggag and Giovanni Paci used that accident of supply to study defaults: in "Default Tips" (AEJ: Applied Economics, 2014) they found that the company whose screen suggested 20, 25 and 30% collected higher tips than the one suggesting 15, 20 and 25%, and that more of its riders left no card tip at all.
What happened to those defaults over the next seventeen years? This chapter asks whether card tips still pile up on a few round percentages, which ones, for which vendor and year, and whether the screens counted each new surcharge in the amount they took a percentage of. The answers come from TLC's own trip files: 212 monthly parquet files of yellow-cab trips, read in place, of which the pipeline downloaded 29% of the bytes.
Card tips still land on a handful of whole percentages
Querychapters/02-default-tips/pipeline/10_stage.sqlShow SQL
INSERT INTO hist_cells
SELECT ym, vendor, base, unnest(map_keys(h)), unnest(map_values(h))
FROM (SELECT ym, vendor, base, histogram(least(round(200.0 * tip_c / amt), 81)::SMALLINT) AS h
FROM card_p WHERE p IS NOT NULL
GROUP BY ALL);One histogram() map per file, vendor and base, unnested to rows; 20_model.sql keeps each vendor-year's best baseRuns at build time in DuckDB 2.0; shown for reading.Open file
Bunching on default percentages has not faded. In 2025, 67% of card-coded trips in VeriFone/Curb cabs tipped exactly 10, 15, 20, 25 or 30% of the amount before tip, to the cent. In CMT cabs the share was 30%, down from 54% in 2022. The percentages moved: in 2009 CMT's tips bunched on 15, 20 and 25% (plus a smaller point at 16%, likely an artifact of an unrecorded surcharge; see below) and VeriFone's on 20, 25 and 30%. In 2025 both vendors' tips bunched on the same points, 10, 15, 20, 25 and 30%.
What the trip files record about tips
Tips are recorded only when the passenger pays by card, so every tip measure here is over card trips. The card share of yellow trips rose from 26% in 2009 to 78% in 2023, then fell to 64% in 2025, when 27% of trips carried a payment code other than card or cash (5% in 2023; recent TLC data dictionaries add a code 0, "Flex Fare trip"). Those trips are left out.
Each file names the company that supplied the cab's meter and screen. In 2009-2010 the files spell it out (CMT, VTS, DDS); from 2011 they carry a code that TLC's dictionary maps to Creative Mobile Technologies (1) and VeriFone, later Curb Mobility (2). The chapter calls the two CMT and VeriFone/Curb and treats each code as one company over time, which the files cannot confirm.
How a default shows up in payment records
The screens themselves were never recorded, so the defaults have to be read back from the tips. The arithmetic makes that possible. A button computes a percentage of some amount and rounds it to the cent; a passenger choosing their own tip usually picks a round sum. Take a $10.00 fare with a $0.50 surcharge. A 20% button produces exactly $2.10 if the screen counts the surcharge and $2.00 if it does not, while a rider tipping by hand most likely leaves $2 or $3.
So the pipeline tests every card trip the same way: for each candidate base, from the fare alone to the recorded total, it takes the nearest whole percentage and asks whether the tip is within one cent of it. A percentage counts as a bunching point, the likely position of a button, only when far more trips land on it than on its neighbours, counting only tips that are not whole dollars, so ordinary round-number tipping cannot create one. The base under which the bunching is sharpest is the amount the screen most plausibly used. The last section shows the queries; the sections between test the inference against a published study, against the fare at which buttons switched on, and against the dates fees were added.
The 2009 comparison, reproduced
The first check is whether these files tell Haggag and Paci's story. The paper calls its two companies "Vendor" (20/25/30% above $15, computed on fare plus surcharge, and $2/$3/$4 below $15) and "Competitor" (15/20/25% on the whole amount). The pipeline matches them to TLC's labels from the bunching points alone: in 2009, CMT's tips bunched on 15, 20 and 25% of the full amount (plus a smaller point at 16%, discussed below), and VeriFone's on 20, 25 and 30% of fare plus extra. So VeriFone is the paper's Vendor and CMT its Competitor. The shares of 2009 trips agree with the paper too: 49.1% VeriFone and 45.0% CMT, against the paper's 49% and 45%. And the files hold 170,896,055 trips for 2009, against the paper's 170,896,479.
The paper's cleanest comparison uses rides from LaGuardia, where passengers take whichever cab is next in line: January-October 2009, daytime hours with no surcharge, no tax and no toll, fares above $15. On the same sample, VeriFone riders tipped 19.05% of the fare on average, CMT riders 18.50%. The difference is +0.55 points (standard error 0.06), against the paper's +0.675 points (standard error 0.099, clustered by driver). The zero-tip share differs by +3.2 points (paper +2.8 points), and the share tipping exactly 25% by +3.3 points (paper +3.4 points). All three have the paper's sign and are more than two standard errors from zero under either standard error. The sample is larger than the paper's (62,374 and 49,998 rides) because it uses a box around the airport, not the census tract, and skips the paper's driver-level cleaning.
On the paper's own samples, the files reproduce the direction of every vendor difference
| LaGuardia: tip, % of fare (points) | 0.549 | 0.057 | 0.675 |
| All rides: tip, % of fare (points) | 3.577 | 0.012 | 3.197 |
| LaGuardia: zero-tip share (points) | 3.241 | 0.143 | 2.800 |
| All rides: zero-tip share (points) | 1.074 | 0.008 | 0.900 |
| LaGuardia: share tipping exactly 25% (points) | 3.258 | 0.175 | 3.400 |
Querychapters/02-default-tips/pipeline/10_stage.sqlShow SQL
SELECT c.ym, c.vendor, c.fare_c, c.tip_c, 100.0 * c.tip_c / c.fare_c AS pct,
c.lon BETWEEN s.lga_lon_min AND s.lga_lon_max AND c.lat BETWEEN s.lga_lat_min AND s.lga_lat_max
AND c.fare_c > s.lga_min_fare_cents AS in_lga
FROM card c, hp_sample s
WHERE c.pickup_at::DATE BETWEEN s.first_day AND s.last_day
AND c.tolls_c = 0 AND c.mta_c = 0 AND c.extra_c = 0 AND c.fare_c > 0 AND c.tip_c >= 0
AND ((isodow(c.pickup_at) <= 5 AND hour(c.pickup_at) BETWEEN 6 AND 15)
OR (isodow(c.pickup_at) >= 6 AND hour(c.pickup_at) BETWEEN 6 AND 19));The paper's sample, from the January-October 2009 filesRuns at build time in DuckDB 2.0; shown for reading.Open file
On all daytime rides without surcharges (the paper's Table 1 sample), the gap is wider, +3.58 points (paper +3.20 points), with CMT at 18.29% and VeriFone at 21.87%. That sample mixes fares below and above $15, so it does not compare like with like, as the paper also notes. Neither comparison is an experiment: drivers chose their cabs, and the screens differed in more than the percentages.
One wrinkle: over all of CMT's 2009 card-coded trips, the share at its points was 59% in March, 29% in July and 61% in December, and the small 16% point came and went with it. CMT's files carry no time-of-day surcharge in the surcharge column until October; from January to March it appears to be folded into the fare, and from about April to September in neither column, so a tip computed on fare plus surcharge matches no recorded base. On the paper's daytime rides, which carry no surcharge, CMT's share stayed between 55% and 57% in every month. The files cannot confirm this reading, but it fits; the pipeline README has the evidence.
Where the buttons applied: by fare
In 2009, VeriFone's percentage defaults started at $15; by the last full year they covered every fare
The $15 threshold the paper used for its main design shows up in the files without being looked for. Below $15 in 2009, VeriFone tips were mostly whole dollars, the $2/$3/$4 buttons; at $15 and above, 52% landed on 20, 25 or 30%. CMT shows no break, because it offered percentages at every fare.
When the inferred defaults changed
VeriFone/Curb's bunching spread to every fare in early 2012; CMT's dropped from December 2022
VeriFone/Curb's share at its points rose from 12% in 2011 to 59% in 2012 and has stayed above that since. The fare-level figure shows where the change happened: from 2012 its bunching extends below $15 (65% of 2013 trips with an $8 base tipped at a bunching point), consistent with percentage buttons at every fare.
CMT's drop has no such explanation in the data. It began in December 2022 and was complete by January 2023. Its share of card-coded trips at the 20% point alone fell from 45% in 2022 to 25% in 2023, and no candidate base brings it back. Over the same years more CMT card-coded trips recorded no tip: 6% in 2022, 16% in 2025, against 5% for VeriFone/Curb. One lead, from outside the trip files: TLC's first metered-fare increase in about ten years took effect on 19 December 2022, once each meter was recalibrated (TLC Industry Notice 22-02). That may have come with new screen software in CMT cabs, but the files cannot say whether CMT changed its buttons, its tip recording, or its customers.
What the screen counts as the fare, and when fees were added
When TLC added a surcharge, the two vendors' screens did not always count it
VeriFone/Curb
CMT
Three changes stand out, each in the year a charge first appeared on most card trips:
- 2015, the improvement surcharge (on most trips from January 2015). VeriFone/Curb's bunching on fare plus extra fell from 54 points in 2014 to 4 points in 2015, while bunching on a base with the MTA tax and the new surcharge rose from 12 points to 58 points, and to 62 points with tolls added. From 2015 its bunching is consistent with a screen that counts taxes, surcharges and tolls, as CMT's had pointed to since 2009 (41 points with tolls against 38 points without). In January 2015, the surcharge's first month, 45.8% of VeriFone/Curb card-coded trips matched on the old base and 20.1% on the new one (61.9% on the new one in February), which fits screens switching during the month.
- 2019, the congestion surcharge (from February 2019). VeriFone/Curb's bunching is consistent with a base that includes it, CMT's with one that leaves it out. CMT's recorded
total_amountalso stopped adding up: it differs from fare plus fees plus tolls on 84% of CMT's 2019 card trips, against 0% of VeriFone/Curb's. CMT's best base, the recorded total less tip, therefore scores with the bases that leave the surcharge out. - 2025, the CBD congestion fee (from January 2025). No change in either vendor's best base.
The MTA tax, on most trips from November 2009, is the earliest case: VeriFone's 2010 bunching scores 10 points on fare plus extra and 0 points on the base with the tax, and 2011 is the same (10 points and 0 points).
How the pipeline tests every tip to the cent
Six SQL files run in order against one DuckDB file, the last writing the manifest; only 10_stage.sql touches the network. The full run took 38 minutes and downloaded 9.2 GB in 1,938 HTTP GET requests, on a Linux x86-64 container, 4 cores, 16 GB RAM, with DuckDB capped at two threads and 2.5 GB of memory.
Read only the money columns, one schema era at a time
The yellow files changed column names twice:
Tip_Amtandvendor_namein 2009,tip_amountandvendor_idin 2010,tip_amountand an integerVendorIDfrom 2011, with surcharges added along the way (an improvement surcharge, a congestion surcharge, an airport fee, a CBD congestion fee). One view per era maps them onto the same columns, in integer cents;union_by_namelines up the files within an era, and a filename filter keeps the era's anchor file from being scanned.10_stage.sqlSQL CREATE OR REPLACE MACRO cents(x) AS TRY_CAST(round(x * 100) AS BIGINT); SELECT filename, TRY_CAST(VendorID AS BIGINT)::VARCHAR, TRY_CAST(payment_type AS BIGINT)::VARCHAR, cents(fare_amount), cents(coalesce(extra, 0)), cents(coalesce(mta_tax, 0)), cents(coalesce(improvement_surcharge, 0)), cents(coalesce(congestion_surcharge, 0)), cents(coalesce(airport_fee, 0)), cents(coalesce(cbd_congestion_fee, 0)), cents(coalesce(tolls_amount, 0)), cents(tip_amount), cents(total_amount), NULL, NULL, NULL FROM read_parquet(getvariable('r_tpep'), union_by_name = true, filename = true) WHERE list_contains(getvariable('b_tpep'), filename);Projection pushdown does the rest: DuckDB fetches only the column chunks a query names. The pipeline downloaded 9.2 GB of the 32 GB the files hold (29%). There is no row pruning to be had: every file from 2009 to 2022 stores its month as a single row group, and nothing in the files is sorted by payment type.
212 files · 1.86 billion rows counted · 9.2 GB downloaded in 61 passes, 38 minuteschapters/02-default-tips/pipeline/10_stage.sql
Test tips to the cent
A default button computes the tip as a percentage of some amount and rounds it to the cent. So the test is exact: for each trip and base, take the nearest whole percentage
pand ask whether the tip is within one cent ofp% of the base. In integer cents there is no floating-point slack to tune.10_stage.sqlSQL SELECT ym, vendor, base, b_total, tip_c, CASE WHEN amt >= getvariable('min_base') AND tip_c >= 0 THEN least(round(100 * tip_c / amt), 101)::SMALLINT END AS p, p IS NOT NULL AND p <= 100 AND abs(100 * tip_c - p * amt) <= 100 AS exact, CASE WHEN exact THEN round((100 * tip_c - p * amt) / 100.0)::SMALLINT END AS off_cents, tip_c % 100 = 0 AS whole_dollar FROM long;Why one cent and not half: in 2016, 79% of CMT's tips at its bunching points were exactly one cent below the percentage, against 5% of VeriFone/Curb's. That looks like a screen truncating a floating-point product, and a half-cent test would have missed most of CMT's defaults.
Card trips × 6 bases → 1.6 million cells, 6.12 billion trip-base pairs, every one accounted forchapters/02-default-tips/pipeline/10_stage.sql
Find the bunching points from the data
The screens' defaults are not recorded, so the pipeline looks for whole percentages whose share of trips stands far above its neighbours. A window median over
p-3 … p+3, withEXCLUDE CURRENT ROWsopdoes not count toward its own baseline, gives the local level.20_model.sqlSQL SELECT *, share_nonround - nb_median_nonround AS excess_nonround, p BETWEEN r.p_min AND r.p_max AND share_nonround >= r.min_ratio * nb_median_nonround AND share_nonround - nb_median_nonround >= r.min_excess AS is_point FROM (SELECT *, median(share_nonround) OVER w AS nb_median_nonround FROM p_year WINDOW w AS (PARTITION BY year, vendor, base ORDER BY p RANGE BETWEEN 3 PRECEDING AND 3 FOLLOWING EXCLUDE CURRENT ROW) ), bunching_rule r;A point needs a share at least three times the local median and at least half a point above it, counting only tips that are not a whole number of dollars. The last condition came out of the development run: in 2009-2010, VeriFone's $2/$3/$4 buttons for short rides, landing on a meter that (as the paper describes) moved in 40-cent steps, put spikes at percentages such as 35%, where 0.85% of 2009 VeriFone trips sat, but only 0.04% without whole-dollar tips.
Each vendor, year and base: 63 shares, a local median, a yes or nochapters/02-default-tips/pipeline/20_model.sql
Ask which fare base the screen used
A 20% button on a $10 fare with a $0.50 surcharge gives $2.10 if the screen counts the surcharge and $2.00 if it does not. Scoring the bunching under each candidate base, from the fare alone to the recorded total, points to the amount the screen most plausibly used.
QUALIFYkeeps the winner per vendor and year without a subquery.20_model.sqlSQL CREATE OR REPLACE TABLE best_base AS SELECT year, vendor, base, base_label, n_points, excess_at_points, share_at_points, points FROM base_scores QUALIFY row_number() OVER (PARTITION BY year, vendor ORDER BY excess_at_points DESC, base_order) = 1;Only trips that carry a surcharge, tax or toll can tell bases apart; on the rest every base is the same amount.
Six candidate bases; QUALIFY keeps the one with the most excess masschapters/02-default-tips/pipeline/20_model.sql
Sample first, then run in full
run.pyfirst runs the source, stage and model files on four months, one per schema era plus April 2026, then the whole pipeline on every month. The development run is where the one-cent rule, the whole-dollar condition and the "fare + extra" base came from. All three were settled before the full run.Four months: 48 s, 364 MB · all 212 months: 38 minuteschapters/02-default-tips/pipeline/run.py
Reusing the approach
Finding defaults from outcomes works wherever people choose from a menu that is not recorded: suggested donation amounts, preset quantities, default plan sizes. Build the candidate values, test each record against each candidate exactly, and look for values that stand far above their neighbours. A template, for a table t(group_id, amount_cents, base_cents):
WITH p AS (
SELECT group_id, round(100 * amount_cents / base_cents)::INT AS p,
abs(100 * amount_cents - round(100 * amount_cents / base_cents) * base_cents) <= 100 AS exact
FROM t WHERE base_cents >= 200),
s AS (
SELECT group_id, g.p, count(*) FILTER (WHERE p.exact AND p.p = g.p) / count(*) AS share
FROM p, range(1, 64) AS g(p) GROUP BY ALL)
SELECT *, median(share) OVER (PARTITION BY group_id ORDER BY p
RANGE BETWEEN 3 PRECEDING AND 3 FOLLOWING EXCLUDE CURRENT ROW) AS baseline
FROM s
QUALIFY share >= 3 * baseline AND share - baseline >= 0.005;Two lessons from this chapter carry over. Test in integer units, and let the data tell you the rounding (here, one cent below). And check whether a spike survives without round amounts: round numbers bunch on their own.
cd chapters/02-default-tips/pipeline
uv venv && uv pip install duckdb==2.0.0
python -I run.py # four-month dev run, then all months, then out/manifest.json
python -I ../page/fill.py # regenerate this page from page/index.mdx.tplThe full run took 38 minutes here (0.6 s of it for 20_model.sql; everything after the stage step runs offline). 21 of 21 checks in checks.sql passed:
| all_checks_ran | 20.000 | 20.000 | yes |
| cells_consistent | 6,122,885,412.000 | 6,122,885,412.000 | yes |
| fee_cells_rows | 1,020,547,890.000 | 1,020,547,890.000 | yes |
| files_staged | 212.000 | 212.000 | yes |
| hp_bases_2009 | 2.000 | 2.000 | yes |
| hp_direction_lga_tip_25 | 0.034 | 0.033 | yes |
| hp_direction_lga_tip_pct | 0.675 | 0.549 | yes |
| hp_direction_lga_zero_tip | 0.028 | 0.032 | yes |
| hp_direction_table1_tip_pct | 3.197 | 3.577 | yes |
| hp_direction_table1_zero_tip | 0.009 | 0.011 | yes |
| hp_months | 10.000 | 10.000 | yes |
| hp_paper_se_lga_tip_25 | 0.034 | 0.033 | yes |
Full pipeline: chapters/02-default-tips/pipeline. Gallery item G7 (tip bunching by year) reads g7_tip_bunching_by_year.json.