Professional Documents
Culture Documents
Chapter 3
3.0 Introduction
4. Select the appropriate test statistic and establish the critical region.
5. Compute the value of the test statistic from the sample data.
6. Decision: Reject H o if the test statistic has a value in the critical region.
Otherwise do not reject H o .
7. Make conclusion.
@Copyright is Prohibited: 1
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
Lets consider an example, suppose we wish to test whether a sample value X could
have been drawn from a normal population with mean μ and variance σ 2 .
We assume that the sample is drawn from N( μ , σ ). This hypothesis is called the null
2
If statistical tests show that we should reject the null hypothesis, we do so in favor of
the alternative hypothesis, denoted by H 1 .
Definition:
For example :
If we wish to investigate whether the mean of the population from which the sample
value is taken is 25, then would be written:
H o : μ = 25 ( the population μ is 25 )
H 1 : μ ≠ 25 ( the population μ is not 25)
Case study 1:
Case study 2:
Case study 3:
A medical researcher is interested in finding out whether a new medication will have
any undesirable side effects. He is particularly concerned with the pulse rate of the
patients who take the medication. He knows that the mean pulse rate for the
population under study is 82 beats per minute.
DEFINITION: One Tailed Test: A test of any statistical hypothesis, where the
alternative is one sided.
Statement example:
H o : θ = θo or H o : θ = θo
H 1 : θ > θo H 1 : θ < θo
(The C.R lies in right tail) (The C.R lies in left tail)
DEFINITION: Two - tailed Test: A test of any statistical hypothesis where the
alternative is two-sided.
Statement example:
H o : θ = θo
H 1 : θ ≠ θo
@Copyright is Prohibited: 3
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
Note: The value is set up by the researcher. Ex: 1%, 5%, 10% etc. Symbol α .
DEFINITION: Critical Value: The dividing point between the region where the null
hypothesis is rejected and the region where it is not rejected.
In testing any statistical hypothesis, there are four possible situations that determine
whether our decision is correct or in error. These four situations are summarized
below.
H o is true H o is false
@Copyright is Prohibited: 4
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
−
X−μ
The test statistic used : Z=
σ/ n
Example 1:
The length of metal bars produced by a particular machine are normally distributed
with mean length 420 cm and standard deviation 12 cm. The machine is serviced,
after which a sample of 100 bars gives a mean length of 423cm. Is there evidence,
at 5% level, of a change in the mean length of the bars produced by the machine,
assuming that the standard deviation remains the same?
Example 2 :
Experience has shown that the scores obtained in a particular test are normally
distributed with mean score 70 and variance 36. When the test is taken by a random
sample of 36 students, the mean score is 68.5. Is there sufficient evidence, at 3% level,
that these students have not performed as well as expected? ( Note: Test whether
the population mean score could be less than 70 marks).
DEFINITION: P-value: the lowest level (of significance) at which the observed
value of the test statistic is significant.
@Copyright is Prohibited: 5
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
A random sample of 100 recorded deaths in the United States during the past year
showed an average life span of 71.8 years. Assuming a population standard
deviation of 8.9 years, does this seem to indicate that the mean life span today is
greater than 70 years? Use p-value approach at the 0.05 level of significance.
_
x−μ
Z=
s/ n
−
X−μ
T=
s/ n
@Copyright is Prohibited: 6
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
Example 6 :
Five readings of the resistance, in ohms, of a piece of wire gave the following results
1.51,1.49,1.54,1.52,1.54
If the wire were pure silver, its resistance would be 1.50 ohms. If the wire were impure,
the resistance would be increased. Test, at the 5% level, the hypothesis that the wire
is pure silver.
Example 7 :
Recall:
Must consider two unpaired, independent sample of sizes n1 and n2 such that
Hypotheses statement:
1. H 0 : μ1 = μ 2 versus H 1 : μ1 ≠ μ 2
2. H 0 : μ1 = μ 2 versus H 1 : μ1 > μ 2 or H 1 : μ1 < μ 2
@Copyright is Prohibited: 7
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
⎛_ _ ⎞
⎜⎜ x1 − x 2 ⎟⎟ − (μ1 − μ 2 )0
Test statistic: Z = ⎝ ⎠
σ 12 σ 22
+
n1 n2
Example 8:
A random sample of size 100 is taken from a normal population with variance
−
σ1 = 40 . The sample mean x1 is 38.3. Another random sample, of size 80, is taken
2
_
from a normal population with variance σ2 =30. The sample mean x 2 is 40.1. Test at
2
Example 9 :
Technique 1 Technique 2
Assumption: σ 12 = σ 22 Assumption: σ 12 ≠ σ 22
Where :
@Copyright is Prohibited: D.f=v= 8
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam2
(n1 - 1) s12 + (n 2 − 1) s 2 2 ∧
( s1 / n1 + s 22 / n2 ) 2
Sp = and σ = Sp
n1 + n 2 − 2 [( s12 / n1 ) 2 /(n1 − 1) + ( s 22 / n2 ) 2 /(n2 − 1)]
D.f=v= n1 + n2 − 2
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
Example 10:
Information below are the data regarding the expenses (RM million) from a few
organizations on information systems and technology in 2005 from the private and
public sectors in state A.
Independent samples above are taken from normal population, with unknown
variances. By assuming that the population variance for the two populations are
equal test whether the average expenses on information system and technology
from the public sector is greater than the private sector. (Use α = 0.05 ).
Example 11
Test the hypothesis that there is no difference in the average wear of 2 brands of
tires. Assume the populations to be approximately normally distributed with unequal
variances. Use α = 0.05 .
Exercise: Using the MINITAB output, draw your decision and conclusion in the context
of the problem. (Use p-value approach).
Definition: Samples are said to be dependent if they are related or expected to share
information together. Observations taken from the two samples having or possess
same or related elements.
Paired observations are recorded data taken from two dependent samples. In an
experiment, if two different set of data taken from the same unit of experiment, then
two set of data are considered come from dependent samples.
Examples of data:
Case study 2: To investigate the influence of a particular drug on white rat blood
pressure. The blood pressure reading was recorded from each rat before and after
the drug was given to the mice.
Case study 3: A researcher wanted to compare the pulse rates of identical twins to
see whether there was any difference. Eight sets of twins were selected and the
pulse rate readings were recorded.
Hypotheses statement:
1. H 0 : μD = d0 versus H1 : μ D ≠ d 0
2. H 0 : μD = d0 versus H1 : μ D > d 0 or H1 : μ D < d 0
_
d − d0
Test statistics: t=
sd / n
Example 12
A researcher wanted to find the effect of a special diet on systolic blood pressure.
She selected a sample of 7 adults and put then on this dietary for three months. The
@Copyright is Prohibited: 10
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
following table gives the systolic blood pressures of these seven adults before and
after the completion of this plan. At the 5% significance level can you conclude that
that there is a significant difference in systolic blood pressure?
Example 13
The manufacturer of a gasoline additive claims that the use of this additive increases
gasoline mile age. A random sample of six cars was selected and these cars were
driven for one week without the gasoline additive and then for one week with
gasoline additive. The following table gives the miles per gallon for these cars without
and with the gasoline additive.
Using the 1% significance level, can you conclude that the use of gasoline additive
increases the gasoline mile age?
The test statistic for testing a population proportion with small samples is based on
Binomial distribution. The variable x = the number of success having sample size n a
with p=p0. The p-value approach is employed in the testing procedure. Follows are
the computation for p-value depending on the hypothesis statement.
Example 14
A builder claims that heat pumps are installed in 70% of all homes being constructed
today in the City A. Would you agree with this claim if a random survey of new
@Copyright is Prohibited: 11
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
homes in this city shows that 8 out of 15 had heat pumps installed? Use a 1% level of
significance.
Example 15
A marketing expert for pasta-making company believes that 40% of pasta lovers
prefer lasagne. If 9 out 20 pasta lovers choose lasagne over other pastas, what can
be concluded about the expert’s claim? Use 0.05 level of significance.
Hypothesis statements:
Test statistic:
∧
p − p0
Z= Where ; q =1− p
p0 q0
n
Example 14
A commonly prescribed drug for relieving nervous tension is believed to be only 60%
effective. Experimental results with new drug administered to a random sample of
100 adults who suffering from nervous tension show that 70 received relief. Is this
sufficient evidence to conclude that the new drug is superior to the one commonly
prescribed? Use 5% significance level.
Hypothesis statement:
@Copyright is Prohibited: 12
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
Test statistic:
∧ ∧
p1 − p 2
Z=
∧ ∧ 1 1
p q( + )
n1 n 2
∧ x 1+ x 2
Where P = (the pooled population proportion).
n1 + n2
Example 15
In a study to estimate the proportion of residents in a certain city and its suburbs who
favor the construction of a nuclear power plant, it is found that 63 of 100 urban
residents favor the construction while only 59 of 125 suburban residents are in favor. Is
there a significant difference between the proportion of urban and suburban
residents who favor construction of the nuclear plant? Use p-value.
Example 16
Engineers and scientist are constantly dealing with studies in which they are required
to demonstrate that measurement involving products or processes fall inside
specifications set by consumers. The specifications are often met if the process
variance is sufficiently small. Therefore hypothesis testing on a variance or between
two variances are required with the purpose to investigate whether the study
assumption is violated.
Hypothesis statement:
@Copyright is Prohibited: 13
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
(n − 1) s 2
Test Statistic: χ2 =
σ o2
Example 17
A manufacturer of car batteries claims that the life of his batteries is approximately
normally distributed with a standard deviation equal to 0.9 year. If a random sample
of 10 of these batteries has a standard deviation of 1.2 years, test whether σ > 0.9
year. Use a 0.05 level of significance.
Example 18
10.2, 9.7, 10.1, 10.3, 10.1, 9.8, 9.9, 10.4, 10.3, 9.8
Hypothesis Statement:
s2
Test Statistic: f = 1
s2 2
Example 19
@Copyright is Prohibited: 14
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam
QMT220: Statistical Methods Hypothesis Testing: Parametric Methods
Example 20
A study is conducted to compare the length of time between men and women to
assemble a certain product. Past experience indicates that the distribution of times
for both men and women is approximately normal but the variance of the time for
women is less than that for men. A random sample of time for 11 men and 14 women
produced the following data:
At 5% significance level is the claim for the variances can be proven true?
@Copyright is Prohibited: 15
Prepared By:Norshahida Shaadan; Statistics Department , FSKM Shah Alam