Skip to content

Comments

Assignment 2 Complete#2

Open
vignash46 wants to merge 3 commits intomainfrom
assignment-2
Open

Assignment 2 Complete#2
vignash46 wants to merge 3 commits intomainfrom
assignment-2

Conversation

@vignash46
Copy link
Owner

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

Adding assignment for linear regression lesson

What did you learn from the changes you have made?

Learnt how to do linear regression in python

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

Nope

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

Nope, straightforward

How were these changes tested?

Run in VS Code

A reference to a related issue in your repository (if applicable)

N/A

Checklist

  • I can confirm that my changes are working as intended

@vignash46 vignash46 changed the title Assignment 2 Assignment 2 Complete Dec 8, 2025
Copy link

@PatelVishakh PatelVishakh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment 2: Complete, Great Work!
Suggested changes:

Q1) I) Instead of commenting manually or just printing output, should make it part of a statement. for eg.
print(f"Number of observations (rows): {num_rows}, Number of variables (columns): {num_columns}")


Q2) I) Also Should explain what Positive, Negative and No association imply about the relationship with the response i.e. when model year increases on average the MPG goes down.

Q2) II) Should Also explain the plotted line represents the line of BEST FIT with respect to the mean of sum of squared errors. 



Q2) III) These differences are called residuals, and they show how far each data point is from the predicted value on the line.

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.

2 participants