Answer:
The expected value of Bernoulli random variable X is p.
[tex]E (X) = 0\times (1-p)+1\times p[/tex]
Step-by-step explanation:
A Bernoulli random variable, follows a discrete probability distribution, takes only two values, 0 with probability (1 - p) and 1 with probability p.
Here the random variable X is defined as a Bernoulli random variable.
Then X can assume only two values, i.e. 0 and 1.
It is provided that P (X = 1) = p.
Consider the provided information:
Y = {0, 1}
[tex]E (Y) = 0\times P (Y=0)+1\times P(Y=1)[/tex]
The random variable Y is also a Bernoulli random variable.
Using the formula of E (Y) compute the value of E (X) as follows:
[tex]E (X) = 0\times P (X=0)+1\times P(X=1)\\=0\times (1-p)+1\times p\\=0+p\\=p[/tex]
Thus, the expected value of Bernoulli random variable X is p.
[tex]E (X) = 0\times (1-p)+1\times p[/tex]