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

Contenu connexe

Tendances

STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testing
jundumaug1
 
Point and Interval Estimation
Point and Interval EstimationPoint and Interval Estimation
Point and Interval Estimation
Shubham Mehta
 

Tendances (20)

Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Z-Test with Examples
Z-Test with ExamplesZ-Test with Examples
Z-Test with Examples
 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testing
 
Sampling and sampling distributions
Sampling and sampling distributionsSampling and sampling distributions
Sampling and sampling distributions
 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.ppt
 
Unit 3
Unit 3Unit 3
Unit 3
 
Two Proportions
Two Proportions  Two Proportions
Two Proportions
 
F test
F testF test
F test
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Point and Interval Estimation
Point and Interval EstimationPoint and Interval Estimation
Point and Interval Estimation
 
Probability Distributions
Probability DistributionsProbability Distributions
Probability Distributions
 
Estimation and hypothesis
Estimation and hypothesisEstimation and hypothesis
Estimation and hypothesis
 
Testing a claim about a proportion
Testing a claim about a proportion  Testing a claim about a proportion
Testing a claim about a proportion
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
 
Probability Theory
Probability TheoryProbability Theory
Probability Theory
 
F-Distribution
F-DistributionF-Distribution
F-Distribution
 
Statistics: Probability
Statistics: ProbabilityStatistics: Probability
Statistics: Probability
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
 
T distribution | Statistics
T distribution | StatisticsT distribution | Statistics
T distribution | Statistics
 
Basic probability concept
Basic probability conceptBasic probability concept
Basic probability concept
 

Similaire à hypothesis test

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
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Nirajan Bam
 
Formulating hypotheses
Formulating hypothesesFormulating hypotheses
Formulating hypotheses
Aniket Verma
 
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
rjaisankar
 

Similaire à hypothesis test (20)

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
 
7 hypothesis testing
7 hypothesis testing7 hypothesis testing
7 hypothesis testing
 
Formulating Hypotheses
Formulating Hypotheses Formulating Hypotheses
Formulating Hypotheses
 
Formulatinghypotheses
Formulatinghypotheses Formulatinghypotheses
Formulatinghypotheses
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
 
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
 
20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Formulating hypotheses
Formulating hypothesesFormulating hypotheses
Formulating hypotheses
 
B.tech admission in india
B.tech admission in indiaB.tech admission in india
B.tech admission in india
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
More Statistics
More StatisticsMore Statistics
More Statistics
 
6 estimation hypothesis testing t test
6 estimation hypothesis testing t test6 estimation hypothesis testing t test
6 estimation hypothesis testing t 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
 
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
 
Hypothesis_Testing.ppt
Hypothesis_Testing.pptHypothesis_Testing.ppt
Hypothesis_Testing.ppt
 
Hypothesis
HypothesisHypothesis
Hypothesis
 

Plus de Unsa Shakir

Plus de Unsa Shakir (20)

Types of diode
Types of diodeTypes of diode
Types of diode
 
Transistor
TransistorTransistor
Transistor
 
Single diode circuits
Single diode circuitsSingle diode circuits
Single diode circuits
 
Silicon control rectifier
Silicon control rectifierSilicon control rectifier
Silicon control rectifier
 
Rectifiers
RectifiersRectifiers
Rectifiers
 
Operational amplifier
Operational amplifierOperational amplifier
Operational amplifier
 
Diode voltage multiplier
Diode voltage multiplierDiode voltage multiplier
Diode voltage multiplier
 
Types of transistors
Types of transistorsTypes of transistors
Types of transistors
 
Clipper and clamper circuits
Clipper and clamper circuitsClipper and clamper circuits
Clipper and clamper circuits
 
kinds of distribution
 kinds of distribution kinds of distribution
kinds of distribution
 
Probability of card
Probability of  cardProbability of  card
Probability of card
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
probability
probabilityprobability
probability
 
tree diagrams
 tree diagrams tree diagrams
tree diagrams
 
counting techniques
counting techniquescounting techniques
counting techniques
 
analytical representation of data
 analytical representation of data analytical representation of data
analytical representation of data
 
frequency distribution
 frequency distribution frequency distribution
frequency distribution
 
graphic representations in statistics
 graphic representations in statistics graphic representations in statistics
graphic representations in statistics
 
introduction to statistical theory
introduction to statistical theoryintroduction to statistical theory
introduction to statistical theory
 
FSM and ASM
FSM and ASMFSM and ASM
FSM and ASM
 

Dernier

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Dernier (20)

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 

hypothesis test

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