Self learning and not quite good at probablility and statistics, my question is regarding solution to exercise 1.2.1 in chapter 1 of Mining of Massive Datasets book.
The text of the exercise reads:
Using Information from Section same 1.2.3, what would be the number of suspected pairs if following changes were made to the data (and all other numbers remained as they were in that section)?
(a) The number of days of observation was raised to 2000.
(b) The number of people observed was raised to 2 billion (and there were therefore 200,000 hotels).
(c) We only reported a pair as suspected if they were at the same hotel at the same time on 3 different days.
Information from Section 1.2.3:
Suppose there are believed to be some “evil-doers” out there, and we want to detect them. Suppose further that we have reason to believe that periodically, evil-doers gather at a hotel to plot their evil. Let us make the following assumptions about the size of the problem:
- There are one billion people who might be evil-doers.
- Everyone goes to a hotel one day in 100.
- A hotel holds 100 people. Hence, there are 100,000 hotels – enough to hold the 1% of a billion people who visit a hotel on any given day.
- We shall examine hotel records for 1000 days.
An approximation used in calculations: $\binom{n}{2} = n^2/2$
My Solution:
Number of pairs of people = $\binom{2 * 10^9}{2}$ approx = $\frac{(2 * 10^9)^2}{2}$ = $2 * 10^{18}$
Number of pairs of days = $\binom{2000}{2}$ approx = $\frac{(2000)^2}{2}$ = $2 * 10^{6}$
Probability of two people deciding to visit a hotel on any given day = $10^{-4}$ (same as in section 1.2.3)
Number of hotels = $2 * 10^5$
Chance of a pair visiting the same hotel = $\frac{10^{-4}}{2 * 10^5} = \frac{1}{2} * 10^{-9}$
Chance that they visit the same hotel on 3 different days = $(\frac{1}{2} * 10^{-9})^3 = \frac{1}{8} * 10^{-27}$
Expected number of events that look like evil-doings = $2 * 10^{18} * 2 * 10^{6} * \frac{1}{8} * 10^{-27} = \frac{1}{2} * 10^{-3} = 0.0005$
I am not quite sure about my solution, and would appreciate help of the community to better understand the problem as well as the solution.