Please give some context. What do you mean by "deviation" (maybe "standard deviation"?), and what are you going to use it for? Where do the data come from? (That will determine whether they are a population or a sample.)I can't understand if i should use population or sample deviation formula , if we for example have the data set {-1,0,1,2} then do we use the deviation type of the population or sample formula to count the deviation?
You'll need to ask your professor whether the data set is meant to be a population or a sample. But if you can't ask, just say that you are assuming it's a sample and use that formula. That's what most data you do this with will be. You may get extra credit for being aware of the issue!