Upload presentasi
Presentasi sedang didownload. Silahkan tunggu
1
Ekonometrika
2
Sebagian Materi dapat di download di ariefyulianto.wordpress.com
Software dapat di download di uap.unnes.ac.id Konsep dan Aplikasi Teori Ekonomi melalui Pendekatan Kuantitatif
3
Referensi Damodar N Gujarati. Basic econometrics. Copyrighted Material. Fourth Edition. Damodar N Gujarati Dasar-Dasar Ekonometrika. Jakarta : Penerbit Erlangga. Rainer Winkelmann Econometric Analysis of Count Data. Fifth edition. Berlin Heidelberg : Springer-Verlag Sarwoko Dasar-Dasar Ekonometrika. Yogyakarta : Penerbit Andi Badi H. Baltagi Econometrics. Berlin Heidelberg : Springer-Verlag
4
Kontrak (1) Metode Pembelajaran
Agar dicapai hasil pengajaran yang optimal, maka pada mata kuliah ini digunakan kombinasi metode pembelajaran ceramah dan diskusi di dalam kelas, serta observasi mandiri di luar kelas (lapangan). Sistem Penilaian Penilaian atas keberhasilan mahasiswa dalam mengikuti dan memahami materi pada mata kuliah ini didasarkan penilaian selama proses perkuliahan dan nilai ujian, dengan komposisi sebagai berikut: a. nilai tugas individu/kelompok, nilai presensi bobot 1 b. nilai mid test bobot 2 c. nilai ujian: bobot 3
5
Kontrak (2) Tugas Tugas pada mata kuliah ini dapat bersifat tugas individu atau tugas kelompok, dan pemberian tugas oleh dosen dilakukan pada saat perkuliahan. Tidak ada toleransi terhadap keterlambatan penyerahan/ pengumpulan tugas, kecuali ada alasan yang adapat dipertanggungjawabkan. Persyaratan Mengikuti Kuliah Sesuai dengan Tata Tertib Mengikuti Kuliah yang ditetepkan oleh UNNES. Telah membaca dan membawa sekurang-kurangnya buku referensi utama pada setiap perkuliahan. Lain-lain: Toleransi keterlambatan untuk dosen dan mahasiswa adalah 30 menit dari jadual dan yang masuk ke kelas terakhir adalah dosen Alat komunikasi mahasiswa dimatikan selama perkuliahan
6
1. WHAT IS ECONOMETRICS
7
econometrics means “economic measurement
. . . econometrics may be defined as the quantitative analysis of actual economic phenomena based on the concurrent development of theory and observation, related by appropriate methods of inference Econometrics is concerned with the empirical determination of economic laws.
8
WHY A SEPARATE DISCIPLINE?
econometrics is an amalgam of economic theory (makes statements or hypotheses that are mostly qualitative in nature), mathematical economics (to express economic theory in mathematical form (equations) without regard to measurability or empirical verification of the theory), economic statistics (collecting, processing, and presenting economic data in the form of charts and tables), and mathematical statistics (provides many tools used in the trade, the econometrician often needs special methods in view of the unique nature of most economic data, namely, that the data are not generated as the result of a controlled experiment)
9
METHODOLOGY OF ECONOMETRICS
Statement of theory or hypothesis. Specification of the mathematical model of the theory Specification of the statistical, or econometric, model Obtaining the data Estimation of the parameters of the econometric model Hypothesis testing Forecasting or prediction Using the model for control or policy purposes
10
To illustrate the preceding steps
Statement of Theory or Hypothesis The fundamental psychological law is that men [women] are disposed, as a rule and on average, to increase their consumption as their income increases, but not as much as the increase in their income marginal propensity to consume (MPC)
11
2. Specification of the Mathematical Model of Consumption
Y = β1 + β2X 0 < β2 < 1 (I.3.1) where Y = consumption expenditure and X = income, and where β1 and β2, known as the parameters of the model, are, respectively, the intercept and slope coefficients.
13
3. Specification of the Econometric Model of Consumption
Mathematical Model are exact or deterministic relationship between consumption and income. But relationships between economic variables are generally inexact Y = β1 + β2X + u (I.3.2) where u, known as the disturbance, or error, term, is a random (stochastic) variable that has well-defined probabilistic properties.
15
4. Obtaining Data To estimate the econometric model given in (I.3.2), that is, to obtain the numerical values of β1 and β2, we need data
18
5. Estimation of the Econometric Model
For now, note that the statistical technique of regression analysis is the main tool used to obtain the estimates
19
Yˆ = − Xi The hat on the Y indicates that it is an estimate.11 The estimated consumption function (i.e., regression line)
20
6. Hypothesis Testing Statistical inference (hypothesis testing).
21
7. Forecasting or Prediction
To illustrate, suppose we want to predict the mean consumption expenditure for The GDP value for 1997 was billion dollars Yˆ1997 = − (7269.8) =
22
8. Use of the Model for Control or Policy Purposes
23
The Eight Components of Integrated Service Management
Product Elements Place, Cyberspace, and Time Process Productivity and Quality People Promotion and Education Physical Evidence Price and Other User Outlays Principles of service marketing and management. lovelook, wright
24
Marketing management (Philip Kotler twelfth edition
Product is the first and most important element of the marketing mix. Product strategy calls for making coordinated decisions on product mixes, product lines, brands, and packaging and labeling.
25
Initial public offering
Emiten Underwriter Auditor Size Age
26
2. THE NATURE OF REGRESSION ANALYSIS
27
Anatomy of econometric modeling
28
THE MODERN INTERPRETATION OF REGRESSION
Regression analysis is concerned with the study of the dependence of one variable, the dependent variable, on one or more other variables, the explanatory variables,with a view to estimating and/or predicting the (population) mean or average value of the former in terms of the known or fixed (in repeated sampling) values of the latter Contoh : how the average height of sons changes, given the fathers’ heigh ; Distribution in a hypothetical population of heights of boys measured at fixed ages
30
Measurement Scales of Variables
Ratio Scale For a variable X, taking two values, X1 and X2, the ratio X1/X2 and the distance (X2 − X1) are meaningful quantities Interval Scale the distance between two time periods, say (2000–1995) is meaningful, but not the ratio of two time periods (2000/1995) Ordinal Scale Examples are grading systems (A, B, C grades) or income class (upper, middle, lower). Nominal Scale Variables such as gender (male, female) and marital status (married, unmarried, divorced, separated) simply denote categories
31
TWO-VARIABLE REGRESSION ANALYSIS:SOME BASIC IDEAS
the simplest possible regression analysis, namely, the bivariate, or twovariable, regression in which the dependent variable (the regressand) is related to a single explanatory variable (the regressor)
32
A HYPOTHETICAL EXAMPLE
in the table refer to a total population of 60 families in a hypothetical community and their weekly income (X) and weekly consumption expenditure (Y), both in dollars. The 60 families are divided into 10 income groups (from $80 to $260) and the weekly expenditures of each family in the various groups are as shown in the table
33
E(Y | Xi) = β1 + β2Xi where β1 and β2 are unknown but fixed parameters known as the regression coefficients; β1 and β2 are also known as intercept and slope coefficients, respectively. Equation (2.2.1) itself is known as the linear population regression function. Some alternative expressions used in the literature are linear population regression model or simply linear population regression
34
THE MEANING OF THE TERM LINEAR
Linearity in the Variables (a regression function such as E(Y | Xi) = β1 + β2X2i is not a linear function because the variable X appears with a power or index of 2. Linearity in the Parameters (E(Y | Xi) = β1 + β2X2i is a linear (in the parameter) regression model ; E(Y | Xi) = β1 + 3β2 x2 , which is nonlinear in the parameter β2)
36
STOCHASTIC SPECIFICATION OF population regression function (PRF)
family consumption expenditure on the average increases, the relationship between an individual family’s consumption expenditure and a given level of income? where the deviation ui is an unobservable random variable taking positive or negative values. Technically, ui is known as the stochastic disturbance or stochastic error term.
37
THE SIGNIFICANCE OF THE STOCHASTIC DISTURBANCE TERM (1)
Vagueness of theory (The theory, if any, determining the behavior of Y may be, and often is, incomplete) Unavailability of data (family wealth as an explanatory variable in addition to the income variable to explain family consumption expenditure. But unfortunately, information on family wealth generally is not available Core variables versus peripheral variables (Assume in our consumptionincome example that besides income X1, the number of children per family X2, sex X3, religion X4, education X5, and geographical region X6 also affect consumption expenditure Intrinsic randomness in human behavior Poor proxy variables (The disturbance term u may in this case then also represent the errors of measurement)
38
THE SIGNIFICANCE OF THE STOCHASTIC DISTURBANCE TERM (2)
Principle of parsimony (we would like to keep our regression model as simple as possible Wrong functional form (we do not know the form of the functional relationship between the regressand - Dependent variable and the regressors - independent variable )
39
THE SAMPLE REGRESSION FUNCTION (SRF)
42
3. TWO-VARIABLE REGRESSION MODEL: THE PROBLEM OF ESTIMATION
43
TWO-VARIABLE REGRESSION MODEL: THE PROBLEM OF ESTIMATION (ordinary least square)
the method of least squares has some very attractive statistical properties that have made it one of the most powerful and popular methods of regression analysis
46
Sering ditemukan pada data cross section
47
Sering ditemukan pada data timeseries
49
THE COEFFICIENT OF DETERMINATION r 2: A MEASURE OF “GOODNESS OF FIT”
The coefficient of determination r 2 (two-variable case) or R2 (multiple regression) is a summary measure that tells how well the sample regression line fits the data.
50
The fundamental psychological law
The fundamental psychological law is that men [women] are disposed, as a rule and on average, to increase their consumption as their income increases, but not by as much as the increase in their income,” that is, the marginal propensity to consume (MPC) is greater than zero but less than one
55
CONSUMPTION–INCOME RELATIONSHIP THE RELATIONSHIP BETWEEN EARNINGS
IN THE UNITED STATES, 1982–1996 THE RELATIONSHIP BETWEEN EARNINGS AND EDUCATION
56
Notes Alasan menggunakan adjusted R2 karena nilai R2 bias, setiap tambahan satu variabel pada variabel independent akan meningkat tidak peduli variabel tersebut berpengaruh signifikan atau tidak Alasan menggunakan standarized beta mampu mengeliminasi perbedaan unit/ukuran pada variabel independent (butir, ekor) namun tidak dapat diketahui multikolinieritas (korelasi antar var bebas), nilai beta tidak dapat diinterpretasikan
57
TWO-VARIABLE REGRESSION MODEL: THE PROBLEM OF ESTIMATION
Recall the two-variable PRF where ˆYi is the estimated (conditional mean) value of Yi . which shows that the ˆui (the residuals) are simply the differences between the actual and estimated Y values
58
CLASSICAL NORMAL LINEAR REGRESSION MODEL (CNLRM)
Using the method of OLS we were able to estimate the parameters β1, β2, and σ2. Under the assumptions of the classical linear regression model (CLRM), we were able to show that the estimators of these parameters, ˆ β1, ˆ β2, and ˆσ 2,
59
TWO-VARIABLE REGRESSION: INTERVAL ESTIMATION AND HYPOTHESIS TESTING
60
Asumsi Klasik Model regresi linier : terspesifikasi benar dan error term additif Nilai rata-rata yang diharapkan disturbance error term = 0 Kovarian distrubance dengan x = nol Varian dari variabel residu, disturbance adalah sama atau homokedastisitas Tidak ada otokorelasi antar variabel disturbance Tidak ada korelasi sempurna antar variabel bebas Variabel error term berdistribusi normal
61
HYPOTHESIS TESTING: GENERAL COMMENTS
HYPOTHESIS TESTING: GENERAL COMMENTS (Is a given observation or finding compatible with some stated hypothesis or not?) In the language of statistics, the stated hypothesis is known as the null hypothesis and is denoted by the symbol H0. The null hypothesis is usually tested against an alternative hypothesis (also known as maintained hypothesis) denoted by H1 reject or not reject the null hypothesis There are two mutually complementary approaches for devising such rules, namely, confidence interval and test of significance
62
Type kesalahan Hipotesis o Menerima Ho Menolak Ho Jika Ho benar
Keputusan tepat Kesalahan jenis I Jika Ho salah Kesalahan jenis II
63
HYPOTHESIS TESTING: THE CONFIDENCE-INTERVAL APPROACH
Two-Sided or Two-Tail Test To illustrate the confidence-interval approach, once again we revert to the consumption–income example. As we know, the estimated marginal propensity to consume (MPC), ˆ β2, is Suppose we postulate that H0: β2 = 0.3 ; H1: β2 = 0.3 Very often such a two-sided alternative hypothesis reflects the fact that we do not have a strong a priori or theoretical expectation about the direction in which the alternative hypothesis should move from the null hypothesis.
65
HYPOTHESIS TESTING: THE CONFIDENCE-INTERVAL APPROACH
One-Sided or One-Tail Test Sometimes we have a strong a priori or theoretical expectation (or expectations based on some previous empirical work) that the alternative hypothesis is one-sided or unidirectional rather than two-sided, as just discussed. Thus, for our consumption–income example, one could postulate that H0: β2 ≤ 0.3 and H1: β2 > 0.3
66
HYPOTHESIS TESTING: THE TEST-OF-SIGNIFICANCE APPROACH
Testing the Significance of Regression Coefficients: The t Test which gives the interval in which ˆ β2 will fall with 1 − α probability, given β2 = β*2. In the language of hypothesis testing, the 100(1 − α)% confidence interval established in (5.7.2) is known as the region of acceptance (of the null hypothesis) and the region(s) outside the confidence interval is (are) called the region(s) of rejection (of H0) or the critical region(s). As noted previously, the confidence limits, the endpoints of the confidence interval, are also called critical values
71
MULTICOLLINEARITY: WHAT HAPPENS IF THE REGRESSORS ARE CORRELATED?
72
What is the nature of multicollinearity
Model regresi yang baik, seharusnya tidak terjadi korelasi diantara variabel independen. Jika berkorelasi maka variabel tidak ortogonal (korelasi antar variabel independent = 0)
74
Ciri-Ciri Multikolinieritas (Ghozali, 2005)
Nilai R square yang dihasilkan dari estimasi model regresi tinggi, namun secara individual variabel independent banyak yang tidak signifikan -> dependen Antar variabel independent memiliki korelasi >0,9 Setiap variabel independent yang dijelaskan oleh variabel independet lainnya. Output nilai tolerance rendah (<0,10) atau VIF >10
75
THE NATURE OF MULTICOLLINEARITY
it meant the existence of a “perfect,” or exact, linear relationship among some or all explanatory variables of a regression model Yi = β0 + β1Xi + β2X2i + β3X3i + ui
77
multicollinearity may be due to the following factors
The data collection method employed, for example, sampling over a limited range of the values taken by the regressors in the population Constraints on the model or in the population being sampled Model specification An overdetermined model. This happens when the model has more explanatory variables than the number of observations.
78
Cara mengobati multikolinieritas
Menggabungkan data cross section dan time series Keluarkan satu atau lebih variabel independen yang memp nilai korelasi tinggi (0,94%) Transformasi variabel Gunakan model untuk prediksi bukan interpretasi Gunakan center data untuk analisis (data mentah – mean) Sumber imam ghozali, 2006
79
AUTOCORRELATION: WHAT HAPPENS IF THE ERROR TERMS ARE CORRELATED?
80
three types of data cross section time series
combination of cross section and time series
81
correlation between members of series of observations ordered in time [as in time series data] or space [as in cross-sectional data] autocorrelation as “lag correlation of a given series with itself, lagged by a number of time units,’’ whereas he reserves the term serial correlation to “lag correlation between two different series. where u and v are two different time series, is called serial correlation
82
shows a cyclical pattern
83
suggests an upward or downward linear trend in the disturbances
84
indicates that both linear and quadratic trend terms are present in the disturbances
85
indicates no systematic pattern nonautocorrelation
87
DETECTING AUTOCORRELATION
Graphical Method
88
Autokorelasi dalam konsep regresi linier berarti komponen error berkorelasi berdasarkan urutan waktu (pada data timeseries) atau urutan ruang (pada data cross-sectional). Contoh data timeseries (terdapat urutan waktu) misalnya pengaruh biaya iklan terhadap penjualan dari bulan januari hingga bulan desember. Sedangkan data cross-sectional adalah data yang tidak ada urutan waktu, misal pengaruh konsentrasi zat X terhadap kecepatan reaksi suatu senyawa kimia. Untuk mendeteksi ada atau tidaknya autokorelasi, dapat dilakukan dengan menggunakan statistik uji Durbin-Watson. Apabila nilai D-W berada di sekitar angka 2, berarti model regresi kita aman dari kondisi heteroskedastisitas
89
Menanggulangi autokorelasi
Beberapa uji statistik yang sering dipergunakan adalah uji Durbin-Watson atau uji dengan Run Test dan jika data observasi di atas 100 data sebaiknya menggunakan uji Lagrange Multiplier. Beberapa cara untuk menanggulangi masalah autokorelasi adalah dengan mentransformasikan data atau bisa juga dengan mengubah model regresi ke dalam bentuk persamaan beda umum (generalized difference equation). Selain itu juga dapat dilakukan dengan memasukkan variabel lag dari variabel terikatnya menjadi salah satu variabel bebas, sehingga data observasi menjadi berkurang 1
90
Korelasi
91
Korelasi Korelasi antara x(t) dan y(t) dinamakan dengan cross-correlation, dirumuskan dengan
92
Auto-korelasi Korelasi x(t) dengan dirinya sendiri disebut auto-korelasi
93
Korelasi Contoh 1 t h(t) 1.5 2.5 x(t)
94
Korelasi 1 t x(t) 1 t h(t) 1.5+p 2.5+p Untuk 1.5+p>1 atau p>-0.5
95
Korelasi 2. Untuk 1.5+p<1 dan 1.5+p>0, atau -1.5<p<-0.5 1
x(t-p) h(t) 2. Untuk 1.5+p<1 dan 1.5+p>0, atau -1.5<p<-0.5
96
Korelasi 3. Untuk 1.5+p<0 dan 2.5+p>1, atau -1.5<p<1.5 1 t
x(t-p) h(t) 3. Untuk 1.5+p<0 dan 2.5+p>1, atau -1.5<p<1.5
97
Korelasi 4. Untuk 2.5+p<0 atau p<-2.5 -p-0.5 p+2.5 1 t 2.5+p
x(t-p) h(t) 4. Untuk 2.5+p<0 atau p<-2.5 1 p y(p) -2.5 -0.5 p+2.5 -p-0.5
98
Korelasi 1 t p 1+p h(t) 1.5 2.5 x(t) Untuk 1+p<1.5 atau p<0.5
99
Korelasi 2. Untuk 1+p>1.5 dan 1+p<2.5, atau 0.5<p<1.5 1 t
x(t) h(t-p) 2. Untuk 1+p>1.5 dan 1+p<2.5, atau 0.5<p<1.5
100
Korelasi 3. Untuk p<2.5 dan 1+p>2.5, atau 1.5<p<2.5 1 t
x(t) h(t-p) 3. Untuk p<2.5 dan 1+p>2.5, atau 1.5<p<2.5
101
Korelasi 4. Untuk p>2.5 -p+2.5 p-0.5 x(t) h(t-p) 1 t p 1+p 1 p y(p)
102
Autokorelasi 1 t 1+p p h(t-p) h(t) 1. Untuk 0<p<1, maka
103
Autokorelasi 2. Untuk 0>p>-1, karena p negatif, maka geser kiri
h(t) h(t-p) 1 t p 1+p 2. Untuk 0>p>-1, karena p negatif, maka geser kiri
104
Autokorelasi 3. Untuk p>1 dan p<-1, y(p) 1 -1 +1 1+p 1-p p
105
Korelasi
106
ILUSTRASI ANALISIS REGRESI
Apakah Skor Tes Masuk dan Peringkat kelas di SMU mempengaruhi Nilai Mutu Rata – rata Mahasiswa Tingkat Pertama ? Variabel Dependen : NMR (Y) Variabel Independen : Skor Tes (X1) Peringkat (X2)
107
ILUSTRASI ANALISIS REGRESI
NMR Skor Tes Peringkat NMR Skor Tes Peringkat
108
LANGKAH -LANGKAH Masukkan data pada SPSS Data Editor
Pilih Analyze > Regression > Linear 1. Pilih dependen Variable 2. Pilih Independen Variables 3. Pada pilihan Statistics, aktifkan : Collinearity Diagnostics Durbin Watson Klik Continue 4. Pada pilihan Plot, aktifkan Normal Probability Plot. Klik Continue 5. Pada Pilihan Save, ~ Predicted Value, aktifkan Unstandardized ~ Residual, aktifkan Studentized 6. Klik OK
109
HASIL ANALISIS Regression
110
PEMERIKSAAN ASUMSI 1. ASUMSI NORMALITAS ERROR Hasil P-P plot menunjukkan pola garis lurus mendekati sudut 450, sehingga asumsi normalitas sisaan terpenuhi
111
PEMERIKSAAN ASUMSI 2. ASUMSI AUTOKORELASI Diperoleh nilai d = 2.254
Kaidah Uji Durbin Watson : Disimpulkan tidak ada autokorelasi bila du < d < 4 – du, Nilai du dapat dilihat di Tabel Dengan n = 20 dan k (banyak variable bebas) = 2, diperoleh nilai du = 1.54 dan 4 – du = 4 – 1.54 = 2.46 Karena du = 1.54 < d = < 4 – du = 2.46 maka dapat diterima bahwa asumsi nonautokorelasi terpenuhi
112
PEMERIKSAAN ASUMSI 3. ASUMSI MULTIKOLINEARITAS
Condition Index = < 30 Nilai VIF untuk skortes = < 10 Nilai VIF untuk peringkat = <10 Jadi tidak terdapat multikolinearitas
113
PEMERIKSAAN ASUMSI 4. ASUMSI HETEROSKEDASTISITAS
Plotkan residual terstudentkan dengan nilai dugaan. a. Pilih Graphs > Scatter > Simple. b. Pilih Define Pilih Stundentized Residual sebagai Y axis Pilih Unstundardized predicted value sebagai X axis Klik OK Plot antara residual terstudentkan dengan nilai dugaan berpola acak, sehingga asumsi homoskedastisitas terpenuhi
114
INTERPRETASI VALIDASI MODEL Koefisien determinasi (R2) = 0.478
Artinya kontribusi pengaruh skor tes dan peringkat terhadap nilai mutu rata-rata sebesar 47.8%. Sedang sisanya dipengaruhi oleh variabel lain yang belum ada dalam model Bila kita melakukan prediksi besarnya NMR berdasar skor tes dan perigkat, maka tingkat akurasinya sebesar 47.8% Uji F melalui ANOVA Regresi menghailkan p = 0.004 Uji koefisien regresi secara simultan signifikan Uji t menghasilkan p untuk skor tes dan peringkat masing – masing dan Artinya hanya peringkat yang berpengaruh signifikan terhadap besarnya NMR
115
INTERPRETASI Model hasil regresi
NMR = Skor tes – Peringkat Penjelasan terhadap fenomena Variabel yang berpengaruh secara signifikan adalah peringkat dengan koefisien regresi – 0.184 Artinya semakin kecil peringkat maka semakin tinggi NMR. Pada keadaan Skor tes konstan, jika Peringkat meningkat 1 tingkat maka NMR akan turun sebesar 0.184
116
INTERPRETASI 2. Prediksi
Misal terdapat seorang anak dengan Skor tes 550 dengan peringkat 4, maka berapa NMR – nya? NMR = (550) – (4) = 2.05 Prediksi NMR adalah 2.05 Tingkat akurasi dari hasil prediksi ini adalah sebesar 47.8% (relatif rendah), akan tetapi bersifat general (karena nilai p untuk uji F pada ANOVA sebesar 0.004
117
INTERPRETASI 3. Faktor determinan
ZNMR = ZSkor tes Zperingkat Variabel yang berpengaruh paling kuat terhadap NMR adalah peringkat, kemudian Skor tes. (Koefisien standardize Beta terbesar berarti pengaruhnya paling kuat, seandainya seluruh variabel signifikan). Dalam contoh ini yang signifikan hanya peringkat, sehingga yang berpengaruh secara bermakna terhadap NMR hanya peringkat.
118
WHAT HAPPENS IF THE ERROR VARIANCE IS NONCONSTANT?
HETEROSCEDASTICITY WHAT HAPPENS IF THE ERROR VARIANCE IS NONCONSTANT?
121
THE CLASSICAL LINEAR REGRESSION MODEL
PRF: Yi = β1 + β2Xi + ui . It shows that Yi depends on both Xi and ui . Therefore, unless we are specific about how Xi and ui are created or generated, there is no way we can make any statistical inference about the Yi and also, as we shall see, about β1 and β2. Thus, the assumptions made about the Xi variable(s) and the error term are extremely critical to the valid interpretation of the regression estimates
122
There are several reasons why the variances of ui may be variable, some of which are as follows
Following the error-learning models As incomes grow, people have more discretionary income2 and hence more scope for choice about the disposition of their income. Hence, σ2i is likely to increase with income As data collecting techniques improve, σ2i is likely to decrease Heteroscedasticity can also arise as a result of the presence of outliers the regression model is correctly specified (ex demand function for a commodity, if we do not include the prices of commodities complementary to or competing with the commodity in question (the omitted variable bias) Another source of heteroscedasticity is skewness in the distribution of one or more regressors included in the model
123
There are several reasons why the variances of ui may be variable, some of which are as follows
Another source of heteroscedasticity is skewness in the distribution of one or more regressors included in the model. Examples are economic variables such as income, wealth, and education. It is well known that the distribution of income and wealth in most societies is uneven, with the bulk of the income and wealth being owned by a few at the top. Heteroscedasticity can also arise because of (1) incorrect data transformation (e.g., ratio or first difference transformations) and (2) incorrect functional form (e.g., linear versus log–linear models)
125
what happens to the regression results if the observations for Chile are dropped from the analysis
126
the problem of heteroscedasticity is likely to be more common in cross-sectional than in time series data. In cross-sectional data, one usually deals with members of a population at a given point in time, such as individual consumers or their families, firms, industries, or geographical subdivisions such as state, country, city, etc
129
DETECTION OF HETEROSCEDASTICITY
as in the case of multicollinearity, there are no hard-and-fast rules for detecting heteroscedasticity, only a few rules of thumb (need most economic investigations. In this respect the econometrician differs from scientists in fields such as agriculture and biology, where researchers have a good deal of control over their subjects)
130
Park Test
131
Glejser Test
132
Rank spearman
133
DUMMY VARIABLE REGRESSION MODELS
134
model is based on several simplifying assumptions, which are as follows
The regression model is linear in the parameters The values of the regressors, the X’s, are fixed in repeated sampling. For given X’s, the mean value of the disturbance ui is zero For given X’s, there is no autocorrelation in the disturbances If the X’s are stochastic, the disturbance term and the (stochastic) X’s are independent or at least uncorrelated The number of observations must be greater than the number of regressors There must be sufficient variability in the values taken by the regressors. The regression model is correctly specified There is no exact linear relationship (i.e., multicollinearity) in the regressors. The stochastic (disturbance) term ui is normally distributed.
135
four types of variables
ratio scale, interval scale, ordinal scale, and nominal scale known as indicator variables, categorical variables, qualitative variables, or dummy variables
136
THE NATURE OF DUMMY VARIABLES
In regression analysis the dependent variable, or regressand, is frequently influenced not only by ratio scale variables (e.g., income, output, prices, costs, height, temperature) qualitative,or nominal scale, in nature, such as sex, race, color, religion, nationality, geographical region, political upheavals, and party affiliation As a matter of fact, a regression model may contain regressors that are all exclusively dummy, or qualitative, in nature. Such models are called Analysis of Variance (ANOVA) models
137
Dummy Variables Dummy variables refers to the technique of using a dichotomous variable (coded 0 or 1) to represent the separate categories of a nominal level measure. The term “dummy” appears to refer to the fact that the presence of the trait indicated by the code of 1 represents a factor or collection of factors that are not measurable by any better means within the context of the analysis.
138
Coding of dummy Variables
Take for instance the race of the respondent in a study of voter preferences Race coded white(0) or black(1) There are a whole set of factors that are possibly different, or even likely to be different, between voters of different races Income, socialization, experience of racial discrimination, attitudes toward a variety of social issues, feelings of political efficacy, etc Since we cannot measure all of those differences within the confines of the study we are doing, we use a dummy variable to capture these effects.
139
Multiple categories Now picture race coded white(0), black(1), Hispanic(2), Asian(3) and Native American(4) If we put the variable race into a regression equation, the results will be nonsense since the coding implicitly required in regression assumes at least ordinal level data – with approximately equal differences between ordinal categories. Regression using a 3 (or more) category nominal variable yields un-interpretable and meaningless results.
140
Creating Dummy variables
The simple case of race is already coded correctly Race: coded 0 for white and 1 for black Note the coding can be reversed and leads only to changes in sign and direction of interpretation. The complex nominal version turns into 5 variables: White; coded 1 for whites and 0 for non-whites Black; coded 1 for blacks and 0 for non-blacks Hispanic; coded 1 for Hispanics and 0 for non- Hispanics Asian; coded 1 for Asians and 0 for non- Asians AmInd; coded 1 for native Americans and 0 for non-native Americans
141
Regression with Dummy Variables
The dummy variable is then added the regression model Interpretation of the dummy variable is usually quite straightforward. The intercept term represents the intercept for the omitted category The slope coefficient for the dummy variable represents the change in the intercept for the category coded 1 (blacks)
142
Regression with only a dummy
When we regress a variable on only the dummy variable, we obtain the estimates for the means of the depended variable. a is the mean of Y for Whites and a+B1 is the mean of Y for Blacks
143
Omitting a category When we have a single dummy variable, we have information for both categories in the model Also note that White = 1 – Black Thus having both a dummy for White and one for Blacks is redundant. As a result of this, we always omit one category, whose intercept is the model’s intercept. This omitted category is called the reference category In the dichotomous case, the reference category is simply the category coded 0 When we have a series of dummies, you can see that the reference category is both the omitted variable.
144
Suggestions for selecting the reference category
Make it a well defined group – other is usually a poor choice. If there is some underlying ordinality in the categories, select the highest or lowest category as the reference. (e.g. blue-collar, white-collar, professional) It should have ample number of cases. The modal category is often a good choice.
145
Multiple dummy Variables
The model for the full dummy variable scheme for race is: Note that the dummy for White has been omitted, and the intercept a is the intercept for Whites.
146
Tests of Significance With dummy variables, the t tests test whether the coefficient is different from the reference category, not whether it is different from 0. Thus if a = 50, and B1 = -45, the coefficient for Blacks might not be significantly different from 0, while Whites are significantly different from 0
147
Interaction terms When the research hypothesizes that different categories may have different responses on other independent variables, we need to use interaction terms For example, race and income interact with each other so that the relationship between income and ideology is different (stronger or weaker) for Whites than Blacks
148
Creating Interaction terms
To create an interaction term is easy Multiply the category * the independent variable The full model is thus: a is the intercept for Whites; (a + B1) is the intercept for Blacks; B2 is the slope for Whites; and (B2 + B3) is the slope for Blacks t-tests for B1 and B3 are whether they are different than a and B2
149
Non-Linear Models Tractable non-linearity Intractable non-linearity
Equation may be transformed to a linear model. Intractable non-linearity No linear transform exists
150
Tractable Non-Linear Models
Several general Types Polynomial Power Functions Exponential Functions Logarithmic Functions Trigonometric Functions
151
Polynomial Models Linear Parabolic Cubic & higher order polynomials
All may be estimated with OLS – simply square, cube, etc. the independent variable.
152
Power Functions Simple exponents of the Independent Variable
Estimated with
153
Exponential and Logarithmic Functions
Common Growth Curve Formula Estimated with Note that the error terms are now no longer normally distributed!
154
Logarithmic Functions
155
Trigonometric Functions
Sine/Cosine functions Fourier series
156
Intractable Non-linearity
Occasionally we have models that we cannot transform to linear ones. For instance a logit model Or an equilibrium system model
157
Intractable Non-linearity
Models such as these must be estimated by other means. We do, however, keep the criteria of minimizing the squared error as our means of determining the best model
158
Estimating Non-linear models
All methods of non-linear estimation require an iterative search for the best fitting parameter values. They differ in how they modify and search for those values that minimize the SSE.
Presentasi serupa
© 2024 SlidePlayer.info Inc.
All rights reserved.