Professional Documents
Culture Documents
Note KTL
Note KTL
- beta 0,1
- SSR
-
STATA
2 kinds of variables: quantitative and qualitative
- Quantitative variables: is a random variable that has value in number and the value
has the meaning in terms of algebra. It means that we can compare these values and
comparision has meaning.
Ex: educ: level of education
- Qualitative variables: is a random variable that has value in number but the value has
no meaning in term of algebra. It means that we can compare these values but te
comparison has no meaning.
- We have to transfer a qualitative variable into a dummy (zero-one, binary) variable.
- If a qualitative variable has n categories, then we can create n dummy variables. But
we can only include (n-1) dummy variables in the model. The cariable excluded out
of the model is considered as base group or benchmark variable to compare
- Ex: variable Male =1 if the obs is a male, =0 otherwise
variable Female =1 if the obs is a female, =0 otherwise
STEPS:
Step 1: Question of interest
Topic: Analyzing determinants of income of individuals in the USA
Choose Y and X
Y: wage
X: educ, exper, nonwhite…
Step 2:
Step 3:
Step 4:
Step 5: Estimate the model
- Econometrics model:linear regression model
- Method to estiamte coefficent: OLS
- Correlation matrix presents:
o Correlation betwwn Y and X -> r(Y,X): if r(Y,X) !=0 -> X has correlation
with Y -> we can inlcude X in the model
o Example:
r(wage,educ) =0,459>0 -> education has positive correlation with
wage -> educ should be included in the model
r(wage,nonwhite) = -0,0385<0 race has correlation with wage -> the
negative correlation coefficient implies that non white people tends to
have lower wage than white people (on average)
r(wage,female) = -0,3041<0 gender has correlation with wage -> the
negative correlation coefficient implies that female tendds to have
lowers wage than male on average
- Conclusion all the independen variables have the correlation with the dependent
variable -> we can include them in the model
Step 6:
- Topic 1: Analyze the imapct of foreign direcct investment on GDP growth of VN
o Y: GDP growth
o X: FDI
o X2, X3…Xk: Control variables
- Topic 2: Analyze the relationship between FDI and GDP growth of VN
o 1. GDP growth = f(FDI, Xi)
o 2. FDI = f(GDP growth, Xi)
- If we have 2 variables A and B and we want to see if A or B can be Y or X -> we
have to check the nature of A and B
o calculate the correlation coefficient of A and B -> r(A,B)
o if r(A,B) != 0 we can include A and B in the model
o if A correlates with B check if the correlation is causation or not
- If causation:
o result/consequence ->Y
o cause -> X
5. The sum of squares
SST