0932075
Computing and Data Analysis EC125 - Assignment 1 Question 1 (a)
0 if individual is male xi = 1 if individual is female (b)
1 if in quarter j yt = α + β1 x1 t + β2 x1 t− 1 +∑ δj Qjt + ε,t where Qjt = otherwise j =1 0 3
(c)
1 ω n− 2 ω ω n −1
ω 1 O L L
ω2 ω O ω ω2
ω 1
ω n−2 ω
n− 1
L L O 1
ω
(d) 2 ln ( Poli ) = 32.45 + 0.218agei −0.0015age +3.674male i +2.139 ln(inc i ) 0.859 − Degree i e +i i
(0.064)
(0.0009)
(0.991)
(0. 873)
(0.345)
where: Pol = Index of political persuasion where 0 is most left wing and 100 most right wing, age = Age of individual male = 1 if male, 0 if female, inc = Gross annual income in £000s, Degree = 1 if holds at least a first degree, 0 otherwise.
(e)
E ( X + Y ) = ∑ ∑ ( x + y) p( x, y) = ∑ ∑xp( x, y) x
y
x
y
+ ∑ ∑yp( x, y) x
y
0932075
∑ x ∑ p( x, y) + ∑ y ∑ p( x, y) = ∑ xp( x) + ∑ yp( y) = E ( X ) + E (Y ) x
y 14 2 43 p(x)
y
x 14 2 43
x
y
p( y)
(f) max U ( x1, x 2,..., x n) s.t. x1,..., xn
n
∑p x i =1
i
i
≤M ; x i ≥0 ( i =1, 2,..., n)
0932075
Figure 1 - Efficient study time allocation Question 2 (a)
mpc
(b)
mpc t
t