0% found this document useful (0 votes)
29 views10 pages

Irt Assignment 2

Here are the steps to calculate the average weight of the 3 nearest neighbors to ID 7: 1) Find the 3 nearest neighbors to ID 7 based on Manhattan distance: - ID 4 with distance 2 - ID 6 with distance 3 - ID 8 with distance 4 2) Sum the weights of the 3 nearest neighbors: Weight of ID 4 = 59 kg Weight of ID 6 = 60 kg Weight of ID 8 = 60 kg 3) Sum of weights = 59 + 60 + 60 = 179 kg 4) Calculate average weight by dividing total sum by number of neighbors: Average weight = Total sum / Number of neighbors = 179 kg / 3 = 59.66 kg Therefore
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)
29 views10 pages

Irt Assignment 2

Here are the steps to calculate the average weight of the 3 nearest neighbors to ID 7: 1) Find the 3 nearest neighbors to ID 7 based on Manhattan distance: - ID 4 with distance 2 - ID 6 with distance 3 - ID 8 with distance 4 2) Sum the weights of the 3 nearest neighbors: Weight of ID 4 = 59 kg Weight of ID 6 = 60 kg Weight of ID 8 = 60 kg 3) Sum of weights = 59 + 60 + 60 = 179 kg 4) Calculate average weight by dividing total sum by number of neighbors: Average weight = Total sum / Number of neighbors = 179 kg / 3 = 59.66 kg Therefore
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
You are on page 1/ 10

CSgO3O- nfonm ion

CSSOXOInfonmgt Rebhual Techmques


Assiqnment

Hicnchieol Clustesing
Using one
dumenktonal daka set
7, 10, 20, 28, 35 Peorm
lunk Single Mnk ad lerplete
hwoacher Chustomny
method
enontnom and Plot
plot the

Stnge nk ethod
Step
to 20 2835

1o30
20 13 Io O

2821 18 8
3S28125 15 1

Ste p 2

71) 20 2 35
20 to O
26
8 8
35 25 5
O
SteP 3
7,10) 20 (28,35)
7, 10)
20

s,35) 18 O

steP 4

7,1o) (2,27, 33)|


7, 10
o, 18,35) 1o O

Denoq uem

lo 20 28 3S
Complete a
Stepi Step 2
t,1) 20 |2 3 5
ITo 20 2s|35 7,10)
20 30
to 28 218 O
35
20 13 Io| O |235
28 2 188 O
3518125170
SteP S1o) 2o3,35) SteP 4
, 10,20) (28, 35)
7,10, 2
20 3 Q8,39) 28
28 15
28, 35)

Dendhogtom
13

20 28 3S
Cten the
follbuwi Poinks
AL2,10), A2(2, 5), A3(8,4), A46, ), ASLT5)
A14)
AT(1,1) A84.9) into thee custe.
INtit Csten Cenths ae Points A, A and A7
PCab)s laine a
|?, -z,l +|7-%
Whene a =
(x1,4,) and b (3,, 9,
C2 C3
Foink istance DiStance DI stancee Poit belongt to
Pon ta A ie A hem A C12C3
A C2,10) 5
C3
A2, 5 6

A, 4)12
A 8) C2
AS1,5) to 4 2

A6,4) 5 2
A7 ( ) 4
O
A8 4,1) 3
2 lo C2

CE A
C2 A3, Ak, A5, Al, AS
C3 A2, A
3 Tne the Vaues ef Euie Jktance
the ien fot
4es (Mths =g, Engtih8) sing
with k3 k-V
fon the gwen yaues
Maths Englh elov
3 N
N

CoLe the featae Math a


Points ie, Engsh
(z,i) (Mot, Englih)
Find stanee between
wen 4ers (6,6)) ta
Ony eoch lota in the table
Distonce letwcen 4ueg
vA3) 5 38 (N)
y1)
y,s) (y)
Now k3
So eaeat
neza0% e 4,3 ),(G,7) (7,8)
monghese th-ee neasest
haAe Relavent 'Y'
eiyhaps two
neYhkps two heahbos
So the Relawent
the querg Maths 6,
Enfliah 28)1S
Ouk th hoot ole Ing Decion 19.ee
on the tollboinq
hanng aka
Thee ae tuo lategches in e
ounng lotasetwie Yes (P) ans NO
the Column A) 0
Play Tenni
Nb.oP z 4
No.ef N 5

noopy ef (S)
Enbrepy s): - l (PHD ro)

-0.440

Calkwlote entioPy foh ech


fopy otoch Volue 'n
atbdbute
in outlook
outlok
Outlook P N
Enbory
Suny 2 3
o-471
Rainy 3 2
o 97
OVecot
L
2
M
Cadculete Average Tonotion EnMrepy e Tefeotud
6
T(Tempehatwe)
0 9

Grion Tepeotune) Entropy s)- T(AEtuke)


940- -0.91 o.024

Enbopy Each Value in Humidky

diky P N Ennep y
High o 9 85

Nohmol

Cakwute Avege inormotion Ertropy o


Humidity
T hunAt y) x.O 485+Y01
541 = O. 7
Caclote goin Humditu
Guin
Humsies= Enbhopy( s) 1Humise) -

0 440 -

0 T&8 =
O:1 52
Vo-es In
QCalwoke enopy ton Coch

winy
windy N E-opy
Steng 3

Weak

Aveoge Intosmotion Enbopy ef wins


Twindy 0 0 912

Gain oWindy
Graan (wind Enory(s -

I
(wind)
0.940- 0-842 0 D8

Atbute
Oudpok 0-247
TEmfestune D 024
Humcduty O 152
windy

we Shols Selet
the Allsbutt
wich ghest gain
So Root Nole = Oublook
CoiJeh the folloi takle it Coruit the
height, oge ond wekt Vadue o 10 pcople
n the inblle, wct 1il 1S
|khown.TaAk is to Phes the waght 1

Let

TD Man hattetn Dstunue


(Wclahe)bhuwcen ID
15 7)
2 12-6 (47)
8(s5)
44 (59)
2-7 (72)
6 23 6o
19:2 ko)
8 lo-3 (60)
I5 (45)
61 58)

Since k-3

th-ec eaest neghbons ae TDk,1)5 ny TD

Welpht D11) Aveage. wegh


=

S1 t72 t60
eho
3

weigtt D1) = b3.66 ka

You might also like