Answer:
(a) The probability that at least 5 of the first 10 sites contain the given keyword is 0.0328.
(b) The probability that the search engine had to visit at least 5 sites in order to find the first occurrence of a keyword is 0.4096.
Step-by-step explanation:
(a)
Let <em>X</em> = number of sites that contains the keyword.
The probability that a site contains the keyword is, <em>p</em> = 0.20.
The number of sites visited first is <em>n</em> = 10.
The random variable <em>X</em> follows a Binomial distribution with parameter <em>n</em> and <em>p</em>.
The probability mass function of <em>X</em> is:
![P(X=x)={10\choose x}0.20^{x}(1-0.20)^{10-x};\ x=0,1,2,3...](https://tex.z-dn.net/?f=P%28X%3Dx%29%3D%7B10%5Cchoose%20x%7D0.20%5E%7Bx%7D%281-0.20%29%5E%7B10-x%7D%3B%5C%20x%3D0%2C1%2C2%2C3...)
Compute the probability that at least 5 of the first 10 sites contain the given keyword as follows:
P (X ≥ 5) = 1 - P (X < 5)
= 1 - P (X = 0) - P (X = 1) - P (X = 2) - P (X = 3) - P (X = 4)
![=1-\sum\limits^{4}_{x=0} {10\choose x}0.20^{x}(1-0.20)^{10-x}\\=1-0.1074-0.2684-0.3020-0.2013-0.0881\\=0.0328](https://tex.z-dn.net/?f=%3D1-%5Csum%5Climits%5E%7B4%7D_%7Bx%3D0%7D%20%7B10%5Cchoose%20x%7D0.20%5E%7Bx%7D%281-0.20%29%5E%7B10-x%7D%5C%5C%3D1-0.1074-0.2684-0.3020-0.2013-0.0881%5C%5C%3D0.0328)
Thus, the probability that at least 5 of the first 10 sites contain the given keyword is 0.0328.
(b)
Let <em>Y</em> = number of sites that contains the keyword.
The probability that a site contains the keyword is, <em>p</em> = 0.20.
The random variable <em>Y</em> follows a Geometric distribution with parameter <em>p</em>.
The probability mass function of <em>Y</em> is:
![P(Y=y)=(1-p)^{x-1}p;\ x=1,2,3...](https://tex.z-dn.net/?f=P%28Y%3Dy%29%3D%281-p%29%5E%7Bx-1%7Dp%3B%5C%20x%3D1%2C2%2C3...)
Compute the probability that the search engine had to visit at least 5 sites in order to find the first occurrence of a keyword as follows:
P (X ≥ 5) = 1 - P (X ≤ 4)
![=1-\sum\limits^{4}_{x=1} (1-0.20)^{x-1}0.20\\=1-0.20-0.16-0.128-0.1024\\=0.4096](https://tex.z-dn.net/?f=%3D1-%5Csum%5Climits%5E%7B4%7D_%7Bx%3D1%7D%20%281-0.20%29%5E%7Bx-1%7D0.20%5C%5C%3D1-0.20-0.16-0.128-0.1024%5C%5C%3D0.4096)
Thus, the probability that the search engine had to visit at least 5 sites in order to find the first occurrence of a keyword is 0.4096.