I know that scipy.stats.shapiro is used to test for normality. I also know that the calculation of a test statistic always involves the mean m0 or variance of the population (as explained here). My question then:
- What type of test statistic (t, chi-square or something else) does the
shapiro()
calculate? - What is the value of mean or variance of the population does it use to calculate the test statistic?
Could someone please explain and give a concrete example showing how the function obtain the mean or variance of the population?