/Univariate-Linear-Regression

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.

Primary LanguageJupyter Notebook

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