SlideShare uma empresa Scribd logo
1 de 39
Learning Objectives
• Know how to implement the Hypothesis, Test, Action,
Business (HTAB) system to test hypotheses.
• Understand the logic of Statistical Hypothesis Testing:
– Know how to establish null and alternative hypotheses
– Understand Type I and Type II errors
– Calculate the probability of Type II error when failing to reject the null
hypothesis

• Understand how to test a hypothesis about a single
population parameter:
– Mean
• when
• when

is known (using z-statistic)
is unknown (using t-statistic)
Types of Hypotheses
1. Research Hypothesis
– a statement of what the researcher believes will be
the outcome of an experiment or a study.

2. Statistical Hypothesis
– a more formal structure derived from the scientific
method
– composed of two parts :
• Null hypothesis (Ho) – the assumed value of the parameter if
there is no effect/ impact. We will conclude that this could
be true unless there is a small chance of getting a sample
statistic (mean/proportion/variance) as extreme or more
extreme than from the data (small p-value).
• Alternative hypothesis (Ha) – a statement of whether the
true population parameter is higher, lower, or not equal to
that hypothesized in the null hypothesis.
Types of Hypotheses
3. Substantive Hypothesis - a statistically
significant difference does not imply or mean
a material, substantive difference.
– If the null hypothesis is rejected and the
alternative hypothesis is accepted, then one
can say that a statistically significant result
has been obtained
– With “significant” results, you reject the null
hypothesis
Using the HTAB System
• H – Hypotheses
– Establish the hypothesis

• T – Test
– Conduct the test

• A – Action
– Take statistical action

• B – Business Implications
– Determine the business implications
CPA Salary Example
Example: A survey of CPAs in the U.S., done 15
years ago, found that their average salary was
$74,914. An accounting researcher would like to
test whether this average has changed over the
years. A random sample of 112 CPAs produced a
mean salary of $78,695. Assume that the
population standard deviation of salaries is =
$14,530 (note: this value is typically not known, but
we will assume it for mathematical simplicity. Later,
we will remove this assumption).
Step 1: Hypothesis
Set up the null and alternative hypotheses
Always contains “=“

H0 :
Ha :

$74,914
$74,914
> or < or ≠
Null and Alternative Hypotheses
• The null and alternative hypotheses are mutually
exclusive.
– Only one of them can be selected.

• The null hypothesis is assumed to be true. It is
compared to the observed data via either a
critical value (critical value method) or by
calculating a p-value (p-value method)
• The burden of proof falls on the alternative
hypothesis. Thus, you either reject the null in
favour of the alternative or you fail to reject the
null in favour of the alternative. The latter
statement does not imply that the null is true.
Examples: One-tailed and
Two-tailed Tests
• One-tailed Test
- Means

40

Ha :
- Proportions

H0 :

40

H 0 : p 0.18
H a : p 0.18

• Two-tailed Test

H0 :

12

Ha :

12
Step 2: Determine Appropriate Test
• The z-statistic can be used to test when the
following three conditions are met:
– The data are a random sample from the population
– The sample standard deviation ( ) is known
– At least one of the following conditions are met:
• The sample size (n) is at least 30
• The underlying distribution is normal

• The value of z-statistic can be calculated using the
following formula
z

x
n
Finite Population Correction
• If the sample is drawn from a finite population
of size N, the formula for z-statistic becomes…

z

X
N n
n N 1
Step 3: Set significance level ( )
• Significance level ( ) or Type I error rate
– Committed by rejecting a true null hypothesis
– If the null hypothesis is true, any value that falls in
a rejection region will represent a Type I error.
– The probability of committing a Type I error is
referred to as , the level of significance.

• The significance level is usually set at 0.05.
Other common values are 0.1, 0.01, or 0.001.
Type II Errors
• Type II Error
– Committed when a researcher fails to reject a false null
hypothesis
– The probability of committing a Type II error is referred
to as . Some refer to power, or 1- (the chance of
rejecting the null when it is false), instead.

• In practice, we do not know whether the null
hypothesis is true.
• Type I and Type II error rates are inversely related,
if you reduce one, you increase the other.
• One way of reducing both Type I and Type II error
rates is to increase the sample size, but that
requires more time and money.
Decision Table for
Hypothesis Testing
State of Null (Truth)
Decision:

Null True

Null False

Fail to
reject null

Correct
Decision

Type II error
( )

Reject null

Type I error
( )

Correct Decision
(Power)
Step 4: Decision Rule
• A decision rule has to be made about when the
difference between the sample and hypothesized
population mean (under the null hypothesis) is small
or large.
• The rejection region is the area on the curve where
the null hypothesis is rejected. Here the value of the
sample mean is too far from the hypothesized
population mean to conclude that they are the same.
• The nonrejection region is the area where the null
hypothesis is not rejected. Here the sample mean is
close enough to the hypothesized population mean
to conclude that the null hypothesis could be true.
Rejection and Non-rejection Regions
Rejection Region

Rejection Region

Non Rejection Region
=$74,914

Critical Value

Critical Value
Decision rule – CPA Example
Rejection Region

Rejection Region

Non Rejection Region
=$74,914
Z

/2

= Z0.025 = -1.96

Z1-

Z=0

/2

= Z0.975 = +1.96
Critical Z values:
Level of significance = 0.05

Non-rejection Region
95%

.025

.4750

.025

.4750

X

-1.96

0

1.96

Z
Values of z for common
Levels of Confidence
Confidence Level
90%
95%
98%
99%

Z Value
1.645
1.96
2.33
2.575
Decision Rule – CPA Example

Thus, we will reject H0 if Z > 1.96 or Z < -1.96
or reject H0 if |Z| > 1.96
Critical Value Based on
Sample Mean
Alternatively, you could calculate a critical value based
not on Z, but on x-bar.

zc xc
or

xc

so
n

1.96

xc 74,914
14,530 112

14,530 74,914 2,691
74,914 1.96
112

lower xc 72,223 and upper xc 77,605
Thus, we would reject the null if the sample mean is
above $77,605 or below $72,223.
One-tailed Tests
Depending on the problem, one-tailed tests are sometimes
appropriate.

H0 :

40

H0 :

40

Ha :

40

Ha :

40

Rejection Region

Non Rejection Region
=40 oz

Critical Value

Rejection Region

Non Rejection Region
=40 oz

Critical Value
Step 5 (Gather Data) and
Step 6 (Compute Test Statistic)

z

X
78695 74914 2.75
/ n 14530 / 112
Step 7: Statistical Action (Decision)
Step 8: Business Decision
Statistically, the researcher has enough evidence
to reject the figure of $74,914 as the true average
salary for CPAs. Based on the evidence gathered,
it suggests that the average has increased over
the 15-year period.
Alternative Method: the p-value
• p-value – another way to reach statistical conclusion in
hypothesis testing
If the null hypothesis is true, the p value is the probability of
getting a sample mean as extreme or more extreme than
what you observed.
If the sample mean is in the rejection region, the p-value will
be small. These two methods are always consistent.
• p-value <
reject H0, p-value
do not reject H0
• For two tailed test, /2 is used in each region
The p value is then compared to α/2 instead of to determine
statistical significance.
Some statisticians (and packages) double the p-value for a two
sided test instead and compare to .
p-value for CPA Example

Px

$78,695 |

$74,914

P

x
n

P( Z

2.75) 0.003

$78,695 $74,914
$14,530
112
Review of 8 Steps
of Hypothesis Testing
1 – Establish the null and alternative hypotheses
2 – Determine the appropriate statistical test
3 – Set , the Type I error rate / significance level
4 – Establish the decision rule
5 – Gather sample data
6 – Analyze the data
7 – Reach a statistical conclusion
8 – Make a business decision
The U.S. Farmers’ Production Company (USFPC) builds
large harvesters. For a harvester to be properly
balanced when operating, a 25-pound plate is
installed on its side. The machine that produces these
plates is set to yield plates that average 25 pounds.
The distribution of plates produced from the machine
is normal. However, the shop supervisor is worried
that the machine is out of adjustment and is
producing plates that do not average 25 pounds. To
test this, he randomly selects 20 of the plates from
the day before and weighs them.
• Establish the null and alternative hypotheses
H0: =25 pounds (where
mean weight of all plates)
Ha: ≠25
• Determine the appropriate statistical test.
Recall from earlier session, the conditions for the tdistribution:
1. The sample was randomly selected from the population
2. The population standard deviation ( ) is unknown
3. One of these conditions are met:
The sample size (n) is at least 30 OR
the underlying distribution is normal
These conditions are met!
The degrees of freedom are n-1 = 20-1 = 19 in this example
Recap: t Distribution
A family of distributions - a unique distribution for each
value of its parameter using degrees of freedom (d.f.),
every sample size having a different distribution

t

x
s
n
t19

t

/2

t19

t0.025

t19

2.093

