SlideShare a Scribd company logo
Lecture 7
Virtual University of Pakistan 1
• Random Numbers
• Checking Normality
• Hypothesis testing
HYPOTHESIS TESTING
HYPOTHESIS
What do you mean by a Hypothesis?
A supposition or explanation that is provisionally accepted in order to
interpret certain events or phenomena, and to provide guidance for
further investigation.
OR
A hypothesis is a tentative statement about the relationship between two
or more variables.
HYPOTHESIS TESTING
Statistically, an assumption about certain characteristics of a
population.
The statistical procedure for testing a hypothesis requires some
understanding of the null hypothesis and alternative hypothesis.
TYPES OF HYPOTHESIS
Null Hypothesis
A null hypothesis is "the hypothesis that there is no relationship between
two or more variables. In a mathematical formulation of the null hypothesis
there will typically be an equal sign. This hypothesis is denoted by H0.
Alternate Hypothesis
The alternative hypothesis proposes a relationship between two or more
variables. In a mathematical formulation of the alternative hypothesis there
will typically be an inequality, or not equal to symbol. This hypothesis is
denoted by either Ha or by H1.
EXAMPLE OF HYPOTHESES
For example, you might have come up with a measurable
hypothesis that children have a higher IQ if they eat oily fish for
a period of time.
Null hypothesis: Children who eat oily fish for six months do
not show a higher IQ.
Alternative hypothesis: Children who eat oily fish for six
months will show a higher IQ
A common statistical method is to compare a population to the
mean.
H0 : The children will show no increase in mean intelligence.
i.e.
H0 :
H1 : The children will show an increase in mean intelligence.
i.e.
H1 :
100
 
100
 
