The variance of Bernoulli random variable is π(1−π) where π is the probability of a successful Bernoulli trial (i.e. probability that x=1). Using the formula for the probability function (p.f.) of a Bernoulli random variable, and the formula for variance, prove that V(X)=π(1−π).
Solution
From the definition of variance:
V(X)=E((X−E(X))2)
From the Expectation of Bernoulli Distribution, we have E(X)=π.
Then by definition of Bernoulli distribution:
V(X)=E((X−E(X))2)=(1−π)2∗π+(0−π)2∗(1−π)=π−2π2+π3+π2−π3=π−π2=π(1−π)
Answer: V(X)=π(1−π).
Comments