Skip to content

Linear Regression is implemented to identify the relationship between the profit of a bakery and the population of different cities. The main objective is to find the next city in which a new outlet should be opened.

Notifications You must be signed in to change notification settings

mehboobali98/Univariate-Linear-Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Univariate Linear Regression

Problem Statement

Linear Regression is implemented to identify the relationship between profit of a bakery and population of different cities. The main objective is to find the next city in which a new outlet should be opened.

Implementation

  • Implemented the cost function shown in the Fig. below.

  • Implemented gradient descent to optimize the cost. No ML frameworks or libraries have been used.

Dataset Visualization

Best Fit Line

Directory Structure

📦Univariate-Linear-Regression
 ┣ 📂Dataset
 ┃ ┗ 📜ex1data1.txt
 ┣ 📂Documents
 ┃ ┗ 📜Assignment_1 Linear Regression.docx
 ┣ 📂Resources
 ┃ ┣ 📜best-fit-line.PNG
 ┃ ┣ 📜costFunction.PNG
 ┃ ┗ 📜dataset-visualization.PNG
 ┣ 📜A1_Q1_Part_1.ipynb
 ┗ 📜README.md
 

About

Linear Regression is implemented to identify the relationship between the profit of a bakery and the population of different cities. The main objective is to find the next city in which a new outlet should be opened.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published