Exercises: Naïve Bayes Problem 1: Vehicle Fuel Efficiency Classification Sample Vehicle Type (Nominal) Engine Size Fuel Type (Continuous) (Nominal) Mileage (Continuous) Safety Rating (Ordinal) Fuel Efficiency (Target) 1 Sedan 2.0 Gasoline 35.5 Low Fuel Efficient 2 SUV 3.5 Diesel 23.4 Medium Not Fuel Efficient 3 Hatchback 1.6 Gasoline 42.1 High Fuel Efficient 4 SUV 4.0 Diesel 18.2 Medium Not Fuel Efficient 5 Truck 5.0 Gasoline 15.3 Low Not Fuel Efficient 6 Sedan 2.5 Gasoline 31.7 High Fuel Efficient 7 Hatchback 1.2 Gasoline 38.9 Medium Fuel Efficient 8 Truck 60 6.0 Diesel 13.8 Low Not Fuel Efficient 9 SUV 3.2 Diesel 22.5 High Not Fuel Efficient 10 Sedan 2.0 Gasoline 34.6 Medium Fuel Problem Description: You are tasked with classifying vehicles as "Fuel Efficient" or "Not Fuel Efficient" using Naive Bayes classification. You need to estimate the conditional probabilities for different attributes and the class variable "Fuel Efficiency." Exercises: 1. Calculate Prior Probabilities: Calculate the prior probabilities of a vehicle being "Fuel Efficient" or "Not Fuel Efficient" based on the provided dataset. 2. Conditional Probabilities for Nominal Attributes (Vehicle Type and Fuel Type): Calculate the conditional probabilities of a vehicle being "Fuel Efficient" or "Not Fuel Efficient" based on the vehicle type and fuel type (Nominal attributes). 3. Conditional Probabilities for Continuous Attributes (Engine Size and Mileage): Calculate the conditional probabilities of a vehicle being "Fuel Efficient" or "Not Fuel Efficient" based on engine size and mileage (Continuous attributes). You can assume Gaussian distributions. 4. Conditional Probabilities for Ordinal Attributes (Safety Rating): Calculate the conditional probabilities of a vehicle being "Fuel Efficient" or "Not Fuel Efficient" based on the safety rating (Ordinal attribute). 5. Fuel Efficiency Classification: Given a new vehicle with the following attributes: Vehicle Type: Hatchback Engine Size: 1.8 Fuel Type: Gasoline Mileage: 40.2 Safety Rating: Medium To classify this vehicle as "Fuel Efficient" or "Not Fuel Efficient," use Naive Bayes and the conditional probabilities calculated in previous steps.
Exercises: Naïve Bayes Problem 1: Vehicle Fuel Efficiency Classification Sample Vehicle Type (Nominal) Engine Size Fuel Type (Continuous) (Nominal) Mileage (Continuous) Safety Rating (Ordinal) Fuel Efficiency (Target) 1 Sedan 2.0 Gasoline 35.5 Low Fuel Efficient 2 SUV 3.5 Diesel 23.4 Medium Not Fuel Efficient 3 Hatchback 1.6 Gasoline 42.1 High Fuel Efficient 4 SUV 4.0 Diesel 18.2 Medium Not Fuel Efficient 5 Truck 5.0 Gasoline 15.3 Low Not Fuel Efficient 6 Sedan 2.5 Gasoline 31.7 High Fuel Efficient 7 Hatchback 1.2 Gasoline 38.9 Medium Fuel Efficient 8 Truck 60 6.0 Diesel 13.8 Low Not Fuel Efficient 9 SUV 3.2 Diesel 22.5 High Not Fuel Efficient 10 Sedan 2.0 Gasoline 34.6 Medium Fuel Problem Description: You are tasked with classifying vehicles as "Fuel Efficient" or "Not Fuel Efficient" using Naive Bayes classification. You need to estimate the conditional probabilities for different attributes and the class variable "Fuel Efficiency." Exercises: 1. Calculate Prior Probabilities: Calculate the prior probabilities of a vehicle being "Fuel Efficient" or "Not Fuel Efficient" based on the provided dataset. 2. Conditional Probabilities for Nominal Attributes (Vehicle Type and Fuel Type): Calculate the conditional probabilities of a vehicle being "Fuel Efficient" or "Not Fuel Efficient" based on the vehicle type and fuel type (Nominal attributes). 3. Conditional Probabilities for Continuous Attributes (Engine Size and Mileage): Calculate the conditional probabilities of a vehicle being "Fuel Efficient" or "Not Fuel Efficient" based on engine size and mileage (Continuous attributes). You can assume Gaussian distributions. 4. Conditional Probabilities for Ordinal Attributes (Safety Rating): Calculate the conditional probabilities of a vehicle being "Fuel Efficient" or "Not Fuel Efficient" based on the safety rating (Ordinal attribute). 5. Fuel Efficiency Classification: Given a new vehicle with the following attributes: Vehicle Type: Hatchback Engine Size: 1.8 Fuel Type: Gasoline Mileage: 40.2 Safety Rating: Medium To classify this vehicle as "Fuel Efficient" or "Not Fuel Efficient," use Naive Bayes and the conditional probabilities calculated in previous steps.
Principles of Information Systems (MindTap Course List)
12th Edition
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter4: Software: Systems And Application Software
Section4.7: Ethical & Societal Issues: Digital Software Systems May Improve Nuclear Power Plant Safety
Problem 2CTQ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 3 images
Recommended textbooks for you
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning