Two Types of Hypothesis Types
What does a One sample Test determine?
A one-sample test determines whether or not a population parameter, like a mean or proportion, is equal to a specific value
What does a Two Sample Test determine?
A two-sample test determines whether or not two population parameters, such as two means or two proportions, are equal to each other
Steps for performing a hypothesis test
Null hypothesis
H0: μ = 300 (the mean weight of all produced granola bags is equal to 300 grams)
Alternative hypothesis
is a statement that contradicts the null hypothesis, and is accepted as true only if there’s convincing evidence for it.
Ha: μ ≠ 300 (the mean weight of all produced granola bags is not equal to 300 grams)
significance level (α)
P-value
When to reject or fail to reject the null hypothesis?
2 Types of Hypothesis Test Errors
Type I error
The probability of making a Type I error
’- significance level (α), represents the probability of making a Type I error.
- α = 5% means you are willing to accept a 5% chance you are wrong when you reject the null hypothesis.
How to reduce Type 1 Error
A significance level of five percent means you are willing to accept a five percent chance you are wrong when you reject the null hypothesis.
To reduce your chance of making a Type I error, choose a lower significance level.
- from 5% to 1%
Type II error
differences between the null hypothesis and the alternative hypothesis
Example
- H0: the program had no effect on sales revenue.
- Ha: the program** increased** sales revenue.
The probability of making a Type II error
is called beta (β), and beta is related to the power of a hypothesis test (power = 1- β). Power refers to the likelihood that a test can correctly detect a real effect when there is one.
How to reduce Type II Error
4 Outcomes of rejecting or failing to reject H0
Potential risks of Type I errors
A Type I error means rejecting a null hypothesis which is actually true. In general, making a Type I error often leads to implementing changes that are unnecessary and ineffective, and which waste valuable time and resources.
For example, if you make a Type I error in your clinical trial, the new medicine will be considered effective even though it’s actually ineffective. Based on this incorrect conclusion, an ineffective medication may be prescribed to a large number of people. Plus, other treatment options may be rejected in favor of the new medicine.
Potential risks of Type II errors
A Type II error means failing to reject a null hypothesis which is actually false. In general, making a Type II error may result in missed opportunities for positive change and innovation. A lack of innovation can be costly for people and organizations.
For example, if you make a Type II error in your clinical trial, the new medicine will be considered ineffective even though it’s actually effective. This means that a useful medication may not reach a large number of people who could benefit from it.
One-Sample Hypothesis Test Applications
One Sample Z-Test Assumptions
Test Statistics
The p-value is calculated from what’s called a test statistic.
In hypothesis testing, the test statistic is a value that shows how closely your observed data matches the distribution expected under the null hypothesis, so if you assume the null hypothesis is true and the mean delivery time is 40 minutes, the data for delivery times follows a normal distribution. The test statistic shows where your observed data, a sample mean delivery time of 38 minutes, will fall on that distribution.
Z-Score (Hypothesis Test)