Analysis code and processed dataset for: Realised design trade-offs in production battery electric vehicles — a market-scale empirical benchmark of European models

Published: 14 October 2026| Version 1 | DOI: 10.17632/ydv73z2dxj.1
Contributor:

Description

Analysis code and processed dataset for a market-scale empirical benchmark of 310 European-market production battery electric vehicles, using manufacturer specifications certified under the Worldwide Harmonised Light Vehicle Test Procedure (WLTP). CONTENTS The deposit contains the analysis dataset (478 vehicles, of which 310 carry complete certified figures) and four Python scripts that reproduce every table and figure in the accompanying article. Running run_all.py regenerates the full set of results in roughly two minutes. WHY THE DATASET CARRIES TWO VARIABLE SETS The upstream specification source publishes both manufacturer-certified type-approval figures and its own modelled estimates of real-world performance. A field-identification audit established that three widely used columns hold the modelled estimates rather than the certified values. The choice is consequential: on the same 310 vehicles, the fleet-level correlation between energy consumption and certified range is -0.31 using certified figures and +0.02 using the modelled estimates, and the multivariate consumption elasticity is -0.886 against -0.393. Both variable sets are retained side by side in certified_dataset.csv so this comparison can be reproduced directly. KEY RESULTS REPRODUCED Useable battery capacity is the dominant correlate of certified range, with an almost exactly proportional multivariate elasticity (1.013, 95% CI 0.985 to 1.041). Energy consumption carries a partial elasticity of -0.886. Raw energy consumption differs across drivetrain layouts, but the difference tracks vehicle size and mass and no layout term survives conditioning; the drivetrain result is reported as a bounded null, with any residual association confined to roughly 2% of certified range.

Files

Steps to reproduce

The dataset and results can be reproduced at two levels. Level A reproduces all tables and figures using the supplied archive, while Level B rebuilds the certified dataset from the original sources. Level A: Reproducing the Results Install Python 3.10 or later, navigate to the `bev-benchmark` project directory, create and activate a virtual environment, and install the required packages using `pip install -r requirements.txt`. Run `python run_all.py` to generate all results. The tables are saved as CSV files in `outputs/tables/`, figures are generated in PDF and 600 dpi PNG formats in `outputs/figures/`, and statistical logs are saved in `outputs/logs/`. Individual statistics can be checked in the corresponding log files. Randomised analyses use the fixed seed `RANDOM_SEED = 20260101` in `src/config.py` to ensure reproducibility. Level B: Rebuilding the Certified Dataset Download the European battery electric vehicle (BEV) specification table from Opendatabay (https://www.opendatabay.com/data/consumer/307cb895-6de0-4181-8452-7ec50f8a7a8e) and save it as `data/electric_vehicles_spec_2025.csv`. The file contains 478 vehicle records with source URLs linking to individual vehicle pages on EV Database. Download the vehicle pages as rendered HTML and save them in `data/html_cache/`, naming each file using its numeric vehicle ID, for example, `1904.html`. Follow the source provider’s terms of use and maintain a low request rate. Then run `python run_all.py --with-extract` to rebuild the dataset, or run `python src/01_extract_certified.py` to execute the extraction stage alone. The extraction process collects vehicle specifications, including battery capacity, WLTP range and consumption, real-world estimates, power, torque, speed, acceleration, weight, payload, wheelbase, and platform. It also maps body-segment codes and identifies certified vehicles based on the availability of TEL range, TEL rated consumption, and usable battery capacity. Verification Run `python tools/verify_extraction.py src data/html_cache data/certified_dataset.csv` to compare the rebuilt dataset against the cached source pages. The supplied dataset and 2026 HTML cache achieved 100% agreement across all 19 page-derived fields for 439 cached vehicles. Finally, rerun Level A to reproduce the tables, figures, and statistical results. Identical outputs are expected when the same dataset and source cache are used.

Institutions

Categories

Battery Charging, Automotive Design

Licence