X
25.51 25 1.04
t
n 1 s / n 2.1933/ 20
7 – Reach a statistical conclusion
Since |t| = 1.04 < tc = 2.093, do not reject H0
8 – Make a business decision
There is not enough evidence to show that the
plates are different from 25 pounds. (Note: Is this
because the true population mean is close to 25
pounds, or is there a large chance that we have
suffered from a Type II error? Good question –
more on calculating type II error rates later.)
R: Lower Tail Test of Population Mean
when Population Variance is known.
Problem: Suppose a 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?

Go to
http://www.r-tutor.com/elementary-statistics/hypothesis-testing
R: Upper Tail Test of Population Mean
when Population Variance is known.
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?

Go to
http://www.r-tutor.com/elementary-statistics/hypothesis-testing
R: Two-tailed Test of Population Mean
when Population Variance is known.
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?

Go to
http://www.r-tutor.com/elementary-statistics/hypothesis-testing
R: Lower Tail Test of Population Mean
when Population Variance is unknown
Problem: Suppose the same 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 0.05 significance level, can we reject the claim by the
manufacturer?

Go to
http://www.r-tutor.com/elementary-statistics/hypothesis-testing
R: Upper Tail Test of Population Mean
when Population Variance is unknown
Problem: Suppose the same 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 0.05 significance level, can
we reject the claim on food label?
Solution

Go to
http://www.r-tutor.com/elementary-statistics/hypothesis-testing
R: Two Tail Test of Population Mean
when Population Variance is unknown
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 0.05 significance level, can we reject the
null hypothesis that the mean penguin weight does not differ
from last year?

Go to
http://www.r-tutor.com/elementary-statistics/hypothesis-testing
R: Two Tail Test of Population Mean
when Population Variance is unknown
Go to http://ww2.coastal.edu/kingw/statistics/Rtutorials/index.html
Enter Single Sample t test and practice the t.test() command
with the temperature data given

Mais conteúdo relacionado

Mais procurados

Market structure oligopoly
Market structure oligopolyMarket structure oligopoly
Market structure oligopolyTej Kiran
 
Inroduction to Decision Theory and Decision Making Under Certainty
Inroduction to Decision Theory and Decision Making Under CertaintyInroduction to Decision Theory and Decision Making Under Certainty
Inroduction to Decision Theory and Decision Making Under CertaintyAbhi23396
 
200 chapter 7 measurement :scaling by uma sekaran
200 chapter 7 measurement :scaling by uma sekaran 200 chapter 7 measurement :scaling by uma sekaran
200 chapter 7 measurement :scaling by uma sekaran Irfan Sheikh
 
Statr session 17 and 18 (ASTR)
Statr session 17 and 18 (ASTR)Statr session 17 and 18 (ASTR)
Statr session 17 and 18 (ASTR)Ruru Chowdhury
 
Kanpur Confectioneries Case Analysis
Kanpur Confectioneries Case AnalysisKanpur Confectioneries Case Analysis
Kanpur Confectioneries Case AnalysisJayant Kushwaha
 
Comparative and Non-Comparative Scaling Techniques
Comparative and Non-Comparative Scaling TechniquesComparative and Non-Comparative Scaling Techniques
Comparative and Non-Comparative Scaling TechniquesVarsha Prakash
 
Chapter 13 game theory and competitive strategy
Chapter 13 game theory and competitive strategyChapter 13 game theory and competitive strategy
Chapter 13 game theory and competitive strategyYesica Adicondro
 
Chp9 - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp9  - Research Methods for Business By Authors Uma Sekaran and Roger BougieChp9  - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp9 - Research Methods for Business By Authors Uma Sekaran and Roger BougieHassan Usman
 
Statistical analysis for large sample
Statistical analysis for large sampleStatistical analysis for large sample
Statistical analysis for large sampleNavya Kini
 
Collecting Primary Data Using Semi Structured
Collecting Primary Data Using Semi StructuredCollecting Primary Data Using Semi Structured
Collecting Primary Data Using Semi StructuredASAD ALI
 
Operation strategy of itc limited
Operation  strategy  of  itc limitedOperation  strategy  of  itc limited
Operation strategy of itc limitedshabistan khan
 
STRATEGIC PLAN OF INDIAN TOBACCO COMPANY (ITC)
STRATEGIC PLAN OF INDIAN TOBACCO COMPANY (ITC)STRATEGIC PLAN OF INDIAN TOBACCO COMPANY (ITC)
STRATEGIC PLAN OF INDIAN TOBACCO COMPANY (ITC)Utkarsh Bisht
 
Chapter 15 Marketing Research Malhotra
Chapter 15 Marketing Research MalhotraChapter 15 Marketing Research Malhotra
Chapter 15 Marketing Research MalhotraAADITYA TANTIA
 

Mais procurados (20)

