l have the following sample of 4 vectors of dimension 5 . They are sparse vectors, in a way that each value in a vector represent the frequency (number of occurrence of values). For instance
4 at index 1 means we have four values of 1 and 1 at index 4 it means we have one value of 4.
The purpose of normalizing these histograms is to get a distribution.
Here is a sample of my data.
What l tried ?
vectors=(vectors-np.mean(vectors,axis=0)) / np.std(vectors,axis=0)
and l tried :
A)Is it correct what l have tried ?
B)l have question to normalization by subtracting means and dividing by standard deviation: through all the vectors, through each dimension, means( of a dimension) is computed. Than each data point of this dimension is subtracted from its mean. Is it correct what l'm saying ? in other way for each dimension, we have it's own mean.
For instance, if we have dim(vectors)=(400,2000) such that 400 is the number of examples.
we compute 2000 means and 2000 std since we have 2000 dimensions. And then each data point is subtracted from its means and divided by its std (mean and std of that dimension)
Thank you for correcting me.