Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ch6>ex 10c 10d>The calculation of pred should include intercept #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PhoebeDreamer
Copy link

@PhoebeDreamer PhoebeDreamer commented Apr 24, 2018

Hi, thanks for your amazing solutions.

I found that in problem 6.10, you didn't include the intercept when calculating pred by omitting the coefficient of intercept. Though the outputs are almost same, R^2 can be very different.

Reference:
When is it ok to remove the intercept in a linear regression model?
Removal of statistically significant intercept term increases R2 in linear model

@PhoebeDreamer PhoebeDreamer changed the title Linear Regression should include intercept Ch6>ex 10c 10d>Linear Regression should include intercept Apr 24, 2018
@PhoebeDreamer PhoebeDreamer changed the title Ch6>ex 10c 10d>Linear Regression should include intercept Ch6>ex 10c 10d>The calculation of pred should include intercept Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant