SlideShare a Scribd company logo
1 of 65
HYPOTHESIS TESTING
Chapter 8
Of the Sheldon M Ross Text Book
INTRODUCTION
Observe: a random sample from a population distribution, specified except for a
vector of unknown parameters
Not wishing to explicitly estimate the unknown parameters
Concerned with using the sample to test some particular hypothesis concerning them
Illustration:
Suppose that a construction firm has just purchased a large supply of cables
Guaranteed to have an average breaking strength of at least 7,000 psi
To verify this claim, the firm has decided to take a random sample of 10 of these
cables to determine their breaking strengths.
Use the result of this experiment to ascertain whether or not they accept the cable
manufacturer’s hypothesis
INTRODUCTION
Statistical hypothesis : statement about a set of parameters of a population
distribution.
Hypothesis because it is not known whether or not it is true.
A problem is to develop a procedure for determining whether or not the values
of a random sample are consistent with the hypothesis.
The random sample is consistent with the hypothesis under consideration,
we say that the hypothesis has been “accepted”;
other wise we say that it has been “rejected.”
Caution Note:
In accepting a given hypothesis we are not actually claiming that it is true
We are saying that the resulting data appear to be consistent with it
SIGNIFICANCE LEVELS
A population having distribution Fθ , where θ is unknown
Suppose we want to test a specific hypothesis about θ
We shall denote this hypothesis by H0
Call it the null hypothesis
E.g. : If Fθ is a normal distribution function with mean θ and variance equal to 1, then
two possible null hypotheses about θ are
(a) H0 : θ = 1
(b) H0 : θ ≤ 1
simple hypothesis
composite hypothesis
SIGNIFICANCE LEVELS
A test for H0 can be specified by defining a region C in n-dimensional space
The hypothesis is to be rejected if the random sample X1 , . . . , Xn turns out to lie in C
and accepted otherwise.
The region C is called the critical region.
SIGNIFICANCE LEVELS
When developing a procedure for testing a given null hypothesis two different types of errors
occur:
Type I error: if the test incorrectly calls for rejecting H0 when it is indeed correct
Type II error: if the test calls for accepting H0 when it is false
The objective of a statistical test of H0 is to determine if its validity is consistent with the
resultant data.
The classical way of accomplishing this is to specify a value α
The property of the test should be: whenever H0 is true its probability of being rejected is
never greater than α
The value α, called the level of significance of the test, is usually set in advance
Commonly chosen values being α = 0.1, 0.05, 0.005
SIGNIFICANCE LEVELS
For a given set of parameter values w, suppose we are interested in testing
H0 : θ ∈ w
A common approach to developing a test of H0, say at level of significance α, is to start
by determining a point estimator of θ — say d(X).
The hypothesis is then rejected if d(X) is “far away” from the region w.
To determine how “far away” it need be to justify rejection of H0, we need to
determine the probability distribution of d(X) when H0 is true
This will usually enable us to determine the appropriate critical region so as to
make the test have the required significance level α.
TESTS CONCERNING THE MEAN OF A
NORMAL POPULATION
Case of Known Variance:
The random sample X1 , . . . , Xn of size n from a normal distribution having an
unknown mean μ and a known variance σ2
Suppose we are interested in testing the null hypothesis, H0 : μ = μ0
The sample mean is a natural point estimator of μ
To accept H0 only if X is not too far from μ0
The critical region of the test:
The test has significance level α:
[ the type I error = α ]
Case of Known Variance:
The Sample Mean will be normally distributed with mean μ0 and variance σ2/n and so
Z, defined by
Case of Known Variance:
Example:
It is known that if a signal of value μ is sent from
location A [green], then the value received at location
B [red] is normally distributed with mean μ and
standard deviation 2.
That is, the random noise added to the signal is an
N(0, 4) random variable.
There is reason for the people at location B to
suspect that the signal value μ = 8 will be sent today.
Test this hypothesis if the same signal value is
independently sent five times and the
average value received at location B is X = 9.5.
random noise N(0, 4)
Example:
5% Level of significance: zα/2= 1.96
10 % Level of significance: zα/2=1.645
Case of Known Variance:
We can determine whether or not to accept the null hypothesis
First: by computing the value of the test statistic
Second: the probability that a unit normal would (in absolute value) exceed that
quantity
This probability — called the p-value of the test — gives the critical significance level
H0 will be accepted if the significance level α is less than the p-value and rejected if it
is greater than or equal.
Case of Known Variance:
In practice, the significance level is often not set in advance
The data are looked at to determine the resultant p-value.
The critical significance level is clearly much larger than any we would
want to use, and so the null hypothesis can be readily accepted.
At other times the p-value is so small that it is clear that the hypothesis
should be rejected.
EXAMPLE
In previous Example, suppose that the average of the 5 values received is 8.5
p-value
Operating Characteristic (or OC) Curve:
The probability of a type II error : the probability of accepting the null hypothesis
when the true mean μ is unequal to μ0
The function β(μ) is called the operating characteristic (or OC) curve and represents
the probability that the null hypothesis will be accepted when the true mean is μ
The OC Curve:
The OC Curve:
The OC Curve:
β(μ) = the probability that H0 will be accepted when the true mean is μ
The operating characteristic curve is useful in determining how large the random
sample need be to meet certain specifications concerning type II errors.
For instance, suppose that we desire to determine the sample size n necessary to
ensure that
the probability of accepting H0 : μ = μ0 when the true mean is actually μ1 is
approximately β
Find n such that β(μ1) ≈ β.
The OC Curve:
Cannot be analytically solved for n
A solution can be obtained by using the standard normal distribution table.
An approximation for n can be derived from Equation as follows.
To start, suppose that μ1 > μ0. Then, because this implies that
In all cases, a reasonable approximation to the sample
size necessary to ensure that the type II error at the
value μ = μ1 is approximately equal to β
EXAMPLE:
For the previous problem, how many signals need be sent so that the 0.05 level test
of H0 : μ = 8 has at least a 75% probability of rejection when μ = 9.2?
Therefore, if the message is sent 20 times, then
there is a 76.5 percent chance that the
null hypothesis μ = 8 will be rejected when the true
mean is 9.2.
Case of Unknown Variance: The t-Test
 Up to now we have supposed that the only unknown parameter of the normal
