Our test is

(i)

H0 : theta <= 1/2

H1 : theta > 1/2

We observe 7 successes out of 10 independent Bernouilli trials where the prob. of success is theta.

(ii)

H0 : lambda <= 1

H1 : lambda > 1

We observe x = 3, where X is from Poission(lambda)

Determine the p-values in each of the above cases.

Thanks a lot