Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ex-3: There is a Car manufacturer company that has manufactured a new SUV car. The company wants to give the ads to the users who

image text in transcribed

Ex-3: There is a Car manufacturer company that has manufactured a new SUV car. The company wants to give the ads to the users who are interested in buying that SUV. So for this problem, we have a dataset that contains multiple user's information through the social network. The dataset contains lots of information but the Estimated Salary and Age we will consider for the independent variable and the Purchased variable is for the dependent variable. Below is the dataset: Represent the gender as Male =1 and Female =2 to map the attribute in R space. - We would like to know which K is the best to classify user's purchased status (1 = buying the car, O= not buying the car). Where K ranges between 1,3 , and 5 . Following the validation-set method to determine that and consider the first and last three instances of the dataset are your validation set (i.e., in total 6 instances) and the rest is your training dataset. To calculate the test-error, follow a simple accuracy measure where: Accurcy=totalnumberofinstancesinthesetnumberoferrors(f(x)=f(x))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions