I would like compare the data by normalizing it to a given value.
for example:
[20,30,40,50,60,70]
How do I normalize the given set of elements to its first value, that is, 20.
Please also let me know if did not understand it correctly.
I understand that I need to take the mean and the standard deviation; then subtract mean, then divide by the standard deviation.
Is that correct?
Normalizing as in your third paragraph is not tied to a particular value. It uses the whole data set and changes it to one with zero mean and unit standard deviation. Do you understand how to calculate the mean and standard deviation of your data?
There are various normalizations that you could use that do depend on the first value. You could just subtract the first value from each data point. That will make the first zero and show you how much each data point differs from the first. You could divide by the first point instead (assuming it is not zero). Unless your data is ordered in some way, it seems strange to single out one point for special treatment.