Skip to main content
QUICK REVIEW

[Paper Review] Size matters? Or not: A/B testing with limited sample in automotive embedded software

Yuchu Liu, David Issa Mattos|arXiv (Cornell University)|Jul 6, 2021
Software Testing and Debugging TechniquesComputer Science27 references13 citations
TL;DR

This paper proposes the Balance Match Weighted method for A/B testing in automotive embedded software with limited sample sizes, using pre-experimental data to balance covariates between control and treatment groups, reducing variance and improving statistical power. In a case study with 28 vehicles, the method reduced standard deviation by 37% and improved mean squared error by 17% compared to paired testing, enabling valid causal inference with small samples.

ABSTRACT

A/B testing is gaining attention in the automotive sector as a promising tool to measure causal effects from software changes. Different from the web-facing businesses, where A/B testing has been well-established, the automotive domain often suffers from limited eligible users to participate in online experiments. To address this shortcoming, we present a method for designing balanced control and treatment groups so that sound conclusions can be drawn from experiments with considerably small sample sizes. While the Balance Match Weighted method has been used in other domains such as medicine, this is the first paper to apply and evaluate it in the context of software development. Furthermore, we describe the Balance Match Weighted method in detail and we conduct a case study together with an automotive manufacturer to apply the group design method in a fleet of vehicles. Finally, we present our case study in the automotive software engineering domain, as well as a discussion on the benefits and limitations of the A/B group design method.

Motivation & Objective

  • To address the challenge of limited sample sizes in A/B testing for automotive embedded software, where vehicle sales volumes are orders of magnitude lower than in web-based systems.
  • To develop and validate a group design method that ensures balanced control and treatment groups despite small sample sizes.
  • To demonstrate the feasibility and effectiveness of the Balance Match Weighted method in real-world automotive software experimentation.
  • To provide a practical, step-by-step framework for implementing the method in automotive software engineering contexts.

Proposed method

  • The Balance Match Weighted method uses pre-experimental data to identify and balance observed covariates (features) between control and treatment groups, minimizing group variance.
  • It applies a matching algorithm to pair subjects with similar covariate profiles, ensuring that groups are statistically comparable before treatment.
  • The method incorporates both numerical and categorical covariates, enabling flexible and robust group balancing.
  • Regression-based analysis accounts for covariates to reduce metric variance, similar to CUPED, enhancing sensitivity to treatment effects.
  • The approach includes post-experiment validation by comparing feature distributions before and during the experiment to ensure group comparability.
  • It supports iterative experimentation, allowing gradual sample size increases in agile development cycles.

Experimental results

Research questions

  • RQ1Can the Balance Match Weighted method effectively balance control and treatment groups in automotive A/B testing with very limited sample sizes?
  • RQ2How does the method improve statistical power and reduce variance compared to standard randomization in small-sample automotive experiments?
  • RQ3What are the practical challenges in applying this method when prior data is scarce or when multiple drivers share a vehicle?
  • RQ4To what extent does the method maintain group comparability when experimental conditions change over time?
  • RQ5How does the method perform in real-world automotive embedded software testing, particularly in energy optimization use cases?

Key findings

  • In a case study with 28 vehicles, the Balance Match Weighted method achieved effective group balance with only 14 subjects per group.
  • Compared to a paired test, the matched A/B test reduced the standard deviation of the target variable by 37%, significantly improving precision.
  • The method improved the mean squared error (MSE) by 17% compared to paired testing, indicating better estimation accuracy.
  • The method enabled valid causal inference despite a small sample size, demonstrating its utility in low-sample automotive software experimentation.
  • Post-experiment validation confirmed that group comparability was maintained, and feature distributions remained balanced throughout the experiment.
  • The study identified key challenges, including the need for pre-existing data and limitations in capturing driver-specific effects when vehicles are shared.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.