1. Introduction:
When studying many systems, we find that the course of the study depends on the data collected about the system, where appropriate rules are used for this data, if the data is random and follows a certain probability distribution, then we do not use the distinctive values of this distribution in order to analyze the data, and therefore the relationships used to calculate these values must be accurate relationships and obtained through the application of the basic definition recognized for each of the distinctive values, when we study the Geometric distribution found that some references are used to calculate the expectation of a relationship 𝐸(𝑋) =
relationship. 𝐸(𝑋) =
In this research, we presented two studies to calculate the expectation of the geometric distribution, which is a special case of the negative binomial distribution, and we explained the reason for the difference and its impact on the results of studies of systems that operate according to the geometric distribution.
Discussion: We get the expectation using one of two relationships:
1- Starting from the probability density function as follows:
2- Starting from the moment-generating function as follows:
Since the geometric distribution is a special case of the negative binary distribution, so in order for the study to be accurate and understandable, we first begin by presenting the negative binomial distribution:
1- Negative binomial distribution (Pascal distribution):[3] The negative binary distribution (Pascal distribution) is a discrete distribution defined as follows:
Let us have an experience, let it be 𝐴 an event related to that experience then:
Independently we repeat this experiment until we get an appearance of the event a number of times of once we denote B for the experiment in which it is arranged and in which the event will appear a number of times its 𝐴 magnitude, 𝑘 this means that in the experiment that we arrange and which we will denote the event will 𝐺 appear 𝑘+ 𝑥 a number of times its magnitude 𝐴 𝑘 , we denote the experiment that will be followed directly by the symbol 𝑥+ 𝑘−1 𝐵 in which the 𝐴 𝑘−1 event will inevitably appear then 𝐷 it is𝐴
The probability of 𝐷 a condition 𝐵 is the probability of the occurrence of 𝐴 any event
And the probability 𝐵 we get from the relationship:
We substitute in the relationship (3) :
1-1- Moment-generating function of negative binomial distribution (Pascal distribution):

1-2- Expectation of the negative binomial distribution (Pascal distribution) based on the moment-generating function:
![′ 𝑘 𝑘−1 𝑡=0 = [(( 𝑝 1 −𝑞𝑒𝑡) = [𝑘( 𝑝 1 −𝑞𝑒𝑡) ′] 𝐸( 𝑋) = [(𝜓(𝑡)) ) ] (1 −𝑞𝑒𝑡)2)] 𝑡=0 𝑡=0 𝑘−1 𝑝](https://americaspg.com/storage/fulltext/1469/79eaba8d4aa4939f/eq-15.png)
2. Geometric Distribution:
It is a special case of negative binary distribution when we repeat the experiment until the event appears for the first time, and then stop the experiment This means that, if a random variable expresses failures, then we say that X it is a geometric random variable If X we substitute in the relationship, the k = 1 probability density function of the random variable that follows the geometric distribution becomes as follows: (4)
2-1- The torque-generating function of the geometric distribution from the negative binary distribution:
2-2- Expectation of the geometric distribution based on the negative binary distribution:
2- We calculate the expectation of the geometric distribution from the relationships (𝟏) and (𝟐): 3-1- Calculation of the expectation of the geometric distribution through relation (1):
Let be a 𝑋 discrete random variable with a probability density function 𝑓(𝑥) = 𝑃(𝑋= 𝑥) in space 𝑅𝑥
We multiply both sides of the relation (∗) by (1 −𝑝)

of the two relationships (∗) ,(∗∗)

3-4- Calculation of the expectation of the geometric distribution through relation (2):
![= [ 𝑝𝑞𝑒𝑡 = [𝑝𝑞𝑒𝑡 ′ 𝐸( 𝑋) = [( 𝑝 1 −𝑞𝑒𝑡) = 𝑞 ] (1 −𝑞)2] 𝑝2 ] 𝑡=0 𝑡=0 𝑡=0 𝒒 𝒑 ,](https://americaspg.com/storage/fulltext/1469/79eaba8d4aa4939f/eq-32.png)
From the above, we find that the expectation is given by 𝑬(𝑿) =
Negative Binomial Distributions: [𝟔]
The probability density function as stated in the reference [𝟔] takes the following form:
where 𝑥−1 represents the number of successes, and we have 𝑘−1 successes
4-1- Moment-generating function of negative binomial distribution (Pascal distribution):
4-2- Expectation of negative binomial distribution (Pascal distribution) based on the moment-generating function:
![′ 𝑘 𝐸(𝑋) = 𝑀′𝑥(𝑡) = [( 𝑝𝑒𝑡 = [ 𝑘𝑝𝑘 (1 −𝑞𝑒𝑡)) ] (1 −𝑞𝑒𝑡)𝑘+1] 𝑡=0 𝑡=0](https://americaspg.com/storage/fulltext/1469/79eaba8d4aa4939f/eq-40.png)
We substitute 𝒕= 𝟎 we get the expectation
3- Geometric distribution: It is a special case of negative binary distribution when 𝑘= 1,Its probability density function becomes as follows:
5-1- The torque-generating function of the geometric distribution based on the negative binary distribution:
5-2- Expectation of geometric distribution based on negative binary distribution:
We note that there is a difference between (6) the two relationships and (7) through which we calculate the Expectation of the geometric distribution and the following example shows the difference
Example: In an experiment if the random variable x follows the geometric distribution and the probability of the observed event appearing p =
3 then the probability of not appearing is q = 1
The probability density function is according to the first study
And the expectation is
We have the probability density function according to the second study:
And the expectation is
Conclusion and Results:
The difference in the formula of the expectation between one reference and another reference is due to the fact that some references calculate the expectation from x = 0 , which means that the event has appeared from the first repetition of the experiment and according to the definition of geometric distribution the experiment is stopped and others take x = 1 this means that the event A did not appear the first time of the experiment and must be repeated
We find that it is better to deal with the geometric distribution as a special case of the negative binary distribution because it gives the real value of the expectation, and all users of the geometric distribution must clarify this difference by calculating the expectation.