2 Parametric Test Part I
2 Parametric Test Part I
2 Parametric Test Part I
1. Estimation
2. Hypothesis Testing
Estimating the Value of
a Parameter
Estimate + Margin of
Estimate - Margin of Error Estimate Error
Margin of Error
The margin of error of the estimate can
be computed using this formula:
𝜎 𝑠
𝐸 = 𝑧𝛼 Τ2 or𝐸 = 𝑧𝛼Τ2
𝑛 𝑛
In OtherWords:
We are (insert level of confidence) confident
that the population mean is between (lower
bound) and (upper bound). This is an
abbreviated way of saying the method is
correct 1 − 𝛼 the time.
× 100% of
Interpretation of
Confidence Interval
Example:
If we constructed a 90% confidence interval with a
lower bound of 12 and an upper bound of 18, we
would interpret the intervals as follows:
Point Estimator
Margin of Error
Confidence intervals about a
population Mean where the Population
Standard Deviation is Unknown
Case 2:
𝜎 is unknown and 𝑛 ≥ 30
𝑠
𝑥 ± 𝑧𝛼 Τ2
𝑛
Note:
̂ 𝑝(1 −
Note: 𝑝𝑝)± 𝑧𝛼Τ2
𝑛
𝑛 ≤ 0.05𝑁
It must be the case that 𝑛𝑝 (1 − 𝑝 ) ≥ 10
̂ ̂
to construct this interval.
and
Example 1
In a poll conducted by the Research Center for
the People and the Press, a simple random
sample of 1505 Filipino adults was asked
whether they were in favor of tighter enforcement
of government rules on TV content during hours
when children are most likely to be watching. Of
the 1,505 adults, 1,129 responded yes. Obtained
a 95% confidence interval for the proportion of
Filipinos who are in favor of tighter enforcement
of government rules on TV content during hours
when children are most likely to be watching.
Solution:
Given:
The z – score for confidence level 95% in the z –
table is 1.96. ̂ 𝑥 1,129
𝑝= = = 0.7502
𝑛 = 1,505 𝑥 = 𝑛 1,505
1,129
Check:
(1,505)(0.7502)(1 − 0.7502) ≥ 10
282.0369 ≥ 10
Solution:
0.7502(1 − 0.7502)
0.7502 ± 1.96
1,505
0.7502 ± 0.0219 = (0.7283,0.7721)
“We are 95% confident that the proportion
of Filipinos who are in favor of tighter
enforcement
of government rules on TV content during
hours when children are most likely to be
watching is between 0.73 and 0.77.
Example 2
Suppose a consumer advocacy group
would like to conduct a survey to find the
proportion of consumers who bought the
newest generation of an MP3 player were
happy with their purchase. The advocacy
group took a random sample of 1000
consumers who recently this
purchased
MP3 player and found that 400 were happy
with their purchase. Find a 90% confidence
interval for p.
Solution:
Given:
̂ 𝑥 400
𝑝= = = 0.40
𝑛 = 1000 𝑥 = 400 𝑛 1000
Check:
(1000)(0.40)(1 − 0.40) ≥ 10
240 ≥ 10
The prop.test(x,n,p) command can also be
used to find confidence intervals with levels
of confidence different from 95%. We can
specify the desired level of confidence
using the conf.level command.
“We are 90% confident that the population
proportion of consumers who bought the newest
generation of an MP3 player were happy with their
purchase is between 0.37 and 0.43.
Confidence Intervals About
a Population Variance
If a simple random sample of size n is
taken
from a normal population with mean and
1−𝛼 ×
then a
standard 𝜎 deviation
confidence interval about is, given by
100%
(𝑛 − 1)𝑠 2 (𝑛 − 1)𝑠 2
2 < 𝜎 2 < 2
𝜒 𝛼 Τ2 𝜒 1−𝛼/2
with n - 1 degrees of freedom.
Remember:
A confidence interval about the
population variance or standard
deviation not of the form “point
is
estimate margin of error” because the
sampling distribution of the sample
variance is not symmetric.
Example 1
A simple random sample of size n = 12
is drawn from a population that is
normally distributed. The sample
variance is found to be 𝑠 = 23.7 .
2
Defintion:
Hypothesistesting is a
procedure onsample evidence and
probability,
used to claims regardinga
test of one or more
characteristic
populations.
What is HYPOTHESIS?
Defintion:
A statement or claim regarding a
characteristic of one or more
populations.
A preconceived idea, assumed to
be true but has to be tested for
its truth or falsity.
Example of Hypothesis
✦ The mean body temperature for patients
admitted to elective surgery is not equal to
37.0oC.
✦ A consumer advocate would like to know if
the mean lifetime of a bulb is less than 500
hours.
✦ A real estate broker believes that because
of changes in interest rates, as well as other
economic factors, the mean price has
increased since then.
Procedures for Testing
Hypothesis
1. State the null and alternative hypothesis.
2. Alternative Hypothesis
Null Hypothesis
• Denoted by 𝐻𝑜
• The statement being tested.
• Assumed true until evidence
indicates otherwise.
• Must contain the condition of equality and
must be written with the symbol =, ≤ , or ≥
Example:
✦ Students who eat and not eat breakfast will
perform the same on a math exam.
✦ Students who experience and not
experience test anxiety prior to an English
exam will get the same scores.
✦ Motorists who talk and not talk on the
phone while driving will get the same errors
on a driving course.
Alternative Hypothesis
•
Denoted by 𝐻𝑎
• Statement that must be true if the
null hypothesis is false.
• Sometimes referred to as the
research hypothesis.
• Must contain the condition of
equality and must be written with the
Example:
✦ Students who eat breakfast will perform better
on a math exam than students who do not eat
breakfast.
✦ Students who experience test anxiety prior to
an English exam will get higher scores than
students who do not experience test anxiety.
✦ Motorists who talk on the phone while driving
will be more likely to make errors on a driving
course than those who do not talk on the
phone.
Remember:
If you are conducting a research
study and you wantto use a
hypothesis test to support your
claim, the claim must be stated in
such a way that it becomes the
alternative hypothesis, so it cannot
contain the condition of equality.
Two Types of Alternative Test
Defintion:
The level of significance, 𝛼 , is
the probability of making a type
I error.
Exercises 5:
Investors not only desire a high return on their
money, but they would also like the rate of return to
be stable from year to year. An investment
manager invests with the goal of reducing volatility
(year-to-year fluctuations in the rate of return). The
following data represent the rate of return (in
percent) for his mutual fund for the past 12 years.
13.8, 14.9, 10.0, 12.3, 11.2, 6.7,
9.8, 12.5, 10.4, 8.9, 15.9, 6.6
Construct a 95% confidence interval for the
population standard deviation of the rate of return.
Two Types of Error
Example:
𝐻𝑜 : The defendant is innocent.
✦ Using confidence
interval
✦ Using p-value approach
✦ Using traditional method
Using Confidence Interval
Decision Rule:
Reject the null hypothesis if the test
statistic is not within the range
specified by the confidence interval.
Using P - Value
Approach
Decision Rule:
Reject the null hypothesis if the
computed p-value is less than or equal
to the set significance level , otherwise
do not reject the null hypothesis.
Example:
If the level of significance 𝛼 = 0.05 ,
P-value Decision
0.01 Reject
0.05 Reject
0.10 Failed to
reject
Using Traditional Method
Decision Rule:
Normal Curve
Properties of a Normal Curve
Distribution
Test Method Statistic n Range
Based
Kolmogorov-
D n≥3 EDF
Smirnov
≥
Lilliefors L n 4 EDF
≥
Anderson-Darling A-square n 8 EDF
Kolmogorov-
< 0.000 Reject Ho Not Normal
Smirnov
Failed to
Lilliefors 0.0571 Normal
Reject Ho
Failed to
Anderson-Darling 0.2178 Normal
Reject Ho