population distribution is its mean
 The more common situation is one where the mean μ and variance σ2 are both
unknown
 Consider a test of the hypothesis- the mean μ is equal to some specified value μ0
 Note that: the null hypothesis is not a simple hypothesis since it does not specify
the value of variance σ2
Case of Unknown Variance: The t-Test
t-distribution with n − 1 degrees of freedom
Case of Unknown Variance: The t-Test
Case of Unknown Variance: The t-Test
Case of Unknown Variance: The t-Test
EXAMPLE:
A public health official claims that the mean home water use is 350 gallons a day.
To verify this claim, a study of 20 randomly selected homes was instigated with the
result that the average daily water uses of these 20 homes were as follows:
340 344 362 375 356 386 354 364 332 402
340 355 362 322 372 324 318 360 338 370
Do the data contradict the official’s claim?
Case of Unknown Variance: The t-Test
To determine if the data contradict the official’s claim, we need to test
The sample mean and sample standard deviation of the preceding data set are
Indicating that
the null hypothesis would
be accepted at any
reasonable significance
level
the data are not
inconsistent with the claim
of the health official
TESTING THE EQUALITY OF MEANS OF TWO
NORMAL POPULATIONS
A common situation faced by a practicing engineer is one in which she must decide
whether two different approaches lead to the same solution.
Often such a situation can be modeled as a test of the hypothesis that two normal
populations have the same mean value.
Case of Known Variances
Case of Known Variances
Case of Known Variances
Case of Known Variances
Case of Unknown Variances
Case of Unknown Variances
the pooled estimator of the common variance
Case of Unknown Variances
EXAMPLE
Twenty-two volunteers at a cold research institute caught a cold after having been
exposed to various cold viruses.
A random selection of 10 of these volunteers was given tablets containing 1 gram of
vitamin C. These tablets were taken four times a day.
The control group consisting of the other 12 volunteers was given placebo tablets
that looked and tasted exactly the same as the vitamin C tablets. This was continued
for each volunteer until a doctor, who did not know if the volunteer was receiving the
vitamin C or the placebo tablets, decided that the volunteer was no longer suffering
from the cold. The length of time the cold lasted was then recorded. At the end of
this experiment, the following data resulted.
EXAMPLE
Do the data listed
prove that taking 4
grams daily of
vitamin C reduces
the mean length of
time a cold lasts?
At what level of
significance?
EXAMPLE
EXAMPLE
EXAMPLE
The null hypothesis is
rejected at the 5 percent
level of significance.
That is, at the 5 percent level of significance the
evidence is significant in establishing that vitamin C
reduces the mean time that a cold persists.
Case of Unknown and Unequal
Variances
when n and m are both large
The Paired t-Test
Suppose we are interested in determining whether the installation of a certain
antipollution device will affect a car’s mileage.
To test this, a collection of n cars that do not have this device are gathered.
Each car’s mileage per gallon is then determined both before and after the device is
installed.
How can we test the hypothesis that the antipollution control has no effect on gas
consumption?
The Paired t-Test
The Paired t-Test
The Paired t-Test
EXAMPLE
An industrial safety program was
recently instituted in the computer chip
industry. Determine, at the 5 percent
level of significance, whether the safety
program has been proven to be
effective.
The average weekly loss (averaged over
1 month) in labor-hours due to
accidents in 10 similar plants both
before and after the program are as
follows:
EXAMPLE
Note that the paired-sample t-test can be used
even though the samples are not independent and
the population variances are unequal.
HYPOTHESIS TESTS CONCERNING THE
VARIANCE OF A NORMAL POPULATION
CONCERNING THE VARIANCE OF A
NORMAL POPULATION
Testing for the Equality of Variances of Two
Normal Populations
HYPOTHESIS TESTS IN
BERNOULLI POPULATION
The binomial distribution is frequently encountered in engineering problems.
Example:
Consider a production process that manufactures items that can be classified in one
of two ways — either as acceptable or as defective.
Each item produced will, independently, be defective with probability p
The number of defects in a sample of n items ~ a binomial distribution with
parameters (n, p)
HYPOTHESIS TESTS IN
BERNOULLI POPULATION
HYPOTHESIS TESTS IN
BERNOULLI POPULATION
HYPOTHESIS TESTS IN
BERNOULLI POPULATION
EXAMPLE
A computer chip manufacturer claims that no more than 2 percent of the
chips it sends out are defective.
An electronics company, impressed with this claim, has purchased a large quantity of
such chips.
To determine if the manufacturer’s claim can be taken literally, the company has
decided to test a sample of 300 of these chips.
If 10 of these 300 chips are found to be defective,
should the manufacturer’s claim be rejected?
EXAMPLE
SOLUTION
Let us test the claim at the 5 percent level of significance.
To see if rejection is called for, we need to compute the probability that the sample of
size 300 would have resulted in 10 or more defectives when p is equal to .02.
(That is, we compute the p-value.)
If this probability is less than or equal to .05, then the manufacturer’s claim should be
rejected.
Now
EXAMPLE
HYPOTHESIS TESTS IN
BERNOULLI POPULATION
Thank you

