SlideShare a Scribd company logo
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
1
Heteroscedasticity
Definition
One of the assumption of the classical linear regression model that the error ( iε )
term having the same variance i.e. δ2
. But in most practical situation this
assumption did not fulfill, and we have the problem of heteroscedasticity.
Heteroscedasticity does not destroy the unbiased and consistency property of the
ordinary least square estimators, but these estimators have not the property of
minimum variance. Recall that OLS makes the assumption that V (εi ) =σ2 for al i.
That is, the variance of the error term is constant. (Homoscedasticity). If the error
terms do not have constant variance, they are said to be heteroscedasticity. The
term means “differing variance” and comes from the Greek “hetero” ('different')
and “scedasis” ('dispersion').]
When heteroscedasticity might occur/causes of heteroscedasticity
1. Errors may increase as the value of an independent variable increases. For
example, consider a model in which annual family income is the independent
variable and annual family expenditures on vacations is the dependent variable.
Families with low incomes will spend relatively little on vacations, and the
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
2
variations in expenditures across such families will be small. But for families
with large incomes, the amount of discretionary income will be higher. The mean
amount spent on vacations will be higher, and there will also be greater variability
among such families, resulting in heteroscedasticity. Note that, in this example, a
high family income is a necessary but not sufficient condition for large vacation
expenditures. Any time a high value for an independent variable is a necessary but
not sufficient condition for an observation to have a high value on a dependent
variable, heteroscedasticity is likely.
2. Other model misspecifications can produce heteroscedasticity. For example, it
may be that instead of using Y, you should be using the log of Y. Instead of using
X, maybe you should be using X2
, or both X and X2
. Important variables may be
omitted from the model. If the model were correctly specified, you might find that
the patterns of heteroscedasticity disappeared.
3. As data Collection techniques improve, δ2
i is likely to decrease. Thus banks that
have sophisticated data processing equipment are likely to commit fewer errors in
the monthly or quarterly statements of their customers than banks without such
facilities.
4. Heteroscedasticity can also arise as a result of the presence of outliers. An
outlying observation is an observation that is much different in relation to the
observations in the sample.
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
3
5. Error learning models, as people learn, their errors of behavior become smaller
over time. In this case, δ2
i is expected to decrease. As an example, the number of
typing speed errors decreases as the number of typing practice increases, the
average number of typing errors as well as their variances decreases.
Consequences of heteroscedasticity
Following are the consequences of the heteroscedasticity:
1. Heteroscedasticity does not result in biased parameter estimates. However, OLS
estimates are no longer BLUE. That is, among all the unbiased estimators, OLS
does not provide the estimate with the smallest variance. Depending on the nature
of the heteroscedasticity, significance tests can be too high or too low.
2. In addition, the standard errors are biased when heteroscedasticity is present. This
in turn leads to bias in test statistics and confidence intervals.
3. Fortunately, unless heteroscedasticity is “marked,” significance tests are virtually
unaffected, and thus OLS estimation can be used without concern of serious
distortion. But, severe heteroscedasticity can sometimes be a problem. Warning:
Note that heteroscedasticity can be very problematic with methods besides OLS.
For example, in logistic regression heteroscedasticity can produce biased and
misleading parameter estimates.
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
4
OLS estimation in presence of heteroscedasticity
If we introduce heteroscedasticity by letting that E(
22
) ii δε = but retain all other
assumptions of the classical model the OLS estimates are still unbiased.
Consider the two variable regression model.
iii XY εββ ++= 10
We know that the ordinary least square estimate of β1 is:
A
x
x
x
Xx
x
xXx
x
xXxx
x
Xx
x
xY
x
Yx
xYYx
x
yx
i
ii
i
ii
i
iiii
i
iiiii
i
iii
i
i
i
ii
iii
i
ii
−−−−−−
∑
∑
+
∑
∑
=
∑
∑+∑
=
∑
∑+∑+∑
=
∑
++∑
=
∑
∑
−
∑
∑
=
∑−∑=
∑
∑
=
22
1
2
1
2
10
1
2
10
1
221
2
1
21
ˆ
)(ˆ
ˆ
/)(ˆ
ˆ
εβ
εβ
εββ
β
εββ
β
β
β
β
Now
1
)()(
)(
)()(
)(
2
=
−∑−−∑
−∑
=
−∑−∑
−∑
=
∑
∑
XXXXXX
XXX
XXXX
XXX
x
Xx
iii
ii
ii
ii
i
ii
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
5
Put this value in equation (A)
Similarly 00 )ˆ( ββ =E
It is shown that in the presence of heteroscedasticity the OLS estimators are unbiased.
Variance of OLS estimator in the presence of heteroscedasticity
Since
[ ]
[ ]
[ ]
2
2
1
2
22
2
22
222
2
2
2
2
1
2
1
222
2
2
2
2
1
2
1
i
112121
222
2
2
2
2
1
2
11
2i
2
i
2
121
2
11
)ˆ(
)(
...w
)(...)()(w
0)E(thatknowwebecausezerotoequalsrmproduct tecrossThe
......)ˆVar(
wAswE
resultpreviousUsing
ˆ)ˆ(
i
i
i
i
i
ii
nn
nn
j
nnnnnn
i
i
i
i
ii
x
Var
x
x
w
ww
EwEwE
wwwwwwwE
x
x
x
x
E
EVar
∑
=
∑
∑
=∑=
++=
++=
=
++++++=
∑
=∑=








−
∑
∑
+=
−=
−−
δ
β
δδ
δδδ
εεε
εε
εεεεεεεβ
ε
β
ε
β
βββ
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
6
Which is different when Homoscedasticity is present in the model.
Tests for Detection of Heteroscedasticity
The following tests to be used for detection of multicollinearity:
1. Park Test
Park test suggest that δ2
i is some function of the explanatory variable Xi. i.e.
iiXXu
as
iX
eX
iiiii
iii
ii
i
−−−−−−−−−−++=++=
−−−−−−−−−−−++=
=
υβαυβδ
δ
υβδδ
δδ υβ
lnlnlnˆln
.regressionfollowingtherunningandproxyauˆusingsuggestpark,unknownisSince
lnlnln
22
2
i
2
i
22
22
If β found statistically significant in the above equation then it means that
heteroscedasticity is present in the data, otherwise we may accept the assumption of
Homoscedasticity.
The Park test is thus a two-stage procedure. In the first stage we run the OLS regression
disregarding the heteroscedasticity question. We obtain iuˆ from this regression, and then
in the second stage we run the regression (ii).
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
7
2. Glejsar Test
Glejsar test is much similar to Park test. After obtaining residuals iuˆ from the OLs
regression Glejsar suggest regressing the absolute of the iuˆ on the X variable that is
thought to be closely associated with δ2
i .
Glejsar used the following functional form:
ˆ
ˆ
1
ˆ
1
ˆ
ˆ
υXββuˆ
2
21
21
21
21
21
ii21i
iii
iii
i
i
i
ii
iii
Xu
Xu
X
u
X
u
Xu
υββ
υββ
υββ
υββ
υββ
++=
++=
++=
++=
++=
++=
Where υi is the error term.
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
8
Goldfeld and Quandt point out that the error term vi has some problems in the above
expressions.
• Its expected value is not equal to zero.
• It is serially correlated.
• The last two expression are not linear in parameters and therefore cannot be estimated
with the usual OLS procedure.
3. Spearman's Rank Correlation Test.
The well known spearman's rank correlation coefficient is given by the following
formula.
( )







−
∑
−=
1
61 2
2
nn
d
r i
s
Where d= difference between two rankings and n= number of individuals. The above
spearman's rank correlation coefficient can be used to detect heteroscedasticity.
The procedure for Spearman's rank correlation coefficient is as follows:
i. Fit the regression line on Y and X and find the residuals.
ii. Rank the residuals by ignoring their sign.
iii. Rank either the value of X or Y.
iv. Find difference between two rankings(di).
v. Apply the following test statistic to test the hypothesis that the population
rank correlation coefficient ρi = 0 and n > 8 i.e.
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
9
freedomofdegree2-n'with
1
2
2
s
s
r
n
rt
−
−
=
If the computed value of t exceeds than the tabulated value then we may
accept the hypothesis of heteroscedasticity; otherwise we may reject it.
4. Goldfeld-Quandt Test
This test is suggested if the heteroscedasticitic variance δ2
i is positively related to one of
the predictor variables in the regression model.
Consider the two-variable regression model:
iii XY εββ ++= 21
Suppose that δ2
i is positively related to X as:
δ2
i=δ2
Xi
2
Now to test the hypothesis that there is no heteroscedasticity we will follow the following
steps.
Step#1. Rank the observations beginning with the lowest value of X.
Step#2. Omit 'c' central observations where 'c' is fixed in advance, and then divide
the remaining observation into two groups.
Step#3. Fit the OLS regression model to both groups and obtain sum of square of
regression i.e. RSS1 and RSS2. RSS1 representing the RSS to the smaller
Muhammad Ali
Lecturer in Statistics
GPGC Mardan.
10
variance groups and RSS2 representing the RSS to the larger variance
group. Both RSS1 and RSS2 having the same degrees of freedom. i.e.
( )
2
2k-c-n
or
2






−
−
k
cn
Where k is the number of parameters to be estimated. In two variable case k=2
Step#4 Compute the ratio
dfRSS
dfRSS
/
/
1
2
=λ
If the error term ε is normally distributed i.e. ε~N(0,δ2
) then λ follows the F distribution with
2/2and2/2 21 kcnkcn −−=−−= υυ degrees of freedom.
If the computed value of λ is greater than the tabulated value of F then we can reject the
hypothesis of Homoscedasticity.

More Related Content

What's hot

Multicollinearity PPT
Multicollinearity PPTMulticollinearity PPT
Multicollinearity PPT
GunjanKhandelwal13
 
Autocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d testAutocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d test
Shilpa Chaudhary
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
PatilDevendra5
 
Dummy variables
Dummy variablesDummy variables
Dummy variables
Irfan Hussain
 
Multicolinearity
MulticolinearityMulticolinearity
Multicolinearity
Pawan Kawan
 
Autocorrelation
AutocorrelationAutocorrelation
AutocorrelationAkram Ali
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
Irfan Hussain
 
Multicollinearity1
Multicollinearity1Multicollinearity1
Multicollinearity1Muhammad Ali
 
Multicollinearity
MulticollinearityMulticollinearity
Multicollinearity
Bernard Asia
 
Econometrics lecture 1st
Econometrics lecture 1stEconometrics lecture 1st
Econometrics lecture 1stIshaq Ahmad
 
Ols
OlsOls
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticityhalimuth
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
Muhammad Ali
 
7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares
Yugesh Dutt Panday
 
20150404 rm - autocorrelation
20150404   rm - autocorrelation20150404   rm - autocorrelation
20150404 rm - autocorrelation
Qatar University
 
Autocorrelation- Remedial Measures
Autocorrelation- Remedial MeasuresAutocorrelation- Remedial Measures
Autocorrelation- Remedial Measures
Shilpa Chaudhary
 
Rules for identification
Rules for identificationRules for identification
Rules for identification
GarimaGupta229
 
Introduction to Econometrics
Introduction to EconometricsIntroduction to Econometrics
Introduction to Econometrics
Almaszabeen Badekhan
 

What's hot (20)

Multicollinearity PPT
Multicollinearity PPTMulticollinearity PPT
Multicollinearity PPT
 
Autocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d testAutocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d test
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
 
Dummy variables
Dummy variablesDummy variables
Dummy variables
 
Multicolinearity
MulticolinearityMulticolinearity
Multicolinearity
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
 
Ols by hiron
Ols by hironOls by hiron
Ols by hiron
 
Multicollinearity1
Multicollinearity1Multicollinearity1
Multicollinearity1
 
Multicollinearity
MulticollinearityMulticollinearity
Multicollinearity
 
Econometrics lecture 1st
Econometrics lecture 1stEconometrics lecture 1st
Econometrics lecture 1st
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Ols
OlsOls
Ols
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticity
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares
 
20150404 rm - autocorrelation
20150404   rm - autocorrelation20150404   rm - autocorrelation
20150404 rm - autocorrelation
 
Autocorrelation- Remedial Measures
Autocorrelation- Remedial MeasuresAutocorrelation- Remedial Measures
Autocorrelation- Remedial Measures
 
Rules for identification
Rules for identificationRules for identification
Rules for identification
 
Introduction to Econometrics
Introduction to EconometricsIntroduction to Econometrics
Introduction to Econometrics
 

Viewers also liked

Ali, Redescending M-estimator
Ali, Redescending M-estimator Ali, Redescending M-estimator
Ali, Redescending M-estimator
Muhammad Ali
 
Ali Redescending M-Estimator
Ali Redescending M-Estimator Ali Redescending M-Estimator
Ali Redescending M-Estimator
Muhammad Ali
 
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
Muhammad Ali
 
Qualitative Data Analysis (Steps)
Qualitative Data Analysis (Steps)Qualitative Data Analysis (Steps)
Qualitative Data Analysis (Steps)
guest7f1ad678
 
Dummy variable’
Dummy variable’Dummy variable’
Dummy variable’
Abdul Sattar
 
Lecture7b Applied Econometrics and Economic Modeling
Lecture7b Applied Econometrics and Economic ModelingLecture7b Applied Econometrics and Economic Modeling
Lecture7b Applied Econometrics and Economic Modeling
stone55
 
Descriptive Analysis of Inflation and Unemployment in Indian Econonmy
Descriptive Analysis of Inflation and Unemployment in Indian EcononmyDescriptive Analysis of Inflation and Unemployment in Indian Econonmy
Descriptive Analysis of Inflation and Unemployment in Indian EcononmyAnu Damodaran
 
Robust outlier detection
Robust outlier detection Robust outlier detection
Robust outlier detection vinnief
 
SAS Regression Certificate
SAS Regression CertificateSAS Regression Certificate
SAS Regression CertificateSameer Shaikh
 
H2O World - Cancer Detection via the Lasso - Rob Tibshirani
H2O World - Cancer Detection via the Lasso - Rob TibshiraniH2O World - Cancer Detection via the Lasso - Rob Tibshirani
H2O World - Cancer Detection via the Lasso - Rob Tibshirani
Sri Ambati
 
06 tópico 5 - heterocedasticidade
06   tópico 5 - heterocedasticidade06   tópico 5 - heterocedasticidade
06 tópico 5 - heterocedasticidade
Ricardo Bruno - Universidade Federal do Pará
 
The RuLIS approach to outliers (Marcello D'Orazio,FAO)
The RuLIS approach to outliers (Marcello D'Orazio,FAO)The RuLIS approach to outliers (Marcello D'Orazio,FAO)
The RuLIS approach to outliers (Marcello D'Orazio,FAO)
FAO
 
Chapter3 econometrics
Chapter3 econometricsChapter3 econometrics
Chapter3 econometrics
Vu Vo
 

Viewers also liked (16)

Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticity
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Ali, Redescending M-estimator
Ali, Redescending M-estimator Ali, Redescending M-estimator
Ali, Redescending M-estimator
 
Ali Redescending M-Estimator
Ali Redescending M-Estimator Ali Redescending M-Estimator
Ali Redescending M-Estimator
 
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
 
Qualitative Data Analysis (Steps)
Qualitative Data Analysis (Steps)Qualitative Data Analysis (Steps)
Qualitative Data Analysis (Steps)
 
Regression & correlation
Regression & correlationRegression & correlation
Regression & correlation
 
Dummy variable’
Dummy variable’Dummy variable’
Dummy variable’
 
Lecture7b Applied Econometrics and Economic Modeling
Lecture7b Applied Econometrics and Economic ModelingLecture7b Applied Econometrics and Economic Modeling
Lecture7b Applied Econometrics and Economic Modeling
 
Descriptive Analysis of Inflation and Unemployment in Indian Econonmy
Descriptive Analysis of Inflation and Unemployment in Indian EcononmyDescriptive Analysis of Inflation and Unemployment in Indian Econonmy
Descriptive Analysis of Inflation and Unemployment in Indian Econonmy
 
Robust outlier detection
Robust outlier detection Robust outlier detection
Robust outlier detection
 
SAS Regression Certificate
SAS Regression CertificateSAS Regression Certificate
SAS Regression Certificate
 
H2O World - Cancer Detection via the Lasso - Rob Tibshirani
H2O World - Cancer Detection via the Lasso - Rob TibshiraniH2O World - Cancer Detection via the Lasso - Rob Tibshirani
H2O World - Cancer Detection via the Lasso - Rob Tibshirani
 
06 tópico 5 - heterocedasticidade
06   tópico 5 - heterocedasticidade06   tópico 5 - heterocedasticidade
06 tópico 5 - heterocedasticidade
 
The RuLIS approach to outliers (Marcello D'Orazio,FAO)
The RuLIS approach to outliers (Marcello D'Orazio,FAO)The RuLIS approach to outliers (Marcello D'Orazio,FAO)
The RuLIS approach to outliers (Marcello D'Orazio,FAO)
 
Chapter3 econometrics
Chapter3 econometricsChapter3 econometrics
Chapter3 econometrics
 

Similar to Heteroscedasticity

Unit 05 - Consolidated.pptx
Unit 05 - Consolidated.pptxUnit 05 - Consolidated.pptx
Unit 05 - Consolidated.pptx
ChristopherDevakumar1
 
Introduction to Limited Dependent variable
Introduction to Limited Dependent variableIntroduction to Limited Dependent variable
Introduction to Limited Dependent variable
Ashok Dsouza
 
Dem 7263 fall 2015 spatially autoregressive models 1
Dem 7263 fall 2015   spatially autoregressive models 1Dem 7263 fall 2015   spatially autoregressive models 1
Dem 7263 fall 2015 spatially autoregressive models 1
Corey Sparks
 
Multiple regression .pptx
Multiple regression .pptxMultiple regression .pptx
Multiple regression .pptx
Victoria Bozhenko
 
Ch5_slides.ppt
Ch5_slides.pptCh5_slides.ppt
Ch5_slides.ppt
ssuser512132
 
Ch5_slides Qwertr12234543234433444344.ppt
Ch5_slides Qwertr12234543234433444344.pptCh5_slides Qwertr12234543234433444344.ppt
Ch5_slides Qwertr12234543234433444344.ppt
sadafshahbaz7777
 
Ch5_slides.ppt
Ch5_slides.pptCh5_slides.ppt
Ch5_slides.ppt
AhrorErkinov
 
Multinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsMultinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationships
Anirudha si
 
Econometrics ch12
Econometrics ch12Econometrics ch12
Econometrics ch12
Baterdene Batchuluun
 
Chapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptxChapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptx
Farah Amir
 
SLR Assumptions:Model Check Using SPSS
SLR Assumptions:Model Check Using SPSSSLR Assumptions:Model Check Using SPSS
SLR Assumptions:Model Check Using SPSS
Nermin Osman
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
DevendraRavindraPati
 
Chapter 2 Simple Linear Regression Model.pptx
Chapter 2 Simple Linear Regression Model.pptxChapter 2 Simple Linear Regression Model.pptx
Chapter 2 Simple Linear Regression Model.pptx
aschalew shiferaw
 
linear model multiple predictors.pdf
linear model multiple predictors.pdflinear model multiple predictors.pdf
linear model multiple predictors.pdf
ssuser7d5314
 
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Daniel Katz
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
Salim Azad
 
Chapter 6.pptx
Chapter 6.pptxChapter 6.pptx
Chapter 6.pptx
Mamdouh Mohamed
 
Hypothesis
HypothesisHypothesis
Hypothesis
LIVING KIMARIO
 
Data enriched linear regression
Data enriched linear regressionData enriched linear regression
Data enriched linear regression
Sunny Kr
 

Similar to Heteroscedasticity (20)

Unit 05 - Consolidated.pptx
Unit 05 - Consolidated.pptxUnit 05 - Consolidated.pptx
Unit 05 - Consolidated.pptx
 
Introduction to Limited Dependent variable
Introduction to Limited Dependent variableIntroduction to Limited Dependent variable
Introduction to Limited Dependent variable
 
Dem 7263 fall 2015 spatially autoregressive models 1
Dem 7263 fall 2015   spatially autoregressive models 1Dem 7263 fall 2015   spatially autoregressive models 1
Dem 7263 fall 2015 spatially autoregressive models 1
 
Multiple regression .pptx
Multiple regression .pptxMultiple regression .pptx
Multiple regression .pptx
 
Ch5_slides.ppt
Ch5_slides.pptCh5_slides.ppt
Ch5_slides.ppt
 
Ch5_slides Qwertr12234543234433444344.ppt
Ch5_slides Qwertr12234543234433444344.pptCh5_slides Qwertr12234543234433444344.ppt
Ch5_slides Qwertr12234543234433444344.ppt
 
Ch5_slides.ppt
Ch5_slides.pptCh5_slides.ppt
Ch5_slides.ppt
 
Ch5 slides
Ch5 slidesCh5 slides
Ch5 slides
 
Multinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsMultinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationships
 
Econometrics ch12
Econometrics ch12Econometrics ch12
Econometrics ch12
 
Chapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptxChapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptx
 
SLR Assumptions:Model Check Using SPSS
SLR Assumptions:Model Check Using SPSSSLR Assumptions:Model Check Using SPSS
SLR Assumptions:Model Check Using SPSS
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
 
Chapter 2 Simple Linear Regression Model.pptx
Chapter 2 Simple Linear Regression Model.pptxChapter 2 Simple Linear Regression Model.pptx
Chapter 2 Simple Linear Regression Model.pptx
 
linear model multiple predictors.pdf
linear model multiple predictors.pdflinear model multiple predictors.pdf
linear model multiple predictors.pdf
 
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Chapter 6.pptx
Chapter 6.pptxChapter 6.pptx
Chapter 6.pptx
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Data enriched linear regression
Data enriched linear regressionData enriched linear regression
Data enriched linear regression
 

Recently uploaded

Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 

Recently uploaded (20)

Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 

Heteroscedasticity

  • 1. Muhammad Ali Lecturer in Statistics GPGC Mardan. 1 Heteroscedasticity Definition One of the assumption of the classical linear regression model that the error ( iε ) term having the same variance i.e. δ2 . But in most practical situation this assumption did not fulfill, and we have the problem of heteroscedasticity. Heteroscedasticity does not destroy the unbiased and consistency property of the ordinary least square estimators, but these estimators have not the property of minimum variance. Recall that OLS makes the assumption that V (εi ) =σ2 for al i. That is, the variance of the error term is constant. (Homoscedasticity). If the error terms do not have constant variance, they are said to be heteroscedasticity. The term means “differing variance” and comes from the Greek “hetero” ('different') and “scedasis” ('dispersion').] When heteroscedasticity might occur/causes of heteroscedasticity 1. Errors may increase as the value of an independent variable increases. For example, consider a model in which annual family income is the independent variable and annual family expenditures on vacations is the dependent variable. Families with low incomes will spend relatively little on vacations, and the
  • 2. Muhammad Ali Lecturer in Statistics GPGC Mardan. 2 variations in expenditures across such families will be small. But for families with large incomes, the amount of discretionary income will be higher. The mean amount spent on vacations will be higher, and there will also be greater variability among such families, resulting in heteroscedasticity. Note that, in this example, a high family income is a necessary but not sufficient condition for large vacation expenditures. Any time a high value for an independent variable is a necessary but not sufficient condition for an observation to have a high value on a dependent variable, heteroscedasticity is likely. 2. Other model misspecifications can produce heteroscedasticity. For example, it may be that instead of using Y, you should be using the log of Y. Instead of using X, maybe you should be using X2 , or both X and X2 . Important variables may be omitted from the model. If the model were correctly specified, you might find that the patterns of heteroscedasticity disappeared. 3. As data Collection techniques improve, δ2 i is likely to decrease. Thus banks that have sophisticated data processing equipment are likely to commit fewer errors in the monthly or quarterly statements of their customers than banks without such facilities. 4. Heteroscedasticity can also arise as a result of the presence of outliers. An outlying observation is an observation that is much different in relation to the observations in the sample.
  • 3. Muhammad Ali Lecturer in Statistics GPGC Mardan. 3 5. Error learning models, as people learn, their errors of behavior become smaller over time. In this case, δ2 i is expected to decrease. As an example, the number of typing speed errors decreases as the number of typing practice increases, the average number of typing errors as well as their variances decreases. Consequences of heteroscedasticity Following are the consequences of the heteroscedasticity: 1. Heteroscedasticity does not result in biased parameter estimates. However, OLS estimates are no longer BLUE. That is, among all the unbiased estimators, OLS does not provide the estimate with the smallest variance. Depending on the nature of the heteroscedasticity, significance tests can be too high or too low. 2. In addition, the standard errors are biased when heteroscedasticity is present. This in turn leads to bias in test statistics and confidence intervals. 3. Fortunately, unless heteroscedasticity is “marked,” significance tests are virtually unaffected, and thus OLS estimation can be used without concern of serious distortion. But, severe heteroscedasticity can sometimes be a problem. Warning: Note that heteroscedasticity can be very problematic with methods besides OLS. For example, in logistic regression heteroscedasticity can produce biased and misleading parameter estimates.
  • 4. Muhammad Ali Lecturer in Statistics GPGC Mardan. 4 OLS estimation in presence of heteroscedasticity If we introduce heteroscedasticity by letting that E( 22 ) ii δε = but retain all other assumptions of the classical model the OLS estimates are still unbiased. Consider the two variable regression model. iii XY εββ ++= 10 We know that the ordinary least square estimate of β1 is: A x x x Xx x xXx x xXxx x Xx x xY x Yx xYYx x yx i ii i ii i iiii i iiiii i iii i i i ii iii i ii −−−−−− ∑ ∑ + ∑ ∑ = ∑ ∑+∑ = ∑ ∑+∑+∑ = ∑ ++∑ = ∑ ∑ − ∑ ∑ = ∑−∑= ∑ ∑ = 22 1 2 1 2 10 1 2 10 1 221 2 1 21 ˆ )(ˆ ˆ /)(ˆ ˆ εβ εβ εββ β εββ β β β β Now 1 )()( )( )()( )( 2 = −∑−−∑ −∑ = −∑−∑ −∑ = ∑ ∑ XXXXXX XXX XXXX XXX x Xx iii ii ii ii i ii
  • 5. Muhammad Ali Lecturer in Statistics GPGC Mardan. 5 Put this value in equation (A) Similarly 00 )ˆ( ββ =E It is shown that in the presence of heteroscedasticity the OLS estimators are unbiased. Variance of OLS estimator in the presence of heteroscedasticity Since [ ] [ ] [ ] 2 2 1 2 22 2 22 222 2 2 2 2 1 2 1 222 2 2 2 2 1 2 1 i 112121 222 2 2 2 2 1 2 11 2i 2 i 2 121 2 11 )ˆ( )( ...w )(...)()(w 0)E(thatknowwebecausezerotoequalsrmproduct tecrossThe ......)ˆVar( wAswE resultpreviousUsing ˆ)ˆ( i i i i i ii nn nn j nnnnnn i i i i ii x Var x x w ww EwEwE wwwwwwwE x x x x E EVar ∑ = ∑ ∑ =∑= ++= ++= = ++++++= ∑ =∑=         − ∑ ∑ += −= −− δ β δδ δδδ εεε εε εεεεεεεβ ε β ε β βββ
  • 6. Muhammad Ali Lecturer in Statistics GPGC Mardan. 6 Which is different when Homoscedasticity is present in the model. Tests for Detection of Heteroscedasticity The following tests to be used for detection of multicollinearity: 1. Park Test Park test suggest that δ2 i is some function of the explanatory variable Xi. i.e. iiXXu as iX eX iiiii iii ii i −−−−−−−−−−++=++= −−−−−−−−−−−++= = υβαυβδ δ υβδδ δδ υβ lnlnlnˆln .regressionfollowingtherunningandproxyauˆusingsuggestpark,unknownisSince lnlnln 22 2 i 2 i 22 22 If β found statistically significant in the above equation then it means that heteroscedasticity is present in the data, otherwise we may accept the assumption of Homoscedasticity. The Park test is thus a two-stage procedure. In the first stage we run the OLS regression disregarding the heteroscedasticity question. We obtain iuˆ from this regression, and then in the second stage we run the regression (ii).
  • 7. Muhammad Ali Lecturer in Statistics GPGC Mardan. 7 2. Glejsar Test Glejsar test is much similar to Park test. After obtaining residuals iuˆ from the OLs regression Glejsar suggest regressing the absolute of the iuˆ on the X variable that is thought to be closely associated with δ2 i . Glejsar used the following functional form: ˆ ˆ 1 ˆ 1 ˆ ˆ υXββuˆ 2 21 21 21 21 21 ii21i iii iii i i i ii iii Xu Xu X u X u Xu υββ υββ υββ υββ υββ ++= ++= ++= ++= ++= ++= Where υi is the error term.
  • 8. Muhammad Ali Lecturer in Statistics GPGC Mardan. 8 Goldfeld and Quandt point out that the error term vi has some problems in the above expressions. • Its expected value is not equal to zero. • It is serially correlated. • The last two expression are not linear in parameters and therefore cannot be estimated with the usual OLS procedure. 3. Spearman's Rank Correlation Test. The well known spearman's rank correlation coefficient is given by the following formula. ( )        − ∑ −= 1 61 2 2 nn d r i s Where d= difference between two rankings and n= number of individuals. The above spearman's rank correlation coefficient can be used to detect heteroscedasticity. The procedure for Spearman's rank correlation coefficient is as follows: i. Fit the regression line on Y and X and find the residuals. ii. Rank the residuals by ignoring their sign. iii. Rank either the value of X or Y. iv. Find difference between two rankings(di). v. Apply the following test statistic to test the hypothesis that the population rank correlation coefficient ρi = 0 and n > 8 i.e.
  • 9. Muhammad Ali Lecturer in Statistics GPGC Mardan. 9 freedomofdegree2-n'with 1 2 2 s s r n rt − − = If the computed value of t exceeds than the tabulated value then we may accept the hypothesis of heteroscedasticity; otherwise we may reject it. 4. Goldfeld-Quandt Test This test is suggested if the heteroscedasticitic variance δ2 i is positively related to one of the predictor variables in the regression model. Consider the two-variable regression model: iii XY εββ ++= 21 Suppose that δ2 i is positively related to X as: δ2 i=δ2 Xi 2 Now to test the hypothesis that there is no heteroscedasticity we will follow the following steps. Step#1. Rank the observations beginning with the lowest value of X. Step#2. Omit 'c' central observations where 'c' is fixed in advance, and then divide the remaining observation into two groups. Step#3. Fit the OLS regression model to both groups and obtain sum of square of regression i.e. RSS1 and RSS2. RSS1 representing the RSS to the smaller
  • 10. Muhammad Ali Lecturer in Statistics GPGC Mardan. 10 variance groups and RSS2 representing the RSS to the larger variance group. Both RSS1 and RSS2 having the same degrees of freedom. i.e. ( ) 2 2k-c-n or 2       − − k cn Where k is the number of parameters to be estimated. In two variable case k=2 Step#4 Compute the ratio dfRSS dfRSS / / 1 2 =λ If the error term ε is normally distributed i.e. ε~N(0,δ2 ) then λ follows the F distribution with 2/2and2/2 21 kcnkcn −−=−−= υυ degrees of freedom. If the computed value of λ is greater than the tabulated value of F then we can reject the hypothesis of Homoscedasticity.