Consider a case where you have two features: feature 1 (f1) is numerical and can take any real number, feature 2 (f2) is categorial with 3 unique values. Say we use one-hot encoding for feature 2 and generate vectors that look like bit strings of length 3. When we combine these with values in f1, we have a full dataset. An example data point looks like this: (0.56,0,1,0).
Now, if we take the example data point and add it to itself, we get (1.2,0,2,0). But this vector will never exist in our dataset because we can't have the value 2 in any of the last three positions. What this means is that no matter how many samples we take and transform (via one-hot encoding), all our data always lives in discontinuous pockets of a 4 dimensional real vector space and can never form a vector space by itself because it violates the axiom that the sum of two vectors in a vector space should be another vector in the same space. Is this correct?
A couple more questions:
- When feeding a model these vectors, are we forcing it to make an assumption that our data is continuous but that we only happen to observe a subset that happens to only have two values (0,1) in three of its dimensions?
- Another image that comes to mind is that of sampling from each dimension but with different rules. For dimension one, it is sampling from a uniform distribution over all the reals. For the other three dimensions it is sampling from a Bernoulli distribution. Does this even make sense?