Definition

Types of Errors

is true is true
Not reeject type 2 error ()
Reject type 1 error ()

Let the set where is rejected be a rejection region and a statistic for testing be a test statistic, then the size is the maximum of probability of type 1 error a test of size is a power of the test is the probability of the type 2 error is

p-value

The probability of obtaining test results at least as extreme as the result of actually observed under