Testing of Hypothesis Single Sample Test: Dr. T. T. Kachwala
Testing of Hypothesis Single Sample Test: Dr. T. T. Kachwala
Dr. T. T. Kachwala
1
Objective of Single Sample test for Arithmetic Mean
We can use X as an estimator of μ and it can be shown that X has all the
desirable properties of an estimator. In particular, X is an unbiased and
efficient estimator of μ.
μ (Population mean)
X (Sample mean)
The objective of the single sample test is to assess whether or not there is a
significant difference between Sample Mean X & hypothesized population
Mean μ H
0
2
Step 1: Setting up a Hypothesis Statement (Define H & H ) 0 1
Suppose, we want to test the hypothesis that the population mean is equal
to 75. We would symbolize it as follows: H0 : 75
3
Why is it called null hypothesis?
4
Alternate Hypothesis
For H0: = 75
5
Selecting Alternate Hypothesis & Procedure of Test
Example
μ H0 3: if the researcher does not want to deviate significantly from
= in right direction, then the appropriate alternate hypothesis is
μ H0
H1: and the corresponding procedure is right tailed test.
6
Step 2: Defining critical (table) values
7
Selecting the Level of Significance (alpha)
The next step after stating the null and alternate hypothesis is to
decide what criterion to use for accepting or rejecting the null
hypothesis. The confidence with which a researcher rejects or accepts
a null hypothesis depends on the significance level selected. It is
customarily expressed as a percentage such as 5% and is indicated by
letter (alpha).
8
Meaning of Level of Significance
2. Level of Significance α signifies the total area under the tail of the
distribution. It signifies the size of the rejection area (total area of the
two tails for a two tailed test).
There is a tradeoff between these two errors: The probability of making one type
of error can be reduced only if we are willing to increase probability of making
the other type of error.
To deal with this tradeoff in professional situations, decision makers decide the
appropriate level of significance by examining the cost or penalties attached to
both types of errors.
11
Examples of tradeoff of Type I & Type II Error
12
Selecting the Distribution for testing of hypothesis:
13
Selecting Two Tailed / Single Tailed
H1:
μ H0 and the corresponding procedure is two tailed test.
μ H0
H1: and the corresponding procedure is left tailed test.
μ H0
H1: and the corresponding procedure is right tailed test.
14
Examples of critical (table) values
15
Step 3: Calculation of test statistics (z or t)
X - μ H0
z
x
x
n
or
X - μ H0
t
ˆ x
s
ˆ x 16
n
Step 4 & 5: Decision Rule & Conclusion
Assuming Normal Distribution & two tailed test, the decision rule can
be illustrated diagrammatically for the following two possibilities (as
indicated below):
x x
z stat z stat
Accept H0 Reject H0
Accept H1
There is no significant There is a significant
difference between Sample difference between Sample
Mean X & μ H0 Mean X & μ H0 17
Summary of the Testing Procedure for Single Sample test for Mean
Step (i) Define H0, H1 (depending on one tailed or two tailed test).
Step (iv) Decision Rule (Sketch the distribution and mark the position
of Standard value and critical values).
Step (i) H 0 : μ μ H0
H1 : μ μ H0
(Assuming two tail test)
Step (iii) X - μ H0
z
x
x 19
n
Testing Procedure for Single Sample test for Mean using Normal
distribution ( z test)
x x
z stat z stat
Accept H0 Reject H0
There is no significant Accept H1
difference between Sample There is a significant
Mean X & μ H0 difference between Sample
Mean X & μ H0 20
Testing Procedure for Single Sample test for Mean using t distribution ( t test)
H1 : μ μ H0
21
Testing Procedure for Single Sample test for Mean using t distribution ( t test)
X - μ H0
t
ˆ x
s
ˆ x
n
x 2
s
n -1
22
Testing Procedure for Single Sample test for Mean using t distribution ( t test)
Step (iv)& (v) Decision Rule & Conclusion: There are two possibilities as
indicated in diagram below:
x x
t stat t stat
Accept H0 Reject H0
Accept H1
There is no significant
There is a significant
difference between Sample
difference between Sample
Mean X & μ H0
Mean X & μ H0 23
A word of Caution
If Sample statistic falls in the acceptance region, it does not prove that
our H0 is true. It simply means that there is no statistical evidence to
The only way in which ‘H0’ can be accepted with certainty is for us to
We can use p as an estimator of p and it can be shown that p has all the
desirable properties of an estimator. In particular p is an unbiased and
efficient estimator of p.
The objective of the single sample test is to assess whether or not there is a
significant difference between Sample proportion of success p &
hypothesized population proportion of success p H0
25
Hypothesis Testing for Proportion of Success
p H0 q H0
p
n
p - p H0
z stat
p
26
Hypothesis Testing of Proportions
Step (iv)& (v) Decision Rule & Conclusion: There are two
possibilities as indicated in diagram below:
x x
z stat z stat
Accept H0 Reject H0
If z statistic is in the Accept H1
acceptance area, If z statistic is in rejection area
Accept H0: p = pH0 Reject H0: p = pH0
Conclusion: that there is no Accept H1: p ≠ pH0
significant difference between Conclusion: there is a significant
statistic p and hypothesized difference between sample statistic p
and hypothesized population proportion 27
population proportion of
of success pH0
Hypothesis Testing of Proportions
28
Thanks and Good Luck
Dr. T. T. Kachwala
29