SlideShare ist ein Scribd-Unternehmen logo
1 von 33
Methods of Economic
                 Research
                      Lecture 14
                  Dummy Variables
           Presentation of regression results




3/2/2011                                        1
yi =   0   +   1   xi +   2   d1i + ui   i = 1,.....,n



               Teacher’s Pay
                                                             Slope = β1


                                                             Slope = β1



Starting salary for
males = β0 + 2
Starting salary for
females = β0

                                                                  Years of
                                                                  teaching
  • 2 categories/ groups : female and male                        experience, x
  • female is chosen as the base group (benchmark group), if observation is
  3/2/2011 d =0
  female 1i                                                                       2

  • The model is to have 2 intercepts:   and +
Dummy Variables
           (number of categories > 2)
 We may have a group of dummy variables
where the number of categories is greater
than two.
e.g: 4 seasons –
Spring, Summer, Autumn, Winter
4 age groups – 16-25, 26-40, 41-55, 56-64
years.
 different locations- urban, semi-rural, rural
3/2/2011                                      3
A General Principle for Including
 Dummies to Indicate Different Groups
• If the model is to have different intercepts for N
  categories

• N-1 dummy variables are needed.

• The dummy variable coefficient (e.g. 2 ) for a particular
  group (male group, d1i=1) represents the estimated
  difference in intercepts between that group (male) and
  the base group (female, d1i=0).

• The intercept ( 0 ) for the base group is the overall
    intercept for the model.
3/2/2011                                                      4
An example: Dummy Variables
             (number of categories > 2)
Assume we have a quarterly data containing
the following information:
Aggregate consumption of beer (y)
Personal disposable income (x)

We want to use the seasons together with
income x to explain the variations in y.

3/2/2011                                   5
Aggregate consumption of beer (y), on
personal disposable income (x), quarterly
data
Quarter                      y (pints)       x (ÂŁ)
1 Jan -Mar 2003
2 April – June 2003
3 July – Sept 2003
4 Oct – Dec 2003
1 Jan – Mar 2004
:
d1t = 1 if observation t is from the first quarter (JFM) 0 otherwise.
d2t= 1 if observation t is from the second quarter (AMJ) 0 otherwise.
d3t= 1 if observation t is from the third quarter (JAS) 0 otherwise.
d4t = 1 if observation t is from the fourth quarter (OND) 0 otherwise.



3/2/2011                                                                 6
Can we use 4 dummies to indicate 4 seasons?
yt = β0 + β1x1 + β2d1t + β3d2t + β4d3t + β5dt4 + ut

NO! We cannot estimate this model.

Let’s consider the four dummy variables and
assume that the first observation in the sample is
from the first quarter. The values taken by the four
dummy variables are shown in the following table.


3/2/2011                                              7
t d1t d2t d3t d4t    idit
                1 1 0 0 0            1
                2 0 1 0 0            1
                3 0 0 1 0            1
                4 0 0 0 1            1
                5 1 0 0 0            1
                6 0 1 0 0            1
                7 0 0 1 0            1
                8 0 0 0 1            1
                9 1 0 0 0            1
               10 0 1 0 0            1
                :  :   :   :   :     :


           d1t + d2t + d3t + dt4=1
3/2/2011                                    8
We cannot estimate this model
            because
• An assumption of the classical linear regression
  model: NO EXACT LINEAR RELATIONSHIP
  among any of the independent variable in the
  model.
• A necessary assumption for estimation of the
  parameters of the model.
• If there is an exact linear relationship, it is
  impossible to disentangle the separate
  influences of the different explanatory variables

3/2/2011                                              9
The Dummy Variable Trap
• In the case of using N dummies to indicate
N groups, perfect multicollinearity is
introduced.
• This is known as the “dummy variable
trap”, when too many dummies describe a
given number of groups.



3/2/2011                                   10
• The solution to the problem is to omit one
category.
• Does not matter which one to omit. The
omitted category is the base group.




3/2/2011                                       11
• Omit d1, the model becomes:
yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut


• Because we have omitted d1, quarter 1 becomes
the “base quarter”.
• β0 in the model is the intercept for quarter
1, overall intercept in the model.


