20331a0547 (Spa) Assignment
20331a0547 (Spa) Assignment
bana balta
I03.3 (A0641
SS1q hmcnt Cst-8
I 22 2y
12 1 16 20
Cno bl obsenvations-)
4
LCI2)
35nd obsnvation nomthe
4 th -
tollobinq data 2 3 5 8 lo
ton the ahove
Dhat ane the tunctions tscd
Pthon /R. re
Mcan Hbss ate cleviation lmAD).is he avcnage
of the absoute eli fonentes behocan asel ot
numbos.qnd the man of thase numbens
hus er
lsisolb
Fon the qiven data
2,315, 1,8,9,1o
3
C+3+ r +5+7 +2 4c7+lo)|
Mcan
6
- +3+2+1+ 1+2t34) / 2
catae ct3,4,5,1)
mcan i mcant data)ey t
aas data a abs (dlata- mean-)
Mad= meanl absdota
pnint Cmad)
bins 1nthe
e d nequincd 45 neude empy
tmequ cno able dyes , wh
commcnded to include
Ts qchcnally nc
tt
fnequenay able
as
Cmpty bns n a
the
outlins They ncpncs ent TangJ
In
T a a typical datusd
vaues of he datasct
o f
phisken extonds
tnom
4he
the
tnOm
the losa
boxplot Smalles vauc
Smallesl valuc in
in
pnoVi de
a qurck
dind
dataset oleta
deta.
vanla
an brlih of
ta brlith
tation of a nge
nepncsen
a
gnenate
Ontte a cod shippet
J
Scctten plot
Python plt
Impont nmatplot pplot
as
X
I2,3, 4,5J
y 34,5, 62]
Plt 8catn (xy)
plt xlabclC"x axis'
labelC" y axis)
Plt.y
PlHs ho» )
lo qcneale salln plot
lo qenenate In R
c obtain by sing (q9plot 1)
1bnarny99pot).
X-c C1, 2, 3, 4,5)
y-c C1 6, 3, 10)
g9plot datatname Cy) , acs Cx) +
JCom-bointC)+
Lcunate
o
Leclambaa Datta
Assiqhcnt-2 20331AOS1+
A Contlence leve ot ho
S a mcas wnc of
Contident ebe Ce 4hat he tnue
Sample S13e>
nnor is a
m casune
oT Vaniablihy 79
standand
hich a Slat uscd
of hecshmatou , o is
population panameten
o cstmate the
standand devi abon
Coalaulated as the
T is
drsnibution of the eshmaton
of the 5ampling
SE S
n
standandl deviathon n is sampe
Sis the
S3
SE as Sn
SE L aS n nneascs the Sample
bccomesbetten neppescntati
ob population, ieducthe
vaniab1lity ot estmator
as SE becomcn Smallen
monc ne u s e
Cangn Sample Slze pnovides
eshato
Longe Sample yoVIdes Cmone
standone
atbnoximatey 9sfalls t a n bo
talls brthin
deviations and approximdely 9:7
thnee slanclancl de viations This rule
AG
esthimate of
the pencctage
pnovides a nough
Ton
(ie thin a q)vcn Ttangc
ot valus thoct
bnar
yyplota)
Sample honmal distn tb-
Gcnenahng
Set SecdC
cpaantile uanble lot
oovaucs an plolled
quantles of
Ohen
Ohen n col
oktaind
he
ofhenlhen
@qeins Cach plot
quantle- quanhle
knonm as
plot 1s
the edhstnbabi
the elistlbaba
bhetha
aU713e5
Ths lot summ
ont h
hoo
Ganiades
aSic Simlan not -b
Cocatios
Pyton
1mpot numpyas hP A
Sh
as
statsmodelo asi
Impont
Impont ylab as
nandom honmal (o, Iyloo)
data Points np =
Sm19Plot (dataponts,
ine =l4s")
Py'Shou C)
a a p
2
Jhconti cal anhles
4 plain andom Sampling orlh an example
Code Shippet
handom samplc ts a stahstial methodof
sdectng a
samfle of data fonbs tmoma
Cconq r Sct ot dlata the idca behned he Tiandbm
mpont TLandonm