Q.4.8

Question

Find Var(X) if P(X = a) = p = 1  P(X = b)

Step-by-Step Solution

Verified
Answer

We have found to beVar(X)=(a-b)2(1-p)p

1Step 1: Given information

Given in the question is,

P(X=a)=p=1-P(X=b)

2Step 2: Substitution

The random variable X can consider only two values, a with probability p and b with the probability 1-p.

Using the meaning of the mean, we have that

E(X)=a×p+b×(1-p)=:μ

3Step 3: Calculation

Currently, operating the definition of the variance, we have that

Var(X)=E(X-μ)2=(a-μ)2·p+(b-μ)2·(1-p)

=(a-a×p-b×(1-p))2p+(b-a×p+b×(1-p))2(1-p)

Substitute the given expression,

=(a-b)2(1-p)2p+(b-a)2p2(1-p)

=(a-b)2(1-p)p[1-p+p]

We get,

=(a-b)2(1-p)p.

4Step 4: Final answer

The solution of the Var(X) is found to be (a-b)2(1-p)p.