SlideShare a Scribd company logo
1
Lecture 2: Thu, Jan 16
• Hypothesis Testing – Introduction (Ch 11)
• Concepts of testing
• Tests of Hypothesis (Sigma known)
– Rejection Region method
– P-value method
– Two – tail test example
• Relationship between Tests and C.I
2
Introduction
• The purpose of hypothesis testing is to determine
whether there is enough statistical evidence in favor of a
certain belief about a parameter.
• Examples
– Does the statistical evidence in a random sample of potential
customers support the hypothesis that more than 10% of the
potential customers will purchase a new product?
– Is a new drug effective in curing a certain disease? A sample of
patients is randomly selected. Half of them are given the drug
while the other half are given a placebo. The improvement in the
patients’ condition is then measured and compared.
3
Hypothesis Testing in the Courtroom
• Null hypothesis: The defendant is innocent
• Alternative (research) hypothesis: The defendant is
guilty
• The goal of the procedure is to determine whether there
is enough evidence to conclude that the alternative
hypothesis is true. The burden of proof is on the
alternative hypothesis.
• Two types of errors:
– Type I error: Reject null hypothesis when null hypothesis is
true (convict an innocent defendant)
– Type II error: Do not reject null hypothesis when null is false
(fail to convict a guilty defendant)
4
Concepts of Hypothesis Testing
• The critical concepts of hypothesis testing.
– Example 11.1
• The manager of a department store is thinking about
establishing a new billing system for the store’s credit customers
• The new system will be cost effective only if the mean monthly
account ( )is more than $170.
– There are two hypotheses about a population mean:
• H0: The null hypothesis µ = 170
• H1: The alternative hypothesis µ > 170 (What you want to prove)
µ
5
µ = 170
• Assume the null hypothesis is true (µ= 170).
– Sample from the customer population, and build a statistic
related to the parameter hypothesized (the sample mean).
– Pose the question: How probable is it to obtain a
sample mean at least as extreme as the one observed
from the sample, if H0 is correct?
6
– Suppose is much larger than 170, then the mean µ
is likely to be greater than 170. Reject the null
hypothesis.
x
µ = 170
• Assume the null hypothesis is true (µ= 170).
• Common sense suggests the following.
– When the sample mean is close to 170, it is not
implausible that the mean µ is 170. Do not reject the
null hypothesis.
7
Types of Errors
• Two types of errors may occur when deciding whether to
reject H0 based on the statistic value.
– Type I error: Reject H0 when it is true.
– Type II error: Do not reject H0 when it is false.
• Example continued
– Type I error: Reject H0 (µ = 170) in favor of H1 (µ > 170)
when the real value of µ is 170.
– Type II error: Believe that H0 is correct (µ = 170) when
the real value of µ is greater than 170.
8
Testing the Population Mean When the
Population Standard Deviation is Known
• Example 11.1
– A new billing system for a department store will be cost-
effective only if the mean monthly account is more than
$170.
– A sample of 400 accounts has a mean of $178.
– If accounts are approximately normally distributed with
σ = $65, can we conclude that the new system will be
cost effective?
9
• Example 11.1 – Solution
– The population of interest is the credit accounts at
the store.
– We want to know whether the mean account for all
customers is greater than $170.
H1 : µ > 170
– The null hypothesis must specify a single value of
the parameter µ,
H0 : µ = 170
Testing the Population Mean (σ is Known)
10
Approaches to Testing
• There are two approaches to test whether the
sample mean supports the alternative
hypothesis (H1)
– The rejection region method is mandatory for
manual testing (but can be used when testing is
supported by a statistical software)
– The p-value method which is mostly used when a
statistical software is available.
11
The rejection region is a range of values such
that if the test statistic falls into that range, the
null hypothesis is rejected in favor of the
alternative hypothesis.
The Rejection Region Method
12
Example 11.1 – solution continued
• Recall: H0: µ = 170
H1: µ > 170
therefore,
• It seems reasonable to reject the null hypothesis and
believe that µ > 170 if the sample mean is sufficiently large.
The Rejection Region Method –
for a Right - Tail Test
Reject H0 here
Critical value of the
sample mean
13
Example 11.1 – solution continued
• Define a critical value for that is just large enough
to reject the null hypothesis.
xL
x
• Reject the null hypothesis if
Lxx ≥
The Rejection Region Method
for a Right - Tail Test
14
• Allow the probability of committing a Type I error
be α (also called the significance level).
• Find the value of the sample mean that is just
large enough so that the actual probability of
committing a Type I error does not exceed α.
Watch…
Determining the Critical Value for the
Rejection Region
15
P(commit a Type I error) = P(reject H0 given that H0 is true)
Lx
α
170x =µ
x
= P( given that H0 is true)Lxx ≥
40065
170x
z L −
=α
Example 11.1 – solution continued
… is allowed to be α.
α=≥ α
)ZZ(PSince we have:
Determining the Critical Value –
for a Right – Tail Test
16
Determining the Critical Value –
for a Right – Tail Test
.34.175
400
65
645.1170x
.645.1z,05.0selectweIf
.
400
65
z170x
L
05.
L
=+=
==α
+= α
α
40065
170x
z L −
=α
= 0.05
170x =µ
Lx
Example 11.1 – solution continued
17
Determining the Critical value
for a Right - Tail Test
34.175x
ifhypothesisnullthejectRe
≥
Conclusion
Since the sample mean (178) is greater than
the critical value of 175.34, there is sufficient
evidence to infer that the mean monthly
balance is greater than $170 at the 5%
significance level.
18
– Instead of using the statistic , we can use the
standardized value z.
– Then, the rejection region becomes
x
n
x
z
σ
µ−
=
α≥ zz
One tail test
The standardized test statistic
19
• Example 11.1 - continued
– We redo this example using the standardized test
statistic.
Recall: H0: µ = 170
H1: µ > 170
– Test statistic:
– Rejection region: z > z.05 = 1.645.
46.2
40065
170178
n
x
z =
−
=
σ
µ−
=
The standardized test statistic
20
• Example 11.1 - continued
The standardized test statistic
645.1
Re
≥Z
ifhypothesisnulltheject
Conclusion
Since Z = 2.46 > 1.645, reject the null
hypothesis in favor of the alternative
hypothesis.
21
– The p-value provides information about the amount of
statistical evidence that supports the alternative
hypothesis.
– The p-value of a test is the probability of observing a
test statistic at least as extreme as the one computed,
given that the null hypothesis is true.
– Let us demonstrate the concept on Example 11.1
P-value Method
22
0069.)4615.2z(P
)
40065
170178
z(P
=≥=
−
≥=
170x =µ
178x =
The probability of observing a
test statistic at least as extreme as 178,
given that µ = 170 is…
The p-value
P-value Method
)170when178x(P =µ≥
23
• Because the probability that the sample mean will
assume a value of more than 178 when µ = 170 is so
small (.0069), there are reasons to believe that
µ > 170.
• In addition note that observing a value of 178 when the
true mean is 170 is rare, but under the alternative
hypothesis, observing a value of 178 becomes more
probable.
• We can conclude that the smaller the p-value the more
statistical evidence exists to support the alternative
hypothesis.
Interpreting the p-value
24
• Describing the p-value
– If the p-value is less than 1%, there is overwhelming
evidence that supports the alternative hypothesis.
– If the p-value is between 1% and 5%, there is a strong
evidence that supports the alternative hypothesis.
– If the p-value is between 5% and 10% there is a weak
evidence that supports the alternative hypothesis.
– If the p-value exceeds 10%, there is no evidence that
supports the alternative hypothesis.
Interpreting the p-value
25
– The p-value can be used when making decisions
based on rejection region methods as follows:
• Define the hypotheses to test, and the required
significance level α.
• Perform the sampling procedure, calculate the test statistic
and the p-value associated with it.
• Compare the p-value to α. Reject the null hypothesis only
if p-value <α; otherwise, do not reject the null hypothesis.
α= 0.05
The p-value and the Rejection Region
Methods
26
• If we reject the null hypothesis, we conclude that
there is enough evidence to infer that the alternative
hypothesis is true.
• If we do not reject the null hypothesis, we conclude
that there is not enough statistical evidence to infer
that the alternative hypothesis is true.
• Remember the truth of the alternative hypothesis is
what we are investigating. The conclusion focuses
on the validity of the alternative hypothesis.
Conclusions of a Test of Hypothesis
27
A Two - Tail Test
• Example 11.2
– AT&T has been challenged by competitors who argued that
their rates resulted in lower bills.A statistics practitioner
determines that the mean and standard deviation of monthly
long-distance bills for all AT&T residential customers are
$17.09 and $3.87 respectively.
A random sample of 100 customers is selected and
customers’ bills recalculated using a leading competitor’s
rates. The sample mean of customers’ bills is $17.55.
Assuming the standard deviation is the same (3.87), can we
infer at the 5% significance level that there is a difference
between AT&T’s bills and the competitor’s bills (on the
average)?
28
29
Two tail tests and C.I.
• Note that both tests and C.I. are computed based on
the sampling distribution of the mean. To illustrate, the
95% C.I for the population mean is [16.79, 18.31] which
includes 17.09.
• Thus we cannot conclude that there is sufficient
evidence to infer that the population mean differs from
17.09
• Use of C.I has the advantage of simplicity but has two
important drawbacks
– Lack of correspondence to one-tail tests
– No p-value type information
30
Problem 11.54
Many Alpine ski centers base their projections of revenues
and profits on the assumption that the average Alpine
skier skis 4 times per year.
To investigate the validity of this assumption, a random
sample of 63 skiers is drawn and each is asked to report
the number of times they skied the previous year.
Assume that the population standard deviation is 2, and
the sample mean is 4.84. Can we infer at the 10% level
that the assumption is wrong?
31
• Suggested Problems: 11.6,11.42, 11.44
• Next Time: Finish Chapter 11 (Section 11.4),
Begin Chapter 12

More Related Content

What's hot

Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1
yhchung
 
11 hypothesis testing
11 hypothesis testing11 hypothesis testing
11 hypothesis testing
Juan Apolinario Reyes
 
Four steps to hypothesis testing
Four steps to hypothesis testingFour steps to hypothesis testing
Four steps to hypothesis testing
Hasnain Baber
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Stephan Jade Navarro
 
hypothesis testing
hypothesis testinghypothesis testing
hypothesis testing
ilona50
 
Hypothesis
HypothesisHypothesis
Hypothesis
Amit Sharma
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Madhuranath R
 
Null hypothesis AND ALTERNAT HYPOTHESIS
Null hypothesis AND ALTERNAT HYPOTHESISNull hypothesis AND ALTERNAT HYPOTHESIS
Null hypothesis AND ALTERNAT HYPOTHESIS
ADESH MEDICAL COLLEGE
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Nirajan Bam
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Shameer P Hamsa
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Jordan Rey Infante
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
praveen3030
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
Jags Jagdish
 
Basis of statistical inference
Basis of statistical inferenceBasis of statistical inference
Basis of statistical inference
zahidacademy
 
Hypothesis testing Part1
Hypothesis testing Part1Hypothesis testing Part1
Hypothesis testing Part1
Akhila Prabhakaran
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
rishi.indian
 
hypothesis, testing of hypothesis
hypothesis, testing of hypothesishypothesis, testing of hypothesis
hypothesis, testing of hypothesis
Kavitha Ravi
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Hossain Hemel
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
Kalyan Acharjya
 
Rm 3 Hypothesis
Rm   3   HypothesisRm   3   Hypothesis
Rm 3 Hypothesis
itsvineeth209
 

What's hot (20)

Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1Hypothesis Testing Lesson 1
Hypothesis Testing Lesson 1
 
11 hypothesis testing
11 hypothesis testing11 hypothesis testing
11 hypothesis testing
 
Four steps to hypothesis testing
Four steps to hypothesis testingFour steps to hypothesis testing
Four steps to hypothesis testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
hypothesis testing
hypothesis testinghypothesis testing
hypothesis testing
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Null hypothesis AND ALTERNAT HYPOTHESIS
Null hypothesis AND ALTERNAT HYPOTHESISNull hypothesis AND ALTERNAT HYPOTHESIS
Null hypothesis AND ALTERNAT HYPOTHESIS
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Basis of statistical inference
Basis of statistical inferenceBasis of statistical inference
Basis of statistical inference
 
Hypothesis testing Part1
Hypothesis testing Part1Hypothesis testing Part1
Hypothesis testing Part1
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
hypothesis, testing of hypothesis
hypothesis, testing of hypothesishypothesis, testing of hypothesis
hypothesis, testing of hypothesis
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Rm 3 Hypothesis
Rm   3   HypothesisRm   3   Hypothesis
Rm 3 Hypothesis
 

Similar to Test of hypothesis 1

hypothesis test
 hypothesis test hypothesis test
hypothesis test
Unsa Shakir
 
7 hypothesis testing
7 hypothesis testing7 hypothesis testing
7 hypothesis testing
AASHISHSHRIVASTAV1
 
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
HasanGilani3
 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.ppt
sadiakhan783184
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
HanaaBayomy
 
Statr session 15 and 16
Statr session 15 and 16Statr session 15 and 16
Statr session 15 and 16
Ruru Chowdhury
 
Lecture6 Applied Econometrics and Economic Modeling
Lecture6 Applied Econometrics and Economic ModelingLecture6 Applied Econometrics and Economic Modeling
Lecture6 Applied Econometrics and Economic Modeling
stone55
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for Pharmacy
Parag Shah
 
Test of hypotheses part i
Test of hypotheses part iTest of hypotheses part i
Test of hypotheses part i
Hamdy F. F. Mahmoud
 
B.tech admission in india
B.tech admission in indiaB.tech admission in india
B.tech admission in india
Edhole.com
 
Data analysis
Data analysisData analysis
Data analysis
Shameem Ali
 
Small sample test
Small sample testSmall sample test
Small sample test
Parag Shah
 
Chapter 20 and 21 combined testing hypotheses about proportions 2013
Chapter 20 and 21 combined testing hypotheses about proportions 2013Chapter 20 and 21 combined testing hypotheses about proportions 2013
Chapter 20 and 21 combined testing hypotheses about proportions 2013
calculistictt
 
Math3010 week 4
Math3010 week 4Math3010 week 4
Math3010 week 4
stanbridge
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
Tanay Tandon
 
Stats chapter 11
Stats chapter 11Stats chapter 11
Stats chapter 11
Richard Ferreria
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
Smruti Ranjan Parida
 
20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd
HimanshuSharma723273
 
Stats chapter 11
Stats chapter 11Stats chapter 11
Stats chapter 11
Richard Ferreria
 
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
svmmcradonco1
 

Similar to Test of hypothesis 1 (20)

hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
7 hypothesis testing
7 hypothesis testing7 hypothesis testing
7 hypothesis testing
 
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
 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.ppt
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
 
Statr session 15 and 16
Statr session 15 and 16Statr session 15 and 16
Statr session 15 and 16
 
Lecture6 Applied Econometrics and Economic Modeling
Lecture6 Applied Econometrics and Economic ModelingLecture6 Applied Econometrics and Economic Modeling
Lecture6 Applied Econometrics and Economic Modeling
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for Pharmacy
 
Test of hypotheses part i
Test of hypotheses part iTest of hypotheses part i
Test of hypotheses part i
 
B.tech admission in india
B.tech admission in indiaB.tech admission in india
B.tech admission in india
 
Data analysis
Data analysisData analysis
Data analysis
 
Small sample test
Small sample testSmall sample test
Small sample test
 
Chapter 20 and 21 combined testing hypotheses about proportions 2013
Chapter 20 and 21 combined testing hypotheses about proportions 2013Chapter 20 and 21 combined testing hypotheses about proportions 2013
Chapter 20 and 21 combined testing hypotheses about proportions 2013
 
Math3010 week 4
Math3010 week 4Math3010 week 4
Math3010 week 4
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
 
Stats chapter 11
Stats chapter 11Stats chapter 11
Stats chapter 11
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd
 
Stats chapter 11
Stats chapter 11Stats chapter 11
Stats chapter 11
 
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
 

Recently uploaded

Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 

Recently uploaded (20)

Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 

Test of hypothesis 1

  • 1. 1 Lecture 2: Thu, Jan 16 • Hypothesis Testing – Introduction (Ch 11) • Concepts of testing • Tests of Hypothesis (Sigma known) – Rejection Region method – P-value method – Two – tail test example • Relationship between Tests and C.I
  • 2. 2 Introduction • The purpose of hypothesis testing is to determine whether there is enough statistical evidence in favor of a certain belief about a parameter. • Examples – Does the statistical evidence in a random sample of potential customers support the hypothesis that more than 10% of the potential customers will purchase a new product? – Is a new drug effective in curing a certain disease? A sample of patients is randomly selected. Half of them are given the drug while the other half are given a placebo. The improvement in the patients’ condition is then measured and compared.
  • 3. 3 Hypothesis Testing in the Courtroom • Null hypothesis: The defendant is innocent • Alternative (research) hypothesis: The defendant is guilty • The goal of the procedure is to determine whether there is enough evidence to conclude that the alternative hypothesis is true. The burden of proof is on the alternative hypothesis. • Two types of errors: – Type I error: Reject null hypothesis when null hypothesis is true (convict an innocent defendant) – Type II error: Do not reject null hypothesis when null is false (fail to convict a guilty defendant)
  • 4. 4 Concepts of Hypothesis Testing • The critical concepts of hypothesis testing. – Example 11.1 • The manager of a department store is thinking about establishing a new billing system for the store’s credit customers • The new system will be cost effective only if the mean monthly account ( )is more than $170. – There are two hypotheses about a population mean: • H0: The null hypothesis µ = 170 • H1: The alternative hypothesis µ > 170 (What you want to prove) µ
  • 5. 5 µ = 170 • Assume the null hypothesis is true (µ= 170). – Sample from the customer population, and build a statistic related to the parameter hypothesized (the sample mean). – Pose the question: How probable is it to obtain a sample mean at least as extreme as the one observed from the sample, if H0 is correct?
  • 6. 6 – Suppose is much larger than 170, then the mean µ is likely to be greater than 170. Reject the null hypothesis. x µ = 170 • Assume the null hypothesis is true (µ= 170). • Common sense suggests the following. – When the sample mean is close to 170, it is not implausible that the mean µ is 170. Do not reject the null hypothesis.
  • 7. 7 Types of Errors • Two types of errors may occur when deciding whether to reject H0 based on the statistic value. – Type I error: Reject H0 when it is true. – Type II error: Do not reject H0 when it is false. • Example continued – Type I error: Reject H0 (µ = 170) in favor of H1 (µ > 170) when the real value of µ is 170. – Type II error: Believe that H0 is correct (µ = 170) when the real value of µ is greater than 170.
  • 8. 8 Testing the Population Mean When the Population Standard Deviation is Known • Example 11.1 – A new billing system for a department store will be cost- effective only if the mean monthly account is more than $170. – A sample of 400 accounts has a mean of $178. – If accounts are approximately normally distributed with σ = $65, can we conclude that the new system will be cost effective?
  • 9. 9 • Example 11.1 – Solution – The population of interest is the credit accounts at the store. – We want to know whether the mean account for all customers is greater than $170. H1 : µ > 170 – The null hypothesis must specify a single value of the parameter µ, H0 : µ = 170 Testing the Population Mean (σ is Known)
  • 10. 10 Approaches to Testing • There are two approaches to test whether the sample mean supports the alternative hypothesis (H1) – The rejection region method is mandatory for manual testing (but can be used when testing is supported by a statistical software) – The p-value method which is mostly used when a statistical software is available.
  • 11. 11 The rejection region is a range of values such that if the test statistic falls into that range, the null hypothesis is rejected in favor of the alternative hypothesis. The Rejection Region Method
  • 12. 12 Example 11.1 – solution continued • Recall: H0: µ = 170 H1: µ > 170 therefore, • It seems reasonable to reject the null hypothesis and believe that µ > 170 if the sample mean is sufficiently large. The Rejection Region Method – for a Right - Tail Test Reject H0 here Critical value of the sample mean
  • 13. 13 Example 11.1 – solution continued • Define a critical value for that is just large enough to reject the null hypothesis. xL x • Reject the null hypothesis if Lxx ≥ The Rejection Region Method for a Right - Tail Test
  • 14. 14 • Allow the probability of committing a Type I error be α (also called the significance level). • Find the value of the sample mean that is just large enough so that the actual probability of committing a Type I error does not exceed α. Watch… Determining the Critical Value for the Rejection Region
  • 15. 15 P(commit a Type I error) = P(reject H0 given that H0 is true) Lx α 170x =µ x = P( given that H0 is true)Lxx ≥ 40065 170x z L − =α Example 11.1 – solution continued … is allowed to be α. α=≥ α )ZZ(PSince we have: Determining the Critical Value – for a Right – Tail Test
  • 16. 16 Determining the Critical Value – for a Right – Tail Test .34.175 400 65 645.1170x .645.1z,05.0selectweIf . 400 65 z170x L 05. L =+= ==α += α α 40065 170x z L − =α = 0.05 170x =µ Lx Example 11.1 – solution continued
  • 17. 17 Determining the Critical value for a Right - Tail Test 34.175x ifhypothesisnullthejectRe ≥ Conclusion Since the sample mean (178) is greater than the critical value of 175.34, there is sufficient evidence to infer that the mean monthly balance is greater than $170 at the 5% significance level.
  • 18. 18 – Instead of using the statistic , we can use the standardized value z. – Then, the rejection region becomes x n x z σ µ− = α≥ zz One tail test The standardized test statistic
  • 19. 19 • Example 11.1 - continued – We redo this example using the standardized test statistic. Recall: H0: µ = 170 H1: µ > 170 – Test statistic: – Rejection region: z > z.05 = 1.645. 46.2 40065 170178 n x z = − = σ µ− = The standardized test statistic
  • 20. 20 • Example 11.1 - continued The standardized test statistic 645.1 Re ≥Z ifhypothesisnulltheject Conclusion Since Z = 2.46 > 1.645, reject the null hypothesis in favor of the alternative hypothesis.
  • 21. 21 – The p-value provides information about the amount of statistical evidence that supports the alternative hypothesis. – The p-value of a test is the probability of observing a test statistic at least as extreme as the one computed, given that the null hypothesis is true. – Let us demonstrate the concept on Example 11.1 P-value Method
  • 22. 22 0069.)4615.2z(P ) 40065 170178 z(P =≥= − ≥= 170x =µ 178x = The probability of observing a test statistic at least as extreme as 178, given that µ = 170 is… The p-value P-value Method )170when178x(P =µ≥
  • 23. 23 • Because the probability that the sample mean will assume a value of more than 178 when µ = 170 is so small (.0069), there are reasons to believe that µ > 170. • In addition note that observing a value of 178 when the true mean is 170 is rare, but under the alternative hypothesis, observing a value of 178 becomes more probable. • We can conclude that the smaller the p-value the more statistical evidence exists to support the alternative hypothesis. Interpreting the p-value
  • 24. 24 • Describing the p-value – If the p-value is less than 1%, there is overwhelming evidence that supports the alternative hypothesis. – If the p-value is between 1% and 5%, there is a strong evidence that supports the alternative hypothesis. – If the p-value is between 5% and 10% there is a weak evidence that supports the alternative hypothesis. – If the p-value exceeds 10%, there is no evidence that supports the alternative hypothesis. Interpreting the p-value
  • 25. 25 – The p-value can be used when making decisions based on rejection region methods as follows: • Define the hypotheses to test, and the required significance level α. • Perform the sampling procedure, calculate the test statistic and the p-value associated with it. • Compare the p-value to α. Reject the null hypothesis only if p-value <α; otherwise, do not reject the null hypothesis. α= 0.05 The p-value and the Rejection Region Methods
  • 26. 26 • If we reject the null hypothesis, we conclude that there is enough evidence to infer that the alternative hypothesis is true. • If we do not reject the null hypothesis, we conclude that there is not enough statistical evidence to infer that the alternative hypothesis is true. • Remember the truth of the alternative hypothesis is what we are investigating. The conclusion focuses on the validity of the alternative hypothesis. Conclusions of a Test of Hypothesis
  • 27. 27 A Two - Tail Test • Example 11.2 – AT&T has been challenged by competitors who argued that their rates resulted in lower bills.A statistics practitioner determines that the mean and standard deviation of monthly long-distance bills for all AT&T residential customers are $17.09 and $3.87 respectively. A random sample of 100 customers is selected and customers’ bills recalculated using a leading competitor’s rates. The sample mean of customers’ bills is $17.55. Assuming the standard deviation is the same (3.87), can we infer at the 5% significance level that there is a difference between AT&T’s bills and the competitor’s bills (on the average)?
  • 28. 28
  • 29. 29 Two tail tests and C.I. • Note that both tests and C.I. are computed based on the sampling distribution of the mean. To illustrate, the 95% C.I for the population mean is [16.79, 18.31] which includes 17.09. • Thus we cannot conclude that there is sufficient evidence to infer that the population mean differs from 17.09 • Use of C.I has the advantage of simplicity but has two important drawbacks – Lack of correspondence to one-tail tests – No p-value type information
  • 30. 30 Problem 11.54 Many Alpine ski centers base their projections of revenues and profits on the assumption that the average Alpine skier skis 4 times per year. To investigate the validity of this assumption, a random sample of 63 skiers is drawn and each is asked to report the number of times they skied the previous year. Assume that the population standard deviation is 2, and the sample mean is 4.84. Can we infer at the 10% level that the assumption is wrong?
  • 31. 31 • Suggested Problems: 11.6,11.42, 11.44 • Next Time: Finish Chapter 11 (Section 11.4), Begin Chapter 12