More Related Content

What's hot

hypothesis testing
 hypothesis testing hypothesis testing
hypothesis testingzoheb khan
 
Basis of statistical inference
Basis of statistical inferenceBasis of statistical inference
Basis of statistical inferencezahidacademy
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testingArnab Sadhu
 
Confidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overviewConfidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overviewRizwan S A
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesisvikramlawand
 
hypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigmahypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigmavdheerajk
 
Four steps to hypothesis testing
Four steps to hypothesis testingFour steps to hypothesis testing
Four steps to hypothesis testingHasnain Baber
 
Inferential statistics powerpoint
Inferential statistics powerpointInferential statistics powerpoint
Inferential statistics powerpointkellula
 
Statistical inference
Statistical inferenceStatistical inference
Statistical inferenceJags Jagdish
 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testingAmitaChaudhary19
 
One-Sample Hypothesis Tests
One-Sample Hypothesis TestsOne-Sample Hypothesis Tests
One-Sample Hypothesis TestsSr Edith Bogue
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statisticsRabea Jamal
 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervalsTanay Tandon
 

What's hot (20)

hypothesis testing
 hypothesis testing hypothesis testing
hypothesis testing
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
Chi square
Chi squareChi square
Chi square
 
Basis of statistical inference
Basis of statistical inferenceBasis of statistical inference
Basis of statistical inference
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Confidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overviewConfidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overview
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesis
 
hypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigmahypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigma
 
Four steps to hypothesis testing
Four steps to hypothesis testingFour steps to hypothesis testing
Four steps to hypothesis testing
 
Inferential statistics powerpoint
Inferential statistics powerpointInferential statistics powerpoint
Inferential statistics powerpoint
 
Statistical inference
Statistical inferenceStatistical inference
Statistical inference
 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
One-Sample Hypothesis Tests
One-Sample Hypothesis TestsOne-Sample Hypothesis Tests
One-Sample Hypothesis Tests
 
Contingency Tables
Contingency TablesContingency Tables
Contingency Tables
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statistics
 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervals
 
Hypothesis testing Part1
Hypothesis testing Part1Hypothesis testing Part1
Hypothesis testing Part1
 

Viewers also liked

Lecture 7 Hypothesis Testing Two Sample
Lecture 7 Hypothesis Testing Two SampleLecture 7 Hypothesis Testing Two Sample
Lecture 7 Hypothesis Testing Two SampleAhmadullah
 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt finalpiyushdhaker
 
Hypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testHypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testShakehand with Life
 
Module 9 Lecture Notes
Module 9 Lecture NotesModule 9 Lecture Notes
Module 9 Lecture NotesLumen Learning
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testingSumit Sharma
 
Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06DrZahid Khan
 
Chapter 10
Chapter 10Chapter 10
Chapter 10bmcfad01
 
Session 9 intro_of_topics_in_hypothesis_testing
Session 9 intro_of_topics_in_hypothesis_testingSession 9 intro_of_topics_in_hypothesis_testing
Session 9 intro_of_topics_in_hypothesis_testingGlory Codilla
 
Global Issues
Global Issues Global Issues
Global Issues tkvalesk
 
Chapter 8 – Hypothesis Testing
Chapter 8 – Hypothesis TestingChapter 8 – Hypothesis Testing
Chapter 8 – Hypothesis TestingRose Jenkins
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis TestingJeremy Lane
 

Viewers also liked (20)

Lecture 7 Hypothesis Testing Two Sample
Lecture 7 Hypothesis Testing Two SampleLecture 7 Hypothesis Testing Two Sample
Lecture 7 Hypothesis Testing Two Sample
 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt final
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Hypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testHypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-test
 
Hypothese concerning proportion by kapil jain MNIT
Hypothese concerning proportion by kapil jain MNITHypothese concerning proportion by kapil jain MNIT
Hypothese concerning proportion by kapil jain MNIT
 
Module 9 Lecture Notes
Module 9 Lecture NotesModule 9 Lecture Notes
Module 9 Lecture Notes
 
Mycology fungi ecological importance
Mycology fungi ecological importanceMycology fungi ecological importance
Mycology fungi ecological importance
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Unit 3
Unit 3Unit 3
Unit 3
 
Problems and solutions_4
Problems and solutions_4Problems and solutions_4
Problems and solutions_4
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Session 9 intro_of_topics_in_hypothesis_testing
Session 9 intro_of_topics_in_hypothesis_testingSession 9 intro_of_topics_in_hypothesis_testing
Session 9 intro_of_topics_in_hypothesis_testing
 
