SlideShare a Scribd company logo
What is dummy variable?
Qualitative variable usually indicates the presence and absence of quality or an
attribute such as male and female, black and white, democrat and republican. If the
qualitative variables takes only two values 0 and 1 (absence or presence) then the
variable is called dummy variable. Example: suppose a qualitative variable sex
indicates the presence or absence of attribute such as male or female.
“1” may indicate that a person is a male and “0” may indicate that a person is
female. Variables that assume that “0” and “1” values are called dummy variables.

Alternative name of dummy variable
-indicator variable
-binary variable
-qualitative variable
-categorical variable
-dichotomous variable

Explain dummy variables in term of model or ANOVA model.
Dummy variables can be used in regression model just as easily as qualitative
variables. As a matter of fact that a linear regression model may contain
explanatory variables that are exclusively dummy or qualitative in nature. Such
model are called analysis of variance model or ANOVA model.
Let us consider the following modelYi=α+βDi+µi …………. (i)
where Yi= annual salary of a college professor
1 𝑖𝑓 𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟
𝐷𝑖 = {
0 𝑖𝑓 𝑓𝑒𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟
Di is called dummy variable
µi ~ NID (0, σ²)
we get from equation (i)
Mean salary of female professor,
E(Yi│Di=o)= α
Mean salary of male professor,
E(Yi│Di=1)= α+β

Interpretation:
Here the intercept term α gives the mean salary of female college
professor. The slope coefficient β tells by how much the mean salary of male
professor differs from the mean salary of his female counter part.
α+β reflecting the mean salary of college professor.

Write down the advantages of dummy variables.
1. Dummy variables are data classifying device that is they divide a sample into
various subgroups based on qualitative or attributes.
2. If a model has several qualitative variables with several classes introduction of
dummy variables can consume a large number of d.f.
3. Since the dummy variable are non-stochastic they create no special problems
in the application of OLS.

What is a dummy variable trap? How will you avoid dummy variable
trap?
Let us consider a modelYi= α1+ α2D2i+ α3D3i+βXi+µi ………………… (i)
Here Yi are the annual salary of a college professor.
Xi is the years of teaching experience of college professor
D2i = {

1 𝑖𝑓 𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟
0 𝑖𝑓 𝑓𝑒𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟

D3i = {

1 𝑖𝑓 𝑓𝑒𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟
0 𝑖𝑓 𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟

The model (i) cannot be estimated because of perfect collinearity between D2 and
D3. To see this we have a sample of 3 male professors and 2 female professors.
The design matrix is-
Male
Male
Female
Male
Female

Y1
Y2
Y3
Y4
Y5

α1
1
1
1
1
1

D2
1
1
0
1
0

D3
0
0
1
0
1

X
X1
X2
X3
X4
X5

The first column denote the common intercept term α1. We see that,
D2 =1-D3 and D3 =1-D2.
That means, D2 and D3 are perfectly collinear. Thus avoiding the perfect
collinearity the general rule is if a qualitative variable has m categories then it has
only (m-1) dummy variables. If this rule is not followed we shall fall into dummy
variable trap.
To avoid the dummy variable trap we can write the above model asYi= α2D2i+ α3D3i+βXi+µi
In this mode we have drop the intercept term αi. If we drop the intercept term αi we
will not fall into perfect multicollinearity/the dummy variable trap because we
have no longer the perfect collinearity.

Comparing two regression lines in terms dummy variable approach
Let us consider, pool all n1 and n2 observations together and estimating the
following regressionYi= α1+ α2Di+ β1Xi+ β2DiXi +µi …………………….(i)
Where, Yi and Xi are savings and income and
Di = {

1 𝑓𝑜𝑟 𝑜𝑏𝑠𝑒𝑟𝑣𝑎𝑡𝑖𝑜𝑛 𝑖𝑛 𝑡ℎ𝑒 1𝑠𝑡
0 𝑓𝑜𝑟 𝑜𝑏𝑠𝑒𝑟𝑣𝑎𝑡𝑖𝑜𝑛 𝑖𝑛 𝑡ℎ𝑒 𝑛𝑒𝑥𝑡

To see the implication of model (i) and assuming that, E(µi)=0 we obtain
E (Yi│Di=0; Xi) = αi+β1Xi ………….. (ii)
E (Yi│Di=1; Xi) = (α1+ α2) + (β1+ β2)Xi……………… (iii)
Let,

α1 = γ1
β1 = γ 2
α1+ α2= λ1
β1+ β2= λ2

So the equation of (ii) and (iii) is,
E (Yi│Di=0; Xi) = γ1+ γ2Xi…………….. (iv)
E (Yi│Di=1; Xi) = λ1+ λ2Xi……………... (v)
Therefore estimating equation (i) is equivalent to estimating the two individuals,
Re-construction period and post-reconstruction period. Where in equation (i) α1 is
the differential intercept term and α2 is the differential slope coefficient.

Find out the aggregate saving income relationship has changed between
the two periods.
Let us consider two linear regression model are, Re-construction period
Yi= λ1+ λ2Xi+ µ1i………………….(i)
i=1,2,…,ni
Post-construction period,
Yi= γ1+ γ2Xi+ µ2i………………….(i)
i=1,2,…,n2i
where, Yi= savings
X= income
µ1i and µ2i are the disturbance term in the two regression model.
Now regression model (i) and (ii) present the following four possibility
1) If λ1= γ1 and λ2= γ2 that means, the two regression model are identical then
it is called coincident regression.
Y

λ2= γ2

λ1= γ1
X
Income
(a) Coincident

2) If λ1≠γ1 and λ2= γ2 that means the two regression differ only in their
locations that means intercept then it is called parallel regression.

Y
λ2= γ2

λ2= γ2
γ1
λ1
X
(b) Coincident
3) If λ1=γ1 and λ2≠ γ2 that means the two regression have same intercept
different slopes. Then it is called concurrent regression

Y
γ2
λ2

λ1= γ1
X
(c) concurrent

4) If λ1≠γ1 and λ2≠ γ2 then the two regression equation are completely
different that means the regression is called dissimilar regression.
Y
γ2