TYPES OF ERRORS
What are errors in Hypothesis Testing?
The purpose of Hypothesis Testing is to reject or not reject the Null
Hypothesis based on statistical evidence
Hypothesis Testing is said to have resulted in an error when the
decision regarding treatment of the Null Hypothesis is wrong
There are basically two types of errors we can make:
TYPES OF ERRORS
Type-I Error (Ho right but rejected)
When Null Hypothesis is rejected despite the test on data
showing that the outcome was true
Type-II Error (Ho wrong but not rejected)
When Null Hypothesis is not rejected despite the test on data
showing that the outcome was false
A type I error, also known as an error of the first kind,
occurs when the null hypothesis (H0) is true, but is rejected.
A type I error may be compared with a so called false positive.
The rate of the type I error is called the size of the test and
denoted by the Greek letter α (alpha).
It usually equals the significance level of a test.
If type I error is fixed at 5 %, it means that there are about 5
chances in 100 that we will reject H0 when H0 is true.
Type I Error
Type II error, also known as an error of the second kind, occurs when the null
hypothesis is false, but erroneously fails to be rejected.
Type II error means accepting the hypothesis which should have been rejected.
A type II error may be compared with a so-called False Negative.
The rate of the type II error is denoted by the Greek letter β (beta) and related
to the power of a test (which equals 1-β ).
Type II Error
In the tabular form two error can be
presented as follows:
Null hypothesis (H0)
is true
Null hypothesis (H0)
is false
Reject null
hypothesis
Type I error
False decision
Correct
True decision
Fail to reject null
hypothesis
Correct
True decision
Type II error
False decision
Reducing Type I Errors
The chances of making a Type I error is reduced by increasing the
level of confidence.
Reducing Type II Errors
Test condition and acceptance criteria are in turn reduces Type II
errors. This increases the number of times we reject the Null
hypothesis – with a resulting increase in the number of Type I
errors.
Type II Error and Power
• “Power” of a test is the probability of rejecting null when alternative
is true.
• “Power” = 1 - P(Type II error)
• To minimize the P(Type II error), we equivalently want to maximize
power.
• But power depends on the value under the alternative hypothesis .
P-value
P-value - Measure of the strength of evidence the sample
data provides against the null hypothesis:
P(Evidence This strong or stronger against H0 | H0 is true)
)
(
: obs
z
Z
P
p
val
P 


INTERPRETING RESULTS
Interpreting the weight of evidence against the Null
Hypothesis for rejecting / not rejecting Ho
If the p-value for testing Ho is less than –
 < 0.10, we have some evidence that Ho is false
 < 0.05, we have strong evidence that Ho is false
 < 0.01, we have very strong evidence that Ho is false
 < 0.001, we have extremely strong evidence that Ho is false
Simple and Composite Hypothesis
A simple hypothesis is one in which all parameters of the distribution
are specified. For example, if the heights of college students are
normally distributed with , the hypothesis that its mean is, say,
, that is , we have stated a simple hypothesis, as the mean
and variance together specify a normal distribution completely.
Simple and Composite Hypothesis
A hypothesis which is not simple (i.e. in which not all of the parameters
are specified) is called a composite hypothesis. For instance, if we
hypothesize that (and ) or and , the
hypothesis becomes a composite hypothesis because we cannot know
the exact distribution of the population in either case. Obviously, the
parameters and have more than one value and no
specified values are being assigned.
: 62
H  
Critical Region (or Rejection Region)
The critical region CR, or rejection region RR, is a set of
values of the test statistic for which the null hypothesis is
rejected in a hypothesis test. That is, the sample space for
the test statistic is partitioned into two regions; one region
(the critical region) will lead us to reject the null hypothesis
H0, the other will not. So, if the observed value of the test
statistic is a member of the critical region, we conclude
"Reject H0"; if it is not a member of the critical region then
we conclude "Do not reject H0".
Critical
Region
Critical Region
Critical
Region
Critical
Regions
Critical Value
Critical Value
( z score )
Fail to reject H0
Reject H0
Any value that separates the critical region (where we reject the
null hypothesis) from the values of the test statistic that do not
lead to a rejection of the null hypothesis
Level of Significance, a
and the Rejection Region
H0:   3
H1:  < 3
0
0
0
H0:   3
H1:  > 3
H0:   3
H1:   3
a
a
a/2
Critical
Value(s)
Rejection Regions
Two-tailed Test
H0: =
H1: 
ais divided equally between
the two tails of the critical
region
Means less than or greater than
Values that differ significantly from H0
Right-tailed Test
H0: =
H1: > Points Right
Values that
differ significantly
from Ho
Left-tailed Test
H0: =
H1: <
Points Left
Values that
differ
significantly
from Ho

More Related Content

Similar to lecture no.7 computation.pptx

business research management
business research management business research management
business research management
ApneetSaini
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
RuchiJainRuchiJain
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Afra Fathima
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
Edhole.com
 
20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd
HimanshuSharma723273
 
Formulatinghypotheses
Formulatinghypotheses Formulatinghypotheses
Formulatinghypotheses
CMA Khursheed Ahmad Bhat
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
RajThakuri
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
Unsa Shakir
 
Hypothesis testing pdf bhavana.pdf
Hypothesis testing pdf bhavana.pdfHypothesis testing pdf bhavana.pdf
Hypothesis testing pdf bhavana.pdf
Simhadri Bhavana
 
Formulating Hypotheses
Formulating Hypotheses Formulating Hypotheses
Formulating Hypotheses
Shilpi Panchal
 
Testing of Hypothesis.pptx
Testing of Hypothesis.pptxTesting of Hypothesis.pptx
Testing of Hypothesis.pptx
hemamalini398951
 
testingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptxtestingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptx
wigatox256
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
Rai University
 
Rm 3 Hypothesis
Rm   3   HypothesisRm   3   Hypothesis
Rm 3 Hypothesis
itsvineeth209
 
Hypothesis Testing.pptx
Hypothesis Testing.pptxHypothesis Testing.pptx
Hypothesis Testing.pptx
Melba Shaya Sweety
 
Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06
DrZahid Khan
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
University of Jaffna
 
Hypothesis
HypothesisHypothesis
Hypothesis
Mmedsc Hahm
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
Jags Jagdish
 
lorehtrtjyaeyreyayydrryareyreyrgreyardu.pptx
lorehtrtjyaeyreyayydrryareyreyrgreyardu.pptxlorehtrtjyaeyreyayydrryareyreyrgreyardu.pptx
lorehtrtjyaeyreyayydrryareyreyrgreyardu.pptx
garefed500
 

Similar to lecture no.7 computation.pptx (20)

business research management
business research management business research management
business research management
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd
 
Formulatinghypotheses
Formulatinghypotheses Formulatinghypotheses
Formulatinghypotheses
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
Hypothesis testing pdf bhavana.pdf
Hypothesis testing pdf bhavana.pdfHypothesis testing pdf bhavana.pdf
Hypothesis testing pdf bhavana.pdf
 
Formulating Hypotheses
Formulating Hypotheses Formulating Hypotheses
Formulating Hypotheses
 
Testing of Hypothesis.pptx
Testing of Hypothesis.pptxTesting of Hypothesis.pptx
Testing of Hypothesis.pptx
 
testingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptxtestingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptx
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
 
Rm 3 Hypothesis
Rm   3   HypothesisRm   3   Hypothesis
Rm 3 Hypothesis
 
Hypothesis Testing.pptx
Hypothesis Testing.pptxHypothesis Testing.pptx
Hypothesis Testing.pptx
 
Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
lorehtrtjyaeyreyayydrryareyreyrgreyardu.pptx
lorehtrtjyaeyreyayydrryareyreyrgreyardu.pptxlorehtrtjyaeyreyayydrryareyreyrgreyardu.pptx
lorehtrtjyaeyreyayydrryareyreyrgreyardu.pptx
 

More from ssuser378d7c

Lecture 17. Smoking.ppt in the word of env
Lecture 17. Smoking.ppt in the word of  envLecture 17. Smoking.ppt in the word of  env
Lecture 17. Smoking.ppt in the word of env
ssuser378d7c
 
Lecture 15. Marine Pollution.ppt for the environmental education
Lecture 15. Marine Pollution.ppt for the environmental educationLecture 15. Marine Pollution.ppt for the environmental education
Lecture 15. Marine Pollution.ppt for the environmental education
ssuser378d7c
 
Forest in Pakistan in Details and the word
Forest in Pakistan in Details and the wordForest in Pakistan in Details and the word
Forest in Pakistan in Details and the word
ssuser378d7c
 
lecture 5 SPC Charta.pptx
lecture 5 SPC Charta.pptxlecture 5 SPC Charta.pptx
lecture 5 SPC Charta.pptx
ssuser378d7c
 
lecture 4 Graphs.pptx
lecture 4 Graphs.pptxlecture 4 Graphs.pptx
lecture 4 Graphs.pptx
ssuser378d7c
 
Lecture 3 Dispersion(1).pptx
Lecture 3 Dispersion(1).pptxLecture 3 Dispersion(1).pptx
Lecture 3 Dispersion(1).pptx
ssuser378d7c
 
lecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptxlecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptx
ssuser378d7c
 
input and output devices.ppt
input and output devices.pptinput and output devices.ppt
input and output devices.ppt
ssuser378d7c
 
8607 day 1.pptx
8607 day 1.pptx8607 day 1.pptx
8607 day 1.pptx
ssuser378d7c
 

More from ssuser378d7c (9)

Lecture 17. Smoking.ppt in the word of env
Lecture 17. Smoking.ppt in the word of  envLecture 17. Smoking.ppt in the word of  env
Lecture 17. Smoking.ppt in the word of env
 
Lecture 15. Marine Pollution.ppt for the environmental education
Lecture 15. Marine Pollution.ppt for the environmental educationLecture 15. Marine Pollution.ppt for the environmental education
Lecture 15. Marine Pollution.ppt for the environmental education
 
Forest in Pakistan in Details and the word
Forest in Pakistan in Details and the wordForest in Pakistan in Details and the word
Forest in Pakistan in Details and the word
 
lecture 5 SPC Charta.pptx
lecture 5 SPC Charta.pptxlecture 5 SPC Charta.pptx
lecture 5 SPC Charta.pptx
 
lecture 4 Graphs.pptx
lecture 4 Graphs.pptxlecture 4 Graphs.pptx
lecture 4 Graphs.pptx
 
Lecture 3 Dispersion(1).pptx
Lecture 3 Dispersion(1).pptxLecture 3 Dispersion(1).pptx
Lecture 3 Dispersion(1).pptx
 
lecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptxlecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptx
 
input and output devices.ppt
input and output devices.pptinput and output devices.ppt
input and output devices.ppt
 
8607 day 1.pptx
8607 day 1.pptx8607 day 1.pptx
8607 day 1.pptx
 

Recently uploaded

原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
gpffo76j
 
Heuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdfHeuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdf
Jaime Brown
 
一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
peuce
 
ARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdfARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdf
Knight Moves
 
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
asuzyq
 
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptxUNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
GOWSIKRAJA PALANISAMY
 
Connect Conference 2022: Passive House - Economic and Environmental Solution...
Connect Conference 2022: Passive House -  Economic and Environmental Solution...Connect Conference 2022: Passive House -  Economic and Environmental Solution...
Connect Conference 2022: Passive House - Economic and Environmental Solution...
TE Studio
 
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdfAHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
talaatahm
 
Practical eLearning Makeovers for Everyone
Practical eLearning Makeovers for EveryonePractical eLearning Makeovers for Everyone
Practical eLearning Makeovers for Everyone
Bianca Woods
 
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHINHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
NishantRathi18
 
Game Concept Presentation for Ukrainian Mythology Based Game With Designs
Game Concept Presentation for Ukrainian Mythology Based Game With DesignsGame Concept Presentation for Ukrainian Mythology Based Game With Designs
Game Concept Presentation for Ukrainian Mythology Based Game With Designs
184804
 
Divertidamente SLIDE.pptxufururururuhrurid8dj
Divertidamente SLIDE.pptxufururururuhrurid8djDivertidamente SLIDE.pptxufururururuhrurid8dj
Divertidamente SLIDE.pptxufururururuhrurid8dj
lunaemel03
 
Branding de la empresa de Bolt- 2024.pdf
Branding de la empresa de Bolt- 2024.pdfBranding de la empresa de Bolt- 2024.pdf
Branding de la empresa de Bolt- 2024.pdf
PabloMartelLpez
 
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
qo1as76n
 
Graphic Design Tools and Software .pptx
Graphic Design Tools and Software   .pptxGraphic Design Tools and Software   .pptx
Graphic Design Tools and Software .pptx
Virtual Real Design
 
Timeless Principles of Good Design
Timeless Principles of Good DesignTimeless Principles of Good Design
Timeless Principles of Good Design
Carolina de Bartolo
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
M. A. Architect
 
Top Interior Designers in Bangalore.pdf1
Top Interior Designers in Bangalore.pdf1Top Interior Designers in Bangalore.pdf1
Top Interior Designers in Bangalore.pdf1
Decomart Studio
 
定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样
qo1as76n
 
Impact of Fonts: in Web and Apps Design
Impact of Fonts:  in Web and Apps DesignImpact of Fonts:  in Web and Apps Design
Impact of Fonts: in Web and Apps Design
contactproperweb2014
 

Recently uploaded (20)

原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
 
Heuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdfHeuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdf
 
一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
 
ARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdfARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdf
 
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
 
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptxUNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
 
Connect Conference 2022: Passive House - Economic and Environmental Solution...
Connect Conference 2022: Passive House -  Economic and Environmental Solution...Connect Conference 2022: Passive House -  Economic and Environmental Solution...
Connect Conference 2022: Passive House - Economic and Environmental Solution...
 
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdfAHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
 
Practical eLearning Makeovers for Everyone
Practical eLearning Makeovers for EveryonePractical eLearning Makeovers for Everyone
Practical eLearning Makeovers for Everyone
 
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHINHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
 
Game Concept Presentation for Ukrainian Mythology Based Game With Designs
Game Concept Presentation for Ukrainian Mythology Based Game With DesignsGame Concept Presentation for Ukrainian Mythology Based Game With Designs
Game Concept Presentation for Ukrainian Mythology Based Game With Designs
 
Divertidamente SLIDE.pptxufururururuhrurid8dj
Divertidamente SLIDE.pptxufururururuhrurid8djDivertidamente SLIDE.pptxufururururuhrurid8dj
Divertidamente SLIDE.pptxufururururuhrurid8dj
 
Branding de la empresa de Bolt- 2024.pdf
Branding de la empresa de Bolt- 2024.pdfBranding de la empresa de Bolt- 2024.pdf
Branding de la empresa de Bolt- 2024.pdf
 
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
 
Graphic Design Tools and Software .pptx
Graphic Design Tools and Software   .pptxGraphic Design Tools and Software   .pptx
Graphic Design Tools and Software .pptx
 
Timeless Principles of Good Design
Timeless Principles of Good DesignTimeless Principles of Good Design
Timeless Principles of Good Design
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
 
Top Interior Designers in Bangalore.pdf1
Top Interior Designers in Bangalore.pdf1Top Interior Designers in Bangalore.pdf1
Top Interior Designers in Bangalore.pdf1
 
定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样
 
Impact of Fonts: in Web and Apps Design
Impact of Fonts:  in Web and Apps DesignImpact of Fonts:  in Web and Apps Design
Impact of Fonts: in Web and Apps Design
 

lecture no.7 computation.pptx

  • 2. • Random Numbers • Checking Normality • Hypothesis testing
  • 4. HYPOTHESIS What do you mean by a Hypothesis? A supposition or explanation that is provisionally accepted in order to interpret certain events or phenomena, and to provide guidance for further investigation. OR A hypothesis is a tentative statement about the relationship between two or more variables.
  • 5. HYPOTHESIS TESTING Statistically, an assumption about certain characteristics of a population. The statistical procedure for testing a hypothesis requires some understanding of the null hypothesis and alternative hypothesis.
  • 6. TYPES OF HYPOTHESIS Null Hypothesis A null hypothesis is "the hypothesis that there is no relationship between two or more variables. In a mathematical formulation of the null hypothesis there will typically be an equal sign. This hypothesis is denoted by H0. Alternate Hypothesis The alternative hypothesis proposes a relationship between two or more variables. In a mathematical formulation of the alternative hypothesis there will typically be an inequality, or not equal to symbol. This hypothesis is denoted by either Ha or by H1.
  • 7. EXAMPLE OF HYPOTHESES For example, you might have come up with a measurable hypothesis that children have a higher IQ if they eat oily fish for a period of time. Null hypothesis: Children who eat oily fish for six months do not show a higher IQ. Alternative hypothesis: Children who eat oily fish for six months will show a higher IQ
  • 8. A common statistical method is to compare a population to the mean. H0 : The children will show no increase in mean intelligence. i.e. H0 : H1 : The children will show an increase in mean intelligence. i.e. H1 : 100   100  
  • 9. TYPES OF ERRORS What are errors in Hypothesis Testing? The purpose of Hypothesis Testing is to reject or not reject the Null Hypothesis based on statistical evidence Hypothesis Testing is said to have resulted in an error when the decision regarding treatment of the Null Hypothesis is wrong There are basically two types of errors we can make:
  • 10. TYPES OF ERRORS Type-I Error (Ho right but rejected) When Null Hypothesis is rejected despite the test on data showing that the outcome was true Type-II Error (Ho wrong but not rejected) When Null Hypothesis is not rejected despite the test on data showing that the outcome was false
  • 11. A type I error, also known as an error of the first kind, occurs when the null hypothesis (H0) is true, but is rejected. A type I error may be compared with a so called false positive. The rate of the type I error is called the size of the test and denoted by the Greek letter α (alpha). It usually equals the significance level of a test. If type I error is fixed at 5 %, it means that there are about 5 chances in 100 that we will reject H0 when H0 is true. Type I Error
  • 12. Type II error, also known as an error of the second kind, occurs when the null hypothesis is false, but erroneously fails to be rejected. Type II error means accepting the hypothesis which should have been rejected. A type II error may be compared with a so-called False Negative. The rate of the type II error is denoted by the Greek letter β (beta) and related to the power of a test (which equals 1-β ). Type II Error
  • 13. In the tabular form two error can be presented as follows: Null hypothesis (H0) is true Null hypothesis (H0) is false Reject null hypothesis Type I error False decision Correct True decision Fail to reject null hypothesis Correct True decision Type II error False decision
  • 14. Reducing Type I Errors The chances of making a Type I error is reduced by increasing the level of confidence.
  • 15. Reducing Type II Errors Test condition and acceptance criteria are in turn reduces Type II errors. This increases the number of times we reject the Null hypothesis – with a resulting increase in the number of Type I errors.
  • 16. Type II Error and Power • “Power” of a test is the probability of rejecting null when alternative is true. • “Power” = 1 - P(Type II error) • To minimize the P(Type II error), we equivalently want to maximize power. • But power depends on the value under the alternative hypothesis .
  • 17. P-value P-value - Measure of the strength of evidence the sample data provides against the null hypothesis: P(Evidence This strong or stronger against H0 | H0 is true) ) ( : obs z Z P p val P   
  • 18. INTERPRETING RESULTS Interpreting the weight of evidence against the Null Hypothesis for rejecting / not rejecting Ho If the p-value for testing Ho is less than –  < 0.10, we have some evidence that Ho is false  < 0.05, we have strong evidence that Ho is false  < 0.01, we have very strong evidence that Ho is false  < 0.001, we have extremely strong evidence that Ho is false
  • 19. Simple and Composite Hypothesis A simple hypothesis is one in which all parameters of the distribution are specified. For example, if the heights of college students are normally distributed with , the hypothesis that its mean is, say, , that is , we have stated a simple hypothesis, as the mean and variance together specify a normal distribution completely.
  • 20. Simple and Composite Hypothesis A hypothesis which is not simple (i.e. in which not all of the parameters are specified) is called a composite hypothesis. For instance, if we hypothesize that (and ) or and , the hypothesis becomes a composite hypothesis because we cannot know the exact distribution of the population in either case. Obviously, the parameters and have more than one value and no specified values are being assigned. : 62 H  
  • 21. Critical Region (or Rejection Region) The critical region CR, or rejection region RR, is a set of values of the test statistic for which the null hypothesis is rejected in a hypothesis test. That is, the sample space for the test statistic is partitioned into two regions; one region (the critical region) will lead us to reject the null hypothesis H0, the other will not. So, if the observed value of the test statistic is a member of the critical region, we conclude "Reject H0"; if it is not a member of the critical region then we conclude "Do not reject H0".
  • 25. Critical Value Critical Value ( z score ) Fail to reject H0 Reject H0 Any value that separates the critical region (where we reject the null hypothesis) from the values of the test statistic that do not lead to a rejection of the null hypothesis
  • 26. Level of Significance, a and the Rejection Region H0:   3 H1:  < 3 0 0 0 H0:   3 H1:  > 3 H0:   3 H1:   3 a a a/2 Critical Value(s) Rejection Regions
  • 27. Two-tailed Test H0: = H1:  ais divided equally between the two tails of the critical region Means less than or greater than Values that differ significantly from H0
  • 28. Right-tailed Test H0: = H1: > Points Right Values that differ significantly from Ho
  • 29. Left-tailed Test H0: = H1: < Points Left Values that differ significantly from Ho