(c) Pongsa Pornchaiwiseskul, Faculty of Economics, Chulalongkorn University

Similar documents
Interpreting Slope Coefficients in Multiple Linear Regression Models: An Example

Linear Regression Analysis: Terminology and Notation

Properties of Least Squares

Chapter 2 - The Simple Linear Regression Model S =0. e i is a random error. S β2 β. This is a minimization problem. Solution is a calculus exercise.

e i is a random error

ECONOMICS 351*-A Mid-Term Exam -- Fall Term 2000 Page 1 of 13 pages. QUEEN'S UNIVERSITY AT KINGSTON Department of Economics

Introduction to Dummy Variable Regressors. 1. An Example of Dummy Variable Regressors

Marginal Effects in Probit Models: Interpretation and Testing. 1. Interpreting Probit Coefficients

Econ Statistical Properties of the OLS estimator. Sanjaya DeSilva

Polynomial Regression Models

Module Contact: Dr Susan Long, ECO Copyright of the University of East Anglia Version 1

Tests of Exclusion Restrictions on Regression Coefficients: Formulation and Interpretation

Chapter 8 Indicator Variables

Econ107 Applied Econometrics Topic 3: Classical Model (Studenmund, Chapter 4)

The Multiple Classical Linear Regression Model (CLRM): Specification and Assumptions. 1. Introduction

Lecture Notes for STATISTICAL METHODS FOR BUSINESS II BMGT 212. Chapters 14, 15 & 16. Professor Ahmadi, Ph.D. Department of Management

x i1 =1 for all i (the constant ).

GMM Method (Single-equation) Pongsa Pornchaiwiseskul Faculty of Economics Chulalongkorn University

