Skip to content

UofT-DSI | LCR - Assignment 2#2

Open
zdai399 wants to merge 1 commit intoassignment-1from
assignment-2
Open

UofT-DSI | LCR - Assignment 2#2
zdai399 wants to merge 1 commit intoassignment-1from
assignment-2

Conversation

@zdai399
Copy link
Owner

@zdai399 zdai399 commented Dec 4, 2025

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

I added all codes required for assignment 2.

What did you learn from the changes you have made?

I learned how to inspect data and fit multivariable linear regression model and evaluate the model via RMSPE.

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

N/A

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

It was hard to figure out the syntax for the multiple variables, but testing things out solved the issues.

How were these changes tested?

The changes were tested by running the code out.

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

N/A

Checklist

  • I can confirm that my changes are working as intended

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) II) More relevant response is Mpg is a continuous response variable stored in our dataset as float64 type.

Q1) III) should output the top 5 full observations. we can use highest_5_horsepower = mpg_data.nlargest(5, 'horsepower')
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 differences between the observed value and the predicted value by the line.
Q2) III) These differences are called residuals

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