Hello, I am bugfree Assistant. Feel free to ask me for any question related to this problem
In this strategy, the placement of ads is deterministic. For every 25 stories, exactly one ad is shown. Therefore, in a sequence of 100 stories:
Expected number of ads:
E(No. of ads in 100 stories)=25100=4
This means that on average, a user will see 4 ads in 100 stories.
In this strategy, each story independently has a 4% chance of being an ad. This follows a binomial distribution with parameters n=100 (number of trials) and p=0.04 (probability of success, i.e., a story being an ad).
Expected number of ads:
The expected value for a binomial distribution Binomial(n,p) is given by:
E[X]=n⋅p
Substituting the given values:
E[No. of ads in 100 stories]=100×0.04=4
Like the first strategy, the expected number of ads in 100 stories is also 4.
Probability of exactly one ad in 100 stories:
This requires calculating the probability of exactly one success (ad) in 100 trials (stories), which is given by the probability mass function (PMF) of the binomial distribution:
P(X=1)=(xn)⋅px⋅(1−p)n−x
Substituting the values:
P(X=1)=(1100)⋅(0.04)1⋅(0.96)99
Calculation:
(1100)=100
(0.04)1=0.04
(0.96)99≈0.01757
Result:
P(X=1)=100×0.04×0.01757≈0.0703
Therefore, if the second strategy is chosen, the probability that a user sees exactly one ad in 100 stories is approximately 7.03%.