3/2/2011                                      12
yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut
           Aggregate     Quarter 1, all these dummies = 0
           consumption
           of beer
           (pints), y




                                                 Aggregate
               0                                 personal
                                                 disposable
                                                 income, x
3/2/2011                                                      13
yt = β0 + β1x1 + β2d2t + β3d3t + β4d4t + ut
           Aggregate     Quarter 1, all these dummies = 0
           consumption
           of beer
           (pints), y




                                                 Aggregate
               0                                 personal
                                                 disposable
                                                 income, x
3/2/2011                                                      14
yt = β0 + β1x1 + β2d2t + β3d3t + β4d4t + ut
                     Aggregate       Quarter 1, all these dummies = 0
                     consumption
                     of beer
                     (pints), y




                                                           Slope = β1




Intercept for Q1 β0
                                                             Aggregate
Overall intercept of the model
                                 0                           personal
                                                             disposable
                                                             income, x
      3/2/2011                                                            15
yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut
                         Quarter 2, d2=1 but d3 and d4= 0
           Aggregate
           consumption
           of beer
           (pints), y




                                                 Slope = β1




               β0
                                                   Aggregate
               0                                   personal
                                                   disposable
                                                   income, x
3/2/2011                                                        16
yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut
                         = β2
                         Quarter 2, d2t=1 but d3t and dt4= 0
           Aggregate
           consumption
           of beer
           (pints), y




                                                   Slope = β1




               β0
                                                     Aggregate
               0                                     personal
                                                     disposable
                                                     income, x
3/2/2011                                                          17
yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut
                                = β2
                                Quarter 2, d2t=1 but d3t and dt4= 0
               Aggregate
               consumption
               of beer
               (pints), y


                                                          Slope = β1
                                                          Slope = β1




Intercept for Q2 β0 +       2

 Intercept for Q1 β0
                                                            Aggregate
                        0                                   personal
                                                            disposable
                                                            income, x
   3/2/2011                                                              18
yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut
                                           = β3
                              Quarter 3, d3t=1 but d2t and dt4= 0
                Aggregate
                consumption
                of beer
                (pints), y
                                                        Slope =β1


                                                        Slope = β1
                                                        Slope = β1

Intercept for Q3 β0 +     3

Intercept for Q2 β0 +   2

    Intercept for Q1 β0
                                                          Aggregate
                        0                                 personal
                                                          disposable
                                                          income, x
     3/2/2011                                                          19
yt = β0 + β1x1 + β2d2t + β3d3t + β4d4t + ut
                                                           = β4
                                 Quarter 4, d4t=1 but d2t and d4t= 0
                Aggregate
                consumption
                of beer                                    Slope =β1
                (pints), y                                 Slope =β1


                                                           Slope = β1
                                                           Slope = β1
 Intercept for Q4 β0 +       4

Intercept for Q3 β0 +     3

Intercept for Q2 β0 +    2

    Intercept for Q1 β0
                                                             Aggregate
                         0                                   personal
                                                             disposable
                                                             income, x
     3/2/2011                                                             20
Dummy variables – interpreting the
                 results
Example of how to interpret our results:
The aggregate consumption of beer in the
fourth quarter (OND) is estimated to be β4
pints higher (or lower) than in the first
quarter (JFM), ceteris paribus (everything
else remaining the same).



3/2/2011                                     21
Dummy variables – interpreting the
                 results
• It does not matter which of the four
dummies you leave out. This will affect the
parameter estimates, but not the position of
the regression lines. (Try to verify this in
seminar 7)
• You always compare the estimates of the
coefficients on the dummies you include with
the omitted category.

3/2/2011                                   22
yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut


We can test for the joint significance of the
“season” dummies using an F-test of:
     H 0: 2 = 3 = 4 = 0

           H1: H0 is not true.




3/2/2011                                            23
Important rule

With a set of dummy variables indicating category
(e.g. season, social class, occupational
class, marital status, region, postcode), always
omit one of them from the model to avoid the
problem of perfect multicollinearity (the “dummy
variable trap”).
The problem of perfect multicollinearity arises
because there is a perfect linear relationship
between the variables on the right hand side of the
model.
3/2/2011                                          24
It is incorrect to say that “the dummy
variables are perfectly correlated with each
other”; this is a common error.
The interpretations of coefficients on the
included dummies are made in comparison
to the omitted one.