λ2
λ1
γ1
X
(d) dissimilar

Question: Suppose the college professor salary regression model defined asYi= α1+ α2D2i+ α3D3i + α4(D2iD3i)+BXi +µi
Where Yi=annual salary of a college professor
Xi= years of experience
D2=

1 if male professor
0 if female professor

D3= 1 if the professor is white or 0 otherwise
Explain the terms (i) α2 (ii) α4 (iii) D2iD3i
(v) What about the effect of female and non-white professor
(vi) Find,
E(Yi│D2=1, D3=1,Xi=10) and interpret it.
Solution:
1. α2 is the differential effect of being male professor
2. α4 is the differential effect of male-white professor
3. D2iD3i be the interaction between two qualitative variables D2 and D3. It
means non-white have lower mean salary i. e they are male or female. A
female non-white may earn lower salary than a male non-white. So
interaction may be expressed such kind of assumption which may be
untrainable
4. The effect of female and non-white professor are the followingE(Yi│D2i=0, D3i=0)= α1+βXi
5. So it can be concluded that the mean salary depends on only the slope
coefficient and the coefficient of years of experience.
6.
E(Yi│D2=1, D3=1,Xi=10)
So the mean salary of male and white professor is which is the mean salary of
male and white professor when years of experience are 10 years.

More Related Content

What's hot

DUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODELDUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODEL
Arshad Ahmed Saeed
 
Dummyvariable1
Dummyvariable1Dummyvariable1
Dummyvariable1
Sreenivasa Harish
 
Basic concepts of_econometrics
Basic concepts of_econometricsBasic concepts of_econometrics
Basic concepts of_econometrics
SwapnaJahan
 
Introduction to Econometrics
Introduction to EconometricsIntroduction to Econometrics
Introduction to Econometrics
Almaszabeen Badekhan
 
Multicollinearity
MulticollinearityMulticollinearity
Multicollinearity
Bernard Asia
 
Autocorrelation
AutocorrelationAutocorrelation
AutocorrelationAkram Ali
 
Autocorrelation (1)
Autocorrelation (1)Autocorrelation (1)
Autocorrelation (1)
Manokamna Kochar
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
Irfan Hussain
 
Overview of econometrics 1
Overview of econometrics 1Overview of econometrics 1
Overview of econometrics 1
Emeni Joshua
 
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
 
Basic econometrics lectues_1
Basic econometrics lectues_1Basic econometrics lectues_1
Basic econometrics lectues_1
Nivedita Sharma
 
Distributed lag model
Distributed lag modelDistributed lag model
Distributed lag model
Pawan Kawan
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
ADITHYAT1
 
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
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
PatilDevendra5
 
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
 
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
Sajid Ali Khan
 
Econometrics lecture 1st
Econometrics lecture 1stEconometrics lecture 1st
Econometrics lecture 1stIshaq Ahmad
 
Heteroscedasticity | Eonomics
Heteroscedasticity | EonomicsHeteroscedasticity | Eonomics
Heteroscedasticity | Eonomics
Transweb Global Inc
 

What's hot (20)

DUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODELDUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODEL
 
Dummyvariable1
Dummyvariable1Dummyvariable1
Dummyvariable1
 
Basic concepts of_econometrics
Basic concepts of_econometricsBasic concepts of_econometrics
Basic concepts of_econometrics
 
Introduction to Econometrics
Introduction to EconometricsIntroduction to Econometrics
Introduction to Econometrics
 
Multicollinearity
MulticollinearityMulticollinearity
Multicollinearity
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Ols by hiron
Ols by hironOls by hiron
Ols by hiron
 
Autocorrelation (1)
Autocorrelation (1)Autocorrelation (1)
Autocorrelation (1)
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
 
Overview of econometrics 1
Overview of econometrics 1Overview of econometrics 1
Overview of econometrics 1
 
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
 
Basic econometrics lectues_1
Basic econometrics lectues_1Basic econometrics lectues_1
Basic econometrics lectues_1
 
Distributed lag model
Distributed lag modelDistributed lag model
Distributed lag model
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
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...
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
 
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
 
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
 
Econometrics lecture 1st
Econometrics lecture 1stEconometrics lecture 1st
Econometrics lecture 1st
 
Heteroscedasticity | Eonomics
Heteroscedasticity | EonomicsHeteroscedasticity | Eonomics
Heteroscedasticity | Eonomics
 

Viewers also liked

Bias and confounding
Bias and confoundingBias and confounding
Bias and confounding
Ikram Ullah
 
Confounder and effect modification
Confounder and effect modificationConfounder and effect modification
Confounder and effect modification
Al-YAQIN DIAGNOSTIC ULTRASONIC CLINIC BAGHDAD
 
Research Methodology
Research MethodologyResearch Methodology
Research Methodology
Aneel Raza
 
Logistic Regression in Case-Control Study
Logistic Regression in Case-Control StudyLogistic Regression in Case-Control Study
Logistic Regression in Case-Control Study
Satish Gupta
 
Variables
VariablesVariables
Variables
Hiba Armouche
 
Variables
 Variables Variables
Variablesshoffma5
 
SAMPLING AND SAMPLING ERRORS
SAMPLING AND SAMPLING ERRORSSAMPLING AND SAMPLING ERRORS
SAMPLING AND SAMPLING ERRORS
rambhu21
 

Viewers also liked (9)

14 dummy
14 dummy14 dummy
14 dummy
 
Bias and confounding
Bias and confoundingBias and confounding
Bias and confounding
 
Confounder and effect modification
Confounder and effect modificationConfounder and effect modification
Confounder and effect modification
 
Research Methodology
Research MethodologyResearch Methodology
Research Methodology
 
Antenatal care
Antenatal careAntenatal care
Antenatal care
 
Logistic Regression in Case-Control Study
Logistic Regression in Case-Control StudyLogistic Regression in Case-Control Study
Logistic Regression in Case-Control Study
 
Variables
VariablesVariables
Variables
 
Variables
 Variables Variables
Variables
 
SAMPLING AND SAMPLING ERRORS
SAMPLING AND SAMPLING ERRORSSAMPLING AND SAMPLING ERRORS
SAMPLING AND SAMPLING ERRORS
 

