Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q1 . Categorical Nave Bayes (I need help with Laplace smoothing please to tackle the zero probability.) Let us assume that we have the following
Q1. Categorical Nave Bayes (I need help with Laplace smoothing please to tackle the zero probability.)
Let us assume that we have the following training dataset: In this dataset, each data point is about a car. Features are the color and the origin of the car. The target value is Finance which indicates if finance is available for that car. Using a Nave Bayes classifier with Laplace Smoothing, classify the following entry: Color is White Write down your solution and answer in the text area. Origin is Foreign Step 1. convert data set into a Freavency table. Step 2: Create a likelihood table. Step 3: P(cx)=P(x)P(xc)P(c)-Coloriswhice-Oiginisforcign-Financemaidable P(yeswhite,foreign)=P(white,foneign)P(white,foreignyes)P(yes) 005=0 probability P(cx)=? add Laplace smoothing P(xc)=P( white, foreign Yes )=0/5=0 of zero probabilit P(C)=P( Yes )=5 P(x)=P( white , foneign )=0 Let us assume that we have the following training dataset: In this dataset, each data point is about a car. Features are the color and the origin of the car. The target value is Finance which indicates if finance is available for that car. Using a Nave Bayes classifier with Laplace Smoothing, classify the following entry: Color is White Write down your solution and answer in the text area. Origin is Foreign Step 1. convert data set into a Freavency table. Step 2: Create a likelihood table. Step 3: P(cx)=P(x)P(xc)P(c)-Coloriswhice-Oiginisforcign-Financemaidable P(yeswhite,foreign)=P(white,foneign)P(white,foreignyes)P(yes) 005=0 probability P(cx)=? add Laplace smoothing P(xc)=P( white, foreign Yes )=0/5=0 of zero probabilit P(C)=P( Yes )=5 P(x)=P( white , foneign )=0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started