29
QBA ASSIGNMENT PROJECT Semester 1, 2011. Lecturer: Dr Otto Konstandatos This assignment is in two parts of unequal value. Part 1 is technical, and is designed to help you understand the connection between Mathematics (specifically multivariate optimisation using calculus), and econometric regression analysis, by guiding you through the derivation of the least squares estimators which are used in multiple regression. This part may be typed or neatly hand-written in the space provided in the printed document. Part 2 is applied, using multiple regression analysis to explore a real- world problem, namely the relationship between a car’s ‘size’, and its fuel efficiency. Part 2 is designed to test your econometric modelling skills using multiple regression and Eviews. This part requires you to cut and paste your eviews output in the spaces below before printing your solution. This assignment may be done in groups of at most to five students who either are in the same formal tutorial group as you, or who have the same tutor but are from another tutorial group. When you hand in your assignment you must include this cover sheet. No names can be added onto the group lists apart from the names that appear below. Due Time/Date: 1:00pm Monday 30-05-2011 It must be deposited into your assigned tutor’s collection box on Level 3, Building 5, Discipline of Finance. Ku-ring-gai students may submit their scripts after the lecture. Name Student Number Johanan Ottensooser 10873305 Jeremy Raymond 10596854 Fariba Razi 10449977 Kristina Coffey 10837944 Tutor’s Name: Tutorial Day and Time: Date stamp or tutor’s signature and date

QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Embed Size (px)

Citation preview

Page 1: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

QBA ASSIGNMENT PROJECT Semester 1, 2011.

Lecturer: Dr Otto Konstandatos

This assignment is in two parts of unequal value.

Part 1 is technical, and is designed to help you understand the connection between Mathematics (specifically multivariate optimisation using calculus), and econometric regression analysis, by guiding you through the derivation of the least squares estimators which are used in multiple regression.

This part may be typed or neatly hand-written in the space provided in the printed document.

Part 2 is applied, using multiple regression analysis to explore a real-world problem, namely the relationship between a car’s ‘size’, and its fuel efficiency. Part 2 is designed to test your econometric modelling skills using multiple regression and Eviews.

This part requires you to cut and paste your eviews output in the spaces below before printing your solution.

This assignment may be done in groups of at most to five students who either are in the same formal tutorial group as you, or who have the same tutor but are from another tutorial group. When you hand in your assignment you must include this cover sheet. No names can be added onto the group lists apart from the names that appear below.

Due Time/Date: 1:00pm Monday 30-05-2011

It must be deposited into your assigned tutor’s collection box on Level 3, Building 5, Discipline of Finance. Ku-ring-gai students may submit their scripts after the lecture.

Name Student NumberJohanan Ottensooser 10873305Jeremy Raymond 10596854Fariba Razi 10449977Kristina Coffey 10837944

Tutor’s Name:

Tutorial Day and Time:

Date stamp or tutor’s signature and date

Page 2: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Quantitative Business Analysis

Part 1:

Question 1:1. The sum of the average value of x is equal to the sum of all x values: that

is, ∑i=1

n

xi=∑i=1

n

x, since

∑i=1

n

x i−∑i=1

n

x=0.

2. We are required to prove that ∑i=1

n

( x i−x )( y i− y )=∑i=1

n

x i( y i− y ).

3.LHS=∑

i=1

n

( x i−x )( y i− y )=∑i=1

n

( xi yi−x i y−x yi−xy )

4. Applying the rule of summation:

LHS=∑i=1

n

x i y i−∑i=1

n

x i y−∑i=1

n

x y i+∑i=1

n

xy

5. A constant may be moved outside of the summation, thus:

LHS=∑i=1

n

x i y i−∑i=1

n

y x i−x∑i=1

n

y i+∑i=1

n

xy

6. The sum of a constant is n multiplied by the constant, thus:

LHS=∑i=1

n

x i y i−∑i=1

n

y x i−x∑i=1

n

y i+nxy

7. Applying the rule from point 1:

LHS=∑i=1

n

x i y i−∑i=1

n

y x i−x∑i=1

n

y+nxy=∑i=1

n

x i y i−∑i=1

n

y x i−n xy+n xy

8. Thus, collecting like terms:

LHS=∑i=1

n

xi yi−∑i=1

n

y x i

9. Applying the rules of summation:

LHS=∑i=1

n

( x i y i− y xi )

