A brief note on Random Variables and the Binomial Distribution . Read it before a test. Try each question at the end before you open its answer.
Random variables Distribution: a table of values x x x and probabilities P ( X = x ) P(X = x) P ( X = x ) that add up to 1 1 1 . Mean: E ( X ) = ∑ x P ( X = x ) E(X) = \sum x\,P(X = x) E ( X ) = ∑ x P ( X = x ) . Variance: Var ( X ) = E ( X 2 ) − [ E ( X ) ] 2 \text{Var}(X) = E(X^2) - [E(X)]^2 Var ( X ) = E ( X 2 ) − [ E ( X ) ] 2 , and the standard deviation is its square root. Linear change: E ( a X + b ) = a E ( X ) + b E(aX + b) = aE(X) + b E ( a X + b ) = a E ( X ) + b and Var ( a X + b ) = a 2 Var ( X ) \text{Var}(aX + b) = a^2\,\text{Var}(X) Var ( a X + b ) = a 2 Var ( X ) . Fair game: the expected net gain is 0 0 0 . The binomial distribution Conditions: a fixed number n n n of trials, two outcomes, the same p p p , independent trials. Formula: P ( X = k ) = ( n k ) p k q n − k P(X = k) = \binom{n}{k}p^k q^{n-k} P ( X = k ) = ( k n ) p k q n − k , written X ∼ B ( n , p ) X \sim B(n, p) X ∼ B ( n , p ) . Mean and variance: n p np n p and n p q npq n pq . At least one: 1 − q n 1 - q^n 1 − q n , and n ≥ ln ( 1 − t ) ln q n \ge \dfrac{\ln(1 - t)}{\ln q} n ≥ ln q ln ( 1 − t ) for a target t t t , rounded up. Most likely value: the integer part of ( n + 1 ) p (n + 1)p ( n + 1 ) p . It is two values when ( n + 1 ) p (n + 1)p ( n + 1 ) p is a whole number. The normal approximation When: n p np n p and n q nq n q both large, at least 5 5 5 in A-Level texts and 10 10 10 in AP. Model: X ≈ N ( n p , n p q ) X \approx N(np, npq) X ≈ N ( n p , n pq ) . Continuity correction: P ( X ≤ k ) ≈ Φ ( k + 0.5 − n p n p q ) P(X \le k) \approx \Phi\!\left(\dfrac{k + 0.5 - np}{\sqrt{npq}}\right) P ( X ≤ k ) ≈ Φ ( n pq k + 0.5 − n p ) . Not required in the Indian syllabus. It is used in A-Level and AP. A worked example A fair coin is tossed 4 4 4 times. Let X X X be the number of heads.
Exactly two. P ( X = 2 ) = ( 4 2 ) ( 1 2 ) 4 = 6 16 = 3 8 P(X = 2) = \binom{4}{2}\left(\dfrac{1}{2}\right)^4 = \dfrac{6}{16} = \dfrac{3}{8} P ( X = 2 ) = ( 2 4 ) ( 2 1 ) 4 = 16 6 = 8 3 . Mean and variance. n p = 2 np = 2 n p = 2 and n p q = 4 × 1 2 × 1 2 = 1 npq = 4 \times \dfrac{1}{2} \times \dfrac{1}{2} = 1 n pq = 4 × 2 1 × 2 1 = 1 . At least three. P ( X = 3 ) + P ( X = 4 ) = 4 16 + 1 16 = 5 16 P(X = 3) + P(X = 4) = \dfrac{4}{16} + \dfrac{1}{16} = \dfrac{5}{16} P ( X = 3 ) + P ( X = 4 ) = 16 4 + 16 1 = 16 5 . Practice with new numbers
A program to try The program finds the three answers of the worked example with exact fractions.
Run it. Which line prints the answer to step 3 of the worked example?
1. Change n = 4 to n = 6. What are the mean and the variance now?
Mistakes to avoid Leaving out ( n k ) \binom{n}{k} ( k n ) . The product p k q n − k p^k q^{n-k} p k q n − k is for one order only. Using the binomial without independence. Draws without replacement from a small pack are not binomial. Adding b b b to the variance. Only the factor a a a matters, and it is squared. Forgetting to round up the number of trials needed for a target chance. Check yourself A random variable X X X has P ( X = 0 ) = 0.4 P(X = 0) = 0.4 P ( X = 0 ) = 0.4 , P ( X = 1 ) = 0.4 P(X = 1) = 0.4 P ( X = 1 ) = 0.4 and P ( X = 2 ) = 0.2 P(X = 2) = 0.2 P ( X = 2 ) = 0.2 . Find the mean and the variance. Stuck? Show a hint Show the answerX ∼ B ( 4 , 0.3 ) X \sim B(4, 0.3) X ∼ B ( 4 , 0.3 ) . Find P ( X = 2 ) P(X = 2) P ( X = 2 ) . Stuck? Show a hint Show the answerA binomial variable has mean 2 2 2 and variance 1.6 1.6 1.6 . Find n n n and p p p . Stuck? Show a hint Show the answerA fair die is thrown 5 5 5 times. Find the probability of at least one six. Stuck? Show a hint Show the answerIs the number of throws of a die needed to get the first six a binomial variable? Stuck? Show a hint Show the answerSources OpenStax, Introductory Statistics , Chapter 4, sections on discrete random variables, the binomial distribution and the geometric distribution. NCERT, Mathematics Part II for Class XII, Chapter 13, sections on random variables, mean and variance, and the binomial distribution.