WorksMathematics
The petrol station game: the regional average price. A mean field analysis
Abstract
In January 2023, the obligation for petrol stations to display the average fuel price calculated on a regional basis was introduced by the Italian Government. A mean field game model is here proposed to describe the evolution of the fuel price. In particular, each petrol station decides its own price, for the next day, taking account of an estimate of the average price, to be communicated by the Local Authority. The existence and the evolution of a mean field equilibrium are analytically investigated. Some simulations are compared with real data from the Autonomous Province of Trento, Italy.
Introduction
In the spring of 2023, at the petrol stations in Italy, displaying the average regional fuel prices to the costumers become mandatory. Actually, such obligation was suspended during 2024. However, data collection and processing continued, available on [1]. This was due to an Italian law designed, among other goals, to increase transparency and fuel price control. The underlying concept is: the “rational” consumer will avoid filling up at outlets whose prices are significantly above the average, knowing that for every gas station that has above-average prices, there is at least another one that has cheaper prices. In practice, the issue is more complex, because other factors may influence the choice of the customers, such as the presence of a bar, a car wash, a repair shop, etc.. The average price to be displayed is updated daily based on the individual price that each gas station has communicated to the Ministry of Enterprise and Made in Italy (MIMiI) the day before. It is then a quantity subject to a certain degree of uncertainty, until it is published, and every gas station attendant must somehow estimate it in order to understand what price is best for her/him.
In this paper we interpret the problem as a a mean-field game, in which the mean field is the average price. In particular, in the formulation of the problem, we get inspiration from a simple model that regulates the start time of a company meeting, “When does the meeting start”, which is contained in [6]. It is assumed that the gas station attendants, and consequently the consumers, are rational decision makers: in practice, this means that the players’ decisions are assumed to minimize some cost function. In our main model we assume that the cost of the raw material is constant and is the same for everyone. This may be justified since the evolution of the average price is considered in a rather short windows of days (see also Remark 1).
The model then aims to describe the dynamics of decisions, that is the evolution of prices, and therefore to rationally interpret the process that leads each gas station attendant to choose a certain price, in order to be capable to possibly predict future behaviors, suitably fitting the parameters.
This Introduction continues with some further details on the legislative context, on the available data and with a first notational description of the price evolution. Then, in Section 2, an analytical model is constructed and studied for what concerns equilibria and their convergence. In Section 3 some simulations are presented, comparing with data from the Autonomous Province of Trento and after a possible clustering of the petrol stations with respect to some of their specificities. As general references for the numerical and statistical tools, we refer to [8], [7].
Law & Model
With the Legislative Decree of January 14, 2023 (see [2] for the full text), the government communicated the new “Provisions regarding fuel bonuses and transparency and control of the retail price of automotive fuel.” What must be done in practice is highlighted in the dedicated FAQ section (see [3]) of the MIMiI website, of which we only report the most significant aspects.
Mimi, upon receiving the price communications, processes the data and calculates the arithmetic mean, on a regional and autonomous province basis, of the prices communicated by those engaged in the sale of automotive fuel to the public at facilities located outside the motorway network […]
MIMiI, starting August 1, 2023, will publish average prices in open format daily by 8:30 a.m. in a dedicated section of its institutional website, at www.mimit.gov.it/it/prezzomedio- carburanti [...]
Gas station attendants must display a sign showing the average prices for the types of fuel available at their point of sale, ensuring that it is updated daily.
Let us suppose that we have fixed a data collection day. We are going to use the following notation: as the average price displayed on that day (and communicated by the Ministry early in the morning); as the price decided by the -th player (the -th petrol station) for the next day for her/his own station; as the average price of the next day calculated as arithmetic mean of all prices . The transition scheme is then
From the game theory point of view (see for example [10]), we have a non-cooperative game with imperfect information (no one knows the prices that others will set, and consequently the average price, until the following day) and complete information (ignorance of the others’ moves is the same for each player; the average price of the current day on which to base estimates is known to all).
The data has been collected and made available as a .csv file since 2015 on the website [4]. Actually, starting in 2023, MIMiI has performed a data processing function and made a summary available. Just considering only data referring to Petrol (Benzina) self-service (outside the highways), we can observe in Figure 1 the evolution of the average price during the year 2023 for the Autonomous Province of Trento.