Similar to Dummy variable

Lecture7-DummyVariables.ppt
Lecture7-DummyVariables.pptLecture7-DummyVariables.ppt
Lecture7-DummyVariables.ppt
BinhDaoThiThanh1
 
3 handouts section3-11
3 handouts section3-113 handouts section3-11
3 handouts section3-11
International advisers
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
The Statistical and Applied Mathematical Sciences Institute
 
B.tech admissions in delhi
B.tech admissions in delhiB.tech admissions in delhi
B.tech admissions in delhi
Edhole.com
 
Chapter5.pdf.pdf
Chapter5.pdf.pdfChapter5.pdf.pdf
Chapter5.pdf.pdf
ROBERTOENRIQUEGARCAA1
 
Econometrics_ch11.ppt
Econometrics_ch11.pptEconometrics_ch11.ppt
Econometrics_ch11.ppt
MewdedDelelegn
 
Econometrics ch11
Econometrics ch11Econometrics ch11
Econometrics ch11
Baterdene Batchuluun
 
Regression on gaussian symbols
Regression on gaussian symbolsRegression on gaussian symbols
Regression on gaussian symbols
Axel de Romblay
 
01. Differentiation-Theory & solved example Module-3.pdf
01. Differentiation-Theory & solved example Module-3.pdf01. Differentiation-Theory & solved example Module-3.pdf
01. Differentiation-Theory & solved example Module-3.pdf
RajuSingh806014
 
functionalform2up.pdf
functionalform2up.pdffunctionalform2up.pdf
functionalform2up.pdf
Daniel181688
 
Top Schools in delhi NCR
Top Schools in delhi NCRTop Schools in delhi NCR
Top Schools in delhi NCR
Edhole.com
 
Glm
GlmGlm
A Case Study of Teaching the Concept of Differential in Mathematics Teacher T...
A Case Study of Teaching the Concept of Differential in Mathematics Teacher T...A Case Study of Teaching the Concept of Differential in Mathematics Teacher T...
A Case Study of Teaching the Concept of Differential in Mathematics Teacher T...
theijes
 
Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02
Rabby Bhatt
 
General Mathematics
General MathematicsGeneral Mathematics
General Mathematics
LeslieVineDeloso1
 
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
 
ISI MSQE Entrance Question Paper (2004)
ISI MSQE Entrance Question Paper (2004)ISI MSQE Entrance Question Paper (2004)
ISI MSQE Entrance Question Paper (2004)
CrackDSE
 
Session 2 b kotpaper
Session 2 b kotpaperSession 2 b kotpaper
Session 2 b kotpaper
IARIW 2014
 

Similar to Dummy variable (20)

Lecture7-DummyVariables.ppt
Lecture7-DummyVariables.pptLecture7-DummyVariables.ppt
Lecture7-DummyVariables.ppt
 
3 handouts section3-11
3 handouts section3-113 handouts section3-11
3 handouts section3-11
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 
B.tech admissions in delhi
B.tech admissions in delhiB.tech admissions in delhi
B.tech admissions in delhi
 
Statistics lesson 2
Statistics lesson 2Statistics lesson 2
Statistics lesson 2
 
Chapter5.pdf.pdf
Chapter5.pdf.pdfChapter5.pdf.pdf
Chapter5.pdf.pdf
 
Econometrics_ch11.ppt
Econometrics_ch11.pptEconometrics_ch11.ppt
Econometrics_ch11.ppt
 
Econometrics ch11
Econometrics ch11Econometrics ch11
Econometrics ch11
 
Regression on gaussian symbols
Regression on gaussian symbolsRegression on gaussian symbols
Regression on gaussian symbols
 
01. Differentiation-Theory & solved example Module-3.pdf
01. Differentiation-Theory & solved example Module-3.pdf01. Differentiation-Theory & solved example Module-3.pdf
01. Differentiation-Theory & solved example Module-3.pdf
 
functionalform2up.pdf
functionalform2up.pdffunctionalform2up.pdf
functionalform2up.pdf
 
