Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Logistic Regression we want to predict the gender of a person from a set of input parameters, namely height, weight, and age. Assume the same

Logistic Regression

we want to predict the gender of a person from a set of input parameters, namely height, weight, and age.

Assume the same training data:

D={(

(170,57,32),W),

((192,95,28),M),

((150,45,30),W),

((170,65,29),M),

((175,78,35),M),

((185,90,32),M),

((170,65,28),W),

((155,48,31),W),

((160,55,30),W),

((182,80,30),M),

((175,69,28),W),

((180,80,27),M),

((160,50,31),W),

((175,72,30),M),}

a)Implement logistic regression to classify this data (use the individual data elements,i.e.height,weight,andage,asfeatures).Yourimplementationshouldtakedifferentdatasetsasinputfor learning.

b)Use your logistic regression function to predict the classes for the data items :

(155,40,35),(170,70,32),(175,70,35),(180,90,20)

Given that the correct class labels for these items are W, M, W, M, respectively,

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions