0% found this document useful (0 votes)
7 views7 pages

Legaspi Ai2333

Uploaded by

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

Legaspi Ai2333

Uploaded by

Jher Molleda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

AI Fundamentals 2333 Assignment 1

Name: Junryl V. Legaspi


USN: 21007148410
Outlook Temperature Humidity Wind Class
Predictors Play=Yes
Response
Days Play=No
1 Sunny Hot High Weak No
2 Sunny Hot High Strong No
3 Overcast Hot High Weak Yes
4 Rain Mild High Weak Yes
5 Rain Cool Normal Weak Yes
6 Rain Cool Normal Strong No
7 Overcast Cool Normal Strong Yes
8 Sunny Mild High Weak No
9 Sunny Cool Normal Weak Yes
10 Rain Mild Normal Weak Yes
11 Sunny Mild Normal Strong Yes
12 Overcast Mild High Strong Yes
13 Overcast Hot Normal Weak Yes
14 Rain Mild High Strong No
15 Sunny Cool High Strong No
16 Overcast Mild Normal Weak Yes
17 Rain Cool High Weak Yes
18 Sunny Mild High Weak No
19 Rain Mild Normal Strong Yes
20 Sunny Cool Normal Strong Yes
21 Rain Cool High Strong No
22 Overcast Hot High Weak Yes
23 Sunny Hot Normal Strong Yes
24 Sunny Hot High Weak No
25 Rain Cool High Strong No
26 Sunny Hot Normal Strong Yes
27 Sunny Cool Normal Strong Yes
28 Sunny Mild Normal Strong Yes
29 Overcast Cool High Weak Yes
30 Overcast Hot Normal Strong Yes

P(Yes)=9/14

P(No)=5/14
Outlook Yes No P(Yes/New Instance)= 0.64×0.22×0.33×0.33×0.33= 0.005065024
Sunny 2/9 3/5
P(No/New Instance)= 0.35×0.6×0.2×0.8×0.6= 0.02016
Temperature Yes No
Cool 3/9 1/5 PY= 0.005
Humidity Yes No
High 3/9 4/5 PN= 0.02
Wind Yes No
Strong 3/9 3/5

P(Yes)=9/15

P(No)=6/15

Outlook Yes No P(Yes/New Instance)= 0.6×0.44×0.44×0.66×0.66= 0.050599296


Overcast 4/9 0/6
P(No/New Instance)= 0.4×0×0.33×0.16×0.33= 0
Temperature Yes No
Mild 4/9 2/6 PY= 0.05
Humidity Yes No
Normal 6/9 1/6 PN= 0
Wind Yes No
Weak 6/9 2/6

P(Yes)=10/16

P(No)=6/16

Outlook Yes No P(Yes/New Instance)= 0.62×0.3×0.3×0.3×0.7= 0.011718


Rain 3/10 2/6
P(No/New Instance)= 0.37×0.33×0.33×0.83×0.33= 0.0110469447
Temperature Yes No
Cool 3/10 2/6 PY= 0.0117
Humidity Yes No
High 3/10 5/6 PN= 0.0110
Wind Yes No
Weak 7/10 2/6

P(Yes)=11/17

P(No)=6/17
Outlook Yes No P(Yes/New Instance)= 0.64×0.18×0.45×0.36×0.72= 0.013436928
Sunny 2/11 4/6
P(No/New Instance)= 0.35×0.66×0.33×0.83×0.33= 0.020879397
Temperature Yes No
Mild 5/11 2/6 PY= 0.01
Humidity Yes No
High 4/11 5/6 PN= 0.02
Wind Yes No
Weak 8/11 2/6

P(Yes)=11/18

P(No)=7/18

Outlook Yes No P(Yes/New Instance)= 0.61×0.36×0.45×0.63×0.27= 0.016815432


Rain 4/11 2/7
P(No/New Instance)= 0.38×0.28×0.42×0.14×0.57= 0.003568704
Temperature Yes No
Mild 5/11 3/7 PY= 0.017
Humidity Yes No
Normal 7/11 1/7 PN= 0.004
Wind Yes No
Strong 3/11 4/7

P(Yes)=12/19

P(No)=7/19

Outlook Yes No P(Yes/New Instance)= 0.63×0.16×0.33×0.66×0.33= 0.0072546912


Sunny 2/12 5/7
P(No/New Instance)= 0.37×0.71×0.29×0.14×0.57= 0.0060848234
Temperature Yes No
Cool 4/12 2/7 PY= 0.0073
Humidity Yes No
Normal 8/12 1/7 PN= 0.0061
Wind Yes No
Strong 4/12 4/7

P(Yes)=13/20

P(No)=7/20
Outlook Yes No P(Yes/New Instance)= 0.65×0.38×0.38×0.31×0.38= 0.011080048
Rain 5/13 2/7
P(No/New Instance)= 0.35×0.29×0.29×0.86×0.57= 0.014446667
Temperature Yes No
Cool 5/13 2/7 PY= 0.0111
Humidity Yes No
High 4/13 6/7 PN= 0.0144
Wind Yes No
Strong 5/13 4/7

P(Yes)=/21

P(No)=/21

Outlook Yes No P(Yes/New Instance)= ××××=


/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

P(Yes)=/22

P(No)=/22

Outlook Yes No P(Yes/New Instance)= ××××=


/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

P(Yes)=/23

P(No)=/23
Outlook Yes No P(Yes/New Instance)= ××××=
/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

P(Yes)=/24

P(No)=/24

Outlook Yes No P(Yes/New Instance)= ××××=


/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

P(Yes)=/25

P(No)=/25

Outlook Yes No P(Yes/New Instance)= ××××=


/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

P(Yes)=/26

P(No)=/26
Outlook Yes No P(Yes/New Instance)= ××××=
/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

P(Yes)=/27

P(No)=/27

Outlook Yes No P(Yes/New Instance)= ××××=


/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

P(Yes)=/28

P(No)=/28

Outlook Yes No P(Yes/New Instance)= ××××=


/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

P(Yes)=/29

P(No)=/29
Outlook Yes No P(Yes/New Instance)= ××××=
/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

P(Yes)=/30

P(No)=/30

Outlook Yes No P(Yes/New Instance)= ××××=


/ /
P(No/New Instance)= ××××=
Temperature Yes No
/ / PY=
Humidity Yes No
/ / PN=
Wind Yes No
/ /

You might also like