Professional Documents
Culture Documents
Hypothesis Test and Significance Level
Hypothesis Test and Significance Level
Hypothesis Test and Significance Level
SIGNIFICANCE LEVELS
Prepared by
Vaishnavi - 001
Kavya - 016
Topics that will be covered
● What is hypothesis testing?
● Null hypothesis and Alternate hypothesis
● Simple and composite hypothesis testing
● One tailed and two tailed hypothesis testing
● Type I and Type II error
● Level of significance
● P value
● How to find level of significance?
● How is the level of significance used in hypothesis testing?
2
What is Hypothesis Testing?
Hypothesis Testing is a type of statistical analysis in which you put your
assumptions about a population parameter to the test. It is used to estimate the
relationship between two statistical variables.
3
Some Real life examples:
4
Null Hypothesis
● Null Hypothesis represents a theory that has been put forward either because
it is believed to be true or because it is used as a basis for an argument and
has not been proven
● H0 is the symbol for it, and it is pronounced H-naught
● The null hypothesis, also known as the conjecture, is used in qualitative
analysis to test theories about markets, investing strategies, or economies to
decide if an idea is true or false.
● The observations of this hypothesis are the result of chance
5
Alternate Hypothesis
● The alternative hypothesis is a statement used in statistical inference
experiment.
● It is contradictory to the null hypothesis and denoted by Ha or H1
● The Alternate Hypothesis is the logical opposite of the null hypothesis. The
acceptance of the alternative hypothesis follows the rejection of the null
hypothesis
● The observations of this hypothesis are the result of real effect
6
Examples:
1. To check the water quality of a river for one year, the researchers are doing
the observation. As per the null hypothesis, there is no change in water quality
in the first half of the year as compared to the second half. But in the
alternative hypothesis, the quality of water is poor in the second half when
observed
2. A sanitizer manufacturer claims that its product kills 99.99 percent of germs
on average. To put this company's claim to the test, create a null and
alternate hypothesis
7
Simple and Composite Hypothesis Testing
Depending on the population distribution, you can classify the statistical hypothesis into two
types
Simple Hypothesis: A simple hypothesis specifies an exact value for the parameter
Example:
A company is claiming that their average sales for this quarter are 1000 units. This is
an example of a simple hypothesis.Suppose the company claims that the sales are in
the range of 900 to 1000 units. Then this is a case of a composite hypothesis
8
One tailed and two tailed hypothesis testing
9
10
Type I and Type II errors
11
Example:
Suppose a teacher evaluates the examination paper to decide whether a
student passes or fails
Type I Error will be the teacher failing the student[rejects H0] although the
student scored the passing marks[H0 was true]
Type II Error will be the case where the teacher passes the student[do not
reject H0] although the student did not score the passing marks[H1 is true]
12
Level of Significance
13
P-value
The level of significance can be said to be the value which is
represented by the Greek symbol α (alpha). Here, Level of
significance = α .
p-values are the probability of procuring an effect no less than as
intense as the one in the test data, assuming the null hypothesis to
be true.
When the null hypothesis is rejected, a type I error occurs. It can be
a false positive too, and they can be controlled only by defining an
appropriate level of significance.
14
For research purposes, the 5 significance level is the most
commonly determined level.
Lower p-value means a significant difference in the considered
values from the population value that was hypothesized in the
beginning. The results are highly significant if the p-value is very
less, i.e. 0.05 as it is rarely practiced.
15
The p-value is said to be more significant if it is as low as possible. Also,
the result would be highly significant if the p-value is very less. But,
most generally, p-values smaller than 0.05 are known as significant,
since getting a p-value less than 0.05 is quite a less practice.
18
The picture below represents the concept for two-tailed hypothesis
test:
19
For example: Let’s say that a school principal wants to find out whether
extra coaching of 2 hours after school help students do better in their
exams. The hypothesis would be as follows:
21
How is the level of significance used in hypothesis
testing?
If the test statistic falls within the critical region, you reject the null
hypothesis. This means that your findings are statistically significant and
support the alternate hypothesis. The value of the p-value determines
how likely it is for finding this outcome if, in fact, the null hypothesis were
true. If the p-value is less than or equal to the level of significance, you
reject the null hypothesis. This means that your hypothesis testing
outcome was statistically significant at a certain degree and in favor of
the alternate hypothesis.
23
CODE:
24
OUTPUT:
25
For the above code:
I am determining if the average age of 10 people is 50 or
otherwise.
NULL HYPOTHESIS(H0): The average age is around 45.4
ALTERNATE HYPOTHESIS(H1):The average age deviates from
45.4.
The p value obtained from the t test on the given sample=0.55
Since the p value >0.5,we accept the null hypothesis
26
THANK YOU
27