An Assignment On Hypothesis Testing
An Assignment On Hypothesis Testing
An assignment on
Hypothesis Testing
Nabeena Khatri
LC00016000035
Third semester
Biratnagar-15, Nepal
Author Note
1 | Page
Running head: Hypothesis Testing
Abstract
2 | Page
Running head: Hypothesis Testing
Acknowledgement
I would like to express my special thanks to my subject teacher Mr. Ramesh Babu
Kafley who gave me such a golden opportunity to do this wonderful assignment on the topic of
Measure of location which also helps me in doing lots of research and I come to know about so
many things. I am really thanks to them from my inner heart that helps in this assignment. Im
making this assignment not only for the marks but also for increasing my knowledge.
I also apologies for weakness, spelling, grammatical error or any kind of mistake in this
assignment
3 | Page
Running head: Hypothesis Testing
Introduction
Stated as far as possible in most simple terms so that the same is easily understand by all
concerned. But one must remember that simplicity of hypothesis has nothing to do with its
significance.
Responsive to testing within a reasonable time. One cant spend a life time collecting data
to test it.
Types of Hypothesis
I. Null hypothesis
II. Alternative hypothesis
4 | Page
Running head: Hypothesis Testing
Null hypothesis
H0: = 0
Alternative hypothesis
The alternative hypothesis is the hypothesis used in hypothesis testing that is contrary to
the null hypothesis. It is usually taken to be that the observations are the result of a real effect
(with some amount of chance variation superposed).
The Alternative hypothesis is negation of null hypothesis and is denoted by . If Null is given
as 0:=0
Then alternative Hypothesis can be written as
0:=0
:0
:>0
:<0
Confidence levels
5 | Page
Running head: Hypothesis Testing
In survey sampling, different samples can be randomly selected from the same population; and
each sample can often produce a different confidence interval. Some confidence intervals include
the true population parameter; others do not.
A confidence level refers to the percentage of all possible samples that can be expected to
include the true population parameter. For example, suppose all possible samples were selected
from the same population, and a confidence interval were computed for each sample. A 95%
confidence level implies that 95% of the confidence intervals would include the true population
parameter..The confidence level indicates how likely it is that the population parameter, such as
the mean, is contained in the confidence interval.
The confidence level represents the percentage of intervals that would include the population
parameter if you took samples from the same population again and again. Thus, if you collected
one hundred samples, and made one hundred 95% confidence intervals, you would expect
approximately 95 of the intervals to contain the population parameter, such as the mean of the
population, as shown in the following figure.
Here, the horizontal black line represents the fixed value of the unknown population mean, .
The vertical blue confidence intervals that overlap the horizontal line contain the value of the
population mean. The red confidence interval that is completely below the horizontal line does
not. A 95% confidence level indicates that 19 out of 20 samples (95%) from the same population
will produce confidence intervals that contain the population parameter.
Significance Level
The null hypothesis is rejected if the p-value is less than a predetermined level, . is called the
significance level, and is the probability of rejecting the null hypothesis given that it is true (a
type I error). It is usually set at or below 5%.The significance level is used in hypothesis testing
6 | Page
Running head: Hypothesis Testing
as follows: First, the difference between the results of the experiment and the null hypothesis is
determined. Then, assuming the null hypothesis is true, the probability of a difference that large
or larger is computed. Finally, this probability is compared to the significance level. If the
probability is less than or equal to the significance level, then the null hypothesis is rejected and
the outcome is said to be statistically significant. Traditionally, experimenters have used either
the 0.05 level (sometimes called the 5% level) or the 0.01 level (1% level), although the choice
of levels is largely subjective. The lower the significance level, the more the data must diverge
from the null hypothesis to be significant. Therefore, the 0.01 level is more conservative than the
0.05 level. The Greek letter alpha () is sometimes used to indicate the significance level.
Errors associated with decisions based on hypothesis testing
When you do a hypothesis test, two types of errors are possible: type I and type II. The risks of
these two errors are inversely related and determined by the level of significance and the power
for the test. Therefore, you should determine which error has more severe consequences for your
situation before you define their risks.
Type I error
When the null hypothesis is true and you reject it, you make a type I error. The probability of
making a type I error is , which is the level of significance you set for your hypothesis test. A
of 0.05 indicates that you are willing to accept a 5% chance that you are wrong when you reject
the null hypothesis. To lower this risk, you must use a lower value for . However, using a lower
value for alpha means that you will be less likely to detect a true difference if one really exists.
Type II error
When the null hypothesis is false and you fail to reject it, you make a type II error. The
probability of making a type II error is , which depends on the power of the test. You can
decrease your risk of committing a type II error by ensuring your test has enough power. You can
do this by ensuring your sample size is large enough to detect a practical difference when one
truly exists.
The probability of rejecting the null hypothesis when it is false is equal to 1. This value is the
power of the test
Decision True False
7 | Page
Running head: Hypothesis Testing
Figure A Figure B
critical values on the standard normal distribution for = 0.05
Figure A shows that results of a one-tailed Z-test are significant if the test statistic is equal to or
greater than 1.64, the critical value in this case. The shaded area is 5% () of the area under the
curve. Figure B shows that results of a two-tailed Z-test are significant if the absolute value of
8 | Page
Running head: Hypothesis Testing
the test statistic is equal to or greater than 1.96, the critical value in this case. The two shaded
areas sum to 5% () of the area under the curve
Critical region
The critical region of the sampling distribution of a statistic is also known as the region.
It is the area, or areas, of the sampling distribution of a statistic that will lead to the rejection of
the hypothesis tested when that hypothesis is true.
9 | Page
Running head: Hypothesis Testing
number of bacteria in n independently selected unit volumes of water. In the simplest model it is
assumed that Xi, for i = 1,...,n, has a Poisson distribution with the unknown mean (mathematical
expectation) . The statistical decision as to the amount of chlorine to be added will therefore be
a function of a statistical estimator * of the parameter . In selecting * there must be taken into
account the undesirable consequences of both an underestimate of (insufficient disinfection of
the water) and an overestimate of (worsening of the taste of the water owing to excessive
chlorination).
Statistical decision theory provides a precise mathematical formulation of the concepts
pertaining to statistical decisions and to methods of comparing statistical decisions.
10 | P a g e
Running head: Hypothesis Testing
level, then he could say with a reasonable level that "x" does have an impact on "y," and at a
magnitude of "a."
11 | P a g e
Running head: Hypothesis Testing
Conclusion
12 | P a g e