a. (All your answers should be in the letter!

1. Inference on Regression Parameters a. Finding Mean, s.d and covariance amongst estimates. 2. Confidence Intervals and Working Hotelling Bands

Dummy variables in multiple variable regression model

β0 + β1xi. You are interested in estimating the unknown parameters β

Chapter 13: Multiple Regression

Statistics for Business and Economics

Basically, if you have a dummy dependent variable you will be estimating a probability.

Midterm Examination. Regression and Forecasting Models

Lecture Notes on Linear Regression

ECON 351* -- Note 23: Tests for Coefficient Differences: Examples Introduction. Sample data: A random sample of 534 paid employees.

β0 + β1xi. You are interested in estimating the unknown parameters β

STAT 405 BIOSTATISTICS (Fall 2016) Handout 15 Introduction to Logistic Regression

Topic 5: Non-Linear Regression

Economics 130. Lecture 4 Simple Linear Regression Continued

Chapter 11: Simple Linear Regression and Correlation

PBAF 528 Week Theory Is the variable s place in the equation certain and theoretically sound? Most important! 2. T-test

University of California at Berkeley Fall Introductory Applied Econometrics Final examination

Statistics for Managers Using Microsoft Excel/SPSS Chapter 13 The Simple Linear Regression Model and Correlation

STAT 3340 Assignment 1 solutions. 1. Find the equation of the line which passes through the points (1,1) and (4,5).

Hydrological statistics. Hydrological statistics and extremes

since [1-( 0+ 1x1i+ 2x2 i)] [ 0+ 1x1i+ assumed to be a reasonable approximation

BIO Lab 2: TWO-LEVEL NORMAL MODELS with school children popularity data

Interval Estimation in the Classical Normal Linear Regression Model. 1. Introduction

The Ordinary Least Squares (OLS) Estimator

See Book Chapter 11 2 nd Edition (Chapter 10 1 st Edition)

Chapter 3 Describing Data Using Numerical Measures

Statistics for Managers Using Microsoft Excel/SPSS Chapter 14 Multiple Regression Models

The Geometry of Logit and Probit

Interval Regression with Sample Selection

Systems of Equations (SUR, GMM, and 3SLS)

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results.

Lecture 4 Hypothesis Testing

CHAPTER 8. Exercise Solutions

Limited Dependent Variables

Reminder: Nested models. Lecture 9: Interactions, Quadratic terms and Splines. Effect Modification. Model 1

Lecture 6: Introduction to Linear Regression

ECONOMETRICS - FINAL EXAM, 3rd YEAR (GECO & GADE)

Numerical Solution of Ordinary Differential Equations

Marginal Effects of Explanatory Variables: Constant or Variable? 1. Constant Marginal Effects of Explanatory Variables: A Starting Point

Outline. Zero Conditional mean. I. Motivation. 3. Multiple Regression Analysis: Estimation. Read Wooldridge (2013), Chapter 3.

Lecture 3 Specification

Now we relax this assumption and allow that the error variance depends on the independent variables, i.e., heteroskedasticity

STAT 3008 Applied Regression Analysis

3/3/2014. CDS M Phil Econometrics. Vijayamohanan Pillai N. CDS Mphil Econometrics Vijayamohan. 3-Mar-14. CDS M Phil Econometrics.

January Examinations 2015

Lab 4: Two-level Random Intercept Model

Statistics for Economics & Business

MATH 5707 HOMEWORK 4 SOLUTIONS 2. 2 i 2p i E(X i ) + E(Xi 2 ) ä i=1. i=1

LOGIT ANALYSIS. A.K. VASISHT Indian Agricultural Statistics Research Institute, Library Avenue, New Delhi

Y = β 0 + β 1 X 1 + β 2 X β k X k + ε

MLE and Bayesian Estimation. Jie Tang Department of Computer Science & Technology Tsinghua University 2012

Andreas C. Drichoutis Agriculural University of Athens. Abstract

Generalized Linear Methods

Statistics MINITAB - Lab 2

Maximum Likelihood Estimation of Binary Dependent Variables Models: Probit and Logit. 1. General Formulation of Binary Dependent Variables Models

DO NOT OPEN THE QUESTION PAPER UNTIL INSTRUCTED TO DO SO BY THE CHIEF INVIGILATOR. Introductory Econometrics 1 hour 30 minutes

4.3 Poisson Regression

9. Binary Dependent Variables

Linear regression. Regression Models. Chapter 11 Student Lecture Notes Regression Analysis is the

Department of Quantitative Methods & Information Systems. Time Series and Their Components QMIS 320. Chapter 6

Chapter 7 Generalized and Weighted Least Squares Estimation. In this method, the deviation between the observed and expected values of

Report on Image warping

Using T.O.M to Estimate Parameter of distributions that have not Single Exponential Family

ECONOMICS 351* -- Stata 10 Tutorial 6. Stata 10 Tutorial 6

CIS526: Machine Learning Lecture 3 (Sept 16, 2003) Linear Regression. Preparation help: Xiaoying Huang. x 1 θ 1 output... θ M x M

Chapter 20 Duration Analysis

POWER AND SIZE OF NORMAL DISTRIBUTION AND ITS APPLICATIONS

Introduction to Regression

Basic R Programming: Exercises

Correlation and Regression

Resource Allocation and Decision Analysis (ECON 8010) Spring 2014 Foundations of Regression Analysis

Introduction to Analysis of Variance (ANOVA) Part 1

[The following data appear in Wooldridge Q2.3.] The table below contains the ACT score and college GPA for eight college students.

MMA and GCMMA two methods for nonlinear optimization

Chapter 6. Supplemental Text Material

Representation Theorem for Convex Nonparametric Least Squares. Timo Kuosmanen

AS-Level Maths: Statistics 1 for Edexcel

Lecture 12: Discrete Laplacian

F8: Heteroscedasticity

Basic Business Statistics, 10/e

Lecture 13 APPROXIMATION OF SECOMD ORDER DERIVATIVES

LINEAR REGRESSION ANALYSIS. MODULE VIII Lecture Indicator Variables

Transcription:

Transform a bnary qualtatve varable (wth non-numercal values) to a dummy varable. For example, GENDER = f the observaton s male = f t s female (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty Note that ) the settng s arbtrary. owever, t should make the nterpretaton smple. ) In general, zero wll be gven to the reference case. In the example, female s treated as reference. (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty

Example Expendture functon Male EXP = + β Female : β γ, β β INC + ε EXP = γ + γ INC + ε : β = γ, β = γ Do male and female share the same mean equaton? γ (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 3 Integrate the expendture functons. Defne a dummy varable MALE= for male EXP = β MALE + γ ( MALE + β MALE INC + γ ( MALE ) INC + ε ) (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 4

Integrate the two data sets. EXP MALE -MALE MALE*INC (-MALE)*INC Male Male... Y EXP Female EXP INC Female.... INC (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 5 Run OLS on the ntegrated data Number of parameters (K) = 4 degrees of freedom = n M + n F - 4 where n M and n F are sample sze of the male and female samples, respectvely Do Generalzed F-test wth F cal ~ F(, n M + n F - 4) (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 6

RLS or Wald test s OK. Accept => male and female share the same ntercept and the same slope n the expendture functon Chow Test s equvalent to the two-run generalzed F-test (RLS) (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 7 Chow Test (cont d) F cal SSR ( SSRM + SSRF ) nm + n 4 SSR + SSR T F = M ~ F(, n M n 4) + F where SSR M and SSR F are the sum of squared resduals from the tow separate runs and SSR T s generated from OLS run on the stacked data set F (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 8

Stacked data set EXP INC Male Male. Y EXP Female EXP INC Female.. INC (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 9 Chow Test (cont d) Note that SSR M +SSR F s the same as SSR of the unrestrcted model and SSR T s the SSR of the restrcted model. It s referred to as Chow s Breakpont test n Evews. (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty

Partal Chow Test Case the slopes are dentcal. Only the ntercept could be dfferent EXP F β γ β INC + ε = MALE + ( MALE ) + cal : β = γ : β γ M + n F ~ F(, n 3) (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty Partal Chow Test Case the ntercepts are dentcal. Only the slope could be dfferent EXP = β + βmale INC + γ ( MALE ) + ε : β = γ : β γ F ~ F(, n n 3) cal M + F (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty

Expendture also depends on Provnce they lve. Defne BKK= f the observaton s n Bangkok. Otherwse, BKK=. Unrestrcted Model EXP = αmalebkk + βmale ( BKK ) +γ ( ) BKK +δ( MALE )( BKK ) + α MALE INC+ γ ( MALE ) INC+ ε (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 3 Assumpton The slope depends only on the gender not locaton but the ntercept could depend on both gender and provnce. Test f nether gender nor provnce has no effect on the expendture. : α = β = γ : α β γ = δ, α δ, α (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty = γ γ 4

Restrcted Model EXP = α + α INC + ε Do F-test usng F cal ~ F(4, n n 6) M + F (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 5 So far, the above settng of dummy varables s of swtchng type. A dummy varable s used to select the approprate parameter for each observaton. Another settng s ncremental type. (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 6

Example Expendture Functon EXP =γ + δmale γ INC + δ MALE INC + ε + Note that γ,γ are the ntercept and slope for female δ s the ntercept devaton for male δ s the slope devaton for male (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 7 Examples Color: RED, BLUE, GREEN Day-of-Week: Mo,Tu,We,Th,Fr Queston Prce volatlty of a certan day depends on whether t s a week-begnnng day, a md-week day or a week-endng day. (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 8

Defne STD = f the day s a week-startng day =, otherwse. MID= f t s a md-week day =, otherwse. END= f t s a week-endng day =, otherwse. Note that STD+MID+END= always and one of the dummes could be elmnated (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 9 Swtchng Settng VOL = β STD + β + γ MID + γ + END + δ STD MID VAL VAL δ END VAL + ε Note that β, γ, δ are the ntercepts for each day category β, γ /, δ are the slopes for each day category (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty

Incremental Settng VOL = β STD + β + γ + γ STD (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty VAL VAL δ END + δ END VAL + ε + Note that β +γ, γ, δ +γ are the ntercepts for each category β +γ, γ /, δ +γ are the slopes for each category Md-week s used as the reference To test that there s no dfference between categores (F-test or Ch-square test) Swtchng Settng : β = γ = δ, β Incremental Settng : β γ δ, β : β = δ = : β δ, β, β = γ = δ γ δ = δ = δ (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty

F cal ~ F(4, n n + n 6) STD + MID END where n = nstd+ nmid+ nend Chow Test for Swtchng Settng F cal = SSRT ( SSRSTD + SSRMID+ SSREND ) n 6 SSR + SSR + SSR 4 STD MID END where SSR STD, SSR MID and SSR END are SSR from separate runs and SSR T s SSR from the stacked data (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 3 Condtonal mean of Y s a pecewse lnear functon of X Two knks take place at X=a and X=a E(Y x) a a (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty x 4

Swtchng Settng Defne D = f X<a =, otherwse. D = f a < X< a =, otherwse. D = f X> a =, otherwse. (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 5 Swtchng Settng Y =β D + β X D + ( β + β a) D + β 3( X a) D + { β + β a+ β 3( a a)} D + β 4 ( X a ) D + ε β s the ntercept β,β 3,β 4 are the slope of each secton (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 6

Re-arrange Y =β( D + D + D ) 44 443 X ( X D + ad + ad +β ) 4444444 3 X +β3{( X a ) D + ( a a ) D} 44444444 3 + β 4 ( X a ) D + ε 443 X X 4 (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 3 7 Incremental Settng Defne D = f X>a =, otherwse. D = f X> a =, otherwse. (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 8

Incremental Settng (more smple) Y =β + β X +δ ( X a) D + ( X a) D δ + ε β s the ntercept β s the slope of the frst secton δ,δ are the ncremental of the slope (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 9 To test whether the functon s sngle pece (slope s constant for all X) Swtchng Settng Incremental Settng : β = β = β 3 : β β β 3 : δ = δ = : δ δ 4 4 (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 3

Non-lnear Approxmaton to a Pecewse Lnear Model () In general, the locatons of knks (a,a ) are unknown. ow can we estmate them? Logstc Transformaton of dummy varables for Incremental Settng Approx. contnuous functon of X for D s + e M ( X a ) f M s a large postve value (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 3 Non-lnear Approxmaton to a Pecewse Lnear Model () D.5 a x (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 3

Non-lnear Approxmaton to a Pecewse Lnear Model (3) Approx. non-lnear regresson Y X a = β + β X + δ + e X a δ +ε M ( X a ) + e M ( X a ) + Apply Non-lnear LS. Another approx. s a polynomal regresson. (c) Pongsa Pornchawseskul, Faculty of Economcs, Chulalongkorn Unversty 33