The Hallmarks of Scientific Research
The Hallmarks of Scientific ResearchThe Hallmarks of Scientific Research
The Hallmarks of Scientific Research
 
Malhotra14
Malhotra14Malhotra14
Malhotra14
 
Market structure oligopoly
Market structure oligopolyMarket structure oligopoly
Market structure oligopoly
 
Inroduction to Decision Theory and Decision Making Under Certainty
Inroduction to Decision Theory and Decision Making Under CertaintyInroduction to Decision Theory and Decision Making Under Certainty
Inroduction to Decision Theory and Decision Making Under Certainty
 
200 chapter 7 measurement :scaling by uma sekaran
200 chapter 7 measurement :scaling by uma sekaran 200 chapter 7 measurement :scaling by uma sekaran
200 chapter 7 measurement :scaling by uma sekaran
 
Assignment problems
Assignment problemsAssignment problems
Assignment problems
 
Statr session 17 and 18 (ASTR)
Statr session 17 and 18 (ASTR)Statr session 17 and 18 (ASTR)
Statr session 17 and 18 (ASTR)
 
Kanpur Confectioneries Case Analysis
Kanpur Confectioneries Case AnalysisKanpur Confectioneries Case Analysis
Kanpur Confectioneries Case Analysis
 
Comparative and Non-Comparative Scaling Techniques
Comparative and Non-Comparative Scaling TechniquesComparative and Non-Comparative Scaling Techniques
Comparative and Non-Comparative Scaling Techniques
 
Chapter 13 game theory and competitive strategy
Chapter 13 game theory and competitive strategyChapter 13 game theory and competitive strategy
Chapter 13 game theory and competitive strategy
 
Chp9 - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp9  - Research Methods for Business By Authors Uma Sekaran and Roger BougieChp9  - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp9 - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
 
estimation
estimationestimation
estimation
 
Statistical analysis for large sample
Statistical analysis for large sampleStatistical analysis for large sample
Statistical analysis for large sample
 
Collecting Primary Data Using Semi Structured
Collecting Primary Data Using Semi StructuredCollecting Primary Data Using Semi Structured
Collecting Primary Data Using Semi Structured
 
Operation strategy of itc limited
Operation  strategy  of  itc limitedOperation  strategy  of  itc limited
Operation strategy of itc limited
 
STRATEGIC PLAN OF INDIAN TOBACCO COMPANY (ITC)
STRATEGIC PLAN OF INDIAN TOBACCO COMPANY (ITC)STRATEGIC PLAN OF INDIAN TOBACCO COMPANY (ITC)
STRATEGIC PLAN OF INDIAN TOBACCO COMPANY (ITC)
 
Chapter 15 Marketing Research Malhotra
Chapter 15 Marketing Research MalhotraChapter 15 Marketing Research Malhotra
Chapter 15 Marketing Research Malhotra
 
Cournot's Duopoly model
Cournot's Duopoly modelCournot's Duopoly model
Cournot's Duopoly model
 
Malhotra12
Malhotra12Malhotra12
Malhotra12
 
CavinKare Project
CavinKare ProjectCavinKare Project
CavinKare Project
 

Destaque

Probability addition rule
Probability addition ruleProbability addition rule
Probability addition rulelrassbach
 
Wiki assignment
Wiki assignmentWiki assignment
Wiki assignmentherbison
 
Notes Day 6: Prove that sides are in proportion
Notes Day 6: Prove that sides are in proportionNotes Day 6: Prove that sides are in proportion
Notes Day 6: Prove that sides are in proportionKate Nowak
 
Statr session 25 and 26
Statr session 25 and 26Statr session 25 and 26
Statr session 25 and 26Ruru Chowdhury
 
Theorems And Conditional Probability
Theorems And Conditional ProbabilityTheorems And Conditional Probability
Theorems And Conditional Probabilitymathscontent
 
Confidence Intervals And The T Distribution
Confidence Intervals And The T   DistributionConfidence Intervals And The T   Distribution
Confidence Intervals And The T DistributionDarren Barton
 
Questions On Hypothesis Testing
Questions On Hypothesis TestingQuestions On Hypothesis Testing
Questions On Hypothesis TestingNeha Chauhan
 
Fundamentals Probability 08072009
Fundamentals Probability 08072009Fundamentals Probability 08072009
Fundamentals Probability 08072009Sri Harsha gadiraju
 
Chapter 07
Chapter 07Chapter 07
Chapter 07bmcfad01
 
