Question: Feature transformation. So far, we have been talking about using the raw features / predictors / input variables X 1 , X 2 , ,

Feature transformation. So far, we have been talking about using the raw features/predictors/input variables X1, X2,, Xp from the data to make prediction about a target variable Y. In most cases, however, it is not the best idea to use the original inputs: a process called feature transformation T is usually performed on the raw data such that we learn a model between T (X) and Y instead. For the following dataset, lets try different feature transformation techniques.
x1=1,3,2,4,6
x2=1,2,5,7,9
y=7.5,13.8,20.5,33.6,40.7
Normalization: transform both x1 and x2 so that they are zero mean and unit variance.
Quantization: transform both x1 and x2 so that they contain only zero and ones. You can choose any threshold. There are more than one solution here.
Log transformation: transform both x1 and x2 with log function.
Polynomial expansion: transform x1 and x2 together into one polynomial
feature array such that
[1,x1,x2,x12,x1\times x2,x22
You dont need to compute all the data points, you can choose any row from the dataset above.
Trigonometric functions: transform x1 and x2 together into one feature array with sine and cosine such that
[sin x1, sin x2, cos x1, cos x2, sin 2x1, sin 2x2, sin 3x1, sin 3x2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!