(b)The probability that random word in a document is "goal" given that the topic issports
= 2/100
So, in expectation, the word "goal" XXXXXXX in a document XXXXXXXXXX 200 words XXXX XXXXX XXsports=2/XXX x 200 =X
(c) XXXX a document XX XXXXX XXXX XXXXXX,XXX XXXXXXXXXXX XXXX random XXXX of XXXX XXXXXXXX is "XXXX" = 2/XXX + X =X/100
(d) Drawing a XXXXXX word from a document and XXX word is "XXXX".=X/100 + 5/1000 = XX/XXXX
XXX XXXXXXXXXXX that the XXXXX XX the XXXXXXXX XXsports=(1/200)/( XX/XXXX) = X/3
(e)XXX XXXXXXXXXXX XXXX random XXXX in a XXXXXXXX is "goal" =2/XXX + 0 = 2/XXX
The XXXXXXXXXXX XXXX random XXXX in a XXXXXXXX XX "XXXX" =1/100 + 5/1000 = XX/1000
The first chosen word "kick" XXXXXX be XXXXX out XXXX XXX document,
the probability XXXX XXX second XXXX XX "XXXX" =X/100 XXX/XXXX = 30/100000 = 3/XXXXX
(f)
As per the XXXXXXXX XXXXXXX there are N XXXXXXXXX and XXXX XXXXXXXX is labeled with XXX XX the XXXXX XXXXXX and XXXXXXXX.
XXXXXXX number XX XXXXXXXXX labeled XXXX XXXXXXXX is “ D”
XXXXX suppose the XXXX “XXXX” XXXXXX in documents is “ G “.
So, XXX number XX word “XXXX” occurs in document XXXXXXX with politics = X ∩ X
As XXX XXX example XXXXXXXXX in the XXXXXXXX :
The XXXXXXXXXXX that a XXXXXXXX chosen is XXXXXXXX is politics = P(D) = D/N
The probability that the word “XXXX” occurs in XXXXXXXXX = P(X) = X/N
XXX XXXXXXXXXXX that XXXX “goal” occurs in XXXXXXXX XXXXXXX with XXXXXXXX = X(X ∩ G) = D ∩ X / N
XXX conditional XXXXXXXXXXX P(X/D) = X(X ∩ G) / P(X) =(X ∩ G / N ) / (X/N) = X ∩ X / X
Topic probability P(X) = X/N