Top Schools in delhi NCR
Top Schools in delhi NCRTop Schools in delhi NCR
Top Schools in delhi NCR
 
Glm
GlmGlm
Glm
 
A Case Study of Teaching the Concept of Differential in Mathematics Teacher T...
A Case Study of Teaching the Concept of Differential in Mathematics Teacher T...A Case Study of Teaching the Concept of Differential in Mathematics Teacher T...
A Case Study of Teaching the Concept of Differential in Mathematics Teacher T...
 
Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02
 
Nts
NtsNts
Nts
 
General Mathematics
General MathematicsGeneral Mathematics
General Mathematics
 
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
 
ISI MSQE Entrance Question Paper (2004)
ISI MSQE Entrance Question Paper (2004)ISI MSQE Entrance Question Paper (2004)
ISI MSQE Entrance Question Paper (2004)
 
Session 2 b kotpaper
Session 2 b kotpaperSession 2 b kotpaper
Session 2 b kotpaper
 

Recently uploaded

Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
creerey
 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
Falcon Invoice Discounting
 
PriyoShop Celebration Pohela Falgun Mar 20, 2024
PriyoShop Celebration Pohela Falgun Mar 20, 2024PriyoShop Celebration Pohela Falgun Mar 20, 2024
PriyoShop Celebration Pohela Falgun Mar 20, 2024
PriyoShop.com LTD
 
The-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic managementThe-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic management
Bojamma2
 
Memorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.pptMemorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.ppt
seri bangash
 
Lookback Analysis
Lookback AnalysisLookback Analysis
Lookback Analysis
Safe PaaS
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
tjcomstrang
 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Lviv Startup Club
 
Global Interconnection Group Joint Venture[960] (1).pdf
Global Interconnection Group Joint Venture[960] (1).pdfGlobal Interconnection Group Joint Venture[960] (1).pdf
Global Interconnection Group Joint Venture[960] (1).pdf
Henry Tapper
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
sarahvanessa51503
 
Unveiling the Secrets How Does Generative AI Work.pdf
Unveiling the Secrets How Does Generative AI Work.pdfUnveiling the Secrets How Does Generative AI Work.pdf
Unveiling the Secrets How Does Generative AI Work.pdf
Sam H
 
Filing Your Delaware Franchise Tax A Detailed Guide
Filing Your Delaware Franchise Tax A Detailed GuideFiling Your Delaware Franchise Tax A Detailed Guide
Filing Your Delaware Franchise Tax A Detailed Guide
YourLegal Accounting
 
anas about venice for grade 6f about venice
anas about venice for grade 6f about veniceanas about venice for grade 6f about venice
anas about venice for grade 6f about venice
anasabutalha2013
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
marketingjdass
 
India Orthopedic Devices Market: Unlocking Growth Secrets, Trends and Develop...
India Orthopedic Devices Market: Unlocking Growth Secrets, Trends and Develop...India Orthopedic Devices Market: Unlocking Growth Secrets, Trends and Develop...
India Orthopedic Devices Market: Unlocking Growth Secrets, Trends and Develop...
Kumar Satyam
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
taqyed
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
Ben Wann
 
The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...
awaisafdar
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
Workforce Group
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
tanyjahb
 

Recently uploaded (20)

Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
 
PriyoShop Celebration Pohela Falgun Mar 20, 2024
PriyoShop Celebration Pohela Falgun Mar 20, 2024PriyoShop Celebration Pohela Falgun Mar 20, 2024
PriyoShop Celebration Pohela Falgun Mar 20, 2024
 
The-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic managementThe-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic management
 
Memorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.pptMemorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.ppt
 
Lookback Analysis
Lookback AnalysisLookback Analysis
Lookback Analysis
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
 
Global Interconnection Group Joint Venture[960] (1).pdf
Global Interconnection Group Joint Venture[960] (1).pdfGlobal Interconnection Group Joint Venture[960] (1).pdf
Global Interconnection Group Joint Venture[960] (1).pdf
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
 
Unveiling the Secrets How Does Generative AI Work.pdf
Unveiling the Secrets How Does Generative AI Work.pdfUnveiling the Secrets How Does Generative AI Work.pdf
Unveiling the Secrets How Does Generative AI Work.pdf
 
