-
Book Overview & Buying
-
Table Of Contents
Python Data Analysis - Fourth Edition
By :
As in the previous section, we have discussed that the normal distribution is most commonly and widely used in social, business, scientific, and engineering operations. As per the central limit theorem, as the sample size increases, the sample distribution approaches normal distribution. In most cases, it is recommended to confirm the normality of data, especially in parametric methods, assuming that the data is Gaussian or normally distributed. There are various tests for normality check available in the literature survey, such as the Shapiro-Wilk Test, Anderson-Darling Test, and D'Agostino-Pearson. All of these normality tests are available in scipy.stats package.
In this section, we will focus on how to check the normality of data. We are using three sizes of samples: small, medium, and large sample data. Let’s first produce the data samples for all three samples using the normal() function.
# Create small, medium, and large samples...