Академический Документы
Профессиональный Документы
Культура Документы
regression analysis
NARMINA RUSTAMOVA
ADA
where
dependent variable or regressand
independent variable or regressor
- intercept parameter
- slope parameter
error term or disturbance
i number of observations
Assumptions
1.
in the population
2. {(: i = 1, . . . , n} is a random sample of the model above, implying
uncorrelated residuals: Cov() = 0 for all i
3. { : i = 1, . . . , n} are not all identical, implying
4. E[u|x] = 0 for all x (zero average error), implying E[u] = 0 and Cov(u, x) = 0
.
5. Var[u|x] = for all x, implying Var[u] = (homoscedasticity).
where
voteA is the percent of the vote received by Candidate A,
expendA and expend B are campaign expenditures by
Candidates A and B,
prtystr A is a measure of party strength for Candidate A (the
percent of recent presidential vote that went to As party).
Result:
Vote_A = 33.27 + 0.03 x expend_A 0.03 x expend_B + 0.34 x prtystr_A + u,
SS
df
MS
Model
Residual
27555.6163
20901.6323
3
169
9185.20542
123.678298
Total
48457.2486
172
281.728189
vote_A
Coef.
expend_A
expend_B
prtystr_A
_cons
.0349245
-.0349236
.342515
33.26714
Std. Err.
.0033695
.0030012
.0879518
4.416778
t
10.36
-11.64
3.89
7.53
Number of obs
F( 3,
169)
Prob > F
R-squared
Adj R-squared
Root MSE
P>|t|
0.000
0.000
0.000
0.000
=
=
=
=
=
=
173
74.27
0.0000
0.5687
0.5610
11.121
.0415762
-.0289989
.5161407
41.9863
Source
SS
df
MS
Model
Residual
27555.6163
20901.6323
3 9185.20542
169 123.678298
Total
48457.2486
172 281.728189
vote_A
Coef.
expend_A
expend_B
prtystr_A
_cons
.0349245
-.0349236
.342515
33.26714
Std. Err.
.0033695
.0030012
.0879518
4.416778
t
10.36
-11.64
3.89
7.53
Number of obs
F( 3, 169)
Prob > F
R-squared
Adj R-squared
Root MSE
P>|t|
0.000
0.000
0.000
0.000
=
=
=
=
=
=
173
74.27
0.0000
0.5687
0.5610
11.121
.0415762
-.0289989
.5161407
41.9863
SS
27555.6163
20901.6323
48457.2486
vote_A
Coef.
expend_A
expend_B
prtystr_A
_cons
.0349245
-.0349236
.342515
33.26714
df
MS
Number of obs
F( 3, 169)
Prob > F
R-squared
Adj R-squared
Root MSE
3 9185.20542
169 123.678298
172 281.728189
Std. Err.
.0033695
.0030012
.0879518
4.416778
t
10.36
-11.64
3.89
7.53
P>|t|
0.000
0.000
0.000
0.000
=
=
=
=
=
=
173
74.27
0.0000
0.5687
0.5610
11.121
.0415762
-.0289989
.5161407
41.9863
Source
SS
df
MS
Model
Residual
27555.6163
20901.6323
3 9185.20542
169 123.678298
Total
48457.2486
172 281.728189
vote_A
Coef.
expend_A
expend_B
prtystr_A
_cons
.0349245
-.0349236
.342515
33.26714
Std. Err.
.0033695
.0030012
.0879518
4.416778
t
10.36
-11.64
3.89
7.53
Number of obs
F( 3, 169)
Prob > F
R-squared
Adj R-squared
Root MSE
P>|t|
0.000
0.000
0.000
0.000
=
=
=
=
=
=
173
74.27
0.0000
0.5687
0.5610
11.121
.0415762
-.0289989
.5161407
41.9863
60
80
Or use a command
20
40
500
vote_A
expend_A
1000
Fitted values
1500