Pergunta de entrevista da empresa Bloomberg

Linear regression in discreet space such as color.

Respostas da entrevista

Sigiloso

5 de nov. de 2014

You cannot use nominal or categorical variables in Linear regression. You have to convert them into binary variables. For example in this case create 1 variable for each color: Red -> Possible Values (0,1) Orange -> Possible Values (0,1) ... so on So If the color is Red, and there are 5 possible colors, then the new variables are 1,0,0,0,0

1

Sigiloso

4 de mar. de 2014

Variables are colors, which can be quantified to integers. red->1; orange->2; yellow->3; green->4; .... so on Then build linear regression model with the integers.