Global Issues
Global Issues Global Issues
Global Issues
 
Chapter 8 – Hypothesis Testing
Chapter 8 – Hypothesis TestingChapter 8 – Hypothesis Testing
Chapter 8 – Hypothesis Testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Population ecology
Population ecologyPopulation ecology
Population ecology
 

Similar to Hypothesis testing

Similar to Hypothesis testing (20)

Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Hypothesis Testing Assignment Help
Hypothesis Testing Assignment HelpHypothesis Testing Assignment Help
Hypothesis Testing Assignment Help
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
 
7 hypothesis testing
7 hypothesis testing7 hypothesis testing
7 hypothesis testing
 
More Statistics
More StatisticsMore Statistics
More Statistics
 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.ppt
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance  Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance
 
TEST OF SIGNIFICANCE.pptx
TEST OF SIGNIFICANCE.pptxTEST OF SIGNIFICANCE.pptx
TEST OF SIGNIFICANCE.pptx
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
hypothesisTestPPT.pptx
hypothesisTestPPT.pptxhypothesisTestPPT.pptx
hypothesisTestPPT.pptx
 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
 
Test of hypotheses part i
Test of hypotheses part iTest of hypotheses part i
Test of hypotheses part i
 
Day 3 SPSS
Day 3 SPSSDay 3 SPSS
Day 3 SPSS
 
Testing hypothesis
Testing hypothesisTesting hypothesis
Testing hypothesis
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
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
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 

More from RAVI PRASAD K.J.

Regression-Sheldon Ross from Chapter 9-year2024
Regression-Sheldon Ross from Chapter 9-year2024Regression-Sheldon Ross from Chapter 9-year2024
Regression-Sheldon Ross from Chapter 9-year2024RAVI PRASAD K.J.
 
Application Of Definite Integral
Application Of Definite IntegralApplication Of Definite Integral
Application Of Definite IntegralRAVI PRASAD K.J.
 
Optimisation-two and three variables
Optimisation-two and three variablesOptimisation-two and three variables
Optimisation-two and three variablesRAVI PRASAD K.J.
 
Optimisation- Nonlinear Problems
Optimisation- Nonlinear ProblemsOptimisation- Nonlinear Problems
Optimisation- Nonlinear ProblemsRAVI PRASAD K.J.
 
Applications of Definite Intergral
Applications of Definite IntergralApplications of Definite Intergral
Applications of Definite IntergralRAVI PRASAD K.J.
 
Differentiation and Linearization
Differentiation and LinearizationDifferentiation and Linearization
Differentiation and LinearizationRAVI PRASAD K.J.
 
Economic interpretations of Linear Programming Problem
Economic interpretations of Linear Programming ProblemEconomic interpretations of Linear Programming Problem
Economic interpretations of Linear Programming ProblemRAVI PRASAD K.J.
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming ProblemRAVI PRASAD K.J.
 
Post-optimal analysis of LPP
Post-optimal analysis of LPPPost-optimal analysis of LPP
Post-optimal analysis of LPPRAVI PRASAD K.J.
 

More from RAVI PRASAD K.J. (16)

Regression-Sheldon Ross from Chapter 9-year2024
Regression-Sheldon Ross from Chapter 9-year2024Regression-Sheldon Ross from Chapter 9-year2024
Regression-Sheldon Ross from Chapter 9-year2024
 
Interval estimates
Interval estimatesInterval estimates
Interval estimates
 
Application Of Definite Integral
Application Of Definite IntegralApplication Of Definite Integral
Application Of Definite Integral
 
Optimisation-two and three variables
Optimisation-two and three variablesOptimisation-two and three variables
Optimisation-two and three variables
 
Optimisation- Nonlinear Problems
Optimisation- Nonlinear ProblemsOptimisation- Nonlinear Problems
Optimisation- Nonlinear Problems
 
Big-M method
Big-M methodBig-M method
Big-M method
 
Transport problem
Transport problemTransport problem
Transport problem
 
