Question: Designing Statistical Tests. For any statistical test A , its C . I. advantage in distinguishing two distributions D 0 and D 1 is denoted
Designing Statistical Tests. For any statistical test A its CI.
advantage in distinguishing two distributions D and D is denoted as AdvC.I.
DDA and equals
AdvC.I.
DDA PrAx : x D PrAx : x D
Let D and D be the uniform distributions over the sets Z and Z
respectively, where
Z ; Z
points Compute the CI. advantage of the following test distA:
def distA x : # x is a sample from either $D$ or $D$
if isprime x : return
else : return
points Compute the CI. advantage of the following test distB:
def distB x : # x is a sample from either $D$ or $D$
if x : return
else : return
points Which of distA or distB does a better job of distinguishing the two distributions
and why?
point Empirically estimate the quantities computed in a and b using your favorite
programming language. Report the estimated probabilities and CI. advantages over
trials. For full credit, include the code you wrote.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
