Using Matlab I need to generate a sample x of random numbers (n=30) from the normal distribution, using the command normrnd, and then check whether the normal distribution can be adapted to the sample.
I used the Matlab function chi2gof which gives a result h = 0 which means that `x´ is a sample from the normal distribution. But when the size of the sample is small (n=30) that result doesn't mean much. How could I answer this question when the sample is small?
x = normrnd(50, 2, 30, 1)
h = chi2gof(x)
h =
0