Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer thoroughly and show all steps. Use a simple method if possible and explain. Don't use excel or python, please. Example 5 A factory

image text in transcribedimage text in transcribed

Please answer thoroughly and show all steps. Use a simple method if possible and explain. Don't use excel or python, please.

image text in transcribedimage text in transcribedimage text in transcribed
Example 5 A factory makes dried fruits from pineapples, mangos and grapes, and the robotic arm is adopted to identify and separate the three types of fruits, with 1000 fruits in total. A set of training data is tabulated as follows: Type Heavy Not heavy Yellow Not yellow Sweet Not sweet Total O Pineapple | 400 100 350 150 450 50 500 (N) Grape 300 150 150 300 0 300 Mango 100 100 150 50 50 150 200 Total 500 500 650 350 800 200 1000 If a fruit being picked up by the robotic arm is "heavy", "ye "yellow" and "sweet eer . What is it? P(B, IA ) . P(B, IA) . P(B, IA) . P(A) Pineapple P(AIB) = fluit P(B, ) . P(B. ) . P(B ) 1 scenario 1 : A bing epineaple P( preapple / Leary, gellar, sorect ) = Pliancy) . P(yella) . Planet) 1400/500 ) . (350/500) -( 456/50). ( $60 /1004 ) ( $00/1000 ) . (650/1000) . (800/1000) = 0. 9692 - 96.92% (2) scenario 2 : A being grape P(grape / heavy , yellow, sweet) = R(henry grape) . P(yellar/grape.).P(cat/ grape). PCgrapes P(heavy).P(gellar) . P(sweet) = 0 3 scenario 3: A being mango P(mango Leary, yellow, sweet) P(heavy ( mango ) . P(yellow mango) . P(sweet | mango). P( mango) = Plheavy) . P(yellow) . Plsweet) - ( 100/200) . ( 150/ 200 ) . ( 50/ 200 ) . ( 200 / 1000 ) ( 500 / 1000) . (650/1000). (800/1000 ) = 0.072 2 7.2%Example 6 A data analyst is making a spam filtering system for an email service provider, based on Naive Bayes Algorithm. A set of training data with 1000 emails is tabulated as follows: Categories Spam Ham (Not Spam) Total Contains the words "Free Gift" 180 5 185 Does not contain the words "Free Gift" 320 495 815 Contains more than 2 exclamation marks 400 80 480 Does not contain more than 2 100 420 520 exclamation marks With attachment 120 200 320 Without attachment 380 300 680 Contains a link to a website 230 100 330 Does not contain a link to a website 270 400 670 Total 500 500 1000 If an email being scanned "Contains the words "Free Gift' ", "Does not contain more than 2 exclamation marks", "Without attachment" and "Contains a link to a website", is it spam or ham? Spam By scenario 1: A being Spam P(AIB) = P(BIA) . P(BIA) . P( B,IA) . P(BIA) . PCA) P (BI) . P( B. ) . P( B; ) . P( RX ) P(Spam / B, , B2, By, Box) = ( 180 / SOU) . ( 100 / 500 ) ( 380/5(). (230/500) . (500 /NOU ) ( 185/1000) -( 520/1000) . (680/1000) .(340/10 00) = 0. 583 = 58.3% scenario 2 : A being Ham P ( Ham / BI , BZ, By, Bar) ( 5/ 500) - ( 4.20 /500 ). ( 300/500) . (100/500) . ( 500/ NOW ) (185/ 100). (520/1000). (620/1000).(330/1000) = 0. 0233 = 2.32%Homework Following Example 5, l. ifa fruit being picked up by the robotic arm is \"heavy\

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Theory Of Distributions

Authors: Svetlin G Georgiev

1st Edition

3319195271, 9783319195278

More Books

Students also viewed these Mathematics questions

Question

Keep your head straight on your shoulders

Answered: 1 week ago

Question

Be straight in the back without blowing out the chest

Answered: 1 week ago

Question

Wear as little as possible

Answered: 1 week ago