Statistics Quest

Employee commute times

One row per employee of a fictional mid-sized company, Sandreed Services, describing a typical one-way commute: travel mode, shift, distance and the usual door-to-door time. Commute times are right-skewed with two extreme values, which makes the dataset ideal for comparing the mean and median and for discussing outliers.

Rows
240
Columns
5
One row is
one employee (their typical one-way commute)
Version
v1

Data dictionary

ColumnTypeUnitSummaryDescription
employee_id
Employee
idAnonymous employee identifier (E001–E240).
mode
Travel mode
category5 levels: car, bus, metro, bike, walkMain travel mode of the commute.
shift
Shift
category3 levels: morning, day, eveningWorking shift (morning starts 07:00, day 09:00, evening 15:00).
distance_km
Distance
numberkmmean 13, median 11.4, SD 9.346, range 0.3–61.4One-way door-to-door distance.
commute_min
Commute time
integerminutesmean 37.31, median 31.5, SD 23.81, range 4–148Typical one-way door-to-door commute time.

What it is good for

  • Compare the mean and median of a right-skewed variable and explain why they differ.
  • Identify outliers with the 1.5 × IQR rule and judge whether to keep them.
  • Compare a numeric variable across groups (mode, shift) with box plots.
  • Describe the relationship between distance and time and how it varies by mode.

Methods: mean vs median, skewness, box plot, IQR outlier rule, histogram, scatter plot, correlation.

Data quality notes

  • commute_min is strongly right-skewed (skewness > 1).
  • Two deliberate extreme values: employee E038 (car, about 61 km, 148 minutes) and E152 (bus, 14.2 km, 126 minutes — a breakdown-affected commute far slower than its distance suggests).
  • Times are rounded to whole minutes and distances to 0.1 km.
  • No missing values.

Provenance and licence

Mode drawn with fixed shares (car 48%, metro 17%, bus 15%, walk 12%, bike 8%). Distance depends on mode (log-normal for car/bus/metro, gamma for bike/walk). Time = fixed access/waiting overhead per mode + distance ÷ mode speed (morning trips 25% slower by car and 15% slower by bus because of congestion), multiplied by log-normal day-to-day variation (sd 0.18 on the log scale), rounded to whole minutes. Two records were then made extreme on purpose (rows 38 and 152 in 1-based order).

Synthetic data · CC0-1.0 (synthetic data generated by Statistics Quest) · generated deterministically (seed 20241001). It does not describe real people or organisations; any resemblance is coincidental.

Preview

Dataset

Employee commute times

240 rows · one row = one employee (their typical one-way commute) · synthetic data

EmployeeTravel modeShiftDistance (km)Commute time (minutes)
E001carday9.624
E002carday13.238
E003busday17.471
E004walkmorning2.524
E005walkday0.910
E006carday7.622
E007carday18.738
E008metroday18.443
E009metromorning4.629
E010metroday10.739
E011busday19.973
E012carmorning8.419

Used in