Question

We have the following training dataset: X (exponential) Y (normal) Z (categorical) L (target class) 0.022 0.470 Up No 0.533 1.044 Up Down No Yes 0.413 -0.587 0.181 -1.461 Down No 0.365 -1.170 Down Yes 2.568 -0.547 Up Up No Yes 0.081 -0.678 0.463 0.313 Up No 0.511 2.080 Up No 0.303 -0.760 Down Yes In this dataset, X, Y, and Z are the features and the classes are shown in column L. X is exponentially distributed, Y is normally distributed, and Z is a categorical variable. (a) By calculating the probabilities, train a Naive Bayes classifier. (15 points) (b) Using your classifier from part (a), predict the class of the following input: (5 points) X = 0.07, Y = 0, and Z = Down

          We have the following training dataset:
X (exponential) Y (normal)
Z (categorical) L (target class)
0.022
0.470
Up
No
0.533
1.044
Up Down
No Yes
0.413
-0.587
0.181
-1.461
Down
No
0.365
-1.170
Down
Yes
2.568
-0.547
Up Up
No Yes
0.081
-0.678
0.463
0.313
Up
No
0.511
2.080
Up
No
0.303
-0.760
Down
Yes

In this dataset, X, Y, and Z are the features and the classes are shown in column L. X is exponentially distributed, Y is normally distributed, and Z is a categorical variable.

(a) By calculating the probabilities, train a Naive Bayes classifier. (15 points)

(b) Using your classifier from part (a), predict the class of the following input: (5 points)
X = 0.07, Y = 0, and Z = Down
        
Show more…
we have the following training dataset x exponential y normal z categorical l target class 0022 0470 up no 0533 1044 up down no yes 0413 0587 0181 1461 down no 0365 1170 down yes 2568 0547 u 62664

Added by Maria N.

Close

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
We have the following training dataset: X (exponential) Y (normal) Z (categorical) L (target class) 0.022 0.470 Up No 0.533 1.044 Up Down No Yes 0.413 -0.587 0.181 -1.461 Down No 0.365 -1.170 Down Yes 2.568 -0.547 Up Up No Yes 0.081 -0.678 0.463 0.313 Up No 0.511 2.080 Up No 0.303 -0.760 Down Yes In this dataset, X, Y, and Z are the features and the classes are shown in column L. X is exponentially distributed, Y is normally distributed, and Z is a categorical variable. (a) By calculating the probabilities, train a Naive Bayes classifier. (15 points) (b) Using your classifier from part (a), predict the class of the following input: (5 points) X = 0.07, Y = 0, and Z = Down
Close icon
Play audio
Feedback
Powered by NumerAI
Danielle Fairburn Jennifer Stoner
David Collins verified

Adi S and 72 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
problem-1-naive-bayes-classifier-25-points-from-the-given-the-training-data-set-shown-in-table-we-train-naive-bayes-classifier_-each-iow-refers-to-an-apple-instance-with-three-categorical-fe-09321

Problem 1. Nave Bayes Classifier (25 points) From the given the training data set shown in Table 1, we train a Nave Bayes classifier. Each row refers to an apple instance with three categorical features (size, color and shape) and one class label (whether the apple is good or not). Table 1: Training Data for Nave Bayes Classifier RID Size Color Shape Class: good_apple 1 Small Green Irregular No 2 Large Red Irregular Yes 3 Large Red Circle Yes 4 Large Green Circle No 5 Large Green Irregular No 6 Small Red Circle Yes 7 Large Green Irregular No 8 Small Red Irregular No 9 Small Green Circle No 10 Large Red Circle Yes

Adi S.

130-points-increasing-training-set-size-experiment-consider-the-iris-dataset-for-multiclass-cinssification-and-perform-the-following-steps-1divide-the-data-into-80-training-and-20-testing-2-82527

Increasing Training Set Size Experiment: Consider the iris dataset for multiclass classification and perform the following steps: 1. Divide the data into 80% training and 20% testing. 2. From the training set, only take 5% of the data and train the supervised learning models (Logistic Regression, Decision Trees, Random Forest, and Naive Bayes) and test them on the test set created in the previous step. 3. Repeat the training again with 10% of the data and keep on adding 5% until you use the whole training set. 4. In every training, test on the 20% of the test set and report the accuracy and F-score of the model. 5. Plot the sample graph for accuracy and F-score as provided below:

Akash M.

question-12-1-train-a-random-forests-model-where-the-number-of-estimators-is-100-using-the-training-dataset-2make-predictions-using-the-test-dataset-3compute-accuracy-and-save-as-accuracy-hi-36047

Supreeta N.


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,428 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,039 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,877 solutions

*

Transcript

-
00:01 The dataset will be divided into two parts.
00:18 So, the first one is feature matrix and it contains the values in vector form of dependent features and from table, features are size, color and shape.
01:23 And the second part will be response vector...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Join the community

18,000,000+

Students on Numerade


Trusted by students at 8,000+ universities

Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever