0% found this document useful (0 votes)
16 views35 pages

Regression Notes

The document discusses logistic regression, a supervised machine learning algorithm used for binary classification tasks. It explains the logistic regression equation and the sigmoid function, which maps predictions to probabilities between 0 and 1. Additionally, it highlights the application of logistic regression in predicting outcomes such as the probability of heart attacks or university enrollment.

Uploaded by

Bhakti Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views35 pages

Regression Notes

The document discusses logistic regression, a supervised machine learning algorithm used for binary classification tasks. It explains the logistic regression equation and the sigmoid function, which maps predictions to probabilities between 0 and 1. Additionally, it highlights the application of logistic regression in predicting outcomes such as the probability of heart attacks or university enrollment.

Uploaded by

Bhakti Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

sd tat wethod stailial

uhist. dipeucbut
Regpuuion tinea Simple
vekibl dgundeut
cat
dahust
deuuivd
ML
Regauio< ditax Whats
Cubpnt (ne
Lineast Requsion ine
calld

tw

wheu

wd po-pz

ut wt xady valw ad
l u kke ed.

D D

P
X
neinu
hald be oa
ud ata valus

lyauclud

batsons, qau
vecos couai iy alhsu ih kdscooms ,

Eoaupl - Fid a
ata et.

8
hu

yi-7-) 2

-3.25 I|. 25
2. 3 -3

- 0.75 -0.+5

1. 25 J.25
L

Jo Jl. 25
13. 25

2+4+ 648 5

26 bo25

25-0.45 23.
15
B ll.25 + 1-25 +|·

b.25 -5. 15 = 0.5


16) L5)=
Bo = 6.25 - l·

4 0.5+ (-15)
MEAN SQUPRE ERgOR (MSE)
valvatan uie thet colutat
Mion Solarvd Etat CMSE) is or

all the data hant Whe


olilsd valu fu faile iunu don t
squasad t smawe bhat nugaluu and
lanl cach athee aut.

value as the i dat paint


de autal es obhud data paiat

EAN ABSOLUTE ERRoR (MAE)


coleulat
alatog meti sd t
ngrssian modl. MAE uoswes
bhe acay a poliid valus ata
pdetid and
absalut diee eaun tu
awsage
actucl valus.

gi punti tu alal valus


tu pruolictid valus.

Lay MAE value ioicots bettt maol tfamanc.


ot u i t s t the
sutlins
Dapndent
vaiabll

CastEaon'
Jlo, e,) - L

9ndypndont vaniabl

Bho, calulat
dyhndnt
[quaked rot CMSt).

Anb.
7

To fond linat

2
|6

36 30
6

lo 64 8o

144
dat To Zicuning
p dalastt
panamelirs
lo odela
an squanio mian tetuduce ducert gedint algoiton
meoygiy
Me chaluy y do
tu sing tiaind can iodlel
be
DESCENT
FoR GIRADIENT
LiNEAR
GRE (E
SS
2l75 =&.7
7:2 5 6
84 4.
2.89
5.3
O-16 3 2
Cy
75z +o =5
=/·5
0-?5 =
lminiizinng RMsE valu) onod achime tu but
tio moolel waLs
uuth kandam &, s oe valaus amd tn itromly
mmiinumm cot
up dat te valus , oching
but a daiabiu tat lnes he
gradunt s noltig
vatiatons in nft.
CosT tuNCTION
J9 9, ) = i=)

Vall

Larng

Chyl)-g)2cox-)

LINEAR MEGRES51ON
SiMFLE
NssuMPTIONS OF variakles
indebndnt and debendt
The

thet hags a luat Jauhion


then lmlat tugusto
will mot be
eccurale o d l
iabl defbensert
chang
he
Bagsien Linar Advantagzs
fpinoisls. fast
valu
Laings fhie slock
variabl.
Fore pliala bhauiet
a the prdit ond
sinfaet
vaiablcs
has inlaßerdt tu omaunt the thed
corelant
hie bbos
is aionee
th te 5), Variabl
moll. accwnak
a be noB weill
Vasiable
dos
olvalons fridlkinolnee
he :
inat Agnion cerputalanaly ind amd cam handd
Lange datauh ctuly . et con ke thand quicky
abplatons
Limat elatiuay sobst aulliss cofarud
hau
C srralks afoct on the onsall model peufasaane

comhoe machine larming


agauthn.

Disadantags Linan Mayusion


abses a linat elalonshil butusen

Aelatiansh i zot lro the meodel moy

high coelaton ktsn idl.


vaiakls ullicallirloily can inflat to vaianee y
he caliint s ad wetobl meoel folictons.
Linat nigusion aummes thad ta fats
Jatun ae alray

fomat that can ke


Jonclon lost Jecode Psudo
tauaton ugnusion Liaas The
z)/n Sua 2t -CSumy
3.
+
a) 2
the in9:) (i, pant data cach Fot
dalast :
dataat
0 bllm
Snitializa
Repasin Linas Psudecode
Jo
laring -rahirs asaned
vaiall.
Morebe lalaahs
lsar conply
6) aluott wmot

3. llatt t on
in te dataset )

lsudecode Jos Cradint Duent


manhalons &- loo0

whil t < mee itbnabins do

endl

Gubuited By i
(PN22/HseHpse
Hiuani (9keel MS MAT| 5?)
Subict Maciutny (Mc
DELHI TECHNOL06i CAL UNIVERSITY

MACHINE LEARNING
MSMA 218

Simple bogistie Begresion


Notes

Subri tted To : Submite d8y:


Rof Arjana qupta Suoati Suman
2KI2[MsCMAT/5|
Ritika Gupta
2K22/MScMAT |54
1 Loqistic Resvesion
a sugesvised machine leari'
Logistic neresion is binay cagtfation tak
algorithm thet ace omplshes'
probebility of an outtome,evnt,
by predicting the model deliers a
or oaseryatisn. The two pomm ble sutcoes:
to
dichotomous euteome limibed
o/1, or true/false
qesfno, o/1
the relationglip betten
Logial ngouin amalyes
more ndegendeut vapables and cashes
into discyete classes. 9 is extevely sed
data estimates
predicthie modelling, shere the model
in am instamce
the mathe matial probabilty of ohe ther
based
os not on a
to a spleike catgoy
ven data set ay independent vanables

for erample , o- represeuts a negatiie cas; ! -


vprents a positie cdass. Logstie resin
used in binary cluifestin
Problems where the otcome yanable reveals either
of the two categors (0 and ).
Exomphs?
1 Detmine the probability of heat attacks
PRssiblity of enyolling into wuversity
3 9demt tying pam emaila
2 Simple Logistie vexe sion Eguation
Simple agitit Regresin statistial test
wsed to predict å smale bnar yarnable wsing
a

one other vanable. This is done byy using the


sigmeid function to map predie tioni amd their
Probabilities.

The sigmsid functionandconverts ar 4 real


e value to
a range betuween 0 1. Such that, if the
Putput of the sigmoid funetion (estinated pro bablt)
is geater tham a predefned threshold on the
aph, the model preditts that the instance
belongs to that clas. 4 the estima ted probabib
is les than the predifined threshold, the madel
predicts that the initamce doe not belong to the
class

Logistie Regresion eqatim; |+ elbetbx)

where,
input value
8 predicted sutput
bo = biad or intercept term
bË = (oeffiient for input (x)

You might also like