CABT SHS Statistics & Probability - Estimation of Parameters (intro)
CABT SHS Statistics & Probability -  Estimation of Parameters (intro)CABT SHS Statistics & Probability -  Estimation of Parameters (intro)
CABT SHS Statistics & Probability - Estimation of Parameters (intro)Gilbert Joseph Abueg
 
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...nszakir
 
Medical statistics Basic concept and applications [Square one]
Medical statistics Basic concept and applications [Square one]Medical statistics Basic concept and applications [Square one]
Medical statistics Basic concept and applications [Square one]Tarek Tawfik Amin
 
Chapter 5 part1- The Sampling Distribution of a Sample Mean
Chapter 5 part1- The Sampling Distribution of a Sample MeanChapter 5 part1- The Sampling Distribution of a Sample Mean
Chapter 5 part1- The Sampling Distribution of a Sample Meannszakir
 

Destaque (20)

Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Sfs4e ppt 06
Sfs4e ppt 06Sfs4e ppt 06
Sfs4e ppt 06
 
Probability addition rule
Probability addition ruleProbability addition rule
Probability addition rule
 
Les5e ppt 06
Les5e ppt 06Les5e ppt 06
Les5e ppt 06
 
Wiki assignment
Wiki assignmentWiki assignment
Wiki assignment
 
Notes Day 6: Prove that sides are in proportion
Notes Day 6: Prove that sides are in proportionNotes Day 6: Prove that sides are in proportion
Notes Day 6: Prove that sides are in proportion
 
Statr session 25 and 26
Statr session 25 and 26Statr session 25 and 26
Statr session 25 and 26
 
Theorems And Conditional Probability
Theorems And Conditional ProbabilityTheorems And Conditional Probability
Theorems And Conditional Probability
 
Confidence Intervals And The T Distribution
Confidence Intervals And The T   DistributionConfidence Intervals And The T   Distribution
Confidence Intervals And The T Distribution
 
Questions On Hypothesis Testing
Questions On Hypothesis TestingQuestions On Hypothesis Testing
Questions On Hypothesis Testing
 
Fundamentals Probability 08072009
Fundamentals Probability 08072009Fundamentals Probability 08072009
Fundamentals Probability 08072009
 
Chap07 interval estimation
Chap07 interval estimationChap07 interval estimation
Chap07 interval estimation
 
Chapter 07
Chapter 07Chapter 07
Chapter 07
 
CABT SHS Statistics & Probability - Estimation of Parameters (intro)
CABT SHS Statistics & Probability -  Estimation of Parameters (intro)CABT SHS Statistics & Probability -  Estimation of Parameters (intro)
CABT SHS Statistics & Probability - Estimation of Parameters (intro)
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
Normal Distribution
Normal DistributionNormal Distribution
Normal Distribution
 
Normal distribution stat
Normal distribution statNormal distribution stat
Normal distribution stat
 
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
 
Medical statistics Basic concept and applications [Square one]
Medical statistics Basic concept and applications [Square one]Medical statistics Basic concept and applications [Square one]
Medical statistics Basic concept and applications [Square one]
 
Chapter 5 part1- The Sampling Distribution of a Sample Mean
Chapter 5 part1- The Sampling Distribution of a Sample MeanChapter 5 part1- The Sampling Distribution of a Sample Mean
Chapter 5 part1- The Sampling Distribution of a Sample Mean
 

Semelhante a Statr session 15 and 16

Statr session 17 and 18
Statr session 17 and 18Statr session 17 and 18
Statr session 17 and 18Ruru Chowdhury
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testingNirajan Bam
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyParag Shah
 
hypothesis teesting
 hypothesis teesting hypothesis teesting
hypothesis teestingkpgandhi
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)Harve Abella
 
Telesidang 4 bab_8_9_10stst
Telesidang 4 bab_8_9_10ststTelesidang 4 bab_8_9_10stst
Telesidang 4 bab_8_9_10ststNor Ihsan
 
10. sampling and hypotehsis
10. sampling and hypotehsis10. sampling and hypotehsis
10. sampling and hypotehsisKaran Kukreja
 
hypothesis test
 hypothesis test hypothesis test
hypothesis testUnsa Shakir
 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxrjaisankar
 
Chapter 9 Fundamental of Hypothesis Testing.ppt
Chapter 9 Fundamental of Hypothesis Testing.pptChapter 9 Fundamental of Hypothesis Testing.ppt
Chapter 9 Fundamental of Hypothesis Testing.pptHasanGilani3
 

Semelhante a Statr session 15 and 16 (20)

Statr session 17 and 18
Statr session 17 and 18Statr session 17 and 18
Statr session 17 and 18
 
Hypothsis testing
Hypothsis testingHypothsis testing
Hypothsis testing
 
