Ch5 Hypothesis Testing
Ch5 Hypothesis Testing
Test of Hypotheses
Nida C. Flores
Teacher III
Statistical Hypothesis Testing
Overview
The concept of statistical hypothesis testing is considered to be the most important area of
statistical inference. This contributes to the formulating of rules that would lead us to
deciding whether or not a particular statement or claim about a population should be
rejected. This chapter focuses on testing hypotheses concerning population mean and
population proportion- how to formulate competing hypotheses, how to identify the level of
significance and the appropriate rejection region, and how to determine which test statistic
to use in testing the hypotheses
Statistical Hypothesis Testing
LESSON 1
Statistical Hypothesis Testing
Statistical Hypothesis Testing
Case Study
A particular company claims that more than65percent of its employees earn more than Php216,000 annually.
How can this claim be validated without taking a census of the whole employee population?
What evidence is needed to test this claim?
Statistical Hypothesis Testing
Lesson Objectives
Illustrates : (a) null hypothesis;(b) alternative hypothesis;(c) level of
significance; (d) rejection region; and (e) types of errors in hypothesis
testing
(M11/12SP- IVa-1)
Identifies the parameter to be tested given a real-life problem(M11/12SP-
IVa-3)
Statistical Hypothesis Testing
Expected Outcomes
Illustrate null hypothesis, level of significance, rejection region, and types of
errors in hypothesis testing;
Calculate the probabilities of committing a Type I and Type II errors
Identify the parameter to be tested given a real-life problem
Statistical Hypothesis Testing
Statistical Hypothesis
We estimated the value/s of some parameters. In some cases, we can also use sample data to make
certain decisions on some claims about a population parameter. If we obtain evidence from the
sample that is inconsistent with the given hypothesis, we decide to reject this hypothesis. If we have
insufficient evidence to show otherwise, we do not reject the hypothesis.
Example.
a. A researcher can determine whether the children in a particular shelter has an attention span that
is less than 2 hours
b. A surveyor can check whether or not 45 percent of the commercial establishments in an area are a
safe distance away from the earthquake danger zone.
In example (a) the researcher is concerned with the value of the mean , while the surveyor,
deals with proportion
Statistical Hypothesis Testing
STATISTICAL HYPOTHESIS
A statistical hypothesis is a claim or assertion about a parameter or some parameters
HYPOTHESIS:
1. Let be the mean number of text messages from mobile phones.
= 87 ( The mean number of text messages from mobile phones is 87)
Let the proportion of students that do not attend the general assembly
0.15 ( the proportion of students that do not attend the general assembly is 0.15)
HYPOTHESIS TESTING
A test of hypotheses is a method to test the claims about a characteristic of a population through the use
of sample data. This is also called a test procedure
The null hypothesis, , is a claim about a characteristic of the population that is initially assumed as a true
statement.
The alternative hypothesis, , is a competing claim or statement to the null hypothesis.
We set up the null hypothesis with the hope that it will be rejected. We reject in favor of only
if the evidence based on the sample data strongly implies that is a false statement. will not be rejected
if the sample data does not provide strong evidence, thus, we fail to reject. When we do test of hypotheses,
either we reject or we fail to reject
Statistical Hypothesis Testing
This further explains that the null hypothesis always indicates an exact hypothesized value of the
parameter. The alternative hypothesis specifies that the population parameter is less than, greater
than, or not equal to the hypothesized value in the null hypothesis.
Activity
Write the null and alternative hypotheses for each situation
1.A manufacturer of car tires wants to test whether their machine still
produces car tires with a mean diameter of 16 inches.
2.An airline company claims that the percentage of their flights prone
to delays weekly due to air traffic and other technical issues does not
exceed 28 percent of their total flights
Statistical Hypothesis Testing
ANSWER TO ACTIVITY
1. Answer: Let be the mean diameter of car tires produced by the manufacturer.
: = 16
: 16
We choose 16 as the alternative hypotheses. This is our competing claim that the
machine does not produce car tires with a mean diameter equal to 16.
A test procedure can only show strong evidence for the alternative hypothesis by rejecting
the null hypothesis. But when the null hypothesis is not rejected , this implies that there is lack of
strong support against this claim.
A test procedure is specified in terms of a particular test statistic and rejection rule.
Most of the time, the test statistic used to test hypotheses about a parameter is a point estimator of
the of If a test statistic takes on a value that is deemed very unlikely when the null hypothesis is true,
then the null hypothesis can be rejected. The set or collection of these unlikely values for the test statistic
is called the rejection or critical region
Statistical Hypothesis Testing
If the null hypothesis is true but is rejected, the decision is incorrect. This is the Type I error.
If the null hypothesis is false but fails to be rejected, the decision is also incorrect. This is called
a Type II error
A Type I error is the error of rejecting the null hypothesis when it is true.
A Type II error is the error of failing to reject the null hypothesis when it is false
We ca n only guarantee an error free conclusion if we base our decision on a census of the population.
There will always be risk of error when we base the decision on a sample data.
Statistical Hypothesis Testing
Examples.
1.A manufacturer of car tires wants to test whether their machine still produces car tires with a mean diameter of 16 inches.
• : = 16
• : 16
Type I error : Believing that the machine produces car tires with non- identical diameters when it actually produces identical
ones
Type II error: Accepting the claim that the machine produces car tires with a diameter of 16 inches when it does not
2.An airline company claims that the percentage of their flights prone to delays weekly due to air traffic and other technical
issues does not exceed 28 percent of their total flights.
• : = 0.28
• :
Type I error: To believe the that the airline has a percentage of delayed flight that ismorethan28 percent when in reality, it has
less.
Type II error : To accept the airline’s claim that the percentage of their delayed flights is less than28 percent weekly, when it
is more than this in actual.
Statistical Hypothesis Testing
LEVEL OF SIGNIFICANCE
The probability of a Type I error is denoted by .This is also called the level of significance of the test.
While, the probability of a type II error is denoted by .
The standard test procedure allows researchers to control the value of .If we assume
to be 5 percent,(, this means the probability of rejecting a true null hypothesis is 5 percent.
This also results to a test procedure with a 5 % probability of Type I error. Choosing a small implies
that the researcher wants to have a test procedure for which the possibility of a Type I error is quite small.
The standard test procedure does not give the researcher direct control over
I error increases the risk of a Type II error. It is important that the researcher decides
on the probabilities of these types of errors by considering the consequences of committing the error
Statistical Hypothesis Testing
Example:
An air- conditioner manufacturer claims that 85 percent of its home air- conditioning units
will not need after-sale service during the first year of use. Suppose this claimis to be tested by a consumer
group by taking a random sample of the buyer’s units.
The manufacturer will not admit false advertising unless the sample evidence strongly shows that
the proportion of the air conditioning units without need for repair or service is less than 85 percent(p<0.85)
Statistical Hypothesis Testing
SPECIFYING TEST PROCEDURE:
Example:
An air- conditioner manufacturer claims that 85 percent of its home air- conditioning units
will not need after-sale service during the first year of use. Suppose this claimis to be tested by a consumer
group by taking a random sample of the buyer’s units.
The manufacturer will not admit false advertising unless the sample evidence strongly shows that
the proportion of the air conditioning units without need for repair or service is less than 85 percent(p<0.85)
Hypotheses:
: = 0.85
: 0.85
Type I error : To believe that the manufacture’s claim that 85 % of its home air conditioning units will not need
after-sales service, when this is not the case.
Interpretation: This is false advertising and the possible consequence is that consumers are made to believe
this claim and will continue to patronize the product.
Type II error: This is to conclude that less than 85 percent of its home air conditioning units will not need
after-sale service, when the manufacturer is actually telling the truth
Interpretation: A possible consequence of this type of error is the decline of purchases of the air-conditioning
units from the manufacturer due to negative consumer impression
Which do you think should be used as the value of I n the test procedure, = 0.01 or = 0.1 ?
DIRECTIONAL AND NON- DIRECTIONAL HYPOTHESIS
• When the alternative hypothesis utilizes the symbol, the test is said to be non- directional.
• When the alternative hypothesis utilizes the or the symbol, the test is said to be directional
• A non- directional test is also called a two-tailed test.
• A directional test may either be left- tailed or right tailed.
In the formulation of alternative hypothesis words like greater, efficient, improves, effective,
increases and so on, suggest a right – tailed direction while words like decrease, less than , smaller and
the like, suggest a left- tailed direction
Graphical Representations of the two-tailed test
Two-tailed Test
H0: = is divided equally between
the two tails of the critical
H1: region
State the null hypothesis and the alternative hypothesis. Sketch the graph of each item.
1.Are less than 45% of the Grade 11 students are left handed?
2. Is the mean number of students applying for scholarship different from 300?
3. Is the percentage of voters registered through biometrics more than 90%?
4. Is there strong evidence that more than 20 percent of the traffic enforcers are
deployed in the streets on time?
5.A sales agent claims that the average market value of the houses they sell is at least
Php 1.5 million.
Activity
Use the Internet to collect data worth investigating
from government agencies , ex. Mean age of minors
committing crimes, mean percentage of grade 7
dropouts, mean percentage of accidents caused by
motorcycles). Formulate the null hypothesis and the
alternative hypothesis for your data.