7. (12%) A test has probability \( q \) of success. \( X \) represents the random variable of trial times that first success happens. Please derive \( E(X) = 1 / q \).
7. (12%) A test has probability \( q \) of success. \( X \) represents the random variable of trial times that first success happens. Please derive \( E(X) = 1 / q \).