HW1: Practice with Python, hard-margin SVM, and linear regression

... your name and NetID here ...

Hello Students:

1. Use a hard-margin SVM

to classify cars as having automatic or manual transmissions.

2. Make three linear regression models.

2a: Make a simple regression model by hand.

Use the matrix formula $w = (X^T X)^{-1} X^T y$ we developed in class to fit these three points: (0, 5), (2, 1), (4, 3). (Use linear_model.linearRegression(), if you wish, to check your work.)

... your answer here (just give the model, $y = w x + b$) ...

2b: Make a simple linear regression model from real data.

Estimate the average daily trading volume of a Dow Jones Industrial Average stock from its market capitalization. That is, use $y = $ AvgVol vs. $x =$ MarketCap.

Make a multiple regression model.

Estimate the same volume from both market capitalization and price. That is, use $y =$ AvgVol vs. $x_1 =$ MarketCap and $x_2 =$ Price.