TDSM 11.1

From The Data Science Design Manual Wikia
Revision as of 04:05, 10 December 2017 by XuanXu (talk | contribs) (Created page with "P(Beach|(Cloudy,High, Normal))=P(Cloudy|Beach)×P(High|Beach)×P(Normal|Beach)×P(Beach)=1/4×3/4×2/4×4/10=0.0375 P(No Beach|(Cloudy,High, Normal))=P(Cloudy|No)×P(High|No)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

P(Beach|(Cloudy,High, Normal))=P(Cloudy|Beach)×P(High|Beach)×P(Normal|Beach)×P(Beach)=1/4×3/4×2/4×4/10=0.0375

P(No Beach|(Cloudy,High, Normal))=P(Cloudy|No)×P(High|No)×P(Normal|No)×P(No)=2/6×2/6×4/6×6/10=0.0445

Since 0.0375 <0.0445, naive Bayes is telling us not to hit the beach.


P(Beach|(Sunny,Low,High))=P(Sunny|Beach)×P(Low|Beach)×P(High|Beach)×P(Beach)=3/4×0/4×2/4×4/10=0

P(No Beach|(Sunny, Low, High))=P(Sunny|No)×P(Low|No)×P(High|No)×P(No)=1/6×2/6×2/6×6/10=0.0111

Since 0 <0.0111, naive Bayes is telling us not to hit the beach.