Introduction to Econometrics

advertisement
Introduction to Econometrics
Ivan Medovikov
Brock University
September 6, 2012
Ivan Medovikov, Brock University
Introduction to Econometrics
1/25
Course Outline
Required Textbook
I
Gujarati, D., ”Basic Econometrics”, 5th ed., McGraw, 2008.
Ivan Medovikov, Brock University
Introduction to Econometrics
2/25
Course Outline
Custom Edition
I
Much more affordable custom edition at the Book store
Ivan Medovikov, Brock University
Introduction to Econometrics
3/25
Course Outline
Course Web-Site
I
Isaak / Sakai (https://lms.brocku.ca/)
Ivan Medovikov, Brock University
Introduction to Econometrics
4/25
Course Outline
Course Web-Site
I
Isaak / Sakai (https://lms.brocku.ca/)
I
Assignments
I
Some course materials (notes, examples)
I
Important dates and updates
Ivan Medovikov, Brock University
Introduction to Econometrics
4/25
Course Outline
Course Web-Site
I
Isaak / Sakai (https://lms.brocku.ca/)
I
Assignments
I
Some course materials (notes, examples)
I
Important dates and updates
I
Full outline on Sakai
Ivan Medovikov, Brock University
Introduction to Econometrics
4/25
Course Outline
Labs
I
Lab 1: Mondays, 5:00-7:00 pm (MCJ 201)
I
Lab 2: Thursdays, 8:00-10:00 pm (MCJ 201)
I
Please attend the correct lab
Ivan Medovikov, Brock University
Introduction to Econometrics
5/25
Course Outline
Labs
I
Lab 1: Mondays, 5:00-7:00 pm (MCJ 201)
I
Lab 2: Thursdays, 8:00-10:00 pm (MCJ 201)
I
Please attend the correct lab
I
No lab today
Ivan Medovikov, Brock University
Introduction to Econometrics
5/25
Course Outline
Required Software
I
Gnu Regression, Econometrics and Time-series Library
(GRETL)
I
Cross-platform, open-source, free
I
http://gretl.sourceforge.net/
Ivan Medovikov, Brock University
Introduction to Econometrics
6/25
Course Outline
Evaluation
Midterm I
Midterm II
Final
Assignments
Ivan Medovikov, Brock University
25%
25%
30%
20%
Introduction to Econometrics
7/25
Course Outline
Evaluation
Midterm I
Midterm II
Final
Assignments
25%
25%
30%
20%
Midterm I: October 1st (in-class, tentative)
Ivan Medovikov, Brock University
Introduction to Econometrics
7/25
Course Outline
Office Hours
I
Office: Plaza Building, Room 429
I
Office hours: Mondays, Tuesdays, 11:00 am to 12:30 pm
I
Or by appointment
Ivan Medovikov, Brock University
Introduction to Econometrics
8/25
Course Outline
Teaching Assistant
I
Jamie Jiang
I
Email: course web-site
I
Office Hours: TBA
Course Drop Deadline
I
November 2, 2012
Ivan Medovikov, Brock University
Introduction to Econometrics
9/25
Introduction
What is econometrics? (and why bother?)
I Econometrics = using mathematical statistics to
I
understand data
Ivan Medovikov, Brock University
Introduction to Econometrics
10/25
Introduction
What is econometrics? (and why bother?)
I Econometrics = using mathematical statistics to
I
I
understand data
test hypotheses
Ivan Medovikov, Brock University
Introduction to Econometrics
10/25
Introduction
What is econometrics? (and why bother?)
I Econometrics = using mathematical statistics to
I
I
I
understand data
test hypotheses
predict data
Ivan Medovikov, Brock University
Introduction to Econometrics
10/25
Introduction
What is econometrics? (and why bother?)
I Econometrics = using mathematical statistics to
I
I
I
I
understand data
test hypotheses
predict data
Why bother?
Ivan Medovikov, Brock University
Introduction to Econometrics
10/25
Introduction
What is econometrics? (and why bother?)
I Econometrics = using mathematical statistics to
I
I
I
I
understand data
test hypotheses
predict data
Why bother?
I
Data can be very valuable
Ivan Medovikov, Brock University
Introduction to Econometrics
10/25
Introduction
What is econometrics? (and why bother?)
I Econometrics = using mathematical statistics to
I
I
I
I
understand data
test hypotheses
predict data
Why bother?
I
I
Data can be very valuable
Making good decisions
Ivan Medovikov, Brock University
Introduction to Econometrics
10/25
Introduction
economic data → ECONOMETRICS → answers, decisions
Ivan Medovikov, Brock University
Introduction to Econometrics
11/25
Review of Basic Statistics
Review of Probability
I
What is conditional expectation?
I
What is a regression?
Ivan Medovikov, Brock University
Introduction to Econometrics
12/25
Review of Basic Statistics
What is a Random Event?
I
Consider a random experiment: toss coin two times
Ivan Medovikov, Brock University
Introduction to Econometrics
13/25
Review of Basic Statistics
What is a Random Event?
I
I
Consider a random experiment: toss coin two times
Four possible outcomes (if you don’t loose it):
Ivan Medovikov, Brock University
Introduction to Econometrics
13/25
Review of Basic Statistics
What is a Random Event?
I
I
Consider a random experiment: toss coin two times
Four possible outcomes (if you don’t loose it):
I
HH
Ivan Medovikov, Brock University
Introduction to Econometrics
13/25
Review of Basic Statistics
What is a Random Event?
I
I
Consider a random experiment: toss coin two times
Four possible outcomes (if you don’t loose it):
I
I
HH
HT
Ivan Medovikov, Brock University
Introduction to Econometrics
13/25
Review of Basic Statistics
What is a Random Event?
I
I
Consider a random experiment: toss coin two times
Four possible outcomes (if you don’t loose it):
I
I
I
HH
HT
TH
Ivan Medovikov, Brock University
Introduction to Econometrics
13/25
Review of Basic Statistics
What is a Random Event?
I
I
Consider a random experiment: toss coin two times
Four possible outcomes (if you don’t loose it):
I
I
I
I
HH
HT
TH
TT
Ivan Medovikov, Brock University
Introduction to Econometrics
13/25
Review of Basic Statistics
What is a Random Event?
I
The set S = {HH, HT , TH, TT } of all possibilities is the
outcome space
Ivan Medovikov, Brock University
Introduction to Econometrics
14/25
Review of Basic Statistics
What is a Random Event?
I
The set S = {HH, HT , TH, TT } of all possibilities is the
outcome space
I
A subset of some possibilities is a random event
For example:
I
Ivan Medovikov, Brock University
Introduction to Econometrics
14/25
Review of Basic Statistics
What is a Random Event?
I
The set S = {HH, HT , TH, TT } of all possibilities is the
outcome space
I
A subset of some possibilities is a random event
For example:
I
I
”Getting exactly one tail” = A = {HT , TH}
Ivan Medovikov, Brock University
Introduction to Econometrics
14/25
Review of Basic Statistics
What is a Random Event?
I
The set S = {HH, HT , TH, TT } of all possibilities is the
outcome space
I
A subset of some possibilities is a random event
For example:
I
I
I
”Getting exactly one tail” = A = {HT , TH}
”Getting at least one tail” = B = {HT , TH, TT }
Ivan Medovikov, Brock University
Introduction to Econometrics
14/25
Review of Basic Statistics
What is a Random Event?
I
The set S = {HH, HT , TH, TT } of all possibilities is the
outcome space
I
A subset of some possibilities is a random event
For example:
I
I
I
I
”Getting exactly one tail” = A = {HT , TH}
”Getting at least one tail” = B = {HT , TH, TT }
”Getting two heads” = C = {HH}
Ivan Medovikov, Brock University
Introduction to Econometrics
14/25
Review of Basic Statistics
What is Probability?
I
The likelihood of occurrence
Ivan Medovikov, Brock University
Introduction to Econometrics
15/25
Review of Basic Statistics
What is Probability?
I
The likelihood of occurrence
I
We can attach probabilities to events using the relative
frequency approach
probability of event =
Ivan Medovikov, Brock University
#of ways it can occur
total # of possible outcomes
Introduction to Econometrics
15/25
Review of Basic Statistics
What is Probability?
I For example:
{HT ,TH}
2
1
{HT ,TH,TT ,HH} = 4 = 2
{HT ,TH,TT }
3
at least one tail”) = P(B) = {HT
,TH,TT ,HH} = 4
{HH}
1
two heads”) = P(C ) = {HT ,TH,TT
,HH} = 4
I
P(”getting one tail”) = P(A) =
I
P(”getting
I
P(”getting
Ivan Medovikov, Brock University
Introduction to Econometrics
16/25
Review of Basic Statistics
What is a Random Variable?
I
A random variable is a variable which value is determined by
the outcome of a random experiment
Ivan Medovikov, Brock University
Introduction to Econometrics
17/25
Review of Basic Statistics
What is a Random Variable?
I
A random variable is a variable which value is determined by
the outcome of a random experiment
I
For example, let Y = # of tails in our experiment. Then,
Ivan Medovikov, Brock University
Introduction to Econometrics
17/25
Review of Basic Statistics
What is a Random Variable?
I
A random variable is a variable which value is determined by
the outcome of a random experiment
I
For example, let Y = # of tails in our experiment. Then,


0 , if {HH}
Y = 1 , if {TH, HT }


2 , if {TT }
Ivan Medovikov, Brock University
Introduction to Econometrics
17/25
Review of Basic Statistics
Probability of Random Outcomes
I
Can assign probabilities to values of Y
Ivan Medovikov, Brock University
Introduction to Econometrics
18/25
Review of Basic Statistics
Probability of Random Outcomes
I
Can assign probabilities to values of Y
I
P(Y = 0) = P({HH}) = 1/4
Ivan Medovikov, Brock University
Introduction to Econometrics
18/25
Review of Basic Statistics
Probability of Random Outcomes
I
Can assign probabilities to values of Y
I
P(Y = 0) = P({HH}) = 1/4
I
P(Y = 1) = P({TH, HT }) = 1/2
Ivan Medovikov, Brock University
Introduction to Econometrics
18/25
Review of Basic Statistics
Probability of Random Outcomes
I
Can assign probabilities to values of Y
I
P(Y = 0) = P({HH}) = 1/4
I
P(Y = 1) = P({TH, HT }) = 1/2
I
P(Y = 2) = P({TT }) = 1/4
Ivan Medovikov, Brock University
Introduction to Econometrics
18/25
Review of Basic Statistics
The Joint Probability
I
Suppose that X = # of tails after the first coin toss
I
We can find joint probability of X and Y
For example:
I
I
I
I
I
I
P(X
P(X
P(X
P(X
= 1, Y
= 2, Y
= 0, Y
= 0, Y
= 1) = P({TH}) = 1/4
= 1) = P({TT }) = 1/4
= 1) =? Why?
= 1) = 0
Function f (x, y ) = P(X = x, Y = y ) is the joint probability
density function
Ivan Medovikov, Brock University
Introduction to Econometrics
19/25
Review of Basic Statistics
The Conditional Probability Density Function
I
What is the P(Y = 2) given that X = 1?
I
This is the conditional probability of Y given known X
I
We write this as P(Y = 2|X = 1)
P(Y = y , X = x)
Can find P(Y = y |X = x) =
P(X = x)
For example,
P(Y = 2, X = 1)
P(Y = 2|X = 1) =
= 0.25/0.5 = 1/2
P(X = 1)
I
I
Ivan Medovikov, Brock University
Introduction to Econometrics
20/25
Review of Basic Statistics
Expected Value
I
On average, how many tails can we expect?
I
In other words, what is the average (mean) of Y ?
I
We can find expected value (mean) of Y using f (y ) as:
µy
= 0 × P(X = 0) + 1 × P(X = 1) + 2 × P(X = 2)
= 0 × f (0) + 1 × f (1) + 2 × f (2)
= 0 × 1/4 + 1 × 1/2 + 2 × 1/2 = 1 tail
I
This is the unconditional expectation (mean), E [Y ]
Ivan Medovikov, Brock University
Introduction to Econometrics
21/25
Review of Basic Statistics
Conditional Expected Value
I
On average, how many tails can we expect, given that we
know we had tail on first toss (i.e. X = 1)?
I
This is the conditional expectation of Y , E [Y |X = 1]
µy |x
= 0 × P(Y = 0|X = 1) + 1 × P(Y = 1|X = 1)
+ 2 × P(Y = 2|X = 1)
= 0 × 0 + 1 × 1/2 + 2 × 1/2 = 1.5 tails
Ivan Medovikov, Brock University
Introduction to Econometrics
22/25
Review of Basic Statistics
The Regression Function
I
We treat E [Y |X = x] as a function of x
I
This is the regression function, or regression
I
This is the focus of this course
Ivan Medovikov, Brock University
Introduction to Econometrics
23/25
Review of Basic Statistics
The Regression Modelling
I
Specifying a model for E [Y |X = x]
I
Estimating this regression model
I
Using the model for forecasting & analysis
Ivan Medovikov, Brock University
Introduction to Econometrics
24/25
Review of Basic Statistics
The Regression Modelling
I
E [sales|advertising]
I
E [house price|floor area]
I
E [human weight|human height]
I
Other?
Ivan Medovikov, Brock University
Introduction to Econometrics
25/25
Download