Filing Your Delaware Franchise Tax A Detailed Guide
Filing Your Delaware Franchise Tax A Detailed GuideFiling Your Delaware Franchise Tax A Detailed Guide
Filing Your Delaware Franchise Tax A Detailed Guide
 
anas about venice for grade 6f about venice
anas about venice for grade 6f about veniceanas about venice for grade 6f about venice
anas about venice for grade 6f about venice
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
 
India Orthopedic Devices Market: Unlocking Growth Secrets, Trends and Develop...
India Orthopedic Devices Market: Unlocking Growth Secrets, Trends and Develop...India Orthopedic Devices Market: Unlocking Growth Secrets, Trends and Develop...
India Orthopedic Devices Market: Unlocking Growth Secrets, Trends and Develop...
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
 
The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
 

Dummy variable

  • 1. What is dummy variable? Qualitative variable usually indicates the presence and absence of quality or an attribute such as male and female, black and white, democrat and republican. If the qualitative variables takes only two values 0 and 1 (absence or presence) then the variable is called dummy variable. Example: suppose a qualitative variable sex indicates the presence or absence of attribute such as male or female. “1” may indicate that a person is a male and “0” may indicate that a person is female. Variables that assume that “0” and “1” values are called dummy variables. Alternative name of dummy variable -indicator variable -binary variable -qualitative variable -categorical variable -dichotomous variable Explain dummy variables in term of model or ANOVA model. Dummy variables can be used in regression model just as easily as qualitative variables. As a matter of fact that a linear regression model may contain explanatory variables that are exclusively dummy or qualitative in nature. Such model are called analysis of variance model or ANOVA model. Let us consider the following modelYi=α+βDi+µi …………. (i) where Yi= annual salary of a college professor 1 𝑖𝑓 𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟 𝐷𝑖 = { 0 𝑖𝑓 𝑓𝑒𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟
  • 2. Di is called dummy variable µi ~ NID (0, σ²) we get from equation (i) Mean salary of female professor, E(Yi│Di=o)= α Mean salary of male professor, E(Yi│Di=1)= α+β Interpretation: Here the intercept term α gives the mean salary of female college professor. The slope coefficient β tells by how much the mean salary of male professor differs from the mean salary of his female counter part. α+β reflecting the mean salary of college professor. Write down the advantages of dummy variables. 1. Dummy variables are data classifying device that is they divide a sample into various subgroups based on qualitative or attributes. 2. If a model has several qualitative variables with several classes introduction of dummy variables can consume a large number of d.f. 3. Since the dummy variable are non-stochastic they create no special problems in the application of OLS. What is a dummy variable trap? How will you avoid dummy variable trap? Let us consider a modelYi= α1+ α2D2i+ α3D3i+βXi+µi ………………… (i) Here Yi are the annual salary of a college professor. Xi is the years of teaching experience of college professor D2i = { 1 𝑖𝑓 𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟 0 𝑖𝑓 𝑓𝑒𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟 D3i = { 1 𝑖𝑓 𝑓𝑒𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟 0 𝑖𝑓 𝑚𝑎𝑙𝑒 𝑝𝑟𝑜𝑓𝑒𝑠𝑠𝑜𝑟 The model (i) cannot be estimated because of perfect collinearity between D2 and D3. To see this we have a sample of 3 male professors and 2 female professors. The design matrix is-
  • 3. Male Male Female Male Female Y1 Y2 Y3 Y4 Y5 α1 1 1 1 1 1 D2 1 1 0 1 0 D3 0 0 1 0 1 X X1 X2 X3 X4 X5 The first column denote the common intercept term α1. We see that, D2 =1-D3 and D3 =1-D2. That means, D2 and D3 are perfectly collinear. Thus avoiding the perfect collinearity the general rule is if a qualitative variable has m categories then it has only (m-1) dummy variables. If this rule is not followed we shall fall into dummy variable trap. To avoid the dummy variable trap we can write the above model asYi= α2D2i+ α3D3i+βXi+µi In this mode we have drop the intercept term αi. If we drop the intercept term αi we will not fall into perfect multicollinearity/the dummy variable trap because we have no longer the perfect collinearity. Comparing two regression lines in terms dummy variable approach Let us consider, pool all n1 and n2 observations together and estimating the following regressionYi= α1+ α2Di+ β1Xi+ β2DiXi +µi …………………….(i) Where, Yi and Xi are savings and income and Di = { 1 𝑓𝑜𝑟 𝑜𝑏𝑠𝑒𝑟𝑣𝑎𝑡𝑖𝑜𝑛 𝑖𝑛 𝑡ℎ𝑒 1𝑠𝑡 0 𝑓𝑜𝑟 𝑜𝑏𝑠𝑒𝑟𝑣𝑎𝑡𝑖𝑜𝑛 𝑖𝑛 𝑡ℎ𝑒 𝑛𝑒𝑥𝑡 To see the implication of model (i) and assuming that, E(µi)=0 we obtain E (Yi│Di=0; Xi) = αi+β1Xi ………….. (ii) E (Yi│Di=1; Xi) = (α1+ α2) + (β1+ β2)Xi……………… (iii)
  • 4. Let, α1 = γ1 β1 = γ 2 α1+ α2= λ1 β1+ β2= λ2 So the equation of (ii) and (iii) is, E (Yi│Di=0; Xi) = γ1+ γ2Xi…………….. (iv) E (Yi│Di=1; Xi) = λ1+ λ2Xi……………... (v) Therefore estimating equation (i) is equivalent to estimating the two individuals, Re-construction period and post-reconstruction period. Where in equation (i) α1 is the differential intercept term and α2 is the differential slope coefficient. Find out the aggregate saving income relationship has changed between the two periods. Let us consider two linear regression model are, Re-construction period Yi= λ1+ λ2Xi+ µ1i………………….(i) i=1,2,…,ni Post-construction period, Yi= γ1+ γ2Xi+ µ2i………………….(i) i=1,2,…,n2i where, Yi= savings X= income µ1i and µ2i are the disturbance term in the two regression model. Now regression model (i) and (ii) present the following four possibility 1) If λ1= γ1 and λ2= γ2 that means, the two regression model are identical then it is called coincident regression. Y λ2= γ2 λ1= γ1 X Income
  • 5. (a) Coincident 2) If λ1≠γ1 and λ2= γ2 that means the two regression differ only in their locations that means intercept then it is called parallel regression. Y λ2= γ2 λ2= γ2 γ1 λ1 X (b) Coincident 3) If λ1=γ1 and λ2≠ γ2 that means the two regression have same intercept different slopes. Then it is called concurrent regression Y γ2 λ2 λ1= γ1
  • 6. X (c) concurrent 4) If λ1≠γ1 and λ2≠ γ2 then the two regression equation are completely different that means the regression is called dissimilar regression. Y γ2 λ2 λ1 γ1 X (d) dissimilar Question: Suppose the college professor salary regression model defined asYi= α1+ α2D2i+ α3D3i + α4(D2iD3i)+BXi +µi Where Yi=annual salary of a college professor Xi= years of experience D2= 1 if male professor 0 if female professor D3= 1 if the professor is white or 0 otherwise Explain the terms (i) α2 (ii) α4 (iii) D2iD3i (v) What about the effect of female and non-white professor (vi) Find,
  • 7. E(Yi│D2=1, D3=1,Xi=10) and interpret it. Solution: 1. α2 is the differential effect of being male professor 2. α4 is the differential effect of male-white professor 3. D2iD3i be the interaction between two qualitative variables D2 and D3. It means non-white have lower mean salary i. e they are male or female. A female non-white may earn lower salary than a male non-white. So interaction may be expressed such kind of assumption which may be untrainable 4. The effect of female and non-white professor are the followingE(Yi│D2i=0, D3i=0)= α1+βXi 5. So it can be concluded that the mean salary depends on only the slope coefficient and the coefficient of years of experience. 6. E(Yi│D2=1, D3=1,Xi=10) So the mean salary of male and white professor is which is the mean salary of male and white professor when years of experience are 10 years.