Decision Making and Hypothesis Testing 1 PDF
Decision Making and Hypothesis Testing 1 PDF
Decision Making and Hypothesis Testing 1 PDF
Learning Objectives
At the end of this session, you will be able to:
• Get to know on Decision making
• Hypothesis testing
1. Test of mean of population(s)
2. Test of proportion of population(s)
3. Test of variance of population(s)
4. Test of goodness of fit
5. Test of independency between two RVs
Steps in Hypothesis testing
https://onlinecourses.science.psu.edu/stat500/node/40
Methods for Making a Statistical Decision
• Test Statistic:
x –m
z= s 0
n
• Where x is the sample statistic.
• µ0 is the value identified in the null
hypothesis.
• s is known.
• n is the sample size.
Test of µ, s Known, Population Shape Not Known/Not Normal
• Test Statistic:
x –m
t= s 0
where n
• 𝑥ҧ is the sample statistic.
• µ0 is the value identified in the null hypothesis.
• s is unknown, s is sample standard deviation.
• n is the sample size
• degrees of freedom on t are n – 1.
Test of µ, s Unknown, Population Shape Not Known/Not Normal
• I. Hypotheses
• H0: µ = 1.3250 minutes
• H1: µ 1.3250 minutes
• II. Rejection Region Do Not
• a = 0.05 Reject H 0
Reject H Reject H
Decision Rule: 0 0
• V. Conclusion
This is not sufficient evidence to conclude that the robot
welder is out of adjustment.
Example in simulation
• Problem
Generate 100 sample from N(3,10). Based on last 30
sample decide whether mu=2 or not, at the level of
\alpha=0.01. (let us assume that variance is known)
Lower Tail Test of Population Mean with Known Variance
• Problem
Suppose the manufacturer claims that the mean lifetime
of a light bulb is more than 10,000 hours. In a sample of
30 light bulbs, it was found that they only last 9,900
hours on average. Assume the population standard
deviation is 120 hours. At .05 significance level, can we
reject the claim by the manufacturer?
Lower Tail Test of Population Mean with Known Variance
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/lower-tail-test-population-mean-known-variance
Upper Tail Test of Population Mean with Known Variance
• Problem
Suppose the food label on a cookie bag states that there
is at most 2 grams of saturated fat in a single cookie. In
a sample of 35 cookies, it is found that the mean amount
of saturated fat per cookie is 2.1 grams. Assume that the
population standard deviation is 0.25 grams. At .05
significance level, can we reject the claim on food label?
Upper Tail Test of Population Mean with Known Variance
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/upper-tail-test-population-mean-known-variance
Two-Tailed Test of Population Mean with Known Variance
• Problem
Suppose the mean weight of King Penguins found in an
Antarctic colony last year was 15.4 kg. In a sample of 35
penguins same time this year in the same colony, the
mean penguin weight is 14.6 kg. Assume the population
standard deviation is 2.5 kg. At .05 significance level,
can we reject the null hypothesis that the mean penguin
weight does not differ from last year?
Upper Tail Test of Population Mean with Known Variance
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/two-tailed-test-population-mean-known-variance
Lower Tail Test of Population Mean with Unknown Variance
• Problem
Suppose the manufacturer claims that the mean lifetime
of a light bulb is more than 10,000 hours. In a sample of
30 light bulbs, it was found that they only last 9,900
hours on average. Assume the sample standard
deviation is 125 hours. At .05 significance level, can we
reject the claim by the manufacturer?
Lower Tail Test of Population Mean with Unknown Variance
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/lower-tail-test-population-mean-unknown-
variance
Upper Tail Test of Population Mean with Unknown Variance
• Problem
Suppose the food label on a cookie bag states that
there is at most 2 grams of saturated fat in a single
cookie. In a sample of 35 cookies, it is found that the
mean amount of saturated fat per cookie is 2.1 grams.
Assume that the sample standard deviation is 0.3 gram.
At .05 significance level, can we reject the claim on food
label?
Upper Tail Test of Population Mean with Unknown Variance
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/upper-tail-test-population-mean-unknown-
variance
Two-Tailed Test of Population Mean with Unknown Variance
• Problem
Suppose the mean weight of King Penguins found in an
Antarctic colony last year was 15.4 kg. In a sample of 35
penguins same time this year in the same colony, the
mean penguin weight is 14.6 kg. Assume the sample
standard deviation is 2.5 kg. At .05 significance level,
can we reject the null hypothesis that the mean penguin
weight does not differ from last year?
Two-tailed Test of Population Mean with Unknown Variance
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/two-tailed-test-population-mean-unknown-
variance
Example: Test of mean
https://onlinecourses.science.psu.edu/statprogram/node/16
4
Lower Tail Test of Population Proportion
• Problem
Suppose 60% of citizens voted in last election. 85 out
of 148 people in a telephone survey said that they voted
in current election. At 0.5 significance level, can we
reject the null hypothesis that the proportion of voters in
the population is above 60% this year?
Lower Tail Test of Population Proportion
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/lower-tail-test-population-proportion
Lower Tail Test of Population Proportion
• Problem
Suppose 60% of citizens voted in last election. 85 out
of 148 people in a telephone survey said that they voted
in current election. At 0.5 significance level, can we
reject the null hypothesis that the proportion of voters in
the population is above 60% this year?
Lower Tail Test of Population Proportion
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/lower-tail-test-population-proportion
Upper Tail Test of Population Proportion
• Problem
Suppose that 12% of apples harvested in an orchard
last year was rotten. 30 out of 214 apples in a harvest
sample this year turns out to be rotten. At .05
significance level, can we reject the null hypothesis that
the proportion of rotten apples in harvest stays below
12% this year?
Upper Tail Test of Population Proportion
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/upper-tail-test-population-proportion
Two-Tailed Test of Population Proportion
• Problem
Suppose a coin toss turns up 12 heads out of 20 trials.
At .05 significance level, can one reject the null
hypothesis that the coin toss is fair?
Two-Tailed Test of Population Proportion
• Solution
http://www.r-tutor.com/elementary-statistics/hypothesis-
testing/two-tailed-test-population-proportion
Test of variance
http://www.itl.nist.gov/div898/handbook/eda/section3/eda35
8.htm
Goodness-of-Fit Test
https://onlinecourses.science.psu.edu/stat504/node/60