TYPE I and Type II Errors, All about P- Value
Continuing our last blog about Hypothesis testing, which allows us to formulate hypothesis, and we use this hypothesis to perform a Statistic-Test. We also reject or approve the hypothesis as per the significance level selected by the researcher.
What is Type I
error?
Null
Hypothesis:- The patient has Migraine
Alternative Hypothesis:
- The patient doesn’t have Migraine.
Suppose a doctor
ends up making the decision that the patient doesn’t have a migraine and sends
him home which means he rejected the Null hypothesis, whereas originally, the patient
was suffering from migraine. This could prove fatal, as the patient’s condition
may worsen. This is the Type I error.
In the Type II
error, if originally the patient doesn’t have a migraine, however doctor ended
up concluding that he is suffering from migraine, he might end up prescribing
some medicine, which may not make the situation grave. This is the example of Type
II error.
When someone
rejects the null hypothesis, however it turns out that null hypothesis was
true, then this error is Termed as TYPE I error.
All about p- value
P-value is the
probability of the Null hypothesis being true. Null hypothesis treats
everything equal, which means, if we use Medicine A and Medicine B on few
people, the effect of both the medicines will be same or equal, or the number
of boys is equal to number of girls in a school.
When there is a
null hypothesis, an alternate hypothesis is formulated, so Medicine A and
Medicine B has a different effect on the people, or number of boys is different
from number of girls in a school beocmes an Alternate Hypothesis.
If we perform a test on the above hypothesis, p value is calculated and if p value is 0.01, which means only 1% cases will be there where Medicine A and Medicine B has the same effect on the patient, and rest of the patients will have a different effect. In this case we will reject null hypothesis. To make it more simpler to understand, if we perform a statistical test, to check if the number of boys and the number of girls are same in a school, and gets a p value of 0.05, it will mean out of 100 cases only 5 cases will have null hypothesis true. There will be only 5 cases where the number of boys will be equal to number of girls.
In general if p
value < 0.05, then we reject null hypothesis, otherwise we accept null
hypothesis.
A bit about
Statistical tests, in hypothesis testing, we formulate a hypothesis, and
perform some statistical test to obtain a p value. These statistical tests are
1.) t- Test
2.) Chi- Squared Test
3.) Anova Test
4.) z- test
5.) f-test
We will study in detail about each one of these test
and when to perform these tests in the upcoming blogs. Stay tuned!
Comments
Post a Comment