Prospects for Applied Mathematics and Data Analysis

Study on the Expectation of Geometric Distribution

Mohammad Jdeed
Volume 1, Issue 1, pp. 52-56 (2023)
DOI: https://doi.org/10.54216/PAMDA.010104
Online: https://americaspg.com/journal/34/article/1476

Abstract

When we want to know the truth of the emergence of a scientific principle, we find in many cases that it is no more than a process of interpretation, description and analysis of existing natural phenomena of various kinds, this is done by identifying the components on which these phenomena depend and the qualities and characteristics that each organism enjoys, which enables us to form a clear strategic vision that helps us in developing pre-solutions to what we expect from the problems resulting from any emergency or exceptional circumstance Most studies in the fields of science need two types of study:

1-       Study the real data obtained through observation and description, and  then record and tabulate the case information we are studying.

2-       the study of phenomena to predict what the phenomenon will become in the near and even distant future,

The statistical analysis puts us in the merits of the current and future situation of the system under study, and statistical analysis is the applied aspect of probability science, through the probability distributions that are used in different fields of science, the probability of the values of the variable can be calculated by applying a mathematical equation called the probability density function and by using distinctive values for these distributions such as expectation, variance and standard deviation   From analyzing the data to reach the desired results, after reviewing a number of references, it drew my attention that the expectation of the geometric distribution is calculated using a relationship that varies from one return to another, knowing that these references start from the basic definition of the expectation or from the moment-generating function,  and logically the results must be the same, so I prepared this research, through which I explained the reason for  the difference, which in turn may have an impact on the results of studies for the systems which works according to this distribution (the importance of this effect depends on the meaning of the expectation for the studied system)

Keywords: Probability; Probability Distributions; Discrete Probability Distributions; Negative Binomial Distribution; Probability Density Function; Moment-Generating Function; Geometric Distribution; Expectation &nbsp

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 𝐸(𝑋) =

π‘ž 𝑝  , [1,2,3] , and others use a
1 𝑝 , [4 βˆ’14].

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:

𝐸( 𝑋) = βˆ‘π‘₯ 𝑓(π‘₯)        (1) π‘₯πœ–π‘…π‘₯

2- Starting from the moment-generating function as follows:

