Please help Data Mining Naïve Bayes Example 1. A competing used car dealership t
ID: 3691932 • Letter: P
Question
Please help
Data Mining
Naïve Bayes Example
1. A competing used car dealership that sells US, European, and Japanese cars is trying to install a machine learning system that will automatically detect whether a car is stolen or not given such parameters as: the car’s size, type and the country of origin. Below is the data that the dealership has already collected:
Instance ID
Size
Type
Country
Stolen?
1
Large
Family
USA
No
2
Large
Family
USA
No
3
Large
Family
Europe
Yes
4
Medium
Family
Japan
No
5
Medium
Family
Europe
Yes
6
Medium
Luxury
Japan
No
7
Medium
Luxury
Japan
Yes
8
Medium
Luxury
USA
No
9
Large
Luxury
Japan
No
10
Large
Family
USA
Yes
Size
P(Large|No)=1/2
P(Large|Yes)=1/2
P(Medium|No)=1/2
P(Medium |Yes)=1/2
Type
P(Family|No)=1/2
P(Family|Yes)=1/2
P(Luxury |No)=1/2
P(Luxury |Yes)=1/4
Country
P(USA|No)=1/2
P(USA|Yes)=1/4
P(Europe|No)=0
P(Europe|Yes)=1/2
P(Japan|No)=1/2
P(Japan |Yes)=1/2
Stolen
P(No)=6/10
P(Yes)=4/10
a)Using the above table estimate whether the car with the following parameters that just arrived to the dealership is stolen or not. Show your work.
Large, Luxury, USA
Instance ID
Size
Type
Country
Stolen?
1
Large
Family
USA
No
2
Large
Family
USA
No
3
Large
Family
Europe
Yes
4
Medium
Family
Japan
No
5
Medium
Family
Europe
Yes
6
Medium
Luxury
Japan
No
7
Medium
Luxury
Japan
Yes
8
Medium
Luxury
USA
No
9
Large
Luxury
Japan
No
10
Large
Family
USA
Yes
Explanation / Answer
Here is the formula if u have any queries please comment u can add ur values easily
P(Stolen|<Large, Luxury, USA>) = P(<Large, Luxury, USA>|Stolen) x P(Stolen)
=
P(Not Stolen|<Large, Luxury, USA>) =