Order Now  +1 678 648 4277 

Regression Homework Solutions

The following are regression solutions that seek to determine how university grades affect monthly wages. The solutions involve concepts like dummy variable trap, coefficient of determination, and significance levels just to mention a few. Accurate decisions are made based on the data and appropriate explanations are given to make understanding the solutions simpler

Using Regression to Decide On the Hypothesis and Calculating the Coefficient of Determination


A researcher wishes to understand how the university grade affects the wages that are earned by students taking the econometrics course at Brunel. In 2014 there were 97 students who passed the course. The researcher regressed their monthly wages in 2019 against their grade (where there are three dummies for grades A, B, and C), the age of the student, and their age-squared. The researcher estimated the following relationship (standard errors in parenthesis). Suppose the T SS = 35472 and the ESS = 9983.

Constant 1204 (208)

Grade A 815 (189)

Grade B 521 (174)

 Grade C 206 (125)

Age 58 (22)

 Age - squared 18 (8)

Explaining the dummy variable trap

(a) A critic argues that including a dummy of grade A, for grade B and grade C violates the dummy variable trap. Is the critic correct? Explain.

Yes, the critic is correct. The reason is that the Dummy variable trap is one of the crucial mistakes that machine learning engineers can make while they build their models. It affects the performance of the model and can lead to inefficiency in the model prediction. This means that one variable can be predicted from the others, making it difficult to interpret predicted coefficient variables in regression models. In other words, the individual effect of the dummy variables on the prediction model can not be interpreted well because of multicollinearity.

Marking significance levels 

(b) Has the significance level been marked correctly in the table? Mark the significance level correctly in the table if this has not been done. [The answer must be written in the answer booklet]. 

betaStandard ErrorT valueP-valueSig/Not Sig
Grade A8151894.3121693.919E-05Sig
Grade B5211742.9942530.003499021Sig
Grade C2061251.6480.102621923Not Sig
Age Squared1882.250.026732382Sig

Making a decision on the hypothesis

(c) (i) Does the regression suggest that better grades raise wages? (Precisely explain what is being tested). (ii) Calculate the effect of being older by one year.

i. the regression suggests that better grades raise wages because the test is statistically significant as p < 0.05. Therefore, there is enough evidence to support the null hypothesis.

ii. the effect of being older by one year is given as

effect size = mean diff / standard error


An effect size of 0.05 is considered a small effect size. This means that if the difference of being older by one year is less than 0.05 standard deviations, the difference is negligible, even if it is statistically significant.

Calculating the coefficient of determination

(d) Calculate the R2 and test the overall significance of the model.

The coefficient of determination (R^2) is given as:



A coefficient of determination of 71.86% shows that 71.86% of the data fit the regression model. Hence, it is a good model.

Drawing a graph to represent the relationship

(e) Draw a graph to illustrate how the grade affects wages.

regression assignment 1

 The graph above illustrates how grades (A, B, C) affect wages. The graph slopes downwards with Grade A having the largest impact followed by Grade B while Grade C has the least effect.