Figure 1. Evolution of prices for the Autonomous Province of Trento
The analytical model
In this section we introduce the costs faced by the agent (player) -th when the price of the next day must be decided on the estimated average price and describe how the transition (1) may be generated.
What is uncertain in the decision process of the -th player is the knowledge of the average price of the next day, . We then assume that the single agent -th, in its decision process, uses a personal estimate of as
where is a fixed coefficient and is a normally distributed random variable with and independent when . We now introduce the costs faced by the agent -th in its decision process for . In the following, is the positive part, and the parameters are fixed. We also introduce the notation for the price that agent -th is making the actual day.
Competition cost. This cost takes account of the fact that choosing a value for lower than the (estimated) average means that the agent earns less (in average) than its competitors:
Fidelity cost. This cost takes account of the fact that choosing a value for greater than the (estimated) average means that the number of customers probably decreases:
Reputation cost. This cost takes account of the fact that changing the price often and significantly is seen by the customers as a bad behavior:
Absolute price cost. It penalizes excessively high values of the price in absolute terms, independently from the estimated average price:
The global cost to be minimized is then given by
and the minimization process of the -th agent is given by
where is the expectation value of the random variable (where the randomness is in the choice of the estimated average as in (2)).
Remark 1 The cost terms (5), (6), in particular the latter, will play an essential role because they ensure the existence of an equilibrium, see Subsection 2.2. Indeed, as shown in Remark 2, when an equilibrium exists only if . Note that the parameter may somehow encode the information about the general price of petroleum: the bigger the second the smaller the first (less cost (7) in applying higher prices at the station). Concerning the minimization process (8) we see that it is posed on the whole real line . We refer to Remark 3 for the positivity of the prices.
Well-posedness
Considering the agent , and as fixed, we analyze the expectation value of the cost function (7) as function of , denoting it by (dropping the index ). In the following is the distribution function of and its derivative, that is its density.
Proposition 1 The function is derivable and
Moreover, it is strictly convex with second derivative
Proof. We have
The integrals in the right-hand side are -dependent. Note that when the integrand function vanishes in both integrals. Deriving with respect to we then get (the term with the derivative of the boundary of the interval of integration vanishes, for what said above)
From formula (9) we see that is also twice derivable and we get (10). Since and , we eventually get the strict convexity.
Corollary 1 The function has one and only one minimum point which is identified as the unique point such that .
Proof. The thesis immediately follows from Proposition 1 and the fact that is coercive: .
By Corollary 1, the minimization process (8) is well posed for each single agents and for all , and random variable .
Mean field equilibrium
We label the discrete time evolution by , , with the meaning of the passing of the days. At the first day we are given the average price and the collection of actual prices, one per every agent , , with , where is the number of agents. Then, better specializing the transition (1), we have the transition
where and the values are constructed by the minimization process (8). We denote by the function described in (12) which is well defined by the results in Subsection 2.1.
Definition 1 A mean-field equilibrium is a fixed point of the map , .
Remark 2 The terms (5) and (6) are introduced not only for analytical reasons, such as coercivity of the minimization problem, but also to avoid a structural degeneracy of the equilibrium problem. Indeed, if , then (9) gives at equilibrium , hence , with . Averaging with respect to yields , and since for every , necessarily . Thus namely . Hence, if , the unregularized problem cannot admit an equilibrium; if , the equilibrium is simply the actual value .
Proposition 2 The function is a contraction map on , endowed with the infinity norm , and hence it has a unique fixed point. The game has then a unique mean-field equilibrium.
Proof. For every , is the unique real number that makes in (9) vanish, with and . Differentiating the equality we get for and respectively
Since all the entries in (13) are non-negative, for every row of the Jacobian matrix of , namely , we have
where . Since is bounded, this estimate is uniform, hence there exists such that . It easily follows that is a contraction on , which is a complete metric space, and then it has a unique fixed point (see for instance [9]).
Remark 3 By Proposition 2, the map is contractive and therefore the mean-field equilibrium is unique; in fact it can be explicitly characterized, together with its uniqueness,. At a fixed point , hence the reputation term in (9) vanishes and one has . Arguing as in Remark 2, set , so that and . The previous condition becomes
For each the left-hand side is strictly increasing in and goes to as . Therefore for each there exists a unique solution with strictly increasing too. The equation then admits at most one solution . Since gives for every , then it is the solution and for all . Substituting in (14), , hence the unique equilibrium is for every . In particular, this equilibrium is positive, and therefore physically meaningful, if and only if . Moreover, the equilibrium value does not depend on , since the reputation term vanishes at a fixed point, nor on the coefficients . Obviously, they anyway affect the off-equilibrium best replies and hence the rate of convergence. Also observe that Proposition 2 gives stability of such equilibrium and guarantees that it can be reached by succesive iterations. In Figure 2 some behaviors of the nest-replay function for a fixed agent are reported for different values of the parameters. Note that the case is also there reported. Indeed, the results of Subsection 2.1, in particular Corollary 1, also hold in that case and moreover one easily gets the convergence of minima as for fixed.

Figure 2. a) If is higher, the best-reply is higher; b) if is lower, the best-reply is lower; c) if increases, the best-replay tends to not change; d) if is higher, the best-replay is lower.
Simulations
To make the model more realistic, we may want to take into account more than one type of petrol station. Namely, this means to fix a number of clusters, , and fit a model with 4-tuples of parameters . Each cluster has its numerosity and the average price is still calculated on the total number of agents . The proof of the existence of a unique mean-field equilibrium, Proposition 2, is the same.
Over the years, the Agenzia delle Entrate has considered a station classification procedure, [5], which grouped petrol stations according to their available services (e.g. bars, mechanical assistance, car washing facilities, etc.), with the aim of predicting their annual revenue, suggesting up to 7 groups and also giving their numerosity. This does not necessarily translate into 7 clusters for the price, but can be used as an upper bound on .
This increases the flexibility of the model. To avoid the risk of overfitting, 3 clusters only were used, for a total of 12 parameters. Each was estimated from the data, as the standard deviation of the prices for that specific agent over the quarter1. Starting from real data of the Autonomous Province of Trento, clusters were obtained through the -means algorithm (see Figure 3(b)).

(a)

(b)

(c) , , . (c): .
Figure 3.
Parameter estimation was then performed via constrained nonlinear least squares, forcing the parameters to lie in . The relatively large admissible range was chosen to avoid introducing strong a priori constraints on the dynamics. The initial condition was taken from real data. Repeated iterations of the LS method were performed, using a subsample of the time series to fit the dynamic of the model. Finding a global optimum is numerically challenging, since the 12-dimensional parameter vector must reproduce a time series of 77 observations, where each observation results from the interaction of 194 individual optimization problems. Some further constraints could be imposed, for example, on .
References
- [1]MIMiM. ”Osservaprezzi Carburante”. In: (2024). url: https://carburanti.mise.gov.it/ospzSearch/risultati.
- [2]MIMiM. ”Decreto Legge del 14/01/2023”. In: (2023). url: https://www.gazzettaufficiale.it/eli/id/2023/01/14/23G00007/sg.
- [3]MIMiM. ”Obbligo di esposizione dei prezzi medi dei carburanti - Domande Frequenti”. In: (). url: https:// www.mimit.gov.it/it/prezzo-medio-carburanti/faq.
- [4]MIMiM. ”Dati suddivisi per Trimestre”. In: (2024). url: https://www.mimit.gov.it/it/open-data/elencodataset/carburanti-archivio-prezzi.
- [5]Agenzia delle Entrate. Studi di settore VM80U. 2013, https://www.agenziaentrate.gov.it/portale/documents/20143/435828/aprile2013+-+VM80U_Cluster+VM80U+-+Commercio+al+dettaglio+di+carburanti+per+autotrazione.pdf/bed1c4c3-c373-4973-76cd-4bb9ef88f826?version=1.0
- [6]O. Guéant, J.M. Lasry, P.L. Lions. Mean field games and applications. In: Paris-Princeton Lectures on Mathematical Finance 2010. Lecture Notes in Mathematics, vol 2003, pages 205–266, Springer, Berlin, Heidelberg, 2011.
- [7]T. Hastie, R. Tibshirani, J. Friedman. The Elements of Statistical Learning, Springer, New York, 2009.
- [8]J. Nocedal, S.J. Wright. Numerical Optimization, Springer, New York, 2006.
- [9]J.M. Ortega, W.C. Rheinboldt. Iterative Solutions of Nonlinear Equations in Several Variables, SIAM Edition, 2000, reprinted.
- [10]M. Peterson. An Introduction to Decision Theory. Cambridge University Press, Cambridge, 2009.