Skip to content

rakshith1928/Rakshithn-elevateLabs3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Task 3: Linear Regression โ€“ AI & ML Internship

๐Ÿ“Œ Objective

Implement and understand Simple Linear Regression and Multiple Linear Regression using Python.

๐Ÿ›  Tools & Libraries

Scikit-learn

Pandas

Matplotlib

Seaborn for visualization

๐Ÿ“‚ Dataset

You can use any dataset relevant to the task. Example: House Price Prediction Dataset Download Dataset (Replace # with dataset link if available)

๐Ÿš€ Steps Followed

  1. Import and preprocess the dataset

  2. Split dataset into train-test sets

  3. Fit a Linear Regression model using sklearn.linear_model

  4. Evaluate the model using:

MAE (Mean Absolute Error)

MSE (Mean Squared Error)

Rยฒ Score

  1. Plot regression line and interpret coefficients

๐Ÿ“Š Evaluation Metrics

MAE: Average absolute difference between predicted and actual values

MSE: Squared difference, penalizes large errors

Rยฒ Score: Measures how well the model explains the variance in data

๐Ÿ“– What I Learned

Regression modeling

Model evaluation metrics

Interpretation of coefficients

โ“ Interview Questions

  1. What assumptions does linear regression make?

  2. How do you interpret the coefficients?

  3. What is Rยฒ score and its significance?

  4. When would you prefer MSE over MAE?

  5. How do you detect multicollinearity?

  6. Difference between simple and multiple regression?

  7. Can linear regression be used for classification?

  8. What happens if you violate regression assumptions?

AUTHOR NAME - RAKSHITH N

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published