7 hypothesis testing
7 hypothesis testing7 hypothesis testing
7 hypothesis testing
 
Data analysis
Data analysisData analysis
Data analysis
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
Himani
HimaniHimani
Himani
 
Himani sharma
Himani sharmaHimani sharma
Himani sharma
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for Pharmacy
 
hypothesis teesting
 hypothesis teesting hypothesis teesting
hypothesis teesting
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
Sampling theory
Sampling theorySampling theory
Sampling theory
 
Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)
 
Telesidang 4 bab_8_9_10stst
Telesidang 4 bab_8_9_10ststTelesidang 4 bab_8_9_10stst
Telesidang 4 bab_8_9_10stst
 
10. sampling and hypotehsis
10. sampling and hypotehsis10. sampling and hypotehsis
10. sampling and hypotehsis
 
hypothesis.pptx
hypothesis.pptxhypothesis.pptx
hypothesis.pptx
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptx
 
Chapter 9 Fundamental of Hypothesis Testing.ppt
Chapter 9 Fundamental of Hypothesis Testing.pptChapter 9 Fundamental of Hypothesis Testing.ppt
Chapter 9 Fundamental of Hypothesis Testing.ppt
 
Ds 2251 -_hypothesis test
Ds 2251 -_hypothesis testDs 2251 -_hypothesis test
Ds 2251 -_hypothesis test
 

Mais de Ruru Chowdhury

Mais de Ruru Chowdhury (16)

The One With The Wizards and Dragons. Prelims
The One With The Wizards and Dragons. PrelimsThe One With The Wizards and Dragons. Prelims
The One With The Wizards and Dragons. Prelims
 
The One With The Wizards and Dragons. Finals
The One With The Wizards and Dragons. FinalsThe One With The Wizards and Dragons. Finals
The One With The Wizards and Dragons. Finals
 
Statr session 23 and 24
Statr session 23 and 24Statr session 23 and 24
Statr session 23 and 24
 
Statr session 21 and 22
Statr session 21 and 22Statr session 21 and 22
Statr session 21 and 22
 
Statr session 19 and 20
Statr session 19 and 20Statr session 19 and 20
Statr session 19 and 20
 
Statr session14, Jan 11
Statr session14, Jan 11Statr session14, Jan 11
Statr session14, Jan 11
 
Nosql part3
Nosql part3Nosql part3
Nosql part3
 
Nosql part1 8th December
Nosql part1 8th December Nosql part1 8th December
Nosql part1 8th December
 
Nosql part 2
Nosql part 2Nosql part 2
Nosql part 2
 
Statr sessions 9 to 10
Statr sessions 9 to 10Statr sessions 9 to 10
Statr sessions 9 to 10
 
R part iii
R part iiiR part iii
R part iii
 
R part II
R part IIR part II
R part II
 
Statr sessions 7 to 8
Statr sessions 7 to 8Statr sessions 7 to 8
Statr sessions 7 to 8
 
R part I
R part IR part I
R part I
 
Statr sessions 4 to 6
Statr sessions 4 to 6Statr sessions 4 to 6
Statr sessions 4 to 6
 
Statistics with R
Statistics with R Statistics with R
Statistics with R
 

Último

How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 

Último (20)

How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 

