2. Population mean
Population SD
ï
sample mean
Sample SD
Sample data is used to estimate parameters of a
population
Statistics are calculated using sample data.
Parameters are the characteristics of population data
estimates
ïł
3. Exam marks for 60 students (marked out of 65)
mean = 30.3 sd = 14.46
How can exam score data be summarised?
5. Inferential Statistics
âą Inferential statistics to make judgments of the
probability that an observed difference
between groups is a dependable one
âą Inferential statistics includes making inferences,
hypothesis testing, and determining
relationships
6. There are two main methods
used in inferential statistics:
âą Estimation
âą Hypothesis testing
NOTE: The first one is to use the data to estimate the
parameters, the second is to guess a value for the
parameters and ask the data whether this value is true.
7. What is Hypothesis
âą A Hypothesis is the statement or an
assumption about relationships between
variables.
âą The procedure by which either accept or reject
the hypothesis is called testing hypothesis
8. Interesting Hypothesis
âą Bankers assumed high-income earners are
more profitable than low-income earners.
âą Old clients were more likely to diminish CD
balances by large amounts compared to
younger clients.
This was nonintrusive because conventional
wisdom suggested that older clients have a larger
portfolio of assets and seek less risky investments
Examples:
9. Hypothesis Testing
âą Is also called significance testing
âą Tests a claim about a parameter using evidence
(data in a sample)
âą The technique is introduced by considering a
one-sample z test
âą The procedure is broken into four steps
âą Each element of the procedure must be
understood
10. Steps to undertaking a Hypothesis test
Set null and alternative hypothesis
Make a decision and interpret
your conclusions
Define study question
Calculate a test statistic
Calculate a p-value
11. Null and Alternative Hypotheses
âą Convert the research question to null and
alternative hypotheses
âą The null hypothesis (H0) is a claim of âno
difference in the populationâ
âą The alternative hypothesis (Ha) claims âH0 is
falseâ
âą Collect data and seek evidence against H0 as a
way of supporting Ha (deduction)
12. HA: Research (Alternative) Hypothesis
âą the hypothesis which we want to prove
âą the complement of the null hypothesis.
âą contains a statement of inequality such as
>, ïč, or <.
H0: Null Hypothesis
âą the hypothesis which we want to reject
âą contains a statement of equality such as
ïŁ, =, or ïł.
13. Stating a Hypothesis
Example:
Write the claim as a mathematical sentence. State the null
and alternative hypotheses and identify which represents the
claim.
A manufacturer claims that its rechargeable batteries have
an average life of at least 1,000 charges.
H0:
Ha:
ï ïł 1000
ï < 1000
Condition of
equality
ï ïł 1000 (Claim)
Complement of the
null hypothesis
14. Stating a Hypothesis
Example:
Write the claim as a mathematical sentence. State the null
and alternative hypotheses and identify which represents the
claim.
Statesville college claims that 94% of their graduates find
employment within six months of graduation.
H0:
Ha:
p = 0.94
p ïč 0.94
Condition of
equality
p = 0.94 (Claim)
Complement of the
null hypothesis
15. Types of Errors
No matter which hypothesis represents the claim, always
begin the hypothesis test assuming that the null
hypothesis is true.
At the end of the test, one of two decisions will be made:
1. Reject the null hypothesis, or
2. Accept the null hypothesis.
A type I error occurs if the null hypothesis is rejected when it
is true. (α error)
A type II error occurs if the null hypothesis is accepted when
it is false. (ÎČ error)
16. Types of Errors
âą As we all (hopefully) remember, results of
hypothesis tests fall into one of four
scenarios:
17. âą The jury is instructed to assume the person is innocent,
and only decide that the person is guilty if the evidence
convinces them of such.
âą When there is a favored assumption, the presumed
innocence of the person in this case, and the assumption
is true, but the jury decides it is false and declares that the
person is guilty, we have a so-called Type I error.
âą Conversely, if the favored assumption is false, i.e., the
person is really guilty, but the jury declares that it is true,
that is that the person is innocent, then we have a so-
called Type II error.
Explaination with example:
18. Types of Errors
Example:
Statesville college claims that 94% of their graduates find
employment within six months of graduation. What will a type
I or type II error be?
H0:
Ha: p ïč 0.94
p = 0.94 (Claim)
âą A type I error is rejecting the null when it is true.
The population proportion is actually 0.94, but is rejected.
(We believe it is not 0.94.)
âą A type II error is accepting the null when it is false.
The population proportion is not 0.94, but is accepted.
(We believe it is 0.94.)
19. Level of Significance
In a hypothesis test, the level of significance is your
maximum allowable probability of making a type I error. It is
denoted by ïĄ, the lowercase Greek letter alpha.
The probability of making a type II error is denoted by ïą, the
lowercase Greek letter beta.
By setting the level of significance at a small value, you are
saying that you want the probability of rejecting a true null
hypothesis to be small.
Commonly used levels of significance:
ïĄ = 0.10 ïĄ = 0.05 ïĄ = 0.01
Hypothesis tests are based on ïĄ.
20. Statistical Tests
The statistic that is compared with the parameter in the null
hypothesis is called the test statistic.
After stating the null and alternative hypotheses and
specifying the level of significance, a random sample is taken
from the population and sample statistics are calculated.
X2s2ïł2
zp
t (n < 30)
z (n ïł 30)ÎŒ
Standardized test statisticTest statisticPopulation
parameter
Ëp
x
21. Test Statistic
This is an example of a one-sample test of a mean
when Ï is known. Use this statistic to test the
problem:
22. Illustrative Example: âBody Weightâ
âą The problem: In the 1970s, 20â29 year old men in the
U.S. had a mean Ό body weight of 170 pounds. Standard
deviation Ï was 40 pounds. We test whether mean body
weight in the population now differs.
âą Null hypothesis H0: ÎŒ = 170 (âno differenceâ)
âą The alternative hypothesis can be either
Ha: Ό > 170 (one-sided test) or
Ha: ÎŒ â 170 (two-sided test)
23. Illustrative Example: z statistic
âą For the illustrative example, ÎŒ0 = 170
âą We know Ï = 40
âą Take an SRS of n = 64. Therefore
âą If we found a sample mean of 173, then
5
64
40
ïœïœïœ
n
SEx
ïł
60.0
5
1701730
stat ïœ
ï
ïœ
ï
ïœ
xSE
x
z
ï
24. Illustrative Example: z statistic
If we found a sample mean of 185, then
00.3
5
1701850
stat ïœ
ï
ïœ
ï
ïœ
xSE
x
z
ï
25. P-values
âą If the null hypothesis is true, a P-value (or probability
value) of a hypothesis test is the probability of obtaining a
sample statistic with a value as extreme or more extreme
than the one determined from the sample data.
âą The P-value of a hypothesis test depends on the nature of
the test.
âą There are three types of hypothesis tests â a left-, right-, or
two-tailed test. The type of test depends on the region of
the sampling distribution that favors a rejection of H0. This
region is indicated by the alternative hypothesis.
26. Left-tailed Test
1. If the alternative hypothesis contains the less-
than inequality symbol (<), the hypothesis test is
a left-tailed test.
z
0 1 2 3-3 -2 -1
Test
statistic
H0: ÎŒ ïł k
Ha: Ό < k
P is the area to
the left of the test
statistic.
27. Right-tailed Test
2. If the alternative hypothesis contains the greater-than
symbol (>), the hypothesis test is a right-tailed test.
z
0 1 2 3-3 -2 -1
Test
statistic
H0: ÎŒ ïŁ k
Ha: Ό > k
P is the area to
the right of the
test statistic.
28. Two-tailed Test
3. If the alternative hypothesis contains the not-equal-to
symbol (ïč), the hypothesis test is a two-tailed test. In a
two-tailed test, each tail has an area of P.
z
0 1 2 3-3 -2 -1
Test
statistic
Test
statistic
H0: Ό = k
Ha: ÎŒ ïč k
P is twice the
area to the left of
the negative test
statistic.
P is twice the
area to the right
of the positive
test statistic.
2
1
29.
30. Accept the null hypothesis if the sample
statistic falls in this region
Reject the null hypothesis if the sample
statistic falls in these two regions.
Rejection
/Critical Region
Acceptance
Region
31. Identifying Types of Tests
Example:
For each claim, state H0 and Ha. Then determine whether
the hypothesis test is a left-tailed, right-tailed, or two-tailed
test.
a.) A cigarette manufacturer claims that less than one-
eighth of the US adult population smokes cigarettes.
Ha: p < 0.125 (Claim)
H0: p ïł 0.125
Left-tailed test
32. Identifying Types of Tests
Example:
For each claim, state H0 and Ha. Then determine whether
the hypothesis test is a left-tailed, right-tailed, or two-tailed
test.
b.) A local telephone company claims that the average
length of a phone call is 8 minutes.
Ha: ÎŒ ïč 8
H0: Ό = 8 (Claim)
Two-tailed test
33. Making a Decision
Decision Rule Based on P-value
To use a P-value to make a conclusion in a hypothesis test,
compare the P-value with ïĄ.
1. If P ïŁ ïĄ, then reject H0.
2. If P > ïĄ, then accept H0.
Claim
Claim is H0 Claim is Ha
Accept H0
Reject H0
There is enough evidence to r
eject the claim.
Decision
There is not enough evidence
to reject the claim.
There is enough evidence to s
upport the claim.
There is not enough evidence
to support the claim.
34. Interpreting a Decision
Example:
You perform a hypothesis test for the following claim. How
should you interpret your decision if you reject H0? If you
fail to reject H0?
âą H0: (Claim) A cigarette manufacturer claims that less
than one-eighth of the US adult population smokes
cigarettes.
âą If H0 is rejected, you should conclude âthere is sufficient
evidence to indicate that the manufacturerâs claim is false.â
âą If you fail to reject H0, you should conclude âthere is not
sufficient evidence to indicate that the manufacturerâs claim is
false.â
35. Steps for Hypothesis Testing
1. State the claim mathematically and verbally. Identify the
null and alternative hypotheses.
2. Specify the level of significance.
3. Determine the standardized sampling
distribution and draw its graph.
H0: ? Ha: ?
ïĄ = ?
4. Calculate the test statistic and its
standardized value. Add it to your sketch. z
0
Test statistic
This sampling distribution is
based on the assumption
that H0 is true.
z
0
36. Steps for Hypothesis Testing
5. Find the P-value.
6. Use the following decision rule.
7. Write a statement to interpret the decision in the context of
the original claim.
Is the P-value less than or
equal to the level of
significance?
Fail to reject H0.
Yes
Reject H0.
No
These steps apply to left-tailed, right-tailed, and two-tailed tests.
38. An insurance company is reviewing its current policy rates.
When originally setting the rates they believed that the
average claim amount will be maximum Rs180000. They
are concerned that the true mean is actually higher than
this, because they could potentially lose a lot of money.
They randomly select 40 claims, and calculate a sample
mean of Rs195000. Assuming that the standard deviation of
claims is Rs50000 and set α= .05, test to see if the
insurance company should be concerned or not.
39. SOLUTION
Step 1: Set the null and alternative
hypotheses
H0 : Ό†180000
H1 : Ό > 180000 (right-tailed test)
Step 2: Calculate the test statistic
z= = xâ ÎŒ
Ï/ân
= 1.897
Step 3: Set Rejection Region
41. Step 4: Conclude
We can see that 1.897 > 1.65, thus our test statistic is in
the rejection region. Therefore we accept the null
hypothesis.
42. ILLUSTRATION
ONE TAILED (RIGHT TAILED)
Trying to encourage people to stop driving to campus, the
university claims that on average it takes at least 30
minutes to find a parking space on campus. I donât think it
takes so long to find a spot. In fact I have a sample of the
last five times I drove to campus, and I calculated x = 20.
Assuming that the time it takes to find a parking spot is
normal, and that Ï = 6 minutes, then perform a hypothesis
test with level α= 0.10 to see if my claim is correct.
43. SOLUTION
Step 1: Set the null and alternative hypotheses
H0 : Ό ℠30
H1 : Ό < 30 (RIGHT TAILED)
Step 2: Calculate the test statistic
Z= xâ ÎŒ
Ï/ân
= -3.727
45. STEP 4: CONCLUDE
We can see that -3.727 <-1.28 ( or absolute value is higher
than the critical value) , thus our test statistic is in
the rejection region. Therefore we Reject the null
hypothesis. We can conclude that the mean is significantly
less than 30, thus I have proven that the mean time to find
a parking space is less than 30.
46. Example:
A company manufacturing automobile tyres finds
that tyre life is normally distributed with a mean
of 40,000 km and standard deviation of 3000 km.
It is believed that a change in the production
process will result in a better product and the
company has developed a new tyre. A sample of
100 new tyres has been selected.The company
has found that the mean life of these new tyres
is 40,900 km.Can it be concluded that the new
tyre is significantly better than the old one,
using the significance level of 0.01?
48. ïź At 0.01 level, the critical value of z is
.01
2.33.
ïźZcal=3
As computed
value falls in
rejection region,
we reject the
null hypothesis.
Z tab > Z cal
Accept
49. A manufacturer claims that at least 95% of the
equipment that he supplied to a factory conformed
to specifications. An examination of 700 pieces of
equipment reveals that 53 are faulty. Do these
results provide sufficient evidence to reject the
manufacturer's claim? Use α= 0.01 to perform the
test.
Example:
50. 1. Ho: p = 0.95 , H1: p <0.95
2. α= 0.01
3. z= -3.1341
4. Reject Ho
There is is sufficient evidence to reject the
manufacturer's claim because less than 95% of the
equipment he supplied conformed to
specifications.
51. Example:
ïź An ambulance service claims that it takes, on
the average 8.9 minutes to reach its
destination in emergency calls.To check on this
claim, the agency which licenses ambulance
services has then timed on 50 emergency calls,
getting a mean of 9.3 minutes with a standard
deviation of 1.8 minutes.Does this constitute
evidence that the figure claimed is not right
at 1% level of significance?
Hint: Ho: ï= 8.9; Ha: ïïč8.9, Zcal = 1.574 ;
Ho accepted.
52. A random sample of boots worn by 40 combat
soldiers in a desert region showed an average
life of 1.08 yrs with a standard deviation of
0.05.Under the standard conditions,the boots
are known to have an average life of 1.28 yrs.Is
there reason to assert at a level of significance
of 0.05 that use in the desert causes the mean
life of such boots to decrease?
Hint: Ho: ï = 1.28, Ha: ï<1.28 ,Zcal= -28.57
Ho rejected.
Example:
53. Hinton Press hypothesizes that the average life
of its largest web press is 14,500 hrs.They know
that the standard deviation of press life is 2100
hrs.From a sample of 25 presses, the company
finds a sample mean of 13000 hrs. At a 0.01
significance level, should the company conclude
that the average life of the presses is less than
the hypothesized 14,500 hours?
Ans: Ho rejected.
Example:
54. ABC company is engaged in the packaging of a
superior quality tea in jars of 500 gm each.The
company is of the view that as long as jars
contain 500 gm of tea, the process is in
control.The standard deviation is 50 gm.A sample
of 225 jars is taken at random and the sample
average is found to be 510 gm.Has the process
gone out of control?
Hint: ï =500, ïïč500; Zcal = 3; Ho rejected
Example:
55. Example:
American Theaters knows that a certain hit
movie ran an average of 84 days in each city, and
the corresponding standard deviation was 10
days.The manager of the southeastern district
was interested in comparing the movie;s
popularity in his region with that in all of
Americanâs other theaters. He randomly chose
75 theaters in his region and found that they
ran the movie an average of 81.5 days.
56. ïź State appropriate hypothesis for testing
whether there was a significant difference in
the length of the pictureâs run between
theaters in the southeastern district and all of
Americanâs other theaters.
ïź At a 1% significance level, test these
hypothesis.
ïź (Ans: Accept Ho)
57. A manufacturer claims that at least 95% of the
equipments which he supplied to a factory
conformed to the specification.An examination
of the sample of 200 pieces of equipment
revealed that 18 were faulty.Test the claim of
the manufacturer.
Hint: Ho:P=.95 Ha:P<.95 p=1-18/100=.91
Ho rejected.
Example: