0

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:

  1. What type of test statistic (t, chi-square or something else) does the shapiro() calculate?
  2. 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?

Nemo
  • 1,124
  • 2
  • 16
  • 39

0 Answers0