3/2/2011                                       25
Presentation of Regression results

 When presenting regression results in a
 document, there are two possibilities. You can
 present a table similar to the results table in
 PASW.
                                                             a
                                                   Coefficients

                         Unstandardized        Standardized
                           Coefficients        Coefficients                         95% Confidence Interval for B
Model                   B         Std. Error      Beta            t       Sig.     Lower Bound Upper Bound
1       (Constant)      18.500        9.086                       2.036     .088        -3.732         40.732
        X                 .140**        .030          .882        4.590     .004          .065           .215
  a. Dependent Variable: Y




 3/2/2011                                                                                                    26
• Alternatively, you can present an equation, with
standard errors and t-statistics appearing in
brackets underneath the coefficients.
• When there are just a few variables, this second
method is more appropriate.
            ˆ
           Y 18.500 0.140 X
           (se) (9.086) (0.030)
           (t ) (2.036) (4.590)
** Indicates strong significance
  (p-value<0.01)


3/2/2011                                             27
You can also edit the results table in PASW
– therefore, you can add the stars (**) as
appropriate.




3/2/2011                                      28
p-value of a hypothesis test
When we conduct a t-test, we look at the t-
statistic (t-ratio) and compare it with a critical
value from our tables df=n-k-1. This tells us
whether to reject the null hypothesis or not.
If we reject H0, it is also useful to know how
strong is the evidence against H0.



3/2/2011                                         29
p-value of a hypothesis test
Definition: The p-value of a test is the
probability of obtaining a more extreme
value than the one we have actually
obtained, if H0 is true.
The smaller the p-value – the stronger the
evidence against H0.



3/2/2011                                     30
p-value of a hypothesis test
• If p-value < 0.01, there is strong evidence
against H0 (**).
• If p-value < 0.05, there is evidence against
H0 (*).
• If p-value < 0.10, there is mild evidence
against H0.
• If p-value > 0.10, we do not have evidence
to reject H0.
3/2/2011                                     31
Conclusions from hypothesis tests
         – correct wording
Correct                Incorrect

X has a significant    β1 has a significant
effect on Y.           effect on Y.
 ˆ
 β1 is significantly   β1 is significantly
different from zero    different from zero.

 ˆ
 β1 is significantly   β1 is positive.
positive.
3/2/2011                                      32
Further point – there is evidence
that………….
Eg. Remember to say:
• There is evidence that food is a normal
good.
  Don’t say – Food is a normal good.
• When p-value > 0.10, we do not have
enough evidence to reject the H0 . Or, we do
not reject the H0.
Don’t say – We accept H0.
3/2/2011                                   33

Weitere ähnliche Inhalte

KĂźrzlich hochgeladen

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 

