I W Y A

Ads Analytics

Advanced Mathematics for Business and Technology

Vrije Universiteit Brussel — Academic Year 2026–2027

1. Introduction

In an increasingly competitive digital environment, businesses must allocate their advertising budgets efficiently to maximize customer acquisition. However, allocating larger budgets to advertising campaigns does not necessarily guarantee better performance.

This project investigates how mathematical optimization can support advertising budget allocation decisions. By combining historical advertising data, Python-based statistical analysis and linear programming, the study explores whether an alternative distribution of financial resources could generate more conversions without increasing total advertising expenditure.

2. Research Question

How can mathematical optimization be used to allocate a fixed advertising budget across digital campaigns to maximize conversions?

3. Dataset

The dataset selected for this research is the publicly available Sales Conversion Optimization dataset, published on Kaggle. It is described as containing historical Facebook advertising data from an anonymous organization.

The dataset consists of 1,143 observations, 11 variables and three company advertising campaigns.

The main variables considered in this study are:

  • Campaign ID: identification of each advertising campaign.
  • Spent: advertising expenditure.
  • Impressions: number of advertisement displays.
  • Clicks: number of recorded advertisement clicks.
  • Total Conversion: number of product inquiries.
  • Approved Conversion: number of confirmed purchases.

Approved conversions were selected as the primary performance indicator because they represent completed purchases rather than expressions of interest.

The preliminary analysis uses published campaign-level aggregates from the original dataset. The accompanying Python script provides a reproducible procedure for downloading, validating, cleaning and aggregating the original observations. Independent execution of the raw-data preparation remains necessary.

4. Mathematical Framework

This project combines descriptive performance analysis and mathematical optimization to improve advertising budget allocation.

Cost per Acquisition (CPA)

CPA = Advertising Spend / Approved Conversions

This indicator measures the average advertising cost required to generate a confirmed purchase. A lower CPA indicates greater campaign efficiency.

Campaign Efficiency

Efficiency = Approved Conversions / Advertising Spend

This indicator measures the number of approved conversions generated per monetary unit invested.

Budget Optimization

Using Python and linear programming, the model redistributes the advertising budget towards historically more efficient campaigns while maintaining the same total expenditure.

To limit excessive budget changes, each campaign’s expenditure is allowed to increase or decrease by a maximum of 25% relative to its historical budget. This constraint is a modelling assumption designed to limit excessive extrapolation.

The objective is to maximize projected conversions without increasing overall advertising expenditure.

5. Python Analysis 1 — Advertising Campaign Performance

The first analysis compares the historical efficiency of the three advertising campaigns.

Campaign 916 recorded the lowest cost per acquisition, at approximately 6.24 monetary units per approved conversion.

Campaign 936 achieved an intermediate acquisition cost of 15.81 monetary units.

Campaign 1178 recorded the highest acquisition cost, at 63.83 monetary units, despite receiving approximately 95% of the total advertising budget.

These findings demonstrate that campaigns generating the largest number of conversions are not necessarily the most cost-efficient.

Figure 1 — Historical Cost per Acquisition by Campaign

6. Python Analysis 2 — Budget Allocation Optimization

The second analysis applies a linear programming model using the SciPy optimization library.

The total advertising budget of 58,705.23 monetary units remains unchanged throughout the optimization process.

The model reallocates a portion of the budget from campaign 1178 towards campaigns 916 and 936, which demonstrated greater historical acquisition efficiency.

Under the selected constraints, the optimized allocation increases the budgets of campaigns 916 and 936 by 25%, while reducing the expenditure allocated to campaign 1178 by approximately 1.37%.

Figure 2 — Historical versus Optimized Advertising Budget Allocation

7. Results and Discussion

The historical advertising campaigns generated a combined total of 1,079 approved conversions.

Under the assumptions of the optimization model, the alternative budget allocation generates approximately 1,118.83 projected conversions, representing a potential improvement of 3.69% without increasing total advertising expenditure.

This corresponds to approximately 40 additional projected conversions.

The findings illustrate how mathematical optimization can support more efficient resource allocation decisions in digital advertising.

Nevertheless, these results represent theoretical projections rather than experimentally verified improvements.

8. Limitations

The model assumes that historical campaign efficiency remains constant when advertising expenditure changes. In practice, increasing advertising budgets may result in audience saturation, diminishing marginal returns or changes in acquisition costs.

Furthermore, campaign 916 operated with a relatively small historical budget, limiting the reliability of extrapolating its performance to higher spending levels.

The dataset does not establish causal relationships between budget changes and conversions. It also does not provide sufficient revenue information to calculate return on advertising spend.

Consequently, the optimization results should be interpreted as a decision-support scenario rather than a guaranteed business outcome.

9. Conclusion

This project demonstrates how mathematical modelling and Python-based data analysis can be applied to digital advertising budget allocation.

The optimization model suggests that reallocating existing financial resources towards historically more efficient campaigns could improve projected conversion performance without increasing total expenditure.

For digital marketing agencies, mathematical optimization offers a structured and transparent approach to resource allocation. Its practical implementation should nevertheless be accompanied by controlled experimentation and continuous performance monitoring.

10. Data Sources and Reproducibility

Original dataset: Kaggle — Sales Conversion Optimization.

https://www.kaggle.com/datasets/loveall/clicks-conversion-tracking

Published historical campaign aggregates: Deji Akeredolu (2025), Ad Campaign Funnel Analysis.

https://rstudio-pubs-static.s3.amazonaws.com/1365158_ecbfe1aa3d254a32880bdb6b97eb751e.html

The Python scripts, supporting data, mathematical optimization procedure and visualizations are documented in the accompanying GitHub repository.

 


Google-AdWords-logo
Meta-Logo
google-analytics-logo-png-google-analytics-developer-branding-guidelines-amp-policies-2388x1808
LinkedIn_Ads
sales navigator
google-adwwords-logo