Hypothesis Testing:
To verify a claim if the claim stands out to be true in Statistics we use Hypothesis Testing.
To test a statistical hypothesis, we must decide whether that hypothesis appears to be consistent with the data in the sample. In other words:
• Draw a sample from this population
• Get an estimate of the population parameter from this sample
• Determine the probability of getting an estimate value as that given by the sample if the hypothesis were true
• A very low probability indicates that the hypothesis is inconsistent with the data
Null Hypothesis and Alternate Hypothesis:
• If we are trying to establish a certain hypothesis, then that hypothesis should be designated as the alternative hypothesis.
• If you are trying to discredit a hypothesis, that hypothesis should be designated as the null hypothesis.
Hypothesis testing either rejects or does not reject the null hypothesis, but it is always about the NULL hypothesis. Therefore care must be taken to decide which one is set to be a null hypothesis and which one is set to be as alternate hypothesis.
When we reject null hypothesis?
We reject null hypothesis when if the average of the randomly chosen sample is significantly larger than the claim.
Example:
A tobacco firm claims that it has discovered a new way of curing tobacco leaves that will result in a mean nicotine content of a cigarette of 1.5mg or less.
A researcher is skeptical of this claim and indeed believes that the mean will exceed 1.5mg.
Now we can reject null hypothesis if the average nicotine content in a randomly chosen sample is “sufficiently” larger than 1.5mg
Null Hypothesis can be represented as H0
Alternate Hypothesis can be represented as H1
Errors in Hypothesis Testing:
Type – I & Type – II errors:
Type – I error: if the test rejects H0 when H0 is true
Type – II error: if the test does not reject H0 when H0 is false
If the tobacco company is running the experiment to prove that the mean nicotine level of its cigarettes is less than 1.5
Then the corresponding Null and Alternate Hypothesis should be as follows:
H0: μ ≥ 1.5
H1: μ < 1.5
Then the company could use a rejection of the null hypothesis as “proof” of its claim that the mean nicotine content was less than 1.5mg.
We mostly use Z test to complete Hypothesis Testing:
Formula to perform Hypothesis Testing:
Example:Given that the mean of a sample of size 20 is 10.8 and the population standard deviation is 4. Determine the p value for the test of the following hypothesis.
H0: μ = 10 H1: μ ≠ 10
P{|Z| ≥ 0.894}= 2P{Z ≥ 0.894}=2*(1- (P{|Z| < 0.894})) = 2*(1- 0.8133) =0.373
Therefore, the null hypothesis that the signal value is 10 will not be rejected at any significance level less than 0.371.
Since we never want to use such a high significance level, H0 will not be rejected.

0 Comments