The nth moment of a random variable X is defined to be the expectation E[Xn] of the nth power of X.
Recall that a Bernoulli random variable with parameter p is a random variable that takes the value 1 with probability p, and the value 0 with probability 1−p.
Let X be a Bernoulli random variable with parameter 0.7. Compute the expectation values of Xk, denoted by E[Xk], for the following three values of k: k=1,4, and 3203.