Arc length
Arc lengthArc length
Arc length
 
Applications of Definite Intergral
Applications of Definite IntergralApplications of Definite Intergral
Applications of Definite Intergral
 
Partial derivatives
Partial derivativesPartial derivatives
Partial derivatives
 
Differentiation and Linearization
Differentiation and LinearizationDifferentiation and Linearization
Differentiation and Linearization
 
Regression
RegressionRegression
Regression
 
Parameter estimation
Parameter estimationParameter estimation
Parameter estimation
 
Economic interpretations of Linear Programming Problem
Economic interpretations of Linear Programming ProblemEconomic interpretations of Linear Programming Problem
Economic interpretations of Linear Programming Problem
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming Problem
 
Post-optimal analysis of LPP
Post-optimal analysis of LPPPost-optimal analysis of LPP
Post-optimal analysis of LPP
 

Recently uploaded

INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 

Recently uploaded (20)

INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 

Hypothesis testing

  • 1. HYPOTHESIS TESTING Chapter 8 Of the Sheldon M Ross Text Book
  • 2. INTRODUCTION Observe: a random sample from a population distribution, specified except for a vector of unknown parameters Not wishing to explicitly estimate the unknown parameters Concerned with using the sample to test some particular hypothesis concerning them Illustration: Suppose that a construction firm has just purchased a large supply of cables Guaranteed to have an average breaking strength of at least 7,000 psi To verify this claim, the firm has decided to take a random sample of 10 of these cables to determine their breaking strengths. Use the result of this experiment to ascertain whether or not they accept the cable manufacturer’s hypothesis
  • 3. INTRODUCTION Statistical hypothesis : statement about a set of parameters of a population distribution. Hypothesis because it is not known whether or not it is true. A problem is to develop a procedure for determining whether or not the values of a random sample are consistent with the hypothesis. The random sample is consistent with the hypothesis under consideration, we say that the hypothesis has been “accepted”; other wise we say that it has been “rejected.” Caution Note: In accepting a given hypothesis we are not actually claiming that it is true We are saying that the resulting data appear to be consistent with it
  • 4. SIGNIFICANCE LEVELS A population having distribution Fθ , where θ is unknown Suppose we want to test a specific hypothesis about θ We shall denote this hypothesis by H0 Call it the null hypothesis E.g. : If Fθ is a normal distribution function with mean θ and variance equal to 1, then two possible null hypotheses about θ are (a) H0 : θ = 1 (b) H0 : θ ≤ 1 simple hypothesis composite hypothesis
  • 5. SIGNIFICANCE LEVELS A test for H0 can be specified by defining a region C in n-dimensional space The hypothesis is to be rejected if the random sample X1 , . . . , Xn turns out to lie in C and accepted otherwise. The region C is called the critical region.
  • 6. SIGNIFICANCE LEVELS When developing a procedure for testing a given null hypothesis two different types of errors occur: Type I error: if the test incorrectly calls for rejecting H0 when it is indeed correct Type II error: if the test calls for accepting H0 when it is false The objective of a statistical test of H0 is to determine if its validity is consistent with the resultant data. The classical way of accomplishing this is to specify a value α The property of the test should be: whenever H0 is true its probability of being rejected is never greater than α The value α, called the level of significance of the test, is usually set in advance Commonly chosen values being α = 0.1, 0.05, 0.005
  • 7. SIGNIFICANCE LEVELS For a given set of parameter values w, suppose we are interested in testing H0 : θ ∈ w A common approach to developing a test of H0, say at level of significance α, is to start by determining a point estimator of θ — say d(X). The hypothesis is then rejected if d(X) is “far away” from the region w. To determine how “far away” it need be to justify rejection of H0, we need to determine the probability distribution of d(X) when H0 is true This will usually enable us to determine the appropriate critical region so as to make the test have the required significance level α.
  • 8. TESTS CONCERNING THE MEAN OF A NORMAL POPULATION Case of Known Variance: The random sample X1 , . . . , Xn of size n from a normal distribution having an unknown mean μ and a known variance σ2 Suppose we are interested in testing the null hypothesis, H0 : μ = μ0 The sample mean is a natural point estimator of μ To accept H0 only if X is not too far from μ0 The critical region of the test: The test has significance level α: [ the type I error = α ]
  • 9. Case of Known Variance: The Sample Mean will be normally distributed with mean μ0 and variance σ2/n and so Z, defined by
  • 10. Case of Known Variance:
  • 11. Example: It is known that if a signal of value μ is sent from location A [green], then the value received at location B [red] is normally distributed with mean μ and standard deviation 2. That is, the random noise added to the signal is an N(0, 4) random variable. There is reason for the people at location B to suspect that the signal value μ = 8 will be sent today. Test this hypothesis if the same signal value is independently sent five times and the average value received at location B is X = 9.5. random noise N(0, 4)
  • 12. Example: 5% Level of significance: zα/2= 1.96 10 % Level of significance: zα/2=1.645
  • 13. Case of Known Variance: We can determine whether or not to accept the null hypothesis First: by computing the value of the test statistic Second: the probability that a unit normal would (in absolute value) exceed that quantity This probability — called the p-value of the test — gives the critical significance level H0 will be accepted if the significance level α is less than the p-value and rejected if it is greater than or equal.
  • 14. Case of Known Variance: In practice, the significance level is often not set in advance The data are looked at to determine the resultant p-value. The critical significance level is clearly much larger than any we would want to use, and so the null hypothesis can be readily accepted. At other times the p-value is so small that it is clear that the hypothesis should be rejected.
  • 15. EXAMPLE In previous Example, suppose that the average of the 5 values received is 8.5 p-value
  • 16. Operating Characteristic (or OC) Curve: The probability of a type II error : the probability of accepting the null hypothesis when the true mean μ is unequal to μ0 The function β(μ) is called the operating characteristic (or OC) curve and represents the probability that the null hypothesis will be accepted when the true mean is μ
  • 19. The OC Curve: β(μ) = the probability that H0 will be accepted when the true mean is μ The operating characteristic curve is useful in determining how large the random sample need be to meet certain specifications concerning type II errors. For instance, suppose that we desire to determine the sample size n necessary to ensure that the probability of accepting H0 : μ = μ0 when the true mean is actually μ1 is approximately β Find n such that β(μ1) ≈ β.
  • 20. The OC Curve: Cannot be analytically solved for n A solution can be obtained by using the standard normal distribution table. An approximation for n can be derived from Equation as follows. To start, suppose that μ1 > μ0. Then, because this implies that
  • 21. In all cases, a reasonable approximation to the sample size necessary to ensure that the type II error at the value μ = μ1 is approximately equal to β
  • 22. EXAMPLE: For the previous problem, how many signals need be sent so that the 0.05 level test of H0 : μ = 8 has at least a 75% probability of rejection when μ = 9.2? Therefore, if the message is sent 20 times, then there is a 76.5 percent chance that the null hypothesis μ = 8 will be rejected when the true mean is 9.2.
  • 23.
  • 24. Case of Unknown Variance: The t-Test  Up to now we have supposed that the only unknown parameter of the normal population distribution is its mean  The more common situation is one where the mean μ and variance σ2 are both unknown  Consider a test of the hypothesis- the mean μ is equal to some specified value μ0  Note that: the null hypothesis is not a simple hypothesis since it does not specify the value of variance σ2
  • 25. Case of Unknown Variance: The t-Test t-distribution with n − 1 degrees of freedom
  • 26. Case of Unknown Variance: The t-Test
  • 27. Case of Unknown Variance: The t-Test
  • 28. Case of Unknown Variance: The t-Test EXAMPLE: A public health official claims that the mean home water use is 350 gallons a day. To verify this claim, a study of 20 randomly selected homes was instigated with the result that the average daily water uses of these 20 homes were as follows: 340 344 362 375 356 386 354 364 332 402 340 355 362 322 372 324 318 360 338 370 Do the data contradict the official’s claim?
  • 29. Case of Unknown Variance: The t-Test To determine if the data contradict the official’s claim, we need to test The sample mean and sample standard deviation of the preceding data set are
  • 30. Indicating that the null hypothesis would be accepted at any reasonable significance level the data are not inconsistent with the claim of the health official
  • 31.
  • 32. TESTING THE EQUALITY OF MEANS OF TWO NORMAL POPULATIONS A common situation faced by a practicing engineer is one in which she must decide whether two different approaches lead to the same solution. Often such a situation can be modeled as a test of the hypothesis that two normal populations have the same mean value.
  • 33. Case of Known Variances
  • 34. Case of Known Variances
  • 35. Case of Known Variances
  • 36. Case of Known Variances
  • 37. Case of Unknown Variances
  • 38. Case of Unknown Variances the pooled estimator of the common variance
  • 39.
  • 40. Case of Unknown Variances
  • 41. EXAMPLE Twenty-two volunteers at a cold research institute caught a cold after having been exposed to various cold viruses. A random selection of 10 of these volunteers was given tablets containing 1 gram of vitamin C. These tablets were taken four times a day. The control group consisting of the other 12 volunteers was given placebo tablets that looked and tasted exactly the same as the vitamin C tablets. This was continued for each volunteer until a doctor, who did not know if the volunteer was receiving the vitamin C or the placebo tablets, decided that the volunteer was no longer suffering from the cold. The length of time the cold lasted was then recorded. At the end of this experiment, the following data resulted.
  • 42. EXAMPLE Do the data listed prove that taking 4 grams daily of vitamin C reduces the mean length of time a cold lasts? At what level of significance?
  • 45. EXAMPLE The null hypothesis is rejected at the 5 percent level of significance. That is, at the 5 percent level of significance the evidence is significant in establishing that vitamin C reduces the mean time that a cold persists.
  • 46. Case of Unknown and Unequal Variances when n and m are both large
  • 47.
  • 48. The Paired t-Test Suppose we are interested in determining whether the installation of a certain antipollution device will affect a car’s mileage. To test this, a collection of n cars that do not have this device are gathered. Each car’s mileage per gallon is then determined both before and after the device is installed. How can we test the hypothesis that the antipollution control has no effect on gas consumption?
  • 52. EXAMPLE An industrial safety program was recently instituted in the computer chip industry. Determine, at the 5 percent level of significance, whether the safety program has been proven to be effective. The average weekly loss (averaged over 1 month) in labor-hours due to accidents in 10 similar plants both before and after the program are as follows:
  • 53. EXAMPLE Note that the paired-sample t-test can be used even though the samples are not independent and the population variances are unequal.
  • 54. HYPOTHESIS TESTS CONCERNING THE VARIANCE OF A NORMAL POPULATION
  • 55. CONCERNING THE VARIANCE OF A NORMAL POPULATION
  • 56. Testing for the Equality of Variances of Two Normal Populations
  • 57. HYPOTHESIS TESTS IN BERNOULLI POPULATION The binomial distribution is frequently encountered in engineering problems. Example: Consider a production process that manufactures items that can be classified in one of two ways — either as acceptable or as defective. Each item produced will, independently, be defective with probability p The number of defects in a sample of n items ~ a binomial distribution with parameters (n, p)
  • 61. EXAMPLE A computer chip manufacturer claims that no more than 2 percent of the chips it sends out are defective. An electronics company, impressed with this claim, has purchased a large quantity of such chips. To determine if the manufacturer’s claim can be taken literally, the company has decided to test a sample of 300 of these chips. If 10 of these 300 chips are found to be defective, should the manufacturer’s claim be rejected?
  • 62. EXAMPLE SOLUTION Let us test the claim at the 5 percent level of significance. To see if rejection is called for, we need to compute the probability that the sample of size 300 would have resulted in 10 or more defectives when p is equal to .02. (That is, we compute the p-value.) If this probability is less than or equal to .05, then the manufacturer’s claim should be rejected. Now