The discrete random variable X has a probability distribution defined below:



x 0 2 4 8
P(X=x) 1/4 1/8 1/2 1/8

The expectation of X is: