Bernoulli Trials

Many experiments have outcomes that can be classified into two categories: Success or Failure. For example, tossing a coin (Head or Tail), a manufactured item being Defective or Non-defective, or an examinee passing or failing.

Trials of a random experiment are called Bernoulli trials if they satisfy the following four conditions:

  1. The number of trials is finite.
  2. The trials are independent of each other.
  3. Each trial has exactly two outcomes: success (S) or failure (F).
  4. The probability of success (pp) remains the same in each trial.

If pp is the probability of success, then the probability of failure is q=1pq = 1 - p

Binomial Distribution

Consider a series of nn Bernoulli trials. Let XX be a random variable representing the number of successes in these nn trials. Then XX is said to follow a Binomial Distribution with parameters nn and pp.

The Probability Mass Function (PMF): The probability of getting exactly rr successes in nn trials is P(X=r)=(nr)prqnrP(X = r) = \binom{n}{r} p^r q^{n-r} where r=0,1,2,,nr = 0,1,2,\dots,n

Notation: XB(n,p)X \sim B(n,p)

Key Parameters:

  • Mean (Expected Value): E(X)=npE(X) = np
  • Variance: Var(X)=npqVar(X) = npq
  • Standard Deviation: σ=npq\sigma = \sqrt{npq}

Example 1: Basic Coin Toss

If a fair coin is tossed 10 times, find the probability of getting exactly 6 heads.

Solution: Let XX be the number of heads obtained.

For a fair coin, n=10,p=12,q=12n = 10, \quad p = \frac{1}{2}, \quad q = \frac{1}{2} We need P(X=6)P(X=6) Using the binomial formula, P(X=6)=(106)(12)6(12)4P(X=6)=\binom{10}{6}\left(\frac{1}{2}\right)^6\left(\frac{1}{2}\right)^4 =(106)(12)10=\binom{10}{6}\left(\frac{1}{2}\right)^{10} Now, (106)=(104)=109874321=210\binom{10}{6}=\binom{10}{4}=\frac{10\cdot 9\cdot 8\cdot 7}{4\cdot 3\cdot 2\cdot 1}=210 Therefore, P(X=6)=21011024=2101024=105512P(X=6)=210\cdot \frac{1}{1024}=\frac{210}{1024}=\frac{105}{512}

Answer: 105512\boxed{\frac{105}{512}}

Example 2: Dice Rolling - Multiple Successes

A die is thrown 6 times. If 'getting an odd number' is a success, find the probability of at least 5 successes.

Solution: A success means getting one of {1,3,5}\{1,3,5\} Hence, p=36=12,q=12,n=6p = \frac{3}{6}=\frac{1}{2}, \quad q=\frac{1}{2}, \quad n=6

We need P(X5)=P(X=5)+P(X=6)P(X\ge 5)=P(X=5)+P(X=6) Now, P(X=5)=(65)(12)5(12)1P(X=5)=\binom{6}{5}\left(\frac{1}{2}\right)^5\left(\frac{1}{2}\right)^1 =6(12)6=664=6\left(\frac{1}{2}\right)^6=\frac{6}{64} Also, P(X=6)=(66)(12)6=164P(X=6)=\binom{6}{6}\left(\frac{1}{2}\right)^6=\frac{1}{64} Therefore, P(X5)=664+164=764P(X\ge 5)=\frac{6}{64}+\frac{1}{64}=\frac{7}{64}

Answer: 764\boxed{\frac{7}{64}}

Example 3: Finding Mean and Variance

A binomial distribution has n=100n = 100 and p=0.2p = 0.2. Find its mean and standard deviation.

Solution: Given, n=100,p=0.2n=100, \quad p=0.2 Then, q=1p=0.8q=1-p=0.8

Mean is E(X)=np=100×0.2=20E(X)=np=100\times 0.2=20 Variance is Var(X)=npq=100×0.2×0.8=16Var(X)=npq=100\times 0.2\times 0.8=16 Standard deviation is σ=16=4\sigma=\sqrt{16}=4

Answer: Mean=20,S.D.=4\boxed{\text{Mean}=20, \quad \text{S.D.}=4}

Example 4: Target Hitting

The probability of a man hitting a target is 14\frac{1}{4}. If he fires 7 times, what is the probability of hitting the target at least once?

Solution: Let success be “hitting the target”. Then, n=7,p=14,q=34n=7, \quad p=\frac{1}{4}, \quad q=\frac{3}{4} We need P(X1)P(X\ge 1) Using the complement rule, P(X1)=1P(X=0)P(X\ge 1)=1-P(X=0) Now, P(X=0)=(70)(14)0(34)7=(34)7P(X=0)=\binom{7}{0}\left(\frac{1}{4}\right)^0\left(\frac{3}{4}\right)^7=\left(\frac{3}{4}\right)^7 =218716384=\frac{2187}{16384} Hence, P(X1)=1218716384P(X\ge 1)=1-\frac{2187}{16384} =16384218716384=1419716384=\frac{16384-2187}{16384}=\frac{14197}{16384}

Answer: 1419716384\boxed{\frac{14197}{16384}}

Example 5: Finding nn from Mean and Variance

For a binomial distribution, the mean is 6 and the variance is 2. Find the parameters nn and pp.

Solution: For a binomial distribution, np=6andnpq=2np=6 \qquad \text{and} \qquad npq=2 Divide the second equation by the first: npqnp=26\frac{npq}{np}=\frac{2}{6} q=13q=\frac{1}{3} Therefore, p=1q=113=23p=1-q=1-\frac{1}{3}=\frac{2}{3} Now substitute into np=6np=6 So, n23=6n\cdot \frac{2}{3}=6 2n=182n=18 n=9n=9

Answer: n=9,p=23\boxed{n=9, \quad p=\frac{2}{3}}

Example 6: Defective Items - At Most

In a large consignment of electric bulbs, 10% are defective. A random sample of 20 bulbs is drawn. Find the probability that at most 2 bulbs are defective.

Solution: Let XX denote the number of defective bulbs in the sample. Then, n=20,p=0.1,q=0.9n=20, \quad p=0.1, \quad q=0.9 We need P(X2)=P(X=0)+P(X=1)+P(X=2)P(X\le 2)=P(X=0)+P(X=1)+P(X=2) Now, P(X=0)=(200)(0.1)0(0.9)20=(0.9)20P(X=0)=\binom{20}{0}(0.1)^0(0.9)^{20}=(0.9)^{20} P(X=1)=(201)(0.1)1(0.9)19=20(0.1)(0.9)19=2(0.9)19P(X=1)=\binom{20}{1}(0.1)^1(0.9)^{19}=20(0.1)(0.9)^{19}=2(0.9)^{19} P(X=2)=(202)(0.1)2(0.9)18=190(0.01)(0.9)18=1.9(0.9)18P(X=2)=\binom{20}{2}(0.1)^2(0.9)^{18}=190(0.01)(0.9)^{18}=1.9(0.9)^{18} Hence, P(X2)=(0.9)20+2(0.9)19+1.9(0.9)18P(X\le 2)=(0.9)^{20}+2(0.9)^{19}+1.9(0.9)^{18} Taking (0.9)18(0.9)^{18} common, P(X2)=(0.9)18[(0.9)2+2(0.9)+1.9]P(X\le 2)=(0.9)^{18}\big[(0.9)^2+2(0.9)+1.9\big] =(0.9)18(0.81+1.8+1.9)=(0.9)^{18}(0.81+1.8+1.9) =(0.9)18(4.51)=(0.9)^{18}(4.51)

Answer: P(X2)=4.51(0.9)18\boxed{P(X\le 2)=4.51(0.9)^{18}}

Example 7: Ratio of Probabilities

In a binomial distribution B(n,p)B(n,p), if P(X=1)=P(X=2)P(X=1)=P(X=2), find the relationship between nn and pp.

Solution: Using the binomial formula, P(X=1)=(n1)pqn1P(X=1)=\binom{n}{1}p q^{n-1} P(X=2)=(n2)p2qn2P(X=2)=\binom{n}{2}p^2 q^{n-2} Given, (n1)pqn1=(n2)p2qn2\binom{n}{1}p q^{n-1}=\binom{n}{2}p^2 q^{n-2} Substituting the combinations, npqn1=n(n1)2p2qn2n p q^{n-1}=\frac{n(n-1)}{2}p^2 q^{n-2} Cancelling common factors nn, pp, and qn2q^{n-2}, q=n12pq=\frac{n-1}{2}p Since q=1pq=1-p we get 1p=n12p1-p=\frac{n-1}{2}p Multiply by 2: 22p=(n1)p2-2p=(n-1)p 2=(n+1)p2=(n+1)p Hence, p=2n+1p=\frac{2}{n+1}

Answer: p=2n+1\boxed{p=\frac{2}{n+1}}

Example 8: Multiple Choice Guessing

A student answers 5 multiple choice questions by guessing. Each question has 4 options (one correct). Find the probability that he gets at least 4 correct.

Solution: For each question, p=14,q=34,n=5p=\frac{1}{4}, \quad q=\frac{3}{4}, \quad n=5 We need P(X4)=P(X=4)+P(X=5)P(X\ge 4)=P(X=4)+P(X=5) Now, P(X=4)=(54)(14)4(34)P(X=4)=\binom{5}{4}\left(\frac{1}{4}\right)^4\left(\frac{3}{4}\right) =5125634=151024=5\cdot \frac{1}{256}\cdot \frac{3}{4}=\frac{15}{1024} Also, P(X=5)=(55)(14)5=11024P(X=5)=\binom{5}{5}\left(\frac{1}{4}\right)^5=\frac{1}{1024} Therefore, P(X4)=151024+11024=161024=164P(X\ge 4)=\frac{15}{1024}+\frac{1}{1024}=\frac{16}{1024}=\frac{1}{64}

Answer: 164\boxed{\frac{1}{64}}

Example 9: Sum of Mean and Variance

For a binomial distribution B(n,p)B(n,p), the sum of mean and variance is 15 and the product is 54. Find nn.

Solution: For a binomial distribution, Mean=np,Variance=npq\text{Mean}=np, \qquad \text{Variance}=npq Given, np+npq=15np+npq=15 np(1+q)=15...(1)np(1+q)=15 \qquad \text{...(1)} Also, (np)(npq)=54(np)(npq)=54 (np)2q=54...(2)(np)^2 q=54 \qquad \text{...(2)} Let np=knp=k Then from (1), k(1+q)=15k(1+q)=15 k=151+qk=\frac{15}{1+q} Substitute into (2): (151+q)2q=54\left(\frac{15}{1+q}\right)^2 q=54 225q(1+q)2=54\frac{225q}{(1+q)^2}=54 225q=54(1+2q+q2)225q=54(1+2q+q^2) 225q=54+108q+54q2225q=54+108q+54q^2 54q2117q+54=054q^2-117q+54=0 Divide by 9: 6q213q+6=06q^2-13q+6=0 Factorize: (3q2)(2q3)=0(3q-2)(2q-3)=0 So, q=23orq=32q=\frac{2}{3} \quad \text{or} \quad q=\frac{3}{2} But probability cannot exceed 1, hence q=23q=\frac{2}{3} Therefore, p=1q=13p=1-q=\frac{1}{3} Now from (1), np(1+q)=15np(1+q)=15 np(1+23)=15np\left(1+\frac{2}{3}\right)=15 np53=15np\cdot \frac{5}{3}=15 np=9np=9 Since p=13p=\frac{1}{3} we get n13=9n\cdot \frac{1}{3}=9 n=27n=27

Answer: n=27\boxed{n=27}

Example 10: Pair of Dice - Success on Sum

A pair of dice is thrown 4 times. If getting a sum of 9 is considered a success, find the probability of exactly 2 successes.

Solution: A success means obtaining sum 9. The favorable outcomes are (3,6),(4,5),(5,4),(6,3)(3,6), (4,5), (5,4), (6,3) So for one trial, p=436=19,q=89,n=4p=\frac{4}{36}=\frac{1}{9}, \quad q=\frac{8}{9}, \quad n=4 We need P(X=2)P(X=2) Using the binomial formula, P(X=2)=(42)(19)2(89)2P(X=2)=\binom{4}{2}\left(\frac{1}{9}\right)^2\left(\frac{8}{9}\right)^2 =61816481=6\cdot \frac{1}{81}\cdot \frac{64}{81} =3846561=\frac{384}{6561} Now simplify: 3846561=1282187\frac{384}{6561}=\frac{128}{2187}

Answer: 1282187\boxed{\frac{128}{2187}}