r=1
X=# of trials until the 1st success
x∈Z+
P=Probability of Success
Probability
P(X=x)
P(X=x)=(1−p)x−1p
Where (1−p)x−1 is the x−1 trials that failed and p is the xth trial that succeeded. Then,
P(X>x)
P(X>x)=j=x+1∑∞P(x=j)=j=x+1∑∞(1−p)x−1p
Define q=1−p
Then
=j=x+1∑∞qj−1p=qpj=x+1∑∞qj=qp1−qqx+1=qx
P(X≤x)
P(X≤x)=1−P(X>x)=1−qx
x=1∑∞(1−p)x−1p=1−ppx=1∑∞(1−p)x=1