What drives the price of a used Ford?

A data-driven pricing model for a used-car dealer: which vehicle characteristics move price, and how accurately can we predict it?

  1. Problem

    Pricing used inventory accurately

  2. Approach

    4 models compared on RMSE & MAPE

  3. Tools

    R · lm · rpart · caret

  4. Result

    R² 85.6% · RMSE $1,855

Type
Regression & prediction report
Date
December 2024
Tools
R — linear models, trees
Length
24-page report
85.6%

Price variation explained by the selected model

$1,855

Root mean square error, lowest of the four models

17,966

Vehicle records analyzed

01

The problem

Jordan Felich, a sales agent at AutoTrade S.A. (a fictional used-car retailer), manages a Ford inventory spanning model years 1995–2020. He wants to buy and sell at competitive, accurate prices. The research asked which factors most influence Ford prices, and how well a model can predict price from a vehicle's characteristics.

02

Dataset & context

17,966 Ford vehicle records with model (Fiesta, Focus, Kuga, Puma and others), year, price, transmission, mileage, fuel type, tax, MPG, and engine size. The average vehicle was a 2017 model priced at about $12,280 with about 23,400 miles.

03

Methodology

  • Explored relationships between price and each variable, and checked multicollinearity (GVIF).
  • Model 1: full linear regression.
  • Model 2: added interaction effects (year × mileage, mileage × fuel type).
  • Model 3: interactions plus a quadratic term for year.
  • Model 4: a regression tree, grown and pruned to its optimal size.
  • Compared all four on hold-out RMSE and MAPE.
04

Tools

  • R
  • lm (linear models)
  • rpart (regression trees)
  • caret
  • ggplot2
05

Key analysis

Adding interactions and a curved effect for model year steadily cut prediction error. The regression tree was the least accurate.

RMSE by model (lower is better)
  • 1 · Linear$1,999
  • 2 · + Interactions$1,871
  • 3 · + Quadratic year$1,855
  • 4 · Regression tree$2,648
Average prediction error in dollars.
MAPE by model (lower is better)
  • 1 · Linear14.66%
  • 2 · + Interactions12.96%
  • 3 · + Quadratic year12.69%
  • 4 · Regression tree19.00%
Average percentage error.
06

Findings

  • Model year: each additional year added about $1,183.50.
  • Mileage: about $0.06 of value lost per mile.
  • Engine size: each additional liter added about $3,597.56.
  • Automatics priced above manuals and semi-automatics. Hybrids and electrics started at a premium but lost value faster as mileage rose.
  • The regression tree confirmed model year as the top predictor, followed by engine size and mileage.
07

Business implication

A dealership can use these drivers to price with confidence instead of instinct. That means a dynamic pricing system, better-targeted marketing, and smarter inventory decisions. Hybrids need their own pricing strategy because their value drops faster with mileage.

08

Final result

Model 3 (interactions plus a quadratic year term) explained 85.6% of price variability with the lowest error: RMSE $1,855 and MAPE 12.69%.

What I learned: data quality and model choice drive accuracy. Interaction effects and non-linear terms made a real difference, and market trends belong in any pricing strategy.

09

Report & downloads

Full reportPDF · 24 pages · December 2024