Logo

Machine learning

 

Linear regression :

The link between one or more predictor variables and one outcome variable is quantified by linear regression.

Predictive analysis and modeling frequently use linear regression.

It can be used, for instance, to measure the proportional effects of nutrition, age, and gender (the predictor variables) on height (the outcome variable).

two types :

1. Simple linear regression

2.Multivariante linear regression

 

Simple linear regression :

involves only one variable dependent prediction

Y=mx+b

 

 

down                                                        downal

Download. Houseprice csv file.                                     Download. Houses areas csv file.

 

 

 

Codeblock E.1. Linear regression demo.

 

Exercise to predict canada's precapita income :

down

Download. Canada per capita income csv file.

 

Solution :

 

Codeblock E.2. Canada prediction for percapita income for years 2020,2022,2023 demo.

 

Multivariante linear regression

Involves multiple variables to predict an output.

Y=m1x1+m2x2+m3x3+bias

 

dwer

Download. Houseprices csv file.   

 

asdfghjkl

Figure E.1. predict the prices for these values.

 

 

Codeblock E.3. Price prediction for houses as seen from the table shown.

 

Exercise to predict the salaries of individuals based on 3 feature vectors.

 

qwerty

Download. Hiring csv file.

 

qwertyuiop

Figure E.2. predict the salaries for these values.

 

 

Codeblock E.3. Salary prediction for houses as seen from the table shown.

 

 

---- Summary ----

As of now you know all basics of Protein Structures.

  • Linear regression

  • Y=mx +b.

  • intercept.

  • Slope.

  • etc..

Content

PythonPythonME

Introduction

Setting Up


________________________________________________________________________________________________________________________________
Footer
________________________________________________________________________________________________________________________________

Copyright © 2022-2023. Anoop Johny. All Rights Reserved.