1. Introduction: History and Motivation
One can hardly imagine today’s mathematics without using negative numbers. However, in the case of probability theory, the use of negative probabilities is currently very limited.
One reason for that is the problem of the interpretation of negative probabilities—but the problem of the interpretation and acceptance of negative numbers was not easier. Focusing only on the development of European mathematics, let us recall [
1] that Michael Stifel wrote about negative numbers as absurd numbers; Gerolamo Cardano considered negative roots of equations impossible solutions and called them fictitious; Franciscus Vieta discarded negative numbers entirely; Blaise Pascal regarded the subtraction of four from zero as total nonsense.
In the context of this article, the approach of René Descartes is worth special attention. He called negative roots of equations false, because they represent numbers less than nothing. However, he demonstrated that, given an equation, one can obtain another equation (and, actually, an infinite number of such equations) whose roots are larger than the roots of the original equation by any given quantity, which means that an equation with negative roots could be transformed into an equation with positive roots. Because of this, Descartes inclined to accept the notion of a negative number [
1].
The history of negative probability repeats, in some sense, the history of negative numbers. The need to solve important challenging problems often leads to entering previously unknown grounds and exploring them without hesitation. The notion of negative probability appeared first in quantum mechanics, and three great physicists, all Nobel laureates, contributed to that.
In 1932, Eugene Wigner wrote [
2] about using negative probabilities in intermediate derivations:
“Of course cannot be really interpreted as the simultaneous probability for coordinates and momenta, as is clear from the fact that it may take negative values. But, of course, this must not hinder the use of it in calculations as an auxiliary function which obeys many relations we would expect from such a probability.”
In his Bakerian lecture, given in 1940 and published in 1942, Paul Dirac provided an extended discussion on negative energies and negative probabilities, and seconded to Wigner [
3]:
“Negative energies and probabilities should not be considered as nonsense. They are well-defined concepts mathematically, like a negative sum of money, since the equations which express the important properties of energies and probabilities can still be used when they are negative. Thus negative energies and probabilities should be considered simply as things which do not appear in experimental results.”
In 1987, Richard Feynman [
4] also discussed the notion of negative probability and even provided an illustrative example with conditional probabilities, which is one of the examples of numerical simulation in this paper. Feynman wrote that
“A probability greater than unity presents no problem different from that of negative probabilities”,
because they both are used in intermediate computations, and the final result is always expressed as a positive number between zero and one.
The lecture by Paul Dirac, who was a Lucasian Professor at the University of Cambridge, provided motivation to Maurice Bartlett, who was also a professor at Cambridge, for writing the first mathematical paper [
5] on negative probability and creating its theoretical foundation.
“It has been shown that orthodox probability theory may consistently be extended to include probability numbers outside the conventional range, and in particular negative probabilities.”
“Negative probabilities must always be combined with positive ones to give an ordinary probability before a physical interpretation is admissible.”
“…a negative probability implies automatically a complementary probability greater than unity.”
Bartlett also introduced the notion of “extraordinary random variables” and their signed probability-generating functions:
“Random variables are correspondingly generalized to include extraordinary random variables; these have been defined in general, however, only through their characteristic functions.”
Bartlett’s work inspired some further theoretical explorations aimed at the development of a general theory of extended probability, such as in [
6,
7,
8,
9,
10,
11].
Naturally, there were also attempts of interpretation of the notion of negative probability [
12,
13,
14,
15,
16]. However, the interpretations of signed probability distributions still did not receive proper attention.
There are interesting works on the applications of negative probability in finance by Haug [
17] and by Burgin and Meissner [
18,
19]. Some ideas for applications have been collected by Blass and Gurevich [
20].
And here we come to the important reason for the current limited use of negative probabilities: there are some theoretical developments, but there is a total lack of suitable computational tools. A demonstration of how simulations of signed (or extended) probability distributions can be done is the main motivation for the present paper.
The first steps in this direction were made only very recently by Leonenko and Podlubny. In the work [
21], the Monte Carlo method for numerical differentiation of non-integer order has been developed (73 years after the publication of the Monte Carlo method for integration in [
22]), and in the papers [
23,
24], the signed probability distributions (generalized Sibuya distribution) were used for the numerical evaluation of fractional-order derivatives. In the case of fractional-order differentiation, the number of sign changes in the probability-generating function of the generalized Sibuya distribution is finite, and it was possible to use this to reduce the problem of the simulation of ordinary probability distributions with non-negative probabilities.
In the present article, several new types of examples of numerical simulation of signed probability distributions are presented. In particular, for the first time, a numerical simulation of the famous Richard Feynman example is provided. These examples of simulations provide additional light on how we can understand signed probability distributions.
2. Example 1: Partial Coins
The first-ever example of the numerical simulation of a signed probability distribution with an infinite number of sign changes (“half of a coin”, or a half-coin) has been provided by Leonenko and Podlubny only in 2025 [
25], exactly 20 years after a half-coin was introduced in 2005 theoretically by G. Székely [
26]. A “half-coin” is not a physical half of a round metal disk still having two sides, but a random variable taking an infinite number of values—some with positive probabilities, some with negative probabilities, alternating.
A partial
-coin is defined using its probability-generating function
where the coefficients
have alternating signs starting from
:
The way to the simulation of signed probability distributions, which is in some sense similar to Descartes’ approach to dealing with negative numbers, was indicated by Imre Ruzsa and Gábor Székely [
26]:
Theorem 1 (Ruzsa–Székely [
26,
27,
28])
. For every generalized generating function f of a signed probability distribution there exist two generating functions g and h of ordinary non-negative probability distributions such that . The proof of this theorem can be found in [
27] (Theorem 1) or in [
28] (Lemma 3.6).
This theorem guarantees the existence of g and h, but not the uniqueness, and it does not provide any method for constructing the functions g and h.
However, if we somehow determine the generating functions for the distributions
g and
h, then we can do the simulation using the following steps [
25]
Step 1. Expand the probability-generating functions g and h into power series, and compute their coefficients.
Step 2. Using the coefficients of the power series, compute the cumulated mass distribution functions and .
Step 3. Generate a set of uniformly distributed points in .
Step 4. For each find a pair of the values and ; for this, the method of the inverse cumulated mass probability function can be used.
Step 5. The differences of and give the values of the simulated signed distribution f.
The beauty consists in the fact that the difference of the outputs of the simultaneous trials of
H and
G is either zero or one, and simultaneously running two independent copies of a half-coin process produces the same outputs as tossing a normal coin. In ref. [
25], this method was used for simulating various types of partial coins (one-third-coins, etc.) and biased partial coins. The key instrument in searching for
H and
G was the Sibuya distribution [
29] and the software tools [
30] for its simulation developed earlier [
24].
For the
-coin (0 <
< 1) the pairs of suitable ordinary non-negative probability distributions
g and
h are [
25]:
where
k can be
The proof that the probability-generating functions (
2) and (
3) define the ordinary non-negative probability distributions is given in [
25] and can be used for simulating the signed probability distribution given by the probability distribution function (
1).
The functions are given by the generating function of the Sibuya distribution multiplied by , and are the products of and .
The simulations can be done using the five-step method described above, implemented in the form of a toolbox for MATLAB [
31], which can be used for further experiments. The results of one simulation for
(a two-thirds-coin) are shown in
Figure 1. Other examples of the simulation of partial coins (and biased partial coins) can be found in [
25].
3. Example 2
Let us consider a signed probability distribution
f with the following generating function, which is not an infinite series, but a polynomial:
The support of
f is
, with
,
, and
. Obviously,
, and formally using the standard formula for the expectation, we have
Let us show how one can obtain the ordinary probability-generating functions
and
necessary for simulating the signed probability distribution
f given by (
4).
On the way to a generating function for
, let us take
in the following form with positive coefficients:
Then the corresponding probability-generating function
is:
Taking into account (
6), we observe that the sum of the coefficient of
is equal to one, and it remains only to ensure that all coefficients of
are non-negative, that is,
and
, which means that
.
Different values of
produce different pairs of the probability-generating functions (
6) and (
7), which can be used for simulating the signed probability distribution
f given by (
4). Namely, taking
,
for
yields different pairs of ordinary probability distributions
g and
h.
Let us take, for example,
, then
. Then we have
In this case, the ordinary probability distribution g has the support with probabilities , .
The ordinary probability distribution h has the support with probabilities , , , .
The results of the simulation using
uniformly distributed points and
are shown in
Figure 2. The simulated expectation is close to (
5):
The provided toolbox [
32] allows simulations with different values of
N,
, and
.
4. Example 3
The example provided in this section is preparation for the simulation of Feynman’s example in the next section.
At first sight, it looks similar to the example in
Section 3 but does not allow obtaining the expressions for
and
in the form of polynomials. The key role here is played by the geometric probability distribution.
Let us consider a signed probability distribution
f with the following probability-generating function:
The support of
f is
, with
,
, and
. Obviously,
, and
On the way to a generating function for
, let us take some
, and consider
Let
be the coefficient of
in
. The first two coefficients are positive:
and we have to investigate the remaining coefficients
for
:
All
for
if
or
The roots are
, and the root in
is
So, for
we get
with positive coefficients and
also with all positive coefficients.
We need to ensure that the sum of the coefficients of
g and
h equals one. For the function
the sum of the coefficients is not one, but
so we have to take
, that is,
and then
Different values of
yield different suitable pairs of ordinary non-negative probability distributions
g and
h given by their probability-generating functions (
12) and (
13), which can be used for simulations of the signed probability distribution
f.
5. Example 4: Feynman’s Example
Now we can use the previous example (
Section 4) for simulating the famous Feynman example of the idea of using negative probabilities [
4]:
“First let us consider a simple probability problem, and how we usually calculate things, and then see what would happen if we allowed some of our normal probabilities in the calculations to be negative.”
The Feynman example can be presented as follows.
Suppose that a system can be in two conditions,
A and
B, occurring with probabilities
and
, and in each of these conditions, the probabilities of the resulting outputs {0, 1, 2} are different (see
Table 1). Obviously,
and the total probabilities of the resulting outputs are
and their sum is equal to one. The expectation
of the system in the Feynman example is:
Feynman could not do numerical simulations due to the lack of tools for simulating signed probability distributions—but we can do that now.
For the simulation, let us generate, for example,
uniformly distributed random points (the provided toolbox [
32] allows simulations with different values of
N).
In the first stage of this particular numerical simulation, 6987 points fell to condition A, and 3013 points went to condition B.
In the second stage, the classical simulation for condition
A produced 690 values of the output
, 4204 values of
, and 2093 values of
, which, in total, gives 6987 values that went to A. The frequencies of the output values and the first 100 trials are shown in
Figure 3a.
The simulation for condition
B realized following
Section 4 with the parameter
produced 1774 values of
, 1239 values of
, and zero values of
, which, in total, gives 3013 values that went to B. This means that the computed expectation for condition
B is
, which is close to what follows from (
10). The frequencies of the output values and the first 100 trials are shown in
Figure 3b.
Overall, the output appeared 2462 times, the output appeared 5263 times, and the output appeared 2093 times, giving the corresponding frequencies.
This means that the simulated expectation is close to (
14):
If we consider the signed probability tree representation of
Table 1, shown in
Figure 3c on the left, then we observe that it is actually equivalent to the probability tree with positive probabilities, which is shown on the right. Such understanding—reconfiguration of a probability tree with positive and negative probabilities into a probability tree with non-negative probabilities—applies also to other examples of the simulation of signed probability distributions provided in this paper. This opens wide possibilities for using signed probabilities in the fields of quantum computing, decision making, finance, insurance, large language models and artificial intelligence, and other fields where the use of signed probability distributions can extend the current level of mathematical modeling.
7. Conclusions and Discussion
From Bartlett’s remark that “extraordinary random variables…can be defined only through their characteristic functions” it follows that we have to work with probability-generating functions. The Ruzsa–Székely theorem is the only currently available tool that guarantees the existence but not the uniqueness of a pair of two ordinary non-negative probability distributions, which can be used for simulating a signed (extended, generalized) probability distribution. Currently, there is no general method for finding such pairs of ordinary distributions for simulating a signed probability distribution. Finding a general method is an open problem of great importance.
The main characteristic, the expectation, is in simulations the same as the expectation computed formally using the output values of a random variable and the signed probabilities of those output values.
However, the results of simulations show that the computed frequencies of the output values differ from those signed probabilities, and these frequencies are naturally non-negative. Also, in some situations (see the examples in this paper and the paper [
25]), the output values are also different from what one would expect from the signed probability-generating function.
The examples provided in this paper are the first ever of such kind, and they can be used as templates and benchmarks for other methods of simulation of signed probability distributions that might be developed in the future and/or as templates for creating other examples of simulations of signed probability distributions. Hopefully, they might be used for simulations in applied problems, where signed probability distributions of the considered types appear.
The presented method and examples of simulation might open wide possibilities for using signed probabilities in the fields of quantum computing, decision making, finance, insurance, large language models and artificial intelligence, and other fields where the use of negative probabilities and signed probability distributions can extend the current level of mathematical modeling.