Binomial probabilities, mean and variance
Unit 3 Topic 5: Discrete random variables
The question
The random variable \(X\) has a binomial distribution with \(n=10\) and \(p=0.3\).
- (a) Determine \(P(X=4)\). [1 mark]
- (b) Determine \(P(X\le 2)\). [1 mark]
- (c) Determine the mean and variance of \(X\). [2 marks]
The idea. For \(X \sim \mathrm{Bin}(10, 0.3)\), binomial PDF gives one bar and binomial CDF adds up the bars from 0. The mean \(np\) sits near the tallest bar.
The answer, one mark at a time
-
Part (a)
Exactly 4 is a single bar, so use binomial PDF on your calculator with \(n = 10\), \(p = 0.3\) and \(x = 4\).
\[P(X = 4) = \binom{10}{4}(0.3)^{4}(0.7)^{6}\]\[= 0.2001\]determines the probability [1 mark]
-
Part (b)
"At most 2" adds the bars for 0, 1 and 2. Use binomial CDF with upper bound 2.
\[P(X \le 2) = P(X = 0)\]\[+ P(X = 1) + P(X = 2)\]\[= 0.3828\]determines the probability [1 mark]
-
Part (c)
The mean of a binomial variable is \(np\).
\[\mu = np = 10(0.3) = 3\]determines the mean [1 mark]
-
The variance is \(np(1-p)\), where \(1 - p = 0.7\) is the chance of a failure.
\[\mathrm{Var}(X) = np(1 - p)\]\[= 10(0.3)(0.7) = 2.1\]determines the variance [1 mark]
Answer
Watch for. \(P(X \le 2)\) includes \(P(X = 0)\). Adding only the bars for 1 and 2 leaves out about 0.03.