Topic 8 - Hypothesis Testing Flashcards
What is a hypothesis
- A claim about a population parameter
What are the properties about the hypothesis to be tested
- It is called the Null Hypothesis
- Always includes an = sign
- Always about a population parameter and not a sample statistic
What do we assume when doing a hypothesis test
- That the null hypothesis is true unless there is enough evidence to prove the contrary
What terminology is used when we come to a conclusion in a hypothesis test
- Reject null hypothesis
- Fail to reject hypothesis
What does the Alternative Hypothesis state
- That a population parameter is smaller, greater, or different than the hypothesised value in the null hypothesis
What are the two types of Alternate Hypothesis’
- Two-sided (H1: μ ≠ 50)
- One-sided (H1: μ > 50 or H1: μ < 50)
What is a Type 1 error otherwise reffered to as
- The significance level of the test
- Denoted by alpha
What is a type 2 error
- Failure to reject a false null hypothesis
- The probability of a type 2 error is β
- The probability of rejecting a false null hypothesis is 1-β, this is the power of the test
What is a key property of type 1 and type 2 errors
- They cannot happen at the same time
- Type 1 can only occur if H0 is true
- Type 2 can only occur if H0 is false
- if alpha increases, β decreases
What is the process for a hypothesis test if σ is known
- Create null and alternative hypothesis
- Convert sample mean to z with z = x bar - mu / sqrt(σ) / n
- Compare with critical value
How do we use the Z statistical table in order to find the rejection region
- if alpha = 0.1, find where 0.9 changes to 0.8 and use the value which starts with 0.8
What is the p-value
- The smallest value of alpha for which the hull hypothesis can be rejected
How do we calculate the p-value
- P(X bar >= x | mu = b)
- P(Z >= x - b / n / sqrt(sigma))
- Compare this probabilty to alpha and come to a conclusion
- Signs change depending on the tail
What do we do to the p-value if the test is a two tailed test
- Multiply by 2
What do we use if the population variance is not known
- Use the sample variance and use the t-distribution