Lecture 12 range-type variables

Lecture 12 range-type variables

by HANNANE HABIBI -
Number of replies: 0

Question: Think about how range-type variables might be represented. Is it reasonable to represent them as any numeric variables or is it better to have ad-hoc encoding?

Answer: for range type variables it is better to use ad-hoc encoding rather than numeric variables. For example, as in height of people you cannot use numeric variables to represent. Assume the ranges of heights like {141,150}, {151,160}, {161,170}, {171,180},... Cannot be represented by numeric variables because It implies that some ranges might have a higher priority than others which is not accurate. And so in this sense ad-hoc encoding would be the better choice.