Statr session 15 and 16

  • 1. Learning Objectives • Know how to implement the Hypothesis, Test, Action, Business (HTAB) system to test hypotheses. • Understand the logic of Statistical Hypothesis Testing: – Know how to establish null and alternative hypotheses – Understand Type I and Type II errors – Calculate the probability of Type II error when failing to reject the null hypothesis • Understand how to test a hypothesis about a single population parameter: – Mean • when • when is known (using z-statistic) is unknown (using t-statistic)
  • 2. Types of Hypotheses 1. Research Hypothesis – a statement of what the researcher believes will be the outcome of an experiment or a study. 2. Statistical Hypothesis – a more formal structure derived from the scientific method – composed of two parts : • Null hypothesis (Ho) – the assumed value of the parameter if there is no effect/ impact. We will conclude that this could be true unless there is a small chance of getting a sample statistic (mean/proportion/variance) as extreme or more extreme than from the data (small p-value). • Alternative hypothesis (Ha) – a statement of whether the true population parameter is higher, lower, or not equal to that hypothesized in the null hypothesis.
  • 3. Types of Hypotheses 3. Substantive Hypothesis - a statistically significant difference does not imply or mean a material, substantive difference. – If the null hypothesis is rejected and the alternative hypothesis is accepted, then one can say that a statistically significant result has been obtained – With “significant” results, you reject the null hypothesis
  • 4. Using the HTAB System • H – Hypotheses – Establish the hypothesis • T – Test – Conduct the test • A – Action – Take statistical action • B – Business Implications – Determine the business implications
  • 5. CPA Salary Example Example: A survey of CPAs in the U.S., done 15 years ago, found that their average salary was $74,914. An accounting researcher would like to test whether this average has changed over the years. A random sample of 112 CPAs produced a mean salary of $78,695. Assume that the population standard deviation of salaries is = $14,530 (note: this value is typically not known, but we will assume it for mathematical simplicity. Later, we will remove this assumption).
  • 6. Step 1: Hypothesis Set up the null and alternative hypotheses Always contains “=“ H0 : Ha : $74,914 $74,914 > or < or ≠
  • 7. Null and Alternative Hypotheses • The null and alternative hypotheses are mutually exclusive. – Only one of them can be selected. • The null hypothesis is assumed to be true. It is compared to the observed data via either a critical value (critical value method) or by calculating a p-value (p-value method) • The burden of proof falls on the alternative hypothesis. Thus, you either reject the null in favour of the alternative or you fail to reject the null in favour of the alternative. The latter statement does not imply that the null is true.
  • 8. Examples: One-tailed and Two-tailed Tests • One-tailed Test - Means 40 Ha : - Proportions H0 : 40 H 0 : p 0.18 H a : p 0.18 • Two-tailed Test H0 : 12 Ha : 12
  • 9. Step 2: Determine Appropriate Test • The z-statistic can be used to test when the following three conditions are met: – The data are a random sample from the population – The sample standard deviation ( ) is known – At least one of the following conditions are met: • The sample size (n) is at least 30 • The underlying distribution is normal • The value of z-statistic can be calculated using the following formula z x n
  • 10. Finite Population Correction • If the sample is drawn from a finite population of size N, the formula for z-statistic becomes… z X N n n N 1
  • 11. Step 3: Set significance level ( ) • Significance level ( ) or Type I error rate – Committed by rejecting a true null hypothesis – If the null hypothesis is true, any value that falls in a rejection region will represent a Type I error. – The probability of committing a Type I error is referred to as , the level of significance. • The significance level is usually set at 0.05. Other common values are 0.1, 0.01, or 0.001.
  • 12. Type II Errors • Type II Error – Committed when a researcher fails to reject a false null hypothesis – The probability of committing a Type II error is referred to as . Some refer to power, or 1- (the chance of rejecting the null when it is false), instead. • In practice, we do not know whether the null hypothesis is true. • Type I and Type II error rates are inversely related, if you reduce one, you increase the other. • One way of reducing both Type I and Type II error rates is to increase the sample size, but that requires more time and money.
  • 13. Decision Table for Hypothesis Testing State of Null (Truth) Decision: Null True Null False Fail to reject null Correct Decision Type II error ( ) Reject null Type I error ( ) Correct Decision (Power)
  • 14. Step 4: Decision Rule • A decision rule has to be made about when the difference between the sample and hypothesized population mean (under the null hypothesis) is small or large. • The rejection region is the area on the curve where the null hypothesis is rejected. Here the value of the sample mean is too far from the hypothesized population mean to conclude that they are the same. • The nonrejection region is the area where the null hypothesis is not rejected. Here the sample mean is close enough to the hypothesized population mean to conclude that the null hypothesis could be true.
  • 15. Rejection and Non-rejection Regions Rejection Region Rejection Region Non Rejection Region =$74,914 Critical Value Critical Value
  • 16. Decision rule – CPA Example Rejection Region Rejection Region Non Rejection Region =$74,914 Z /2 = Z0.025 = -1.96 Z1- Z=0 /2 = Z0.975 = +1.96
  • 17. Critical Z values: Level of significance = 0.05 Non-rejection Region 95% .025 .4750 .025 .4750 X -1.96 0 1.96 Z
  • 18. Values of z for common Levels of Confidence Confidence Level 90% 95% 98% 99% Z Value 1.645 1.96 2.33 2.575
  • 19. Decision Rule – CPA Example Thus, we will reject H0 if Z > 1.96 or Z < -1.96 or reject H0 if |Z| > 1.96
  • 20. Critical Value Based on Sample Mean Alternatively, you could calculate a critical value based not on Z, but on x-bar. zc xc or xc so n 1.96 xc 74,914 14,530 112 14,530 74,914 2,691 74,914 1.96 112 lower xc 72,223 and upper xc 77,605 Thus, we would reject the null if the sample mean is above $77,605 or below $72,223.
  • 21. One-tailed Tests Depending on the problem, one-tailed tests are sometimes appropriate. H0 : 40 H0 : 40 Ha : 40 Ha : 40 Rejection Region Non Rejection Region =40 oz Critical Value Rejection Region Non Rejection Region =40 oz Critical Value
  • 22. Step 5 (Gather Data) and Step 6 (Compute Test Statistic) z X 78695 74914 2.75 / n 14530 / 112
  • 23. Step 7: Statistical Action (Decision)
  • 24. Step 8: Business Decision Statistically, the researcher has enough evidence to reject the figure of $74,914 as the true average salary for CPAs. Based on the evidence gathered, it suggests that the average has increased over the 15-year period.
  • 25. Alternative Method: the p-value • p-value – another way to reach statistical conclusion in hypothesis testing If the null hypothesis is true, the p value is the probability of getting a sample mean as extreme or more extreme than what you observed. If the sample mean is in the rejection region, the p-value will be small. These two methods are always consistent. • p-value < reject H0, p-value do not reject H0 • For two tailed test, /2 is used in each region The p value is then compared to α/2 instead of to determine statistical significance. Some statisticians (and packages) double the p-value for a two sided test instead and compare to .
  • 26. p-value for CPA Example Px $78,695 | $74,914 P x n P( Z 2.75) 0.003 $78,695 $74,914 $14,530 112
  • 27. Review of 8 Steps of Hypothesis Testing 1 – Establish the null and alternative hypotheses 2 – Determine the appropriate statistical test 3 – Set , the Type I error rate / significance level 4 – Establish the decision rule 5 – Gather sample data 6 – Analyze the data 7 – Reach a statistical conclusion 8 – Make a business decision
  • 28. The U.S. Farmers’ Production Company (USFPC) builds large harvesters. For a harvester to be properly balanced when operating, a 25-pound plate is installed on its side. The machine that produces these plates is set to yield plates that average 25 pounds. The distribution of plates produced from the machine is normal. However, the shop supervisor is worried that the machine is out of adjustment and is producing plates that do not average 25 pounds. To test this, he randomly selects 20 of the plates from the day before and weighs them.
  • 29. • Establish the null and alternative hypotheses H0: =25 pounds (where mean weight of all plates) Ha: ≠25 • Determine the appropriate statistical test. Recall from earlier session, the conditions for the tdistribution: 1. The sample was randomly selected from the population 2. The population standard deviation ( ) is unknown 3. One of these conditions are met: The sample size (n) is at least 30 OR the underlying distribution is normal These conditions are met! The degrees of freedom are n-1 = 20-1 = 19 in this example
  • 30. Recap: t Distribution A family of distributions - a unique distribution for each value of its parameter using degrees of freedom (d.f.), every sample size having a different distribution t x s n
  • 32. 7 – Reach a statistical conclusion Since |t| = 1.04 < tc = 2.093, do not reject H0 8 – Make a business decision There is not enough evidence to show that the plates are different from 25 pounds. (Note: Is this because the true population mean is close to 25 pounds, or is there a large chance that we have suffered from a Type II error? Good question – more on calculating type II error rates later.)
  • 33. R: Lower Tail Test of Population Mean when Population Variance is known. Problem: Suppose a 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? Go to http://www.r-tutor.com/elementary-statistics/hypothesis-testing
  • 34. R: Upper Tail Test of Population Mean when Population Variance is known. 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? Go to http://www.r-tutor.com/elementary-statistics/hypothesis-testing
  • 35. R: Two-tailed Test of Population Mean when Population Variance is known. 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? Go to http://www.r-tutor.com/elementary-statistics/hypothesis-testing
  • 36. R: Lower Tail Test of Population Mean when Population Variance is unknown Problem: Suppose the same 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 0.05 significance level, can we reject the claim by the manufacturer? Go to http://www.r-tutor.com/elementary-statistics/hypothesis-testing
  • 37. R: Upper Tail Test of Population Mean when Population Variance is unknown Problem: Suppose the same 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 0.05 significance level, can we reject the claim on food label? Solution Go to http://www.r-tutor.com/elementary-statistics/hypothesis-testing
  • 38. R: Two Tail Test of Population Mean when Population Variance is unknown 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 0.05 significance level, can we reject the null hypothesis that the mean penguin weight does not differ from last year? Go to http://www.r-tutor.com/elementary-statistics/hypothesis-testing
  • 39. R: Two Tail Test of Population Mean when Population Variance is unknown Go to http://ww2.coastal.edu/kingw/statistics/Rtutorials/index.html Enter Single Sample t test and practice the t.test() command with the temperature data given