Ripetizioni di Analisi
EN

Worked examples · Sheet 3

p-values for one-sided tests

Theory used:P-values and the ordering of outcomesScore tests for one or two proportions

Go to: Exercise 1Exercise 2

Exercise 1

An observed z statistic for a lower-tailed alternative is . Calculate the p-value and decide at level . Use .

For a lower-tailed alternative, small statistic values count as evidence against . The required probability includes all values to the left of . For a statistic standard normal under this probability is .

The observed value is positive, so the tail also contains the center of the distribution. Its large probability exceeds level . The test therefore fails to reject .

The critical region gives the same decision. At level the lower cutoff is quantile . By normal symmetry, . Since , the cutoff is approximately . The observation is on the opposite side and lies outside the critical region.

The right tail would measure evidence for an increase, a different question. Its probability would be , and comparison with would again give nonrejection.

Exercise 2

Four successes are observed in five independent Bernoulli trials. Test against using the exact binomial test at level .

x p 12345 O 0.1560.031
The bar heights are the probabilities under the null hypothesis. The highlighted bars at four and five successes form the exact upper tail.

The number of successes in five independent trials with common success probability has binomial distribution . The exact test therefore uses binomial probabilities directly.

The probability of at least four successes increases with the success probability, reaching its maximum over null values at . Calculate the p-value at this null boundary.

For the upper-tailed alternative, the outcomes at least as extreme against as the observation are four and five successes. Under the null value each five-outcome sequence has probability . There are sequences with four successes and one with five, giving six qualifying sequences.

The p-value exceeds , so at level fail to reject . Five successes would give a tail of area , enough for rejection.

Report a mistake

Where:

Ripetizioni di Analisi

Keep studying

With a free account, you can pick up where you left off and see your progress next time you visit.

Sign up for free

Already have an account? Sign in

Contents