Hypothesis Testing Overview Flashcards
Hypothesis Testing
- Combines tried-and-tested analysis tools, real-world data, and framework that allows us to test our assumptions and beliefs.
- This way we can say how likely something is to be true or not true within a standard of accuracy
When using Hypothesis testing we create:
A Null Hypothesis (H0)
Alternative Hypothesis (Ha)
- These hypotheses should ALWAYS be mutually excusive: if one if true, the other is false
- Once we have our null and alternative hypotheses, we test them with a sample of an entire population, check our results, and come up with a conclusion based on those results.
Null Hypothesis (H0)
- The assumption that the experimental results are due to chance alone; nothing (from 6M) influenced our results
- A Null Hypothesis is never accepted; we simply fail to reject it.
- We are ALWAYS testing the Null
- A Null is what you would expect by chance alone
- A Null assumes things to be equal
- A Null Hypothesis is NOT your theory
Alternative Hypothesis (Ha) or (H1)
- We expect to find a particular outcome
- A hypothesis that disagrees with the null hypothesis
- The complementary hypothesis of the null hypothesis is an alternative hypothesis.
- In other words, the alternative hypothesis shows that observations are the results of a real effect.
- An Alternative Hypothesis IS your theory
- Statement which is true if the Null Hypothesis is false
- The type of test (left, right, or two-tail) is based on the alternative hypothesis
- When the Null Hypothesis contains only an equal sign, the Alternative Hypothesis contains a “not equal to” sign.
Alternative Hypothesis for a Two Tailed Test
H0: µnew = µcurrent Ha: µnew is not = µcurrent
Basic Hypothesis Testing Process
- Identify the question
- Generally speaking, you’re looking to create a simple question that asks whether factor x affects scenario y, with an answer of ‘yes’ or ‘no.’
- Identify your Null and Alternative Hypothesis
- Determine the significance
- Identify Sample Size and Confidence Level
- Choose the test
- Interpret the results
- Make a decision
Examples of Hypothesis Questions
Identify your Null and Alternative Hypothesis
When the Null Hypothesis Includes ONLY an equal sign
- The hypothesis test has two tails ( or rejection regions)
- The alternative hypothesis contains a “not equal to” sign
- It can be rejected by the test statistic being significantly large or small
- Statement of zero or no change. If the original claim includes equality (<=, =, or >=), it is the null hypothesis.
- If the original claim does not include equality () then the null hypothesis is the complement of the original claim.
- The null hypothesis always includes the equal sign.
- The decision is based on the null hypothesis.
Hypothesis Testing Errors
Type 1 Error (Alpha)
Type 2 Error (Beta)
Type 1 Error (Alpha Risk)
Aka
Type A Error
- Happens when our significance level is too large
- Rejecting the Null Hypothesis when it is true (saying false when true). Usually the more serious error.
- Type 1 error involves the Significance level.
- For example, if alpha = 5%, then 5% of the time we will say there is a real difference between the null and alternate hypothesis (reject the null hypothesis) when there is no evidence of a difference
-
Alpha - probability of committing a Type 1 error
- The lower the alpha, the lower our chance of making a type 1 error
- Always between 0 and 1
Type II Error (Beta Risk)
Aka
Type B Error
- Failing to reject the null hypothesis when it is false (saying true when false)
- Beta - Probability of committing a Type II error
Determine Significance
- Consists of two elements
- Sample Size
- Sample of the population
- Confidence Level
- How sure you need to be that the results you receive are actually statistically significant and that the conclusion based on them is correct
- Once you decide this, you can calculate the alpha level
- Alpha Level = (1 - confidence level)
- The standard confidence level used is 95%, or 0.95. Hence, the standard alpha level is 5%, or 0.05.
- Once you decide this, you can calculate the alpha level
- How sure you need to be that the results you receive are actually statistically significant and that the conclusion based on them is correct
- Sample Size
P-Value
- The probability of the sample being studied could have drawn from the population due to change
- If P is low, Null must GO
- A p-value less than the alpha level decided upon in the Decide Significance step means that you can assume that your results are statistically significant
- The null hypothesis can be rejected and the alternative hypothesis can be supported
- A p-value greater than the alpha level means you cannot assume that your results are statistically significant, and hence cannot reject the null hypothesis
- The P-Value is integral in using a hypothesis test to make a decision
- It reflects the possibility of falsely rejecting the null hypothesis when it really is true
- If the P-Value is less than or equal to the agree upon significance level (alpha), then you reject the null and can support the alternate hypothesis
- If the P-Value is greater than the significance level (alpha), then you cannot reject the null hypothesis (in states terms, you have to fail to reject the null) and thus you cannot support the alternate.
- The P-Value is integral in using a hypothesis test to make a decision
- P-Value is expressed as a number between 0 and 1
- Once a p-value is calculated from analyzing test data, it is compared to the selected alpha level – if lower than the alpha level, the results are deemed to be statistically significant; if higher, the results are deemed to not be statistically significant.
Conclusion
A statement which indicates the level of evidence (sufficient or insufficient), at what level of significance, and whether the original claim is rejected (null) or supported (alternative)
Confidence Level
Also known as the confidence interval
This refers to how confident you can be that your conclusion is in face correct
The confidence level is easy to calculate: the alpha and confidence levels always add up to one
- 1 – α = confidence level