β€²] 𝑑=0        (2) 𝐸( 𝑋) = [(πœ“(𝑑))

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:

𝑃(𝐴) = 𝑝⇒𝑃(𝐴) = 1 βˆ’π‘= π‘ž  &  𝑝+ π‘ž= 1   &  0 < 𝑝< 1

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𝐴

𝑃(𝐺) = 𝑃(𝐷∩𝐡) = 𝑃(𝐡)𝑃(𝐡)      (3)

The probability of 𝐷 a condition 𝐡 is the probability of the occurrence of 𝐴 any event

𝑃(𝐡) = 𝑃(𝐴) = 𝑝

And the probability 𝐡 we get from the relationship:

𝑃(𝐡) = (π‘₯+ π‘˜βˆ’1 π‘₯ ) π‘π‘˜βˆ’1π‘žπ‘₯

We substitute in the relationship (3) :

𝑃(𝐺) = (π‘₯+ π‘˜βˆ’1 π‘₯ ) π‘π‘˜βˆ’1π‘žπ‘₯ 𝑝
𝑃(𝐺) = 𝑓𝑋(π‘₯) = (π‘₯+ π‘˜βˆ’1 π‘₯ ) π‘π‘˜π‘žπ‘₯      ; π‘₯= 0,1,2,3, βˆ’βˆ’ , π‘˜= 1,2,3       (4)

1-1- Moment-generating function of negative binomial distribution (Pascal distribution):

πœ“π‘‹( 𝑑) = E(𝑒𝑑π‘₯) = βˆ‘ 𝑒𝑑π‘₯𝑓π‘₯(π‘₯) = βˆ‘ 𝑒𝑑π‘₯ ∞ π‘₯ ) π‘π‘˜π‘žπ‘₯ ∞ (π‘₯+ π‘˜βˆ’1 π‘₯=0 π‘₯=0
πœ“π‘‹( 𝑑) = βˆ‘ 𝑒𝑑π‘₯ ∞ (π‘₯+ π‘˜βˆ’1 π‘₯ ) π‘π‘˜(π‘žπ‘’π‘‘)π‘₯= π‘₯=0
(π‘žπ‘’π‘‘)π‘₯= π‘π‘˜ π‘₯ ) ∞ πœ“π‘‹( 𝑑) = π‘π‘˜βˆ‘ (π‘₯+ π‘˜βˆ’1 (1 βˆ’π‘žπ‘’π‘‘)π‘˜β‡’ π‘₯=0 π‘˜
π‘˜ πœ“π‘‹( 𝑑) = ( 𝑝 1 βˆ’π‘žπ‘’π‘‘)

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 𝑝
( π‘π‘žπ‘’π‘‘ π‘˜βˆ’1
π‘˜βˆ’1 𝐸( 𝑋) = π‘˜( 𝑝 1 βˆ’π‘ž) ( π‘π‘ž (1 βˆ’π‘ž)2) = π‘˜π‘žπ‘ 𝑝2 = π‘˜π‘ž 𝑝
𝐸( 𝑋) = π‘˜π‘ž

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)

𝑓𝑋(x) = (π‘₯ π‘₯) π‘π‘žπ‘₯      ; π‘₯= 0,1,2, βˆ’βˆ’βˆ’
𝑃(𝑋= π‘₯) = 𝑓𝑋(π‘₯) = (π‘₯ π‘₯) π‘π‘žπ‘₯= π‘π‘žπ‘₯      ; π‘₯= 0,1,2, βˆ’βˆ’βˆ’

2-1- The torque-generating function of the geometric distribution from the negative binary distribution:

π‘˜ πœ“π‘‹( 𝑑) = ( 𝑝 1 βˆ’π‘žπ‘’π‘‘) π‘˜= 1 β†’ πœ“π‘‹( 𝑑) = 𝑝 1 βˆ’π‘žπ‘’π‘‘

2-2- Expectation of the geometric distribution based on the negative binary distribution:

𝐸( 𝑋) = π‘˜π‘ž π‘˜=1 β†’  𝐸(𝑋) = π‘ž 𝑝              (5) 𝑝

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 𝑅π‘₯

𝑃(𝑋= π‘₯) = (1 βˆ’π‘)π‘₯𝑝     π‘“π‘œπ‘Ÿ π‘₯= 0,1,2, βˆ’βˆ’βˆ’
𝐸(𝑋) = βˆ‘ π‘₯(1 βˆ’π‘)π‘₯𝑝 ∞ (βˆ—) π‘₯=0

We multiply both sides of the relation (βˆ—) by (1 βˆ’π‘)

(1 βˆ’π‘)𝐸(𝑋) = βˆ‘ π‘₯(1 βˆ’π‘)π‘₯+1𝑝 ∞ π‘₯=0
π‘˜= π‘₯+ 1 β‡’π‘₯= π‘˜βˆ’1 ∞
(1 βˆ’π‘)𝐸(𝑋) = βˆ‘(π‘˜βˆ’1)(1 βˆ’π‘)π‘˜π‘ π‘˜=1 ∞
π‘˜=1 (1 βˆ’π‘)𝐸(𝑋) = βˆ‘ π‘˜(1 βˆ’π‘)π‘˜π‘βˆ’βˆ‘ (1 βˆ’π‘)π‘˜π‘ ∞ ∞ π‘˜=1 π‘˜=1
𝐸(𝑋) βˆ’π‘πΈ(𝑋) = βˆ‘ π‘˜(1 βˆ’π‘)π‘˜π‘βˆ’βˆ‘ (1 βˆ’π‘)π‘˜π‘      (βˆ—βˆ—) ∞ ∞ π‘˜=1 π‘˜=1

of the two relationships (βˆ—) ,(βˆ—βˆ—)

𝐸(𝑋) βˆ’π‘πΈ(𝑋) = 𝐸(𝑋) βˆ’βˆ‘ (1 βˆ’π‘)π‘˜π‘ ∞ π‘˜=1 𝑝𝐸(𝑋) = βˆ‘ (1 βˆ’π‘)π‘˜π‘ ∞ π‘˜=1 βˆ‘ (1 βˆ’π‘)π‘˜π‘= ∞ (1 βˆ’π‘) β‡’ π‘˜=1 𝑝𝐸(𝑋) = (1 βˆ’π‘) β‡’ 𝐸(𝑋) = (1 βˆ’π‘) 𝑝 𝐸(𝑋) = π‘ž 𝑝

3-4- Calculation of the expectation of the geometric distribution through relation (2):

β€²] 𝑑=0        (2) 𝐸( 𝑋) = [(πœ“(𝑑))
= [ π‘π‘žπ‘’π‘‘ = [π‘π‘žπ‘’π‘‘ β€² 𝐸( 𝑋) = [( 𝑝 1 βˆ’π‘žπ‘’π‘‘) = π‘ž ] (1 βˆ’π‘ž)2] 𝑝2 ] 𝑑=0 𝑑=0 𝑑=0 𝒒 𝒑 ,

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:

𝑓(π‘₯) = (π‘₯βˆ’1 π‘˜βˆ’1) π‘π‘˜π‘žπ‘₯βˆ’π‘˜      ; π‘₯= π‘˜, π‘˜+ 1, π‘˜+ 2, π‘˜+ 3, βˆ’βˆ’βˆ’

where π‘₯βˆ’1 represents the number of successes, and we have π‘˜βˆ’1 successes

4-1- Moment-generating function of negative binomial distribution (Pascal distribution):

𝑀π‘₯(𝑑) = E(𝑒𝑑π‘₯) = βˆ‘ 𝑒𝑑π‘₯ ∞ (π‘₯βˆ’1 π‘˜βˆ’1) π‘π‘˜π‘žπ‘₯βˆ’π‘˜ π‘₯=π‘˜
π‘˜βˆ’1) ∞ 𝑀π‘₯(𝑑) = (𝑝𝑒𝑑)π‘˜βˆ‘ (π‘₯βˆ’1 𝑒𝑑(π‘₯βˆ’π‘˜)π‘žπ‘₯βˆ’π‘˜ π‘₯=π‘˜
If   π‘žπ‘’π‘‘< 1 or   𝑑< βˆ’π‘™π‘œπ‘” (1 βˆ’π‘) and the result of the sum is given by  (1 βˆ’π‘žπ‘’π‘‘)βˆ’π‘˜ any that
𝑀π‘₯(𝑑) = (𝑝𝑒𝑑)π‘˜(1 βˆ’π‘žπ‘’π‘‘)βˆ’π‘˜β‡’ π‘˜
π‘˜ 𝑀π‘₯(𝑑) = ( 𝑝𝑒𝑑 ; 𝑑< βˆ’π‘™π‘œπ‘” (1 βˆ’π‘) (1 βˆ’π‘žπ‘’π‘‘))

4-2- Expectation of negative binomial distribution (Pascal distribution) based on the moment-generating function:

β€² 𝐸(𝑋) = [𝑀π‘₯(𝑑)]𝑑=0 β€²
β€² π‘˜ 𝐸(𝑋) = 𝑀′π‘₯(𝑑) = [( 𝑝𝑒𝑑 = [ π‘˜π‘π‘˜ (1 βˆ’π‘žπ‘’π‘‘)) ] (1 βˆ’π‘žπ‘’π‘‘)π‘˜+1] 𝑑=0 𝑑=0

We substitute 𝒕= 𝟎 we get the expectation

𝐸(𝑋) = 𝑀′π‘₯(0) = π‘˜ 𝑝

3- Geometric distribution: It is a special case of negative binary distribution when π‘˜= 1,Its probability density function becomes as follows:

𝑓(π‘₯) = (π‘₯ 1) π‘π‘žπ‘₯βˆ’1 = 𝑝 π‘žπ‘₯βˆ’1     ; π‘₯= 1,2,3, βˆ’βˆ’βˆ’

5-1- The torque-generating function of the geometric distribution based on the negative binary distribution:

π’Œ 𝑀π‘₯(𝑑) = ( 𝑝𝑒𝑑 π‘˜=1 β†’   𝑀π‘₯(𝑑) = 𝑝𝑒𝑑 1 βˆ’(1 βˆ’π‘)𝑒𝑑 ; 𝑑< βˆ’log (1 βˆ’π‘) (1 βˆ’π‘žπ‘’π‘‘))

5-2- Expectation of geometric distribution based on negative binary distribution:

𝑬(𝑿) = π‘˜ π‘˜=1 β†’   𝐸(𝑋) = 1 𝑝        (6) 𝑝

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

π‘₯ 𝑓𝑋(π‘₯) = π‘π‘žπ‘₯= 2 3 (1 3) ; π‘₯= 0,1,2, βˆ’βˆ’βˆ’

And the expectation is

𝐸(𝑋) = π‘ž 𝑝= 3 2 Γ— 1 3 = 1 2 = 0.5

We have the probability density function according to the second study:

π‘₯βˆ’1 𝑓(π‘₯) = 𝑝 π‘žπ‘₯βˆ’1 = 2 3  (1 3) ; π‘₯= 1,2,3, βˆ’βˆ’βˆ’

And the expectation is

𝐸(𝑋) = 1 𝑝= 3 2 = 1.5

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.

References

[1]  Michael J. Evans and Jeffrey S. Rosenthal, Probability and Statistics, the Science of Uncertainty, Second 

Edition, University of Toronto, 2009

[2]  JAYL.  DEVORE,Probability  and   Statistics  for  Engineering  and  the  sciences,California  Polytechnic 

Stste University,2010

[3]  Ahmed  Al-Wasouf,  Mohammad  jdeed,  Kausar  Nazeha,  Introduction  to  statistics  and  probability, 

Tishrieen University,2008

[4]  Grinstead and Snell's Introduction to Probability, The CHANCE Project1 ,Version dated 4 July 2006

[5]  Azzam  Sabry,  Statistical  analysis  between  theory  and  practice,  Dar  Almanhajiah  Publishing 

,Amman,2015

[6]  Abdu Al jabbar Mudhi ,Introduction to Probability,

[7]  Theory,DarAlmassira, Amman, 2011

[8]  A Short Introduction to Probability, D.P. Kroese, 2018

[9]  Sheldon M. Ross, Introduction to Probability Models, University of Southern California Los Angeles, 

California, Elsevier Inc, 2014Now

[10]  John  Wiley  &  Sons  Ltd,  Fundamentals  of  Probability  and  Statistics  for  Engineers,  ,  New  York, 

USA,2004

[11]  Prasanna Sahoo, Probability and Mathematical Statistics, Louisville,USA,2015