Adobe Scan Jul 16, 2024

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Page

Date

SING STATS NODEA


REGRESSIDN

Stastial
weallo loased om te value af arothe
catled as lnia ucgrcxo) analysa

madelae91e8s . lhear-model .6LS


The stat
mtiod fs wsed to ealam

Lheay egpuatcns the fomt

modls. egr0Kon .lneamodel.. OLS[endoa


Slas nonehas conste ro
:

feiameleu

endog

none dec0ae and raeße ame


str
auaialle alteenaisd

nan

Dyormed.
Page
Date

haxonst None OBOd

sel- dupped
RHS Constant u

** kuca gs
hhen uung tfu omla
agamens ae ulised to et artuseaa
modol.
,adtitinal
Retun Ordinany at squases ae eluenod

Tnstallaton
pp rtall numpy
pip fnbtall pandA
pp mstal statsmoles

Aspuie irgomunt atin:


Tampot packagu
Iangectig the daquiid packagsi tu ust sip.
Thu pandai, Nunpy and stats model ockaqe
impoitad
Import numy
mport
asnp
andas asS pd
fmport Stats modes sapl aS
as.Sm
Joatey data

rLcthod
the cataset

Hiead sta and bran Laght e tte cslunry

df pde 2ead_csv/'head braêl. Csv')


df head )

TRe ficad qtte datafama looks ldko


4 HeadstA (ers) reiuugle (m.

45 12 |530

2 133S
3 311 |282

visualizng the data

By wstng tle matplof and seatken ypackaga,


LaLalizo tu cdatr o Sns. Tegplot
helps uS to reate a regressct plot.
Page
Date

ep 3: Satting an hypetheas

luterucan hcaclstre a d loam

tuuoon heacl slxe and

at madels TegresIeD . rear_modal. DLSO methed


fs Lsed to get Oradirasy last qlase, and fio

The Dlsmcthad-dakes fan tlo data andl eefoaa


.near egresso.

Steps: Sumasy f the modal

mthad

palnt (madl. summary ()


Page
Date

Quaulalilu clanes a
Thes au fose ol that U help

follous
he clases ae as

OLs- ONduiosy dast uquato


least quLoNe
WAS - mgidd
ferialu'ed elast auasa
GLSAR

ceegyeesALOù nUOolel hel cto


Slatmcdel lnea

tho Pndependent quanttres

You might also like