I have some data that I selected from a radar satellite image and wanted to perform some statistical tests. Before that, I wanted to conduct a normality test, so I could be sure that my data was usually disseminated. My data is usually distributed, but when I run the Im test, getting a value of P 0, assuming that my data is usually not distributed.
I attached my code along with the output and the histogram of the distribution (Im relatively new to python, so I apologize if my code is clumsy in any way). Can someone tell me if I am doing something wrong - it is difficult for me to believe from my histogram that my data is usually not disseminated?
values = 'inputfile.h5' f = h5py.File(values,'r') dset = f['/DATA/DATA'] array = dset[...,0] print('normality =', scipy.stats.normaltest(array)) max = np.amax(array) min = np.amin(array) histo = np.histogram(array, bins=100, range=(min, max)) freqs = histo[0] rangebins = (max - min) numberbins = (len(histo[1])-1) interval = (rangebins/numberbins) newbins = np.arange((min), (max), interval) histogram = bar(newbins, freqs, width=0.2, color='gray') plt.show()
Will print this: (41099.095955202931, 0.0). the first element is the chi-square value, and the second is the p value.
I made a graph of the data that I attached. I thought that maybe as Im dealing with negative values, it causes a problem, so I normalize the values, but the problem persists.

source share