KĂźrzlich hochgeladen (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

14 dummy

  • 1. Methods of Economic Research Lecture 14 Dummy Variables Presentation of regression results 3/2/2011 1
  • 2. yi = 0 + 1 xi + 2 d1i + ui i = 1,.....,n Teacher’s Pay Slope = β1 Slope = β1 Starting salary for males = β0 + 2 Starting salary for females = β0 Years of teaching • 2 categories/ groups : female and male experience, x • female is chosen as the base group (benchmark group), if observation is 3/2/2011 d =0 female 1i 2 • The model is to have 2 intercepts: and +
  • 3. Dummy Variables (number of categories > 2)  We may have a group of dummy variables where the number of categories is greater than two. e.g: 4 seasons – Spring, Summer, Autumn, Winter 4 age groups – 16-25, 26-40, 41-55, 56-64 years.  different locations- urban, semi-rural, rural 3/2/2011 3
  • 4. A General Principle for Including Dummies to Indicate Different Groups • If the model is to have different intercepts for N categories • N-1 dummy variables are needed. • The dummy variable coefficient (e.g. 2 ) for a particular group (male group, d1i=1) represents the estimated difference in intercepts between that group (male) and the base group (female, d1i=0). • The intercept ( 0 ) for the base group is the overall intercept for the model. 3/2/2011 4
  • 5. An example: Dummy Variables (number of categories > 2) Assume we have a quarterly data containing the following information: Aggregate consumption of beer (y) Personal disposable income (x) We want to use the seasons together with income x to explain the variations in y. 3/2/2011 5
  • 6. Aggregate consumption of beer (y), on personal disposable income (x), quarterly data Quarter y (pints) x (ÂŁ) 1 Jan -Mar 2003 2 April – June 2003 3 July – Sept 2003 4 Oct – Dec 2003 1 Jan – Mar 2004 : d1t = 1 if observation t is from the first quarter (JFM) 0 otherwise. d2t= 1 if observation t is from the second quarter (AMJ) 0 otherwise. d3t= 1 if observation t is from the third quarter (JAS) 0 otherwise. d4t = 1 if observation t is from the fourth quarter (OND) 0 otherwise. 3/2/2011 6
  • 7. Can we use 4 dummies to indicate 4 seasons? yt = β0 + β1x1 + β2d1t + β3d2t + β4d3t + β5dt4 + ut NO! We cannot estimate this model. Let’s consider the four dummy variables and assume that the first observation in the sample is from the first quarter. The values taken by the four dummy variables are shown in the following table. 3/2/2011 7
  • 8. t d1t d2t d3t d4t idit 1 1 0 0 0 1 2 0 1 0 0 1 3 0 0 1 0 1 4 0 0 0 1 1 5 1 0 0 0 1 6 0 1 0 0 1 7 0 0 1 0 1 8 0 0 0 1 1 9 1 0 0 0 1 10 0 1 0 0 1 : : : : : : d1t + d2t + d3t + dt4=1 3/2/2011 8
  • 9. We cannot estimate this model because • An assumption of the classical linear regression model: NO EXACT LINEAR RELATIONSHIP among any of the independent variable in the model. • A necessary assumption for estimation of the parameters of the model. • If there is an exact linear relationship, it is impossible to disentangle the separate influences of the different explanatory variables 3/2/2011 9
  • 10. The Dummy Variable Trap • In the case of using N dummies to indicate N groups, perfect multicollinearity is introduced. • This is known as the “dummy variable trap”, when too many dummies describe a given number of groups. 3/2/2011 10
  • 11. • The solution to the problem is to omit one category. • Does not matter which one to omit. The omitted category is the base group. 3/2/2011 11
  • 12. • Omit d1, the model becomes: yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut • Because we have omitted d1, quarter 1 becomes the “base quarter”. • β0 in the model is the intercept for quarter 1, overall intercept in the model. 3/2/2011 12
  • 13. yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut Aggregate Quarter 1, all these dummies = 0 consumption of beer (pints), y Aggregate 0 personal disposable income, x 3/2/2011 13
  • 14. yt = β0 + β1x1 + β2d2t + β3d3t + β4d4t + ut Aggregate Quarter 1, all these dummies = 0 consumption of beer (pints), y Aggregate 0 personal disposable income, x 3/2/2011 14
  • 15. yt = β0 + β1x1 + β2d2t + β3d3t + β4d4t + ut Aggregate Quarter 1, all these dummies = 0 consumption of beer (pints), y Slope = β1 Intercept for Q1 β0 Aggregate Overall intercept of the model 0 personal disposable income, x 3/2/2011 15
  • 16. yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut Quarter 2, d2=1 but d3 and d4= 0 Aggregate consumption of beer (pints), y Slope = β1 β0 Aggregate 0 personal disposable income, x 3/2/2011 16
  • 17. yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut = β2 Quarter 2, d2t=1 but d3t and dt4= 0 Aggregate consumption of beer (pints), y Slope = β1 β0 Aggregate 0 personal disposable income, x 3/2/2011 17
  • 18. yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut = β2 Quarter 2, d2t=1 but d3t and dt4= 0 Aggregate consumption of beer (pints), y Slope = β1 Slope = β1 Intercept for Q2 β0 + 2 Intercept for Q1 β0 Aggregate 0 personal disposable income, x 3/2/2011 18
  • 19. yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut = β3 Quarter 3, d3t=1 but d2t and dt4= 0 Aggregate consumption of beer (pints), y Slope =β1 Slope = β1 Slope = β1 Intercept for Q3 β0 + 3 Intercept for Q2 β0 + 2 Intercept for Q1 β0 Aggregate 0 personal disposable income, x 3/2/2011 19
  • 20. yt = β0 + β1x1 + β2d2t + β3d3t + β4d4t + ut = β4 Quarter 4, d4t=1 but d2t and d4t= 0 Aggregate consumption of beer Slope =β1 (pints), y Slope =β1 Slope = β1 Slope = β1 Intercept for Q4 β0 + 4 Intercept for Q3 β0 + 3 Intercept for Q2 β0 + 2 Intercept for Q1 β0 Aggregate 0 personal disposable income, x 3/2/2011 20
  • 21. Dummy variables – interpreting the results Example of how to interpret our results: The aggregate consumption of beer in the fourth quarter (OND) is estimated to be β4 pints higher (or lower) than in the first quarter (JFM), ceteris paribus (everything else remaining the same). 3/2/2011 21
  • 22. Dummy variables – interpreting the results • It does not matter which of the four dummies you leave out. This will affect the parameter estimates, but not the position of the regression lines. (Try to verify this in seminar 7) • You always compare the estimates of the coefficients on the dummies you include with the omitted category. 3/2/2011 22
  • 23. yt = β0 + β1x1 + β2d2t + β3d3t + β4dt4 + ut We can test for the joint significance of the “season” dummies using an F-test of: H 0: 2 = 3 = 4 = 0 H1: H0 is not true. 3/2/2011 23
  • 24. Important rule With a set of dummy variables indicating category (e.g. season, social class, occupational class, marital status, region, postcode), always omit one of them from the model to avoid the problem of perfect multicollinearity (the “dummy variable trap”). The problem of perfect multicollinearity arises because there is a perfect linear relationship between the variables on the right hand side of the model. 3/2/2011 24
  • 25. It is incorrect to say that “the dummy variables are perfectly correlated with each other”; this is a common error. The interpretations of coefficients on the included dummies are made in comparison to the omitted one. 3/2/2011 25
  • 26. Presentation of Regression results When presenting regression results in a document, there are two possibilities. You can present a table similar to the results table in PASW. a Coefficients Unstandardized Standardized Coefficients Coefficients 95% Confidence Interval for B Model B Std. Error Beta t Sig. Lower Bound Upper Bound 1 (Constant) 18.500 9.086 2.036 .088 -3.732 40.732 X .140** .030 .882 4.590 .004 .065 .215 a. Dependent Variable: Y 3/2/2011 26
  • 27. • Alternatively, you can present an equation, with standard errors and t-statistics appearing in brackets underneath the coefficients. • When there are just a few variables, this second method is more appropriate. ˆ Y 18.500 0.140 X (se) (9.086) (0.030) (t ) (2.036) (4.590) ** Indicates strong significance (p-value<0.01) 3/2/2011 27
  • 28. You can also edit the results table in PASW – therefore, you can add the stars (**) as appropriate. 3/2/2011 28
  • 29. p-value of a hypothesis test When we conduct a t-test, we look at the t- statistic (t-ratio) and compare it with a critical value from our tables df=n-k-1. This tells us whether to reject the null hypothesis or not. If we reject H0, it is also useful to know how strong is the evidence against H0. 3/2/2011 29
  • 30. p-value of a hypothesis test Definition: The p-value of a test is the probability of obtaining a more extreme value than the one we have actually obtained, if H0 is true. The smaller the p-value – the stronger the evidence against H0. 3/2/2011 30
  • 31. p-value of a hypothesis test • If p-value < 0.01, there is strong evidence against H0 (**). • If p-value < 0.05, there is evidence against H0 (*). • If p-value < 0.10, there is mild evidence against H0. • If p-value > 0.10, we do not have evidence to reject H0. 3/2/2011 31
  • 32. Conclusions from hypothesis tests – correct wording Correct Incorrect X has a significant β1 has a significant effect on Y. effect on Y. ˆ β1 is significantly β1 is significantly different from zero different from zero. ˆ β1 is significantly β1 is positive. positive. 3/2/2011 32
  • 33. Further point – there is evidence that…………. Eg. Remember to say: • There is evidence that food is a normal good. Don’t say – Food is a normal good. • When p-value > 0.10, we do not have enough evidence to reject the H0 . Or, we do not reject the H0. Don’t say – We accept H0. 3/2/2011 33