10. Factorizing:

LHS=∑i=1

n

x i( y i− y )=RHS

Page 3: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 2:

1. Since ∑i=1

n

( x i−x )( y i− y )=∑i=1

n

x i( y i− y ).

2. We are required to prove that

∑i=1

n

( x i−x )2=∑

i=1

n

x i( x i−x )

3.LHS=∑

i=1

n

( x i−x )2=∑

i=1

n

( xi−x )( x i−x )=∑i=1

n

( xi2−x i x−x ix+x

2 )

4.LHS=∑

i=1

n

x i2−2 x∑

i=1

n

xi+∑i=1

n

x2

5. Since ∑i=1

n

x i=∑i=1

n

x

LHS=∑i=1

n

xi2−2 x∑

i=1

n

x+∑i=1

n

x2

6. Since ∑i=1

n

k=nk,

LHS=∑i=1

n

x i2−2 x⋅n x+nx2=∑

i=1

n

x i2−2n x2+n x2=∑

i=1

n

x i2−nx2

7. Applying the rules of summation, and the rule from Q1 point 1:

LHS=∑i=1

n

x i2−∑

i=1

n

x2=∑i=1

n

x i2−∑

i=1

n

x⋅x=∑i=1

n

x i2−x∑

i=1

n

x i

8. Applying the rules of summation:

LHS=∑i=1

n

x i2−x x i

9. Factorizing:

LHS=∑i=1

n

x i( x i−x )=RHS

Page 4: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 3:

Part 1:

1. Show that

∂∂b0

f (b0 , b1 )=−2∑i=1

n

( y i−b0−b1 x i)

2.f (b0 ,b1)=∑

i=1

n

( y1−b0−b1 x i)2

3. Applying the chain rule

∂∂ x

( f ( x ))n=n( f ( x ))n−1⋅f ' ( x ):

∂∂b0

f (b0 , b1 )=2∑i=1

n

(−1)( y i−b0−b1 x i)

4. And simplifying

∂∂b0

f (b0 , b1 )=−2∑i=1

n

( y i−b0−b1 x i), as required.

Part 2:

1. Then show that

∂∂b0

f (b0 , b1)=0when b0≡B0= y−b1 x

2. Substituting for b0 :

∂∂b0

f (b0 , b1 )=−2∑i=1

n

( y i−( y−b1 x )−b1 x i )=−2∑i=1

n

( y i− y+b1 x−b1 x i)

3. Applying the rules of summation:

=−2[∑i=1

n

y i−∑i=1

n

y+∑i=1

n

b1 x−∑i=1

n

b1 xi ]=−2 [∑i=1

n

yi−∑i=1

n

y+b1(∑i=1

n

x−∑i=1

n

x i )]4. Since

∑i=1

n

x i=∑i=1

n

x:

=−2[∑i=1

n

y−∑i=1

n

y+b1(∑i=1

n

x−∑i=1

n

x )]5. Collecting like terms:

=−2 [0+b1 (0)]

6. Thus, when b0≡B0= y−b1 x ,

∂∂b0

f (b0 , b1)=0, as required.

Page 5: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 4:

Define

∂∂b1

f (b0 ,b1 ):

1.f (b0 ,b1)=∑

i=1

n

( y i−b0−b1 x i)2

2. Applying the chain rule:

∂∂ x

( f ( x ))n=n( f ( x ))n−1⋅f ' ( x ):

∂∂b1

f (b0 ,b1 )=2∑i=1

n

(−xi )( y i−b0−b1 xi )

Page 6: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 5:

Setting

∂∂b1

f (b0 ,b1 )=0, show that

b1≡B1=∑i=1

n

( x i−x )( y i− y )

∑i=1

n

( xi−x )2

, when b0= y−b1 x

1.

∂∂b1

f (b0 ,b1 )=0=2∑i=1

n

(−x i )( y i−b0−b1 x i )

2.0=2∑

i=1

n

(−xi y i+b0 x i+b1 x2i)=−∑

i=1

n

x i y i+b0∑i=1

n

x i+b1∑i=1

n

x2i

3.∑i=1

n

( x i yi )−b0∑i=1

n

x i=b1∑i=1

n

x2i

4.

5. Now, substitute b0 with y−b1 x :

6.b1∑i=1

n

x2i=∑

i=1

n

( x i yi )− y∑i=1

n

