Watts-College / paf-510-template

https://watts-college.github.io/paf-510-template/
0 stars 0 forks source link

Lab 6 Q2: Wrong Looking Results #78

Closed bjames25221 closed 1 month ago

bjames25221 commented 1 month ago

I'm using the scaled model (/10,000) as recommended in the lab, and I'm using 15k and 25k as inputs for question 2, but my output doesn't look correct.

Currently, I'm getting that a person is 27 points LESS HAPPY when they get an income raise from 15k to 25k. I'm getting similarly strange answers (all negative) for Q3 and Q4, increasing in absolute value and outside of the scale (in the -400s).

Below is my code from Q2 (almost exactly what is on the lab instructions), can someone provide input on what I'm getting wrong?

image

@nickmcmullen @AntJam-Howell

bjames25221 commented 1 month ago
merima-d commented 1 month ago

I'm also confused about this because it doesn't make any sense that there is a negative relationship between income increase and happiness at the early stage. Later, the level of happiness should start slowly decreasing given the same rate of increase as at the start of one's career. Should we divide 15000/10000 and 25000/10000 which turns the values to be 1.5 and 2.5 respectively?

nickmcmullen commented 1 month ago

@bjames25221 15000/10000 is not 15, it's 1.5. Double check your scaled coefficients and try again

nickmcmullen commented 1 month ago

@merima-d you scaled the coefficients correctly. Now plug them into the regression formula and subtract happy.25k from happy.15k to get the change in happiness.

bjames25221 commented 1 month ago

@nickmcmullen got it! Thank you, it does work with those values. In this case, the lab instructions set up the problem incorrectly. The instructions show 15 and 25 for Q2 and tell you to rescale to $15000 and $25000 if you didn't scale the coefficients.