Question: Q 2 [ 1 0 Points ] : Generative Classifier : Let us consider the IRIS dataset where we focus on x variable SepalLength and
Q Points : Generative Classifier :
Let us consider the IRIS dataset where we focus on variable SepalLength and our target
variable Species. In this dataset, there are three classes Y : Setosa, Versicolor, and Virginia
which have equiprobability as their priors. Fit the Gaussian Distribution for each class using
and as mean and variance respectively for Setosa, Versicolor
and Virginia. Predict the posterior probability SETOSAVERSICOLOR
and VIRGINIA Please write the Python code to perform the same and verify your
results as computed aforementioned. Please write full steps in justification of your code and
verification of your results.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
