A random variable X has a geometric distribution with parameter p (0 < p < 1) if and only if its probability function is given by f(x) = q^(x-1)p, x = 1, 2, 3,
where q = 1 - p.
Find the probability generating function for the geometric random variable X
b
Use the probability generating function to find the expected value and variance of the geometric random variable X