Notebook

Sep 24, 2024, 7:04 AM

3. Use naive Bayes algorithm to determine whether a red domestic SUV car is a stolen car or not using the following data:

Example no.
Colour
Type
Origin
Whether stolen.
1
red
sports
domestic
уся
2
red
sports
domestic
3
red
sports
domestic
yes
4
yellow
sports
domestic
no
5
yellow
sports
imported
yes
6
yellow
SUV
imported
no
7
yellow
SUV
imported
yos
8
yellow
SUV
domestic
no
9
red
SUV
imported
no
10
red
sports
imported
yes
The Naive Bayes model predicts that a red domestic SUV car is not stolen. The probabilities for the prediction are as follows:
  • Probability of not stolen: 66.67%
  • Probability of stolen: 33.33%
Feel free to ask any further questions or provide additional data for more analysis!
Get started with Vizly