# Is it possible to compare two different datasets with a different range of values?

I am currently working with the k-Nearest Neighbors (KNN) algorithm.

Is it possible to compare two datasets with different ranges of values?

In other words, I have one dataset with a range $\in [0,1]$, and the second range of the other dataset $\in [-1,1]$.

I have calculated some performance measures such as accuracy and F1 score, among others. Then, I compared them based on the performance measures.

Is this approach correct? Or do I need to transform the datasets to they lie in common ranges?

EDIT

What I mean by the range that for example, all the observations in the first dataset are between 0 and 1. Also, When I say comparing two datasets, I mean comparing the outcome of the performance measures such as accuracy and F1 score and so on.

The range is for the predictor variables. The comparison is only to replicate some results. Also, to make sure about different methods.

• I think this question needs some clarification. What do you mean the dataset has a range [0,1]? Is that range for your variable of interest or for the auxiliary variable(s)? And what do you mean when you say you want to compare the two different datasets? What are you comparing between them? Jul 30 '18 at 18:42
• @astel, I mean by the range that all the observations in the first dataset are between 0 and 1. When I say comparing two datasets, I mean comparing the outcome of the performance measures such as accuracy and F1 score and so on.
– jeza
Jul 30 '18 at 18:56
• You still didn't really answer my question, is the range you quoted for the variable of interest or the auxiliary variables? Why do you want to compare the accuracy/F1 scores of two datasets? Jul 30 '18 at 19:14
• @astel, The range is for the predictor variables. The comparison is only to replicate some results. Also, to make sure about different methods.
– jeza
Jul 30 '18 at 20:02