@@ -738,13 +738,9 @@ def skewtest(self, alternative: str = "two-sided"):
738738
739739 Notes
740740 -----
741- This test is based on D'Agostino and Pearson's test [1]_. The test
742- requires at least 8 realizations to produce valid results.
743-
744- References
745- ----------
746- .. [1] D'Agostino, R. B. (1971), "An omnibus test of normality for
747- moderate and large sample size", Biometrika, 58, 341-348
741+ This test is based on `D'Agostino and Pearson's test
742+ <https://doi.org/10.1093/biomet/60.3.613>`_. The test requires at least
743+ 8 realizations to produce valid results.
748744
749745 """
750746 n = self .num_realizations
@@ -788,8 +784,8 @@ def kurtosistest(self, alternative: str = "two-sided"):
788784 Parameters
789785 ----------
790786 alternative : {'two-sided', 'less', 'greater'}, optional
791- Defines the alternative hypothesis. Default is 'two-sided'.
792- The following options are available:
787+ Defines the alternative hypothesis. Default is 'two-sided'. The
788+ following options are available:
793789
794790 * 'two-sided': the kurtosis of the distribution is different from
795791 that of the normal distribution
@@ -813,14 +809,9 @@ def kurtosistest(self, alternative: str = "two-sided"):
813809
814810 Notes
815811 -----
816- This test is based on D'Agostino and Pearson's test [1]_. The test
817- is typically recommended for at least 20 realizations to produce
818- valid results.
819-
820- References
821- ----------
822- .. [1] D'Agostino, R. B. (1971), "An omnibus test of normality for
823- moderate and large sample size", Biometrika, 58, 341-348
812+ This test is based on `D'Agostino and Pearson's test
813+ <https://doi.org/10.1093/biomet/60.3.613>`_. The test is typically
814+ recommended for at least 20 realizations to produce valid results.
824815
825816 """
826817 n = self .num_realizations
@@ -855,9 +846,9 @@ def kurtosistest(self, alternative: str = "two-sided"):
855846 def normaltest (self , alternative : str = "two-sided" ):
856847 """Perform D'Agostino and Pearson's omnibus test for normality.
857848
858- This method tests the null hypothesis that a sample comes from a
859- normal distribution. It combines skewness and kurtosis to produce an
860- omnibus test of normality.
849+ This method tests the null hypothesis that a sample comes from a normal
850+ distribution. It combines skewness and kurtosis to produce an omnibus
851+ test of normality.
861852
862853 Parameters
863854 ----------
@@ -886,23 +877,19 @@ def normaltest(self, alternative: str = "two-sided"):
886877 Notes
887878 -----
888879 This test combines a test for skewness and a test for kurtosis to
889- produce an omnibus test [1]_. The test statistic is:
880+ produce an `omnibus test <https://doi.org/10.1093/biomet/60.3.613>`_.
881+ The test statistic is:
890882
891883 .. math::
892884
893885 K^2 = Z_1^2 + Z_2^2
894886
895- where :math:`Z_1` is the z-score from the skewness test and
896- :math:`Z_2` is the z-score from the kurtosis test. This statistic
897- follows a chi-square distribution with 2 degrees of freedom.
887+ where :math:`Z_1` is the z-score from the skewness test and :math:`Z_2`
888+ is the z-score from the kurtosis test. This statistic follows a
889+ chi-square distribution with 2 degrees of freedom.
898890
899891 The test requires at least 20 realizations to produce valid results.
900892
901- References
902- ----------
903- .. [1] D'Agostino, R. B. and Pearson, E. S. (1973), "Tests for
904- departure from normality", Biometrika, 60, 613-622
905-
906893 """
907894 n = self .num_realizations
908895 if n < 20 :
0 commit comments