x i+b1 x∑i=1

n

xi

7.b1(∑

i=1

n

x2i+x∑

i=1

n

x i)=∑i=1

n

( x i y i)− y∑i=1

n

x i

8.b1(∑

i=1

n

x2i+∑

i=1

n

x i x )=∑i=1

n

( x i yi)−∑i=1

n

( x i y )

9.b1(∑

i=1

n

x2i+x i x )=∑

i=1

n

( x i yi−x i y )

10.b1(∑

i=1

n

x i( xi+x )=∑i=1

n

x i( y i− y )

11.

b1(∑i=1

n

x i (x i+x )

∑i=1

n

xi ( xi+x )=∑i=1

n

xi( y i− y )

∑i=1

n

xi ( xi+ x )

Page 7: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

12.

b1=∑i=1

n

xi( y i− y )

∑i=1

n

xi( x i+x )

13. Substitute (as proved above) ∑i=1

n

x i( y i− y )=∑i=1

n

( x i−x )( y i− y ), and

∑i=1

n

x i( x i−x )=∑i=1

n

( xi−x )2

14. Thus,

b1=∑i=1

n

( xi−x )( y i− y )

∑i=1

n

( x i−x )2

, as required

Page 8: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 6Use the appropriate second-order test from Mathematics to show that the above

choices for (b0 , b1) give a minimum for f (b0 ,b1) .By deriving this two factor function twice, in all its forms, and using the formula Δ=AC−B2

, it is possible to prove, if Δ>0 , that the outcome is a local minimum.

The function is:

1.f (b0 ,b1)=∑

i=1

n

( y1−b0−b1 x i)2

The first derivatives are:

2.

∂∂b0

f (b0 , b1 )=−2∑i=1

n

( yi−b0−b1 x i)=−2∑i=1

n

y i+2nb0−2b1∑i=1

n

xi

3.

∂∂b1

f (b0 ,b1 )=2∑i=1

n

(−xi )( y i−b0−b1 xi )=−2∑i=1

n

x i y i+2b0∑i=1

n

x i+2b1∑i=1

n

xi2

The second derivatives are:

4.

∂2

∂b02f (b0 , b1 )=2n=A

5.

∂2

∂b0b1f (b0 , b1 )=2∑

i=1

n

xi=B

6.

∂2

∂b12f (b0 , b1 )=2∑

i=1

n

xi2=C

Applying the test Δ=AC−B2

7.Δ=(2n )(2∑

i=1

n

xi2)−(2∑

i=1

n

x i)2

8.=4 [n∑i=1

n

x2i−(∑

i

n

xi )2]

9. since ∑i=1

n

x i=∑i=1

n

x

=4 [n∑i=1

n

x2i−(∑

i

n

x )2]=4 [n∑i=1

n

x2i−(∑

i

n

x )(∑i

n

x )]=4[n∑i=1

n

x2i−(n x )(n x )]=4 [n∑i=1

n

x2i−n2 x2]=4 n[∑i=1

n

x2i−n x2 ]

10.=4n [∑i=1

n

x2i−∑

i=1

n

x2 ]Thus, Δ is always positive, and a local minimum exists. (b0 , b1) , thus, gives a

minimum for f (b0 ,b1) .

Page 9: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Part 2: Econometrics

Question 1 (1 mark) Read the given data file cars.xls into EVIEWS, and run a regression of KMLIT against the rest of the variables assuming homoskedastic errors. Copy and paste the EVIEWS output into the space below, and report the estimated equation with the standard errors below the coefficients.

Regression output

Dependent Variable: KMLITMethod: Least SquaresDate: 05/23/11 Time: 12:35Sample: 1 392Included observations: 392

Variable Coefficient Std. Error t-Statistic Prob.

CYL -0.160554 0.146039 -1.099391 0.2723ENGCM3 2.72E-05 0.000196 0.139041 0.8895

HP -0.015504 0.004587 -3.379960 0.0008WTKG -0.004089 0.000561 -7.286719 0.0000

C 16.23109 0.540492 30.03019 0.0000

R-squared 0.704063    Mean dependent var 8.297429Adjusted R-squared 0.701004    S.D. dependent var 2.765078S.E. of regression 1.511960    Akaike info criterion 3.677364Sum squared resid 884.6908    Schwarz criterion 3.728017Log likelihood -715.7633    Hannan-Quinn criter. 3.697439F-statistic 230.1772    Durbin-Watson stat 0.887708Prob(F-statistic) 0.000000

Equation

Y = B1(X1) +B2(X2) +B3(X3) +B4(X4) +UKMLIT = -0.160554(CYL) +2.72E-05(ENGCM3) -0.015504(HP) -0.004089(WTKG) 16.23109Std. Errors (0.146039) (0.000196) (0.004587) (0.000561) 0.540492

Page 10: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 2 (1 mark) Comment on the sign of each estimated coefficient in turn, and state whether this is what you expect. Ignore significance at this stage.

AnsThe coefficient “CYL”, or number of cylinders, has a negative sign: as the number of cylinders increases, the fuel efficiency decreases. This is to be expected, since, cetirus paribus, increase in the number of cylinders with out an increase in horsepower, weight or engine capacity would increase the friction on the motor, decreasing efficiency and reducing the amount of kilometres that you are able to drive per litre.

The coefficient “ENGCM3”, or the capacity of the engine in centimeters squared, has a positive sign: increasing engine capacity increases the efficiency of the engine. Whilst an engine with a higher capacity may run at lower revs, the positive sign is still unexpected, since more petrol is used.

The coefficient “HP”, or the power of the engine, has a negative sign: as power increases, the fuel efficiency decreases. Whilst this is to be expected at the higher range (increasing power above a certain point would decrease efficiency) this is not to be expected at the lower range: where there is not enough power, you would need to use more throttle to maintain speed, using more petrol. However, this is a relatively rare case, and in most cases, the negative relationship is to be expected.

The coefficient “WTKG”, or weight in kilos has a negative sign: the heavier the car, the less fuel efficient. This is to be expected since more power will need to be used to move the increased weight.

Question 3(1 mark) Interpret the estimated effect of the engine power (HP) on kilometers travelled.

AnswerAn increase of 1 hp will lead to a 0.0155 kilometres per litre decrease in efficiency. Further, this coefficient is statistically significant (with a 99.92% chance of being non-zero).

Page 11: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 4(1 mark) Test whether the data supports the hypothesis that Engine size does affect a car’s mileage (i.e. how far it can travel per litre). Formulate and carry out an appropriate hypothesis test using the t-statistic approach at the 5% significance level.

AnswerTo prove engine size (ENGCM3) affects mileage (KMLIT), ENGCM3 ≠ 0.

1. H0 :KMLIT=02. H1 :KMLIT ≠03. The level of significance is 5%; this is a two tailed test, so 2.5% per tail.

a. tcrit=−1.96

4. tact=β1−β1,0

SE β1

a. ¿ (2.72×10−05)−00.000196

b. ≈0.1388 ¿5. Since tact<|t crit|, we do not reject the null hypothesis: thus, engine size does

not statistically significantly affect mileage at the 5% level.

Question 5(1 mark) Test whether the number of cylinders affects a car’s mileage. Formulate and carry out an appropriate hypothesis test using the p-values approach, at the 5% level.

Answer1. H0 :CYL=02. H1 :CYL≠ 03. The level of significance is 5%; this is a two tailed test.

a. Thus, if P-val<0.05, accept at the 5% level.

4. tact=β1−β1,0

SE β1

a. ¿(−0.160554)−0

0.146039b. -1.099391≈1.10

5. P-Val=2Φ(-|tact|¿a. 2 Φ-1.10b. 2(0.1357)c. 0.2714¿27.14 %

6. Since P-Val>5%, we reject H0, Cylinder size is not a statistically significant variable in determining mileage.

Page 12: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 6(2 marks) Test the following hypotheses about the coefficients on CYL (B1) and ENGCM3 (B2). Clearly specify the rejection region if you are using critical values, and clearly state your conclusions. When using p-values, calculate and compare your p-values to the test size then state your conclusion. (Hint, assume the Central Limit Theorem holds)

(a) H0: , H1: , with α=0.05 using the critical-value approach.

(b) H0: , H1: , with α=0.05 using the critical-value approach.

(c) H0: , H1: , with α=0.05 using the p-value approach.

(d) H0: , H1: , with α=0.05 using the p-value approach.

Answer

Part ATo prove that B>0, we must reject H0: B1=0, in the right tail of the distribution.In order to prove that B1 is greater than 0, we must show that Tact(B)>Tcrit(B).Thus, Tact(B) must be in the rejection region, in the right 5% of the distribution, to the right of Tcrit(B)=2.57.

Cyl(B1)TactCyl(B1)=-1.10 (from the E-views output). This is to the left of TcritCyl(B1), thus, we cannot reject H0, and, thus, we cannot show that Cyl(B1) is statistically significantly greater than 0.

ENGCM3(B2)TactENGCM3(B2)=0.14 (from the E-views output). This is to the left of TcritCyl(B1), thus, we cannot reject H0, and, thus, we cannot show that ENGCM3(B2) is statistically significantly greater than 0.

Page 13: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Part BTo prove that B<0, we must reject H0: B1=0, in the left tail of the distribution.In order to prove that B1 is less than 0, we must show that Tact(B)<Tcrit(B).Thus, Tact(B) must be in the rejection region, in the left 2.5% of the distribution, to the left of Tcrit(B)=-2.57.

Cyl(B1)TactCyl(B1)=-1.10 (from the E-views output). This is to the right of TcritCyl(B1), thus, we cannot reject H0, and, thus, we cannot show that Cyl(B1) is statistically significantly less than 0.

ENGCM3(B2)TactENGCM3(B2)=0.14 (from the E-views output). This is to the right of TcritCyl(B1), thus, we cannot reject H0, and, thus, we cannot show that ENGCM3(B2) is statistically significantly greater than 0.

Part CTo prove that B>0, we must reject H0: B1=0, in the right tail of the distribution.In order to prove that B1 is greater than 0, we must show that P-Val(B)>P-Crit(B). Thus, P-Val(B) must be in the rejection region, in the right 5% of the distribution (P-Val(B) must be equal to or greater than 95%).

Cyl(B1)P-Val Cyl(B1)=.27=27% (from the E-views output). This is to the left of P-critCyl(B1), thus, we cannot reject H0, and, thus, we cannot show that Cyl(B1) is statistically significantly greater than 0.

Page 14: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

ENGCM3(B2)P-Val ENGCM3(B2) =.89= 89% (from the E-views output). This is to the left of P-critCyl(B1), thus, we cannot reject H0, and, thus, we cannot show that Cyl(B1) is statistically significantly greater than 0.

Part CTo prove that B<0, we must reject H0: B1=0, in the left tail of the distribution.In order to prove that B1 is less than 0, we must show that P-Val(B)<P-Crit(B). Thus, P-Val(B) must be in the rejection region, in the left 5% of the distribution (P-Val(B) must be equal to or greater than 5%).

Cyl(B1)P-Val Cyl(B1)=.27=27% (from the E-views output). This is to the right of P-critCyl(B1), thus, we cannot reject H0, and, thus, we cannot show that Cyl(B1) is statistically significantly less than 0.

ENGCM3(B2)P-Val ENGCM3(B2) =.89= 89% (from the E-views output). This is to the right of P-critCyl(B1), thus, we cannot reject H0, and, thus, we cannot show that Cyl(B1) is statistically significantly less than 0.

Page 15: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 7(1 mark) Formulate a hypothesis test to test whether a unit increase in a car’s weight (mass) has a greater detrimental effect on fuel efficiency than a unit increase in the power of the car’s engine, rather than the same effect. Use re-parameterization to convert the model to allow you to test this hypothesis using a simple t-test.

AnswerWe want to test that B4>B3 (that weight has a greater effect on efficiency than engine power).

The original regression is of the formYi=β0+β1¿

However, it is not possible to do the appropriate hypothesis test on this: thus, we use re-parameterization: β4−β3=θ. Thus:Yi=β0+β1¿

Yi=β0+β1¿

Now, we substitute (HP )+¿Yi=β0+β1¿

Now, we can do a hypothesis test on θ to solve the problem.H0: θ=0; H1: θ>0.If we can reject H0, then θ>0, and B4>B3, (weight is statistically significantly greater than hp in effect).

Page 16: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Dependent Variable: KMLITMethod: Least SquaresDate: 05/26/11 Time: 14:59Sample: 1 392Included observations: 392

Variable Coefficient Std. Error t-Statistic Prob.

C 16.23109 0.540492 30.03019 0.0000CYL -0.160554 0.146039 -1.099391 0.2723

ENGCM3 2.72E-05 0.000196 0.139041 0.8895HP+WTKG -0.015504 0.004587 -3.379960 0.0008

WTKG 0.011415 0.004721 2.418110 0.0161

R-squared 0.704063    Mean dependent var 8.297429Adjusted R-squared 0.701004    S.D. dependent var 2.765078S.E. of regression 1.511960    Akaike info criterion 3.677364Sum squared resid 884.6908    Schwarz criterion 3.728017Log likelihood -715.7633    Hannan-Quinn criter. 3.697439F-statistic 230.1772    Durbin-Watson stat 0.887708Prob(F-statistic) 0.000000

1. H0: θ=0; H1: θ>0.2. Rejection region is the right tail of the distribution, equal to or above P-crit (0.05)3. P-val (θ)=0.016 (θ is positive, and significant)4. Thus, we can reject H0 and accept H1: θ>0.Since θ is statistically significantly greater than 0, WTKG-HP>0, thus weight has a greater per-unit effect on mileage than hp.

Page 17: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 8(1 mark) Verify that the “OLS Wonder Equation” gives a standard error for the CYL coefficient close to 0.145. You will need to run a regression of CYL on all the other independent variables, and you must include this regression output below. (Remember, the OLS Wonder Equation gives an estimate of the homoskedasticity consistent standard error).

Dependent Variable: CYLMethod: Least SquaresDate: 05/26/11 Time: 13:33Sample: 1 392Included observations: 392

Variable Coefficient Std. Error t-Statistic Prob.

ENGCM3 0.000915 4.97E-05 18.42238 0.0000HP -0.002908 0.001588 -1.831399 0.0678

WTKG 0.000426 0.000194 2.195681 0.0287C 2.285539 0.147783 15.46555 0.0000

R-squared 0.905786    Mean dependent var 5.471939Adjusted R-squared 0.905057    S.D. dependent var 1.705783S.E. of regression 0.525600    Akaike info criterion 1.561598Sum squared resid 107.1870    Schwarz criterion 1.602121Log likelihood -302.0733    Hannan-Quinn criter. 1.577659F-statistic 1243.421    Durbin-Watson stat 1.479510Prob(F-statistic) 0.000000

1. SE(Cyl)≈S uSx i× 1

√n(1−R xion x2 )

2. SE(Cyl)≈ 1.5111.706

× 1√392(1−.906)

3. SE(Cyl)≈ 0.1459

Page 18: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 9(1 mark) Test the following joint hypothesis about the coefficients on CYL (B1)

and ENGCM3 (B2): H0: and , H1: or , with α=0.05.Along with the previous results, what do you conclude about B1 and B2? Is this consistent with your intuition?

AnswerThe Regression is as follows:

Yi=β0+β1¿

To create the restricted regression, we assume the null hypothesis (H0: B1=B2=0) is true. Thus, the following regression is formed:Yi=β0+β3 ( HP)+B4 ¿

This has two restrictions and 392 observations, thus, the F-crit value is (at 5% significance) 3.00.Dependent Variable: KMLITMethod: Least SquaresDate: 05/26/11 Time: 14:21Sample: 1 392Included observations: 392

Variable Coefficient Std. Error t-Statistic Prob.

HP -0.016962 0.003947 -4.297243 0.0000WTKG -0.004488 0.000394 -11.38779 0.0000

C 16.13025 0.282533 57.09155 0.0000

R-squared 0.702602    Mean dependent var 8.297429Adjusted R-squared 0.701073    S.D. dependent var 2.765078S.E. of regression 1.511786    Akaike info criterion 3.672084Sum squared resid 889.0585    Schwarz criterion 3.702477Log likelihood -716.7285    Hannan-Quinn criter. 3.684130F-statistic 459.5047    Durbin-Watson stat 0.882036Prob(F-statistic) 0.000000

1. F=(RU R

2 −RR2 )/q

(1−RUR2 )/(n−k−1)

2. (0.704−0.703)/2

(1−0.704)/(392−2−1)3. 0.657Since the F statistic for this is smaller than the F critical value, we cannot reject the null hypothesis: thus, the restriction is not void, on CYL (B1) and ENGCM3 (B2) are jointly statistically insignificant.

This is consistent with the tests conducted above, and our expectations for the values.

Page 19: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,
Page 20: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Question 10(2 marks) Can you explain any conflict between the implications of the results

obtained about and and your expectations? (Hint: Run auxiliary regressions for the explanatory variables in question against the others, and compute the correlations between all the explanatory variables. What do you notice?).

Answer

The results above suggest that CYL and ENGCM3 are insignificant variables. Whilst the R squared coefficient of the regression on KMLIT including all the variables is slightly higher than the restricted regression (KMLIT against HP and WTKG), this is to be expected by adding variables. Whilst this improves the predictive power on KMLIT, it does not allow us to further understand causation, since the standard errors would be higher.

Further, it seems that a regression on KMLIT against the variables HP and WTKG gives a slightly better adjusted R sqared coefficient: as such, the variables are more explanatory in such a model.

Thus, we believe that the coefficients HP and WTKG correllate with CYL and ENGCM3. Whilst leaving the in the regression formula would cause Ommited Variable Bias, this would be slight compared to the inaccuracy on each variable caused by the correlation.

This correlation is proved below, and shows that our expectations about CYL and ENGCM3 are not invalidated, but, rather, that their effect is absorbed by the effect of WTKG and HP on KMLIT.

Page 21: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

CYL is correlated with WTKG and HPCYL is correlated with both WTKG and HP, as shown in the following scatter plots (an increase in CYL, generally, is correlated with an increase in HP and WTKG):

40

80

120

160

200

240

2 3 4 5 6 7 8 9

CYL

HP

400

800

1,200

1,600

2,000

2,400

2 3 4 5 6 7 8 9

CYL

WTK

G

Further, an auxillary regression shows that WTKG and HP are excellent explanators of CYL (with an R squared coefficient of greater than 0.8)

Dependent Variable: CYLMethod: Least SquaresDate: 05/27/11 Time: 13:41Sample: 1 392Included observations: 392

Variable Coefficient Std. Error t-Statistic Prob.

HP 0.011212 0.001856 6.042161 0.0000WTKG 0.003171 0.000147 21.55655 0.0000

R-squared 0.821785    Mean dependent var 5.471939Adjusted R-squared 0.821328    S.D. dependent var 1.705783S.E. of regression 0.721029    Akaike info criterion 2.188814Sum squared resid 202.7542    Schwarz criterion 2.209075Log likelihood -427.0075    Hannan-Quinn criter. 2.196844Durbin-Watson stat 1.584778

Page 22: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

ENGCM3 is correlated with WTKG and HPENGCM3 is correlated with both WTKG and HP, as shown in the following scatter plots (an increase in ENGCM3, generally, is correlated with an increase in HP and WTKG):

40

80

120

160

200

240

1,000 2,000 3,000 4,000 5,000 6,000 7,000 8,000

ENGCM3

HP

400

800

1,200

1,600

2,000

2,400

1,000 2,000 3,000 4,000 5,000 6,000 7,000 8,000

ENGCM3

WTK

G

Further, an auxillary regression shows that WTKG and HP are excellent explanators of ENGCM3 (with an R squared coefficient of greater than 0.75).

Dependent Variable: ENGCM3Method: Least SquaresDate: 05/27/11 Time: 13:47Sample: 1 392Included observations: 392

Variable Coefficient Std. Error t-Statistic Prob.

HP 21.30413 2.074520 10.26942 0.0000WTKG 0.831055 0.164440 5.053839 0.0000

R-squared 0.779611    Mean dependent var 3185.650Adjusted R-squared 0.779046    S.D. dependent var 1714.836S.E. of regression 806.0712    Akaike info criterion 16.22731Sum squared resid 2.53E+08    Schwarz criterion 16.24757Log likelihood -3178.553    Hannan-Quinn criter. 16.23534Durbin-Watson stat 0.812699

Correlations computedUsing Eviews, we computed the following correlations:

CYL ENGCM3 HP WTKGCYL 1.00 0.95 0.84 0.90ENGCM3 0.95 1.00 0.90 0.93HP 0.84 0.90 1.00 0.86WTKG 0.90 0.93 0.86 1.00

Conclusion

Page 23: QBA:Assingment - Oats and Sugar Web viewQBA ASSIGNMENT PROJECT . Semester 1, 2011. Lecturer: Dr Otto Konstandatos. This assignment is in two parts of unequal value. Part 1. is . technical,

Both CYL and ENGCM3 are correlated closely (and explained well) by HP and WTKG. Thus, the effects of CYL and ENGCM3 on KMLIT is explained via HP and WTKG, and their effect ong KMLIT outside of this is too small to be significant.