(*********************************************************************** Mathematica-Compatible Notebook This notebook can be used on any computer system with Mathematica 3.0, MathReader 3.0, or any compatible application. The data for the notebook starts with the line of stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. ***********************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 76863, 1756]*) (*NotebookOutlinePosition[ 77911, 1789]*) (* CellTagsIndexPosition[ 77867, 1785]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["EconGroup`NormalityTests", "Title", TextAlignment->Center], Cell["by Luci Ellis", "Subsubtitle", TextAlignment->Center], Cell["\<\ This notebook implements various tests for univariate and \ multivariate normality.\ \>", "Text"], Cell[CellGroupData[{ Cell["Reference", "Section"], Cell[CellGroupData[{ Cell["Title", "Subsubsection"], Cell[TextData[StyleBox["EconGroup`NormalityTests", FontSlant->"Italic"]], "Text"] }, Open ]], Cell[CellGroupData[{ Cell["Author", "Subsubsection"], Cell["Luci Ellis", "Text"] }, Open ]], Cell[CellGroupData[{ Cell["Summary", "Subsubsection"], Cell["\<\ This notebook implements various tests for univariate and \ multivariate normality.\ \>", "Text"] }, Open ]], Cell[CellGroupData[{ Cell["Copyright", "Subsubsection"], Cell["\<\ \[Copyright] Copyright 1997, Luci Ellis. Permission is granted to distribute this file for any purpose except for \ inclusion in commercial software or program collections. This copyright \ notice must remain intact..\ \>", "Text"] }, Open ]], Cell[CellGroupData[{ Cell["Notebook Version", "Subsubsection"], Cell["1.0", "Text"] }, Open ]], Cell[CellGroupData[{ Cell[TextData[{ StyleBox["Mathematica", FontSlant->"Italic"], " Version" }], "Subsubsection"], Cell["3.0", "Text"] }, Open ]], Cell[CellGroupData[{ Cell["History", "Subsubsection"], Cell[TextData[{ "Version 1.0 for ", StyleBox["Programming in ", FontSlant->"Italic"], StyleBox["Mathematica", FontSlant->"Italic"], ", 3rd edition." }], "Text"] }, Open ]], Cell[CellGroupData[{ Cell["Keywords", "Subsubsection"], Cell["normality", "Text"] }, Open ]], Cell[CellGroupData[{ Cell["Source", "Subsubsection"], Cell[TextData[{ "Maeder, R. ", StyleBox["Programming in ", FontSlant->"Italic"], StyleBox["Mathematica", FontSlant->"Italic"], ", 3rd ed. Addison-Wesley, 1996." }], "Text"], Cell[TextData[{ "Urz\[UGrave]a, C. M. \[OpenCurlyDoubleQuote]On the correct uses of \ Omnibus Normality Tests\[CloseCurlyDoubleQuote], ", StyleBox["Economics Letters", FontSlant->"Italic"], ", 1997." }], "Text"], Cell[TextData[{ "Urz\[UGrave]a, C. M. \[OpenCurlyDoubleQuote]Multivariate Normality Tests\ \[CloseCurlyDoubleQuote], ", StyleBox["Advances in Econometrics", FontSlant->"Italic"], ", 1997." }], "Text"] }, Open ]], Cell[CellGroupData[{ Cell["Warnings", "Subsubsection"], Cell[TextData[StyleBox["description of global effects, incompatibilities", FontSlant->"Italic"]], "Text"], Cell[TextData[{ "Note: all cells marked as \"InitializationCell\" will be written to the \ Auto-Save package. This package can then be read in programs that use it with \ ", StyleBox["Needs[\"Template`\"]", "Input"], ". Cells not intended to belong to the package should not have this \ property." }], "Text"] }, Open ]], Cell[CellGroupData[{ Cell["Limitation", "Subsubsection"], Cell[TextData[StyleBox[ "It is assumed that the data is in matrix or vector form, with each time \ series in its own row. Therefore, the data should be presented as, say, a 3 \ by 100 list, not a 100 by 3 list.", FontSlant->"Italic"]], "Text"] }, Closed]], Cell[CellGroupData[{ Cell["Discussion", "Subsubsection"], Cell[TextData[StyleBox["description of algorithm, information for experts", FontSlant->"Italic"]], "Text"] }, Open ]], Cell[CellGroupData[{ Cell["Requirements", "Subsubsection"], Cell["\<\ Statistics`DescriptiveStatistics`, \ Statistics`ContinuousDistributions`\ \>", "Text"] }, Open ]] }, Closed]], Cell[CellGroupData[{ Cell["Interface", "Section", InitializationCell->True], Cell["\<\ This part declares the publicly visible functions, options, and \ values.\ \>", "Text", InitializationCell->True], Cell[CellGroupData[{ Cell["Set up the package context, including public imports", "Subsection", InitializationCell->True], Cell["\<\ BeginPackage[\"EconGroup`NormalityTests`\", \t\"Statistics`DescriptiveStatistics`\", \ \"Statistics`ContinuousDistributions`\"]\ \>", "Input", InitializationCell->True], Cell[CellGroupData[{ Cell["Needs[\"Statistics`ContinuousDistributions`\"]", "Input", InitializationCell->True], Cell[BoxData[ \("EconGroup`NormalityTests`"\)], "Output"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell["\<\ Usage messages for the exported functions and the context \ itself\ \>", "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[BoxData[ \(NormalityTests::usage\ = \ "\"\)], "Input", InitializationCell->True], Cell[BoxData[ \("NormalityTests[m] implements various tests for both univariate and \ multivariate normality."\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[TextData[ "normalityTestStatistic::usage = \"normalityTestStatistic[x_Vector,opts] \ tests whether sample of data is normally distributed, using LM test of \ Jarque-Bera(1980) or Augmented LM test due to Urz\[UAcute]a (1997). Options \n\ are Method\[Rule]JarqueBera and Significance\[Rule]0.1\""], "Input", InitializationCell->True], Cell[BoxData[ \("Tests whether sample of data is normally distributed, using LM test of \ Jarque-Bera(1980) or Augmented LM test due to Urz\[UAcute]a (1997)."\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic::usage\ = \ "\"\)], "Input", InitializationCell->True], Cell[BoxData[ \("Tests whether matrix of data is distributed according to a multinormal \ distribution."\)], "Output"] }, Open ]], Cell["\<\ Method::usage = \"Method is an option for normalityTestStatistic \ and multinormalTestStatistic indicating the type of test to do. The default \ for normalityTestStatistic is JarqueBera, with Urzua being an alternative. \ The default for multinormalTestStatistic is Automatic which gives the Omnibus \ test, with alternatives of Skewness, Kurtosis and Omnibus explicitly.\"\ \>", "Input", InitializationCell->True], Cell["\<\ Significance::usage = \"Significance is an option for \ normalityTestStatistic and multinormalTestStatistic indicating the size of \ the test. For normalityTestStatistic the available sizes are 0.2, 0.15, 0.1, \ 0.05 and 0.01, while for multinormalTestStatistic the available sizes are \ 0.9, 0.95, 0.975 and 0.99.\"\ \>", "Input", InitializationCell->True], Cell["\<\ Residuals::usage = \"Residuals is an option for \ multinormalTestStatistic which is not yet implemented. The critical values \ for multivariate normality tests of residuals are not the same as for raw \ data but instead depend on the design matrix of the regression.\"\ \>", "Input", InitializationCell->True], Cell["\<\ JarqueBera::usage = \"JarqueBera is the default type of normality \ test.\"\ \>", "Input", InitializationCell->True], Cell["\<\ Urzua::usage = \"Urzua is the alternative type of normality test \ which has better small-sample properties.\"\ \>", "Input", InitializationCell->True], Cell["\<\ Omnibus::usage = \"Omnibus is the default type of multivariate \ normality test.\"\ \>", "Input", InitializationCell->True], Cell["\<\ Skewness::usage = \"Skewness is a type of multivariate normality \ test, using a multivariate skewness measure to test for normality.\"\ \>", "Input", InitializationCell->True], Cell["\<\ Kurtosis::usage = \"Kurtosis is a type of multivariate normality \ test, using a multivariate kurtosis measure to test for normality.\"\ \>", "Input", InitializationCell->True] }, Open ]], Cell[CellGroupData[{ Cell["Error messages for the exported objects", "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[BoxData[ \(normalityTestStatistic::dims\ = \ "\"\)], "Input", InitializationCell->True], Cell[BoxData[ \("List of `1` dimensions entered, one-dimensional vector expected."\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(normalityTestStatistic::notnum\ = \ "\"\)], "Input", InitializationCell->True], Cell[BoxData[ \("Input data elements must be numerical quantities."\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic::notnum\ = \ "\"\)], "Input", InitializationCell->True], Cell[BoxData[ \("Input data elements must be numerical quantities."\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic::nocrit\ = \ "\"\)], "Input",\ InitializationCell->True], Cell[BoxData[ \("Data must be a matrix with five or fewer rows. You may need to \ transpose the matrix prior to calling multinormalTestStatistic."\)], "Output"] }, Open ]] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell["Implementation", "Section", InitializationCell->True], Cell["\<\ This part contains the actual definitions and any auxiliary \ functions that should not be visible outside.\ \>", "Text"], Cell[CellGroupData[{ Cell["Begin the private context (implementation part)", "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell["Begin[\"`Private`\"]", "Input", InitializationCell->True], Cell[BoxData[ \("EconGroup`NormalityTests`Private`"\)], "Output"] }, Open ]], Cell["Needs[\"Statistics`ContinuousDistributions`\"]", "Input", InitializationCell->True], Cell["Off[General::spell]", "Input", InitializationCell->True] }, Open ]], Cell[CellGroupData[{ Cell["\<\ Definition of auxiliary functions and local (static) variables\ \>", "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell["ALMCritPointTable", "Subsubsection"], Cell[BoxData[ \(\(ALMCritPointTable\ = \ \n{{"\< \>", 10, 20, 35, 50, 75, 100, 150, 200, 300, 800, \[Infinity]}, \n\t\t{0.20, \ 2.14, 2.25, 2.35, 2.42, 2.62, 2.69, 2.85, 2.88, 2.92, 3.07, 3.22}, \n \t\t{0.15, 2.77, \ 2.81, 2.84, 2.95, \ 3.20, 3.16, 3.38, \ 3.44, \ 3.50, \ 3.65, \ 3.79\ }, \n \t\t{0.1, \ 4.23, \ 4.01, \ 3.81, \ \ 3.89\ , 4.17, \ 4.05, 4.26, 4.31, \ 4.32, 4.47, \ 4.61}, \n \t\t{0.05, \ 7.7, \ 7.15, \ 6.38, \ 6.43, \ 6.45, \ 6.04, \ 6.34, \ 6.22, \ 6.15, \ 6., \ 5.99}, \n \t\t{0.01, 17.69, \ 19.59, \ 16.77, \ 16.33, \ 16.32, \ 13.27, \ 13.34, \ 12.62, \ 12.1, \ 10.68, \ 9.21}}; \)\)], "Input", InitializationCell->True, FontSize->10] }, Open ]], Cell[CellGroupData[{ Cell["Multivariate ALMCritPointTable(s)", "Subsubsection"], Cell[BoxData[ \(\(OmnibusALMCritPointTable = \n \t{{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 4.12, 3.94, 3.9, 4.06, 4.21, 4.39, 4.61}, \n \t\t{0.95, 7.79, 6.84, 6.42, 6.13, 6.07, 5.9, 5.99}, \n \t\t{0.975, 12.32, 11.25, 9.33, 9.02, 8.5, 7.64, 7.38}, \n \t\t{0.99, 18.61, 18.59, 15.56, 14.44, 12.55, 10.25, 9.21}}, \n \t\t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 8.65, 8.39, 7.83, 7.98, 7.88, 7.85, 7.78}, \n \t\t{0.95, 13.36, 12.63, 11.57, 11.2, 10.94, 10., 9.49}, \n \t\t{0.975, 18.82, 18.66, 16.96, 15.96, 14.34, 12.56, 11.14}, \n \t\t{0.99, 24.99, 27.68, 26.17, 23.03, 21.42, 16.35, 13.28}}, \n \t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 12.96, 11.94, 11.35, 11.12, 11.01, 10.83, 10.65}, \n \t\t{0.95, 18.39, 17.35, 16.62, 15.24, 14.37, 13.24, 12.59}, \n \t\t{0.975, 23.94, 24.03, 22.8, 21.47, 18.53, 15.97, 14.45}, \n \t\t{0.99, 32.33, 33.93, 33.48, 30.57, 24.14, 20.51, 16.81}}, \n \t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 16.27, 15.7, 14.81, 14.69, 14., 13.56, 13.36}, \n \t\t{0.95, 22.32, 22.35, 20.43, 19.16, 18.21, 16.3, 15.51}, \n \t\t{0.975, 28.83, 30.18, 27.49, 24.63, 23.03, 19.17, 17.54}, \n \t\t{0.99, 37.07, 40.82, 39.5, 34.01, 30.97, 23.46, 20.09}}, \n \t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 19.98, 18.67, 18.06, 17.60, 17., 16.21, 15.99}, \n \t\t{0.95, 26.99, 25.71, 23.95, 22.91, 21.25, 19.29, 18.31}, \n \t\t{0.975, 33.45, 34.01, 31.24, 28.68, 26.75, 22.24, 20.48}, \n \t\t{0.99, 42.49, 48.24, 44.01, 38.34, 33.21, 26.42, 23.21}}}; \)\)], "Input", InitializationCell->True], Cell[BoxData[ \(\(SkewnessALMCritPointTable = \n \t{{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 2.70, 2.67, 2.67, 2.61, 2.63, 2.67, 2.71}, \n \t\t{0.95, 4.14, 3.96, 3.85, 3.89, 3.83, 3.85, 3.84}, \n \t\t{0.975, 5.68, 5.45, 5.18, 5.19, 5.07, 4.88, 5.02}, \n \t\t{0.99, 7.59, 7.66, 7.1, 7.46, 6.82, 6.35, 6.64}}, \n \t\t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 4.77, 4.79, 4.64, 4.59, 4.65, 4.63, 4.61}, \n \t\t{0.95, 6.42, 6.34, 6.34, 6.15, 6.1, 6.06, 5.99}, \n \t\t{0.975, 8.04, 8.21, 7.93, 7.78, 7.77, 7.44, 7.38}, \n \t\t{0.99, 9.94, 10.64, 10.41, 10.04, 10.15, 9.21, 9.21}}, \n \t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 6.57, 6.49, 6.38, 6.27, 6.27, 6.14, 6.25}, \n \t\t{0.95, 8.47, 8.46, 8.33, 8.01, 7.78, 7.75, 7.82}, \n \t\t{0.975, 10.28, 10.27, 10.42, 9.77, 9.5, 9.26, 9.39}, \n \t\t{0.99, 12.69, 13.14, 13.23, 12.28, 11.82, 11.11, 11.35}}, \n \t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 8.17, 8.07, 8.04, 7.95, 7.93, 7.81, 7.78}, \n \t\t{0.95, 10.36, 10.38, 10.18, 9.86, 9.7, 9.57, 9.49}, \n \t\t{0.975, 12.26, 12.68, 12.19, 11.77, 11.42, 11.09, 11.14}, \n \t\t{0.99, 15.09, 15.58, 15.28, 14.27, 13.98, 13.37, 13.28}}, \n \t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 9.83, 9.57, 9.45, 9.44, 9.31, 9.27}, \n \t\t{0.95, 12.16, 11.9, 11.83, 11.48, 11.31, 11.1, 11.07}, \n \t\t{0.975, 14.1, 14.42, 14.03, 13.64, 13.18, 12.93, 12.83}, \n \t\t{0.99, 17.42, 17.88, 16.99, 16.7, 15.88, 15.5, 15.09}}}; \)\)], "Input", InitializationCell->True], Cell[BoxData[ \(\(KurtosisALMCritPointTable = \n \t{{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 2.07, 1.9, 1.98, 2.12, 2.31, 2.47, 2.71}, \n \t\t{0.95, 4.06, 3.65, 3.26, 3.41, 3.5, 3.62, 3.84}, \n \t\t{0.975, 6.91, 6.53, 5.51, 5.39, 4.97, 5.02}, \n \t\t{0.99, 11.29, 12.03, 10., 9.02, 8.51, 7.23, 6.64}}, \n \t\t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 4.3, 4.22, 4.07, 4.19, 4.42, 4.53, 4.61}, \n \t\t{0.95, 7.34, 7.23, 6.8, 6.96, 6.4, 6.03, 5.99}, \n \t\t{0.975, 11.11, 11.3 .3, 10.82, 10.3, 9.38, 8.02, 7.38}, \n \t\t{0.99, 19.93, 22.28, 22.34, 21.59, 17.67, 14.75, 11.35}}, \n \t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 6.88, 6.24, 6.01, 6.07, 6.13, 6.34, 6.25}, \n \t\t{0.95, 10.33, 10.18, 9.63, 9.2, 8.53, 8.29, 7.82}, \n \t\t{0.975, 14.28, 14.96, 14.2, 13.69, 11.8, 10.55, 9.35}, \n \t\t{0.99, 19.93, 22.28, 22.34, 21.59, 17.67, 14.75, 11.35}}, \n \t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 8.55, 8.67, 8.03, 8.09, 7.93, 7.81, 7.78}, \n \t\t{0.95, 12.43, 13.04, 12.2, 11.68, 10.93, 9.99, 9.49}, \n \t\t{0.975, 17.06, 19.15, 17.29, 15.92, 15.29, 12.46, 11.14}, \n \t\t{0.99, 23.2, 27.77, 26.65, 24.45, 21.53, 16.03, 13.28}}, \n \t{{"\< \>", 10, 20, 50, 100, 200, 800, \[Infinity]}, \n \t\t{0.9, 10.69, 10.16, 9.89, 9.77, 9.53, 9.25, 9.24}, \n \t\t{0.95, 15.19, 15.09, 14.37, 13.66, 12.97, 11.7, 11.07}, \n \t\t{0.975, 20., 21.41, 20.12, 18.15, 16.79, 14.25, 12.83}, \n \t\t{0.99, 26.16, 31.82, 29.09, 26.33, 22.28, 17.82, 15.09}}}; \)\)], "Input", InitializationCell->True] }, Closed]], Cell[CellGroupData[{ Cell["ALMCritPoint functions", "Subsubsection"], Cell["\<\ ALMCritPoint[n_, sig_] := ALMCritPointTable[[Flatten[Position[ALMCritPointTable, sig]][[1]],Flatten[Position[ALMCritPointTable, n]][[ 2]] ]]\ \>", "Input", InitializationCell->True], Cell[BoxData[ \(\(ALMCritPoint[n_, sig_, method_, rowdim_] := \n\t Which[method === Automatic, OmnibusALMCritPointTable\[LeftDoubleBracket]rowdim\ , \ \(Flatten[Position[OmnibusALMCritPointTable, sig]] \)\[LeftDoubleBracket]2\[RightDoubleBracket], \(Flatten[Position[OmnibusALMCritPointTable, n]] \)\[LeftDoubleBracket]3\[RightDoubleBracket]\ \ \[RightDoubleBracket], \n\t\tmethod === Omnibus, \n\t\t OmnibusALMCritPointTable\[LeftDoubleBracket]rowdim, \(Flatten[Position[OmnibusALMCritPointTable, sig]] \)\[LeftDoubleBracket]2\[RightDoubleBracket], \(Flatten[Position[OmnibusALMCritPointTable, n]] \)\[LeftDoubleBracket]3\[RightDoubleBracket]\ \ \[RightDoubleBracket], \n\t\tmethod === Skewness, SkewnessALMCritPointTable\[LeftDoubleBracket]rowdim, \(Flatten[Position[SkewnessALMCritPointTable, sig]] \)\[LeftDoubleBracket]2\[RightDoubleBracket], \(Flatten[Position[SkewnessALMCritPointTable, n]] \)\[LeftDoubleBracket]3\[RightDoubleBracket]\ \ \[RightDoubleBracket], \n\t\tmethod === Kurtosis, KurtosisALMCritPointTable\[LeftDoubleBracket]rowdim, \(Flatten[Position[KurtosisALMCritPointTable, sig]] \)\[LeftDoubleBracket]2\[RightDoubleBracket], \(Flatten[Position[KurtosisALMCritPointTable, n]] \)\[LeftDoubleBracket]3\[RightDoubleBracket]\ \[RightDoubleBracket]]\n\t\)\)], "Input", InitializationCell->True] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell["Definition of the exported functions", "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell["normalityTestStatistic[]", "Subsubsection", InitializationCell->True], Cell[CellGroupData[{ Cell[TextData[ "Options[normalityTestStatistic]={Method\[Rule]JarqueBera,Significance\[Rule]\ 0.1}"], "Input", InitializationCell->True], Cell[BoxData[ RowBox[{"{", RowBox[{\(Method \[Rule] JarqueBera\), ",", RowBox[{"Significance", "\[Rule]", StyleBox["0.1`", StyleBoxAutoDelete->True, PrintPrecision->1]}]}], "}"}]], "Output"] }, Open ]], Cell[BoxData[ \(normalityTestStatistic[x_List, opts___] := \n\t Module[{way, n, xbar, teststat, sig, ntest}, \n\t\t If[Length[Dimensions[x]] == 1, \n\t\t If[And\ @@\((\(NumericQ[#]&\)\ /@\ x)\)\t, \n\t\t\t\t\t way\ = \ \((Method\ /. {opts})\) /. Options[normalityTestStatistic]; \n \t\t\tsig\ = \ \((Significance /. \ {opts})\)\ /. Options[normalityTestStatistic]; \n\t\t\tn = N[Length[x]]; \n \t\t\tntest\ = \ \(If[n > 2000, \[Infinity], Part[{10, 20, 35, 50, 75, 100, 150, 200, 300, 800}, Flatten[ Position[ Union[{10, 20, 35, 50, 75, 100, 150, 200, 300, 800}, {n}], n]] - 1]]\)[\([1]\)]; \n\t\t\t xbar\ = \ Mean[x]; \n\t\t\t If[way === Urzua, \n\t\t\t\t teststat = \((\(Plus@@\((\(#^3\ &\)\ /@\((x - xbar)\))\)/n \)\/\((Plus@@\((\(#^2\ &\)\ /@\((x - xbar)\))\)/n) \)\^\(3\/2\))\)\^2\ \[Times]\(\((n + 1)\) \((n + 3)\)\)\/\(6 \((n - 2)\)\) + \((\(Plus@@\((\(#^4\ &\)\ /@\((x - xbar)\))\)/n\)/ \((Plus@@\((\(#^2\ &\)\ /@\((x - xbar)\))\)/n)\)^2 - 3 \( n - 1\)\/\(n + 1\))\)^2 \[Times]\(\(\((n + 1)\)\^2\) \((n + 3)\) \((n + 5)\)\)\/\(24\ n \((n - 2)\) \((n - 3)\)\); \n \t\t\t\t\t TableForm[{{"\", "\", StringJoin["\", ToString[sig]]}, { teststat, ntest, ALMCritPoint[ntest, sig]}}], \n \t\t\t\t\t\t\t\t\t teststat = n \((1\/6\[Times]\(\(( \(Plus@@\((\(#^3\ &\)\ /@\((x - xbar)\))\)/n\)/ \((Plus@@\((\(#^2\ &\)\ /@\((x - xbar)\))\)/n) \)^\((3\/2)\))\)\ \)^2 + 1\/24\[Times]\(( \(\ Plus@@\((\(#^4\ &\)\ /@\((x - xbar)\))\)/n\)/ \((Plus@@\((\(#^2\ &\)\ /@\((x - xbar)\))\)/n) \)^2 - 3)\)^2)\)]; \n\t\t\t\t TableForm[{{"\", "\", StringJoin["\", ToString[sig]]}, { teststat, n, Quantile[ Statistics`NormalDistribution`ChiSquareDistribution[2], 1 - sig]}}], \ Message[normalityTestStatistic::notnum]], Message[normalityTestStatistic::dims, Length[Dimensions[x]]]]]\)], "Input", InitializationCell->True] }, Open ]], Cell[CellGroupData[{ Cell["multinormalTestStatistic[]", "Subsubsection", InitializationCell->True], Cell[CellGroupData[{ Cell[BoxData[ \(Options[multinormalTestStatistic] = {Method \[Rule] Automatic, Significance \[Rule] 0.9, Residuals \[Rule] False}\)], "Input", InitializationCell->True], Cell[BoxData[ RowBox[{"{", RowBox[{\(Method \[Rule] Automatic\), ",", RowBox[{"Significance", "\[Rule]", StyleBox["0.9`", StyleBoxAutoDelete->True, PrintPrecision->1]}], ",", \(Residuals \[Rule] False\)}], "}"}]], "Output"] }, Open ]], Cell[BoxData[ RowBox[{\(multinormalTestStatistic[x_?MatrixQ, opts___]\), ":=", RowBox[{"If", "[", RowBox[{\(And@@\(\((NumericQ[#1]&)\)/@Flatten[x]\)\), ",", RowBox[{"If", "[", RowBox[{ \(\(Dimensions[x]\)\[LeftDoubleBracket]1\[RightDoubleBracket] < 6 \), ",", RowBox[{"Module", "[", RowBox[{ \({n, xbar, teststat, sig, ntest, way, \[DoubleStruckCapitalS], \[ScriptCapitalS], \[ScriptCapitalG], \[ScriptCapitalD], \[DoubleStruckY]}\), ",", RowBox[{ \(way = \(Method /. {opts}\) /. Options[multinormalTestStatistic]\), ";", \(sig = \(Significance /. {opts}\) /. Options[multinormalTestStatistic]\), ";", \(n = N[ \(Dimensions[x]\)\[LeftDoubleBracket]2 \[RightDoubleBracket]]\), ";", \(dims = \(Dimensions[x]\)\[LeftDoubleBracket]1 \[RightDoubleBracket]\), ";", \(ntest = If[n > 2000, \[Infinity], \({10, 20, 50, 100, 200, 800} \[LeftDoubleBracket]Flatten[ Position[{10, 20, 50, 100, 200, 800} \[Union] {n}, n]] - 1 \[RightDoubleBracket]\)\[LeftDoubleBracket]1 \[RightDoubleBracket]]\), ";", \(xbar = \((Mean[#1]&)\)/@x\), ";", \(\[DoubleStruckCapitalS] = \(1\/n\(( Table[x\[LeftDoubleBracket]i\[RightDoubleBracket] - xbar\[LeftDoubleBracket]i \[RightDoubleBracket], {i, 1, dims}].Transpose[ Table[x\[LeftDoubleBracket]i \[RightDoubleBracket] - xbar\[LeftDoubleBracket]i \[RightDoubleBracket], {i, 1, dims}]]) \)\)\), ";", \(\[ScriptCapitalG] = Transpose[Eigenvectors[\[DoubleStruckCapitalS]]]\), ";", \(\[ScriptCapitalD] = DiagonalMatrix[Eigenvalues[\[DoubleStruckCapitalS]]]\), ";", \(\[ScriptCapitalS] = \[ScriptCapitalG]. \((\@#1&)\)/@Inverse[\[ScriptCapitalD]].Transpose[ \[ScriptCapitalG]]\), ";", \(\[DoubleStruckY] = \[ScriptCapitalS].Table[ x\[LeftDoubleBracket]i\[RightDoubleBracket] - xbar\[LeftDoubleBracket]i\[RightDoubleBracket], { i, 1, dims}]\), ";", \(Which[way === Automatic, \(teststat = \(Plus@@Table[ \((Plus@@\(\((#1\^3&)\)/@ \[DoubleStruckY]\[LeftDoubleBracket]i \[RightDoubleBracket]\)\/n)\)\^2, {i, 1, dims}]\ \((n + 1)\)\ \((n + 3)\)\)\/\(6 \ \((n - 2)\)\) + Plus@@Table[ \(\((Plus@@\(\((#1\^4\/n&)\)/@ \[DoubleStruckY]\[LeftDoubleBracket]i \[RightDoubleBracket]\) - \(3\ \((n - 1)\)\)\/\(n + 1\))\)\^2\ \((\((n + 1)\)\^2\ \((n + 3)\)\ \((n + 5)\)) \)\)\/\(24\ \((n\ \((n - 2)\))\)\ \((n - 3)\)\), {i, 1, dims}]; \), way === Omnibus, \(teststat = \(Plus@@Table[ \((Plus@@ \(\((#1\^3&)\)/@ \[DoubleStruckY]\[LeftDoubleBracket]i \[RightDoubleBracket]\)\/n)\)\^2, {i, 1, dims}]\ \((n + 1)\)\ \((n + 3)\)\)\/\(6 \ \((n - 2)\)\) + Plus@@Table[ \(\((Plus@@\(\((#1\^4\/n&)\)/@ \[DoubleStruckY]\[LeftDoubleBracket]i \[RightDoubleBracket]\) - \(3\ \((n - 1)\)\)\/\(n + 1\))\)\^2\ \((\((n + 1)\)\^2\ \((n + 3)\)\ \((n + 5)\)) \)\)\/\(24\ \((n\ \((n - 2)\))\)\ \((n - 3)\)\), {i, 1, dims}]; \), way === Skewness, \(teststat = \(Plus@@ Table[\(( Plus@@ \(\((#1\^3&)\)/@ \[DoubleStruckY]\[LeftDoubleBracket]i \[RightDoubleBracket]\)\/n)\)\^2, {i, 1, dims}]\ \((n + 1)\)\ \((n + 3)\)\)\/\(6\ \((n - 2)\)\); \), way === Kurtosis, \(teststat = Plus@@Table[ \(\((Plus@@\(\((#1\^4\/n&)\)/@ \[DoubleStruckY]\[LeftDoubleBracket]i \[RightDoubleBracket]\) - \(3\ \((n - 1)\)\)\/\(n + 1\))\)\^2\ \((\((n + 1)\)\^2\ \((n + 3)\)\ \((n + 5)\)) \)\)\/\(24\ \((n\ \((n - 2)\))\)\ \((n - 3)\)\), {i, 1, dims}]; \)]\), ";", TagBox[GridBox[{ {\(ToString[way]<>" Test Stat"\), \("N for crit"\), \("Crit.Value at "<>ToString[sig]\)}, {"teststat", "ntest", \(ALMCritPoint[ntest, sig, way, dims]\)} }, RowSpacings->1, ColumnSpacings->3, RowAlignments->Baseline, ColumnAlignments->{Left}], (TableForm[ #]&)]}]}], "]"}], ",", \(Message[multinormalTestStatistic::"nocrit"]\)}], "]"}], ",", \(Message[multinormalTestStatistic::"notnum"]\)}], "]"}]}]], "Text"], Cell[TextData[ "multinormalTestStatistic[(x_)?MatrixQ, opts___] := \n If[And @@ \ (NumericQ[#1] & ) /@ Flatten[x], \n If[Dimensions[x][[1]] < 6, \n \ Module[{n, xbar, teststat, sig, ntest, way, \n \[DoubleStruckCapitalS], \ \[ScriptCapitalS], \[ScriptCapitalG], \[ScriptCapitalD], \[DoubleStruckY]}, \n\ way = Method /. {opts} /. \n Options[multinormalTestStatistic]; \n\ sig = Significance /. {opts} /. \n \ Options[multinormalTestStatistic]; \n n = N[Dimensions[x][[2]]]; \n \ dims = Dimensions[x][[1]]; \n ntest = If[n > 2000, Infinity, \n \ {10, 20, 50, 100, 200, 800}[[Flatten[Position[Union[{10, 20, 50, 100, \ 200,800}, {n}], n]] - 1]][[1]]]; \n xbar = (Mean[#1] & ) /@ x; \n \ \[DoubleStruckCapitalS] = Table[x[[i]] - xbar[[i]], {i, 1, dims}] . \n \ Transpose[Table[x[[i]] - xbar[[i]], {i, 1, dims}]]/n; \n \ \[ScriptCapitalG] = Transpose[Eigenvectors[\[DoubleStruckCapitalS]]]; \n \ \[ScriptCapitalD] = DiagonalMatrix[Eigenvalues[\[DoubleStruckCapitalS]]]; \n\ \[ScriptCapitalS] = \[ScriptCapitalG] .(Sqrt[#1] & ) /@ \ Inverse[\\[ScriptCapitalD]] . \n Transpose[\\[ScriptCapitalG]]; \n \ \\[DoubleStruckY] = \n \\[ScriptCapitalS] . \n Table[x[[i]] - \ xbar[[i]], {i, 1, dims}]; \n Which[way === Automatic, \n teststat \ = \n Plus @@ Table[(Plus @@ (#1^3 & ) /@ \\[DoubleStruckY][[i]]/n\n\ )^2, {i, 1, dims}]*(n + 1)*(n + 3)/(6*(n - 2)) + \n Plus @@ \ Table[(Plus @@ \n (#1^4/n & ) /@ \\[DoubleStruckY][[i]] \\\n- \ (3*(n - 1))/(n + 1))^2*\n ((n + 1)^2*(n + 3)*(n + 5))/\n \ (24*n*(n - 2)*(n - 3)), {i, 1, dims}]; , \n way === Omnibus, \n \ teststat = Plus @@ Table[(Plus @@ \n (#1^3 & ) /@ \ \\[DoubleStruckY][[i]]/n\n)^2, {i, 1, dims}]*(n + 1)*(n + 3)/(6*(n - 2)) + \n \ Plus @@ \n Table[(Plus @@ \n (#1^4/n & ) \ /@ \\[DoubleStruckY][[i]] \\\n- (3*(n - 1))/(n + 1))^2*\n ((n + \ 1)^2*(n + 3)*(n + 5))/\n (24*n*(n - 2)*(n - 3)), {i, 1, dims}]; \ , \n way === Skewness, \n teststat = \n Plus @@ \n \ Table[(Plus @@ \n (#1^3 & ) /@ \ \\[DoubleStruckY][[i]]/n)^2\\\n, {i, 1, dims}]*(n + 1)*(n + 3)/(6*(n - 2)); , \ \n way === Kurtosis, \n teststat = \n Plus @@ \n \ Table[(Plus @@ \n (#1^4/n & ) /@ \\[DoubleStruckY][[i]] - \n \ (3*(n - 1))/(n + 1))^2*\n ((n + 1)^2*(n + 3)*(n + 5))/\ \n (24*n*(n - 2)*(n - 3)), {i, 1, dims}]; ]; \n \ TableForm[{{StringJoin[ToString[way], \n \" Test Stat\"], \"N for \ crit\", \n StringJoin[\"Crit.Value at \", ToString[sig]]}, \n \ {teststat, ntest, \n ALMCritPoint[ntest, sig, way, dims]}}]], \n \ Message[multinormalTestStatistic::nocrit]], \n \ Message[multinormalTestStatistic::notnum]]"], "Input", InitializationCell->True] }, Closed]] }, Open ]], Cell[CellGroupData[{ Cell["End the private context", "Subsection", InitializationCell->True], Cell["On[General::spell]", "Input", InitializationCell->True], Cell[CellGroupData[{ Cell["End[ ]", "Input", InitializationCell->True], Cell[BoxData[ \("EconGroup`NormalityTests`Private`"\)], "Output"] }, Open ]] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell["Epilog", "Section", InitializationCell->True], Cell["This section protects exported symbols and ends the package.", "Text"], Cell[CellGroupData[{ Cell["Protect exported symbol", "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell["Protect[ normalityTestStatistic, multinormalTestStatistic ]", "Input", InitializationCell->True], Cell[BoxData[ \({"normalityTestStatistic", "multinormalTestStatistic"}\)], "Output"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell["End the package context", "Subsection", InitializationCell->True], Cell["EndPackage[ ]", "Input", InitializationCell->True] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell["Examples, Tests", "Section"], Cell["This reads in the package", "Text"], Cell[BoxData[ \(Needs["\"]\)], "Input"], Cell["\<\ testdata1 is a vector of uniformly distributed random numbers \ between zero and one. testdata2 is a 3-by-500 matrix of iid uniformly \ distributed random numbers. testdata3 is a vector of numbers drawn from the \ Normal(0,2) distribution. testdata4 is a 4 by 200 vector of iid Normal(0,2) \ random numbers. Therefore the tests should reject normality for testdata1 and \ testdata2, and not reject for testdata3 and testdata4.\ \>", "Text"], Cell[BoxData[ \(\(testdata1 = Table[Random[], {500}]; \)\)], "Input"], Cell[BoxData[ \(\(testdata2\ = \ Table[Random[], {3}, {500}]; \)\)], "Input"], Cell[BoxData[ \(testdata3\ = \ Table[Random[NormalDistribution[0, 2]], {200}]; \n\t\t testdata4\ = \ Table[Random[NormalDistribution[0, 2]], {4}, {200}]; \)], "Input"], Cell[BoxData[ \(\(toobigdata\ = \ \ Table[Random[NormalDistribution[0, 2]], {8}, {50}]; \)\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(normalityTestStatistic[testdata1, Method -> JarqueBera, Significance -> 0.05]\)], "Input"], Cell[BoxData[ RowBox[{"normalityTestStatistic", "[", RowBox[{ \({0.443587977382335729`, 0.833078726509157974`, 0.232786839117430321`, 0.273311563916932254`, 0.784206055909494992`, 0.892348903424773887`, 0.348018408071448837`, 0.881454495473990107`, 0.696197554431249443`, 0.286618015650603741`, 0.845741563116715155`, 0.267730893302974237`, 0.134906336689426575`, 0.701364063507184987`, 0.779802039905302102`, 0.20625762219285364`, 0.156875366846707064`, 0.257859154776170873`, 0.266962833946553512`, 0.375664859712583254`, 0.0134006268344343371`, 0.611070675242857141`, 0.363925670708072868`, 0.0790887090715725094`, 0.569812649452098529`, 0.777991948733699167`, 0.131138831590642546`, 0.805777145154640273`, 0.785606593542603537`, 0.88564304530892528`, 0.783120423519193753`, 0.924322649680650343`, 0.0894090391113541116`, 0.59902502965832145`, 0.937378860402478508`, 0.656591756377675928`, 0.954502702421927473`, 0.897660966151136463`, 0.157576820497176495`, 0.450334134184822332`, 0.797627335575220453`, 0.639801811374965634`, 0.890613986550622982`, 0.0746692744722391577`, 0.784226708740786193`, 0.0287311361321084479`, 0.526688315842550203`, 0.995580565400666728`, 0.21441405928868753`, 0.25073918739840928`, 0.395549484251907568`, 0.189803420246026366`, 0.428807465746083948`, 0.365096142089484088`, 0.612429060732713814`, 0.265480770565376111`, 0.339398426634729855`, 0.766071112431162504`, 0.675050200330235306`, 0.608889014187700183`, 0.384895724212802328`, 0.86841014628002604`, 0.517473379833058721`, 0.158554880002877744`, 0.587268388637581928`, 0.22860833490506045`, 0.626859393282435739`, 0.0838856055306385606`, 0.803041679896795734`, 0.199877198772951985`, 0.100171077439885669`, 0.0883050401299719212`, 0.588627620608108248`, 0.949138011374542678`, 0.704621593187978145`, 0.898501619883945501`, 0.15982015486202421`, 0.584041869285058634`, 0.0921925324552642244`, 0.633020849318569389`, 0.820421728227294266`, 0.817970756853896041`, 0.417142332125028936`, 0.0241318351308693301`, 0.435526004014491974`, 0.94956061057387`, 0.899668952291970214`, 0.865576955127991531`, 0.848257615376910223`, 0.720952275668809505`, 0.272809559009534341`, 0.781691349597353024`, 0.0452159354801143287`, 0.521075076895857502`, 0.172638481569648689`, 0.693386309467381067`, 0.456588314872006151`, 0.571937065521314824`, 0.468016888381670614`, 0.794884689583435566`, 0.296768160009981851`, 0.98789519623625619`, 0.375824355926406372`, 0.161863840264866132`, 0.476346431782687496`, 0.169924439382360237`, 0.958682023801377525`, 0.137732005133996793`, 0.0408204277681955218`, 0.22036382880849028`, 0.059013071509407311`, 0.272155050006005216`, 0.19256281239128544`, 0.499411553139680819`, 0.786203512499873014`, 0.490463700408652147`, 0.147346876911171094`, 0.978336476243823227`, 0.613565030930224253`, 0.79707739094127108`, 0.690758562039165013`, 0.406399410722508402`, 0.145548142548553656`, 0.00219270135783548525`, 0.393990402029183108`, 0.418504214486252212`, 0.769723786622147265`, 0.840328861092969248`, 0.917643970246495577`, 0.248579775103891975`, 0.81104176282076974`, 0.702596855958972632`, 0.876823542478300055`, 0.0282159462954016539`, 0.752028691311362518`, 0.430441805952967371`, 0.684260730087014579`, 0.528804393155720919`, 0.965825178811489593`, 0.939978105544315134`, 0.536913853175843502`, 0.550467916911897692`, 0.352260147881265295`, 0.142900714603044098`, 0.846155291136678577`, 0.144068506189389244`, 0.206712005332711612`, 0.140708013245208629`, 0.452164889107495504`, 0.725564291703137076`, 0.436988218710564346`, 0.300379152152239248`, 0.534520918860999838`, 0.4769845165992451`, 0.625946455889794428`, 0.597782296193266748`, 0.657697376382699783`, 0.44876857030384345`, 0.873917764578431999`, 0.167340490240299395`, 0.973436646295685115`, 0.91996417714812253`, 0.908092585766942406`, 0.227362384695984198`, 0.436522793119841612`, 0.369496260236224927`, 0.555832437885677155`, 0.0844616700929401176`, 0.590367501983163034`, 0.225427754046835726`, 0.349120432552965542`, 0.94375365684773147`, 0.138202612875667574`, 0.49986346234369865`, 0.912132213842401107`, 0.643374504695492177`, 0.603681694014667691`, 0.0228789457444535404`, 0.286185757952606643`, 0.0455922085022254819`, 0.945984317631967819`, 0.574110375440610098`, 0.412267993374174679`, 0.87825171826192605`, 0.972547671336282704`, 0.654146198292487568`, 0.504175407607232273`, 0.650889333565941807`, 0.536024878216441091`, 0.284649938056262605`, 0.948342969721555029`, 0.566427663473001796`, 0.945657376233278057`, 0.0592221840094268792`, 0.599222537168589575`, 0.622674006625270237`, 0.807454763357610438`, 0.559358721665728175`, 0.687090323326188379`, 0.97929950192977806`, 0.203773069342942836`, 0.536479775921274715`, 0.4009045653735817`, 0.933707293427552542`, 0.257788751710974928`, 0.962369400480664616`, 0.988636571999407109`, 0.0554555751656264739`, 0.285241080374692224`, 0.308223202188177047`, 0.484461164392174836`, 0.404566241599684595`, 0.749216202158251043`, 0.0235732641319144908`, 0.536118194670619718`, 0.838138578126682887`, 0.803558825924972985`, 0.96435108012248758`, 0.936895657502030232`, 0.215464571501412649`, 0.996104062567362547`, 0.404992358456759404`, 0.249805334175841897`, 0.236165069571634589`, 0.79233099322441971`, 0.868512582535484689`, 0.848900768802260152`, 0.302457776144082046`, 0.534542241513444782`, 0.906143182054820073`, 0.86026419680285322`, 0.247002200978455555`, 0.249301161138752558`, 0.597919979866643025`, 0.375803032410678294`, 0.842435959378770959`, 0.500084958980501514`, 0.57434671573472853`, 0.839684837740058576`, 0.00429738125208806476`, 0.69652613305552844`, 0.60999563561224086`, 0.902789180238028343`, 0.788832809750675423`, 0.70042207048816607`, 0.205003277155481544`, 0.652983846062186401`, 0.552667740179040833`, 0.908091077263746448`, 0.336490694619996855`, 0.804083077259926248`, 0.250209964034958831`, 0.373548835750301622`, 0.430347512565176693`, 0.943818880457073028`, 0.00320776305650323578`, 0.124247674611549041`, 0.832427532698533667`, 0.568015848046394733`, 0.160771803677732272`, 0.624162715631047504`, 0.258080816963805181`, 0.728331010306336157`, 0.156474422425644217`, 0.927636582575519064`, 0.648085181351564187`, 0.825541830068307902`, 0.36764161267496882`, 0.227214512087353037`, 0.443081904196082732`, 0.172557984006121429`, 0.814973872495927942`, 0.319123434823606677`, 0.106591209576085876`, 0.368474906746195207`, 0.564763908460969155`, 0.945574599073305144`, 0.676243697010909095`, 0.424656026289122134`, 0.561556145404465922`, 0.821326924461756036`, 0.843816164312375427`, 0.856640178242727401`, 0.40078434172673365`, 0.197164208830708496`, 0.585735347348570201`, 0.128309167936391199`, 0.244309919301089406`, 0.269527626255189467`, 0.937650165997006013`, 0.302767337868083297`, 0.876668306626120674`, 0.0423131141678363942`, 0.494568261800923281`, 0.130209353861961885`, 0.0616944341301926524`, 0.723189679344229752`, 0.387977052224837404`, 0.761734447115766677`, 0.496930525669223488`, 0.777615080270924607`, 0.711733355213928309`, 0.337078420826644586`, 0.935374380264757654`, 0.956288155809168571`, 0.867917190901552793`, 0.480438242583917229`, 0.534590038538024003`, 0.75912394697846004`, 0.282181843552982627`, 0.35212907464752603`, 0.290280119236934552`, 0.489596320723270661`, 0.344531677555976623`, 0.0493617367794427241`, 0.413611812610813878`, 0.447283206555434276`, 0.849963415755053475`, 0.919152382917480892`, 0.351917378480621279`, 0.724093527211204524`, 0.461986363530215982`, 0.15741793580171417`, 0.854986852811397746`, 0.946478446940279916`, 0.750253008316287584`, 0.820339514975069583`, 0.919612472546640269`, 0.990190291131111344`, 0.88233581741473479`, 0.339901272391152353`, 0.385022434008616265`, 0.231066344152651304`, 0.600153973861752199`, 0.987772197743626279`, 0.0947423147716816949`, 0.741470023429380642`, 0.255622296305775487`, 0.938410460964183634`, 0.681130502160867834`, 0.294186816873946366`, 0.405658880550722145`, 0.0192580780467027761`, 0.329213123680246466`, 0.570093289662741842`, 0.943672517020506163`, 0.861840142244988527`, 0.474226270868848676`, 0.623614842722461926`, 0.193419508704218561`, 0.0415006272699190237`, 0.554613798322208495`, 0.633424551591350493`, 0.311083691289483832`, 0.701599354878766678`, 0.169591364313592229`, 0.402358207438699277`, 0.710929717427731677`, 0.713827157135140311`, 0.074849049541910535`, 0.660888184009318635`, 0.455307421121956235`, 0.775416696170956676`, 0.393718547381042771`, 0.366701367135372269`, 0.0496485405712340543`, 0.756158618124253933`, 0.0645054237007963138`, 0.796608077472630426`, 0.10597602355072786`, 0.894318475879265228`, 0.590279152831947673`, 0.172993234750168571`, 0.912556514846509259`, 0.852817848609346285`, 0.0356653545097391511`, 0.539568683158818007`, 0.601472823557025471`, 0.151218493730579606`, 0.866073990196147036`, 0.137210475720118796`, 0.890543106129293882`, 0.437391336595439295`, 0.79122494065423643`, 0.476322291710800183`, 0.435235685007337647`, 0.661974640424482618`, 0.39750639327319357`, 0.109620924575427913`, 0.385587144436103592`, 0.905816022300228773`, 0.333000969572397265`, 0.313012847102797486`, 0.279611120885375763`, 0.0114975464209634803`, 0.742721816740449725`, 0.140019612352628914`, 0.367054606038866415`, 0.158679697811617215`, 0.707056462230710458`, 0.6004509291938108`, 0.765581782481840988`, 0.0074612040810376099`, 0.840982472034563599`, 0.46324045347369207`, 0.875038676352547106`, 0.570069867485598269`, 0.0497575313803271868`, 0.986918161762891799`, 0.439802991345209459`, 0.90809522706111565`, 0.652251138107133598`, 0.877297237187464062`, 0.0542158469091058492`, 0.00227920476088687706`, 0.319250168534736289`, 0.564284390084666487`, 0.774604726023730094`, 0.990781658339923332`, 0.576528351794286741`, 0.42426477773203759`, 0.407550119984863634`, 0.83210196052830625`, 0.869471889563576283`, 0.8238138485382267`, 0.641968337503022734`, 0.824640756447268508`, 0.0284894175290126341`, 0.360573395064534674`, 0.766929661150475716`, 0.254570888961670283`, 0.978731886148685426`, 0.373655233301642786`, 0.327126669805266212`, 0.346475661900554632`, 0.326480748041551871`, 0.496357996114178767`, 0.272910822896160354`, 0.34419645713966771`, 0.00723057950681550387`, 0.932073606029512369`, 0.498306096872430259`, 0.353414798799744378`, 0.430702227712528795`, 0.507808828297474779`, 0.0907559768875665895`, 0.521312838271438128`, 0.561230338148952601`, 0.683994979759248078`, 0.44878763938454389`, 0.69667208182416962`, 0.532740920619939917`, 0.323421584694713448`, 0.681857978234068085`, 0.442101192862499381`, 0.554009034471254491`, 0.949766351393070706`, 0.354731308428801961`, 0.0956255309619447224`, 0.227528286429702708`, 0.45340835527889185`, 0.081820485532641598`, 0.751429073822276993`, 0.220297706922887215`, 0.521334749249379481`, 0.583514388660211302`, 0.398014275022532615`, 0.789595479210358419`, 0.0135259209519047018`, 0.492758411772644766`, 0.876701436751094398`, 0.228365141061405774`, 0.329530941192656623`, 0.0439707723881009115`, 0.180029354926924778`, 0.695624220441465723`, 0.00610935649794318713`, 0.362112794154032746`, 0.737928162064425485`, 0.14161518597021125`, 0.0563430051048725388`, 0.00738148572523076929`, 0.642302631102480603`, 0.914086899540508568`, 0.602934649825980706`, 0.925561000192589133`, 0.890873557280203698`, 0.693789192617621353`, 0.0815999005766012075`, 0.342046611532377875`, 0.492859282257671083`, 0.904193713407262933`, 0.0680739796246965056`, 0.849288199759733153`, 0.616157845506576684`, 0.675828572345857114`, 0.738543038432039811`, 0.805317427371632099`, 0.436128490579651906`, 0.980204351904391302`}\), ",", \(Method \[Rule] JarqueBera\), ",", RowBox[{"Significance", "\[Rule]", StyleBox["0.05`", StyleBoxAutoDelete->True, PrintPrecision->1]}]}], "]"}]], "Output"] }, Closed]], Cell[CellGroupData[{ Cell[BoxData[ \(normalityTestStatistic[testdata1, Method -> Urzua, Significance -> 0.01] \)], "Input"], Cell[BoxData[ RowBox[{"normalityTestStatistic", "[", RowBox[{ \({0.443587977382335729`, 0.833078726509157974`, 0.232786839117430321`, 0.273311563916932254`, 0.784206055909494992`, 0.892348903424773887`, 0.348018408071448837`, 0.881454495473990107`, 0.696197554431249443`, 0.286618015650603741`, 0.845741563116715155`, 0.267730893302974237`, 0.134906336689426575`, 0.701364063507184987`, 0.779802039905302102`, 0.20625762219285364`, 0.156875366846707064`, 0.257859154776170873`, 0.266962833946553512`, 0.375664859712583254`, 0.0134006268344343371`, 0.611070675242857141`, 0.363925670708072868`, 0.0790887090715725094`, 0.569812649452098529`, 0.777991948733699167`, 0.131138831590642546`, 0.805777145154640273`, 0.785606593542603537`, 0.88564304530892528`, 0.783120423519193753`, 0.924322649680650343`, 0.0894090391113541116`, 0.59902502965832145`, 0.937378860402478508`, 0.656591756377675928`, 0.954502702421927473`, 0.897660966151136463`, 0.157576820497176495`, 0.450334134184822332`, 0.797627335575220453`, 0.639801811374965634`, 0.890613986550622982`, 0.0746692744722391577`, 0.784226708740786193`, 0.0287311361321084479`, 0.526688315842550203`, 0.995580565400666728`, 0.21441405928868753`, 0.25073918739840928`, 0.395549484251907568`, 0.189803420246026366`, 0.428807465746083948`, 0.365096142089484088`, 0.612429060732713814`, 0.265480770565376111`, 0.339398426634729855`, 0.766071112431162504`, 0.675050200330235306`, 0.608889014187700183`, 0.384895724212802328`, 0.86841014628002604`, 0.517473379833058721`, 0.158554880002877744`, 0.587268388637581928`, 0.22860833490506045`, 0.626859393282435739`, 0.0838856055306385606`, 0.803041679896795734`, 0.199877198772951985`, 0.100171077439885669`, 0.0883050401299719212`, 0.588627620608108248`, 0.949138011374542678`, 0.704621593187978145`, 0.898501619883945501`, 0.15982015486202421`, 0.584041869285058634`, 0.0921925324552642244`, 0.633020849318569389`, 0.820421728227294266`, 0.817970756853896041`, 0.417142332125028936`, 0.0241318351308693301`, 0.435526004014491974`, 0.94956061057387`, 0.899668952291970214`, 0.865576955127991531`, 0.848257615376910223`, 0.720952275668809505`, 0.272809559009534341`, 0.781691349597353024`, 0.0452159354801143287`, 0.521075076895857502`, 0.172638481569648689`, 0.693386309467381067`, 0.456588314872006151`, 0.571937065521314824`, 0.468016888381670614`, 0.794884689583435566`, 0.296768160009981851`, 0.98789519623625619`, 0.375824355926406372`, 0.161863840264866132`, 0.476346431782687496`, 0.169924439382360237`, 0.958682023801377525`, 0.137732005133996793`, 0.0408204277681955218`, 0.22036382880849028`, 0.059013071509407311`, 0.272155050006005216`, 0.19256281239128544`, 0.499411553139680819`, 0.786203512499873014`, 0.490463700408652147`, 0.147346876911171094`, 0.978336476243823227`, 0.613565030930224253`, 0.79707739094127108`, 0.690758562039165013`, 0.406399410722508402`, 0.145548142548553656`, 0.00219270135783548525`, 0.393990402029183108`, 0.418504214486252212`, 0.769723786622147265`, 0.840328861092969248`, 0.917643970246495577`, 0.248579775103891975`, 0.81104176282076974`, 0.702596855958972632`, 0.876823542478300055`, 0.0282159462954016539`, 0.752028691311362518`, 0.430441805952967371`, 0.684260730087014579`, 0.528804393155720919`, 0.965825178811489593`, 0.939978105544315134`, 0.536913853175843502`, 0.550467916911897692`, 0.352260147881265295`, 0.142900714603044098`, 0.846155291136678577`, 0.144068506189389244`, 0.206712005332711612`, 0.140708013245208629`, 0.452164889107495504`, 0.725564291703137076`, 0.436988218710564346`, 0.300379152152239248`, 0.534520918860999838`, 0.4769845165992451`, 0.625946455889794428`, 0.597782296193266748`, 0.657697376382699783`, 0.44876857030384345`, 0.873917764578431999`, 0.167340490240299395`, 0.973436646295685115`, 0.91996417714812253`, 0.908092585766942406`, 0.227362384695984198`, 0.436522793119841612`, 0.369496260236224927`, 0.555832437885677155`, 0.0844616700929401176`, 0.590367501983163034`, 0.225427754046835726`, 0.349120432552965542`, 0.94375365684773147`, 0.138202612875667574`, 0.49986346234369865`, 0.912132213842401107`, 0.643374504695492177`, 0.603681694014667691`, 0.0228789457444535404`, 0.286185757952606643`, 0.0455922085022254819`, 0.945984317631967819`, 0.574110375440610098`, 0.412267993374174679`, 0.87825171826192605`, 0.972547671336282704`, 0.654146198292487568`, 0.504175407607232273`, 0.650889333565941807`, 0.536024878216441091`, 0.284649938056262605`, 0.948342969721555029`, 0.566427663473001796`, 0.945657376233278057`, 0.0592221840094268792`, 0.599222537168589575`, 0.622674006625270237`, 0.807454763357610438`, 0.559358721665728175`, 0.687090323326188379`, 0.97929950192977806`, 0.203773069342942836`, 0.536479775921274715`, 0.4009045653735817`, 0.933707293427552542`, 0.257788751710974928`, 0.962369400480664616`, 0.988636571999407109`, 0.0554555751656264739`, 0.285241080374692224`, 0.308223202188177047`, 0.484461164392174836`, 0.404566241599684595`, 0.749216202158251043`, 0.0235732641319144908`, 0.536118194670619718`, 0.838138578126682887`, 0.803558825924972985`, 0.96435108012248758`, 0.936895657502030232`, 0.215464571501412649`, 0.996104062567362547`, 0.404992358456759404`, 0.249805334175841897`, 0.236165069571634589`, 0.79233099322441971`, 0.868512582535484689`, 0.848900768802260152`, 0.302457776144082046`, 0.534542241513444782`, 0.906143182054820073`, 0.86026419680285322`, 0.247002200978455555`, 0.249301161138752558`, 0.597919979866643025`, 0.375803032410678294`, 0.842435959378770959`, 0.500084958980501514`, 0.57434671573472853`, 0.839684837740058576`, 0.00429738125208806476`, 0.69652613305552844`, 0.60999563561224086`, 0.902789180238028343`, 0.788832809750675423`, 0.70042207048816607`, 0.205003277155481544`, 0.652983846062186401`, 0.552667740179040833`, 0.908091077263746448`, 0.336490694619996855`, 0.804083077259926248`, 0.250209964034958831`, 0.373548835750301622`, 0.430347512565176693`, 0.943818880457073028`, 0.00320776305650323578`, 0.124247674611549041`, 0.832427532698533667`, 0.568015848046394733`, 0.160771803677732272`, 0.624162715631047504`, 0.258080816963805181`, 0.728331010306336157`, 0.156474422425644217`, 0.927636582575519064`, 0.648085181351564187`, 0.825541830068307902`, 0.36764161267496882`, 0.227214512087353037`, 0.443081904196082732`, 0.172557984006121429`, 0.814973872495927942`, 0.319123434823606677`, 0.106591209576085876`, 0.368474906746195207`, 0.564763908460969155`, 0.945574599073305144`, 0.676243697010909095`, 0.424656026289122134`, 0.561556145404465922`, 0.821326924461756036`, 0.843816164312375427`, 0.856640178242727401`, 0.40078434172673365`, 0.197164208830708496`, 0.585735347348570201`, 0.128309167936391199`, 0.244309919301089406`, 0.269527626255189467`, 0.937650165997006013`, 0.302767337868083297`, 0.876668306626120674`, 0.0423131141678363942`, 0.494568261800923281`, 0.130209353861961885`, 0.0616944341301926524`, 0.723189679344229752`, 0.387977052224837404`, 0.761734447115766677`, 0.496930525669223488`, 0.777615080270924607`, 0.711733355213928309`, 0.337078420826644586`, 0.935374380264757654`, 0.956288155809168571`, 0.867917190901552793`, 0.480438242583917229`, 0.534590038538024003`, 0.75912394697846004`, 0.282181843552982627`, 0.35212907464752603`, 0.290280119236934552`, 0.489596320723270661`, 0.344531677555976623`, 0.0493617367794427241`, 0.413611812610813878`, 0.447283206555434276`, 0.849963415755053475`, 0.919152382917480892`, 0.351917378480621279`, 0.724093527211204524`, 0.461986363530215982`, 0.15741793580171417`, 0.854986852811397746`, 0.946478446940279916`, 0.750253008316287584`, 0.820339514975069583`, 0.919612472546640269`, 0.990190291131111344`, 0.88233581741473479`, 0.339901272391152353`, 0.385022434008616265`, 0.231066344152651304`, 0.600153973861752199`, 0.987772197743626279`, 0.0947423147716816949`, 0.741470023429380642`, 0.255622296305775487`, 0.938410460964183634`, 0.681130502160867834`, 0.294186816873946366`, 0.405658880550722145`, 0.0192580780467027761`, 0.329213123680246466`, 0.570093289662741842`, 0.943672517020506163`, 0.861840142244988527`, 0.474226270868848676`, 0.623614842722461926`, 0.193419508704218561`, 0.0415006272699190237`, 0.554613798322208495`, 0.633424551591350493`, 0.311083691289483832`, 0.701599354878766678`, 0.169591364313592229`, 0.402358207438699277`, 0.710929717427731677`, 0.713827157135140311`, 0.074849049541910535`, 0.660888184009318635`, 0.455307421121956235`, 0.775416696170956676`, 0.393718547381042771`, 0.366701367135372269`, 0.0496485405712340543`, 0.756158618124253933`, 0.0645054237007963138`, 0.796608077472630426`, 0.10597602355072786`, 0.894318475879265228`, 0.590279152831947673`, 0.172993234750168571`, 0.912556514846509259`, 0.852817848609346285`, 0.0356653545097391511`, 0.539568683158818007`, 0.601472823557025471`, 0.151218493730579606`, 0.866073990196147036`, 0.137210475720118796`, 0.890543106129293882`, 0.437391336595439295`, 0.79122494065423643`, 0.476322291710800183`, 0.435235685007337647`, 0.661974640424482618`, 0.39750639327319357`, 0.109620924575427913`, 0.385587144436103592`, 0.905816022300228773`, 0.333000969572397265`, 0.313012847102797486`, 0.279611120885375763`, 0.0114975464209634803`, 0.742721816740449725`, 0.140019612352628914`, 0.367054606038866415`, 0.158679697811617215`, 0.707056462230710458`, 0.6004509291938108`, 0.765581782481840988`, 0.0074612040810376099`, 0.840982472034563599`, 0.46324045347369207`, 0.875038676352547106`, 0.570069867485598269`, 0.0497575313803271868`, 0.986918161762891799`, 0.439802991345209459`, 0.90809522706111565`, 0.652251138107133598`, 0.877297237187464062`, 0.0542158469091058492`, 0.00227920476088687706`, 0.319250168534736289`, 0.564284390084666487`, 0.774604726023730094`, 0.990781658339923332`, 0.576528351794286741`, 0.42426477773203759`, 0.407550119984863634`, 0.83210196052830625`, 0.869471889563576283`, 0.8238138485382267`, 0.641968337503022734`, 0.824640756447268508`, 0.0284894175290126341`, 0.360573395064534674`, 0.766929661150475716`, 0.254570888961670283`, 0.978731886148685426`, 0.373655233301642786`, 0.327126669805266212`, 0.346475661900554632`, 0.326480748041551871`, 0.496357996114178767`, 0.272910822896160354`, 0.34419645713966771`, 0.00723057950681550387`, 0.932073606029512369`, 0.498306096872430259`, 0.353414798799744378`, 0.430702227712528795`, 0.507808828297474779`, 0.0907559768875665895`, 0.521312838271438128`, 0.561230338148952601`, 0.683994979759248078`, 0.44878763938454389`, 0.69667208182416962`, 0.532740920619939917`, 0.323421584694713448`, 0.681857978234068085`, 0.442101192862499381`, 0.554009034471254491`, 0.949766351393070706`, 0.354731308428801961`, 0.0956255309619447224`, 0.227528286429702708`, 0.45340835527889185`, 0.081820485532641598`, 0.751429073822276993`, 0.220297706922887215`, 0.521334749249379481`, 0.583514388660211302`, 0.398014275022532615`, 0.789595479210358419`, 0.0135259209519047018`, 0.492758411772644766`, 0.876701436751094398`, 0.228365141061405774`, 0.329530941192656623`, 0.0439707723881009115`, 0.180029354926924778`, 0.695624220441465723`, 0.00610935649794318713`, 0.362112794154032746`, 0.737928162064425485`, 0.14161518597021125`, 0.0563430051048725388`, 0.00738148572523076929`, 0.642302631102480603`, 0.914086899540508568`, 0.602934649825980706`, 0.925561000192589133`, 0.890873557280203698`, 0.693789192617621353`, 0.0815999005766012075`, 0.342046611532377875`, 0.492859282257671083`, 0.904193713407262933`, 0.0680739796246965056`, 0.849288199759733153`, 0.616157845506576684`, 0.675828572345857114`, 0.738543038432039811`, 0.805317427371632099`, 0.436128490579651906`, 0.980204351904391302`}\), ",", \(Method \[Rule] Urzua\), ",", RowBox[{"Significance", "\[Rule]", StyleBox["0.01`", StyleBoxAutoDelete->True, PrintPrecision->1]}]}], "]"}]], "Output"] }, Closed]], Cell[CellGroupData[{ Cell[BoxData[ \(normalityTestStatistic[testdata3, Method -> Urzua, Significance -> 0.01] \)], "Input"], Cell[BoxData[ RowBox[{"normalityTestStatistic", "[", RowBox[{ \({\(-0.469737908146957483`\), 0.369474901925299725`, \(-1.25849405369600053`\), \(-0.49984836585989818`\), \(-1.16238203795820327`\), 0.00796401064445033224`, \(-0.0870659540820781963`\), \(-1.03477940088553443`\), \(-2.82880152732342757`\), 2.18911107846909169`, \(-1.6831363825476453`\), 2.38583806436131906`, \(-0.390291649753520921`\), \(-2.30953998121878356`\), 2.15502476361632977`, 1.51662515504797745`, \(-1.47546653428727259`\), \(-0.56790226593118902`\), 1.81731464755207721`, \(-1.79514217367963464`\), \(-1.77859462242089723`\), \(-0.321091914878668038`\), \(-0.0604205413835471993`\), \(-2.36291698952275686`\), \(-4.06456923699790895`\), 0.0971698262348226293`, \(-2.14682071325495238`\), 1.19971386010791736`, 0.900477596825483672`, 1.10495009102675179`, 1.14734475039537686`, 1.11817060098542531`, \(-2.92328516635257287`\), \(-0.687264868290905006`\), 0.23130951751790576`, 1.06446902352204153`, \(-0.926033237885504156`\), \(-2.0808312330015628`\), 0.49301583647814553`, \(-5.31832349613109212`\), 1.92985952992518061`, \(-2.49932499501810179`\), 0.33570149358525656`, \(-0.929268525016840385`\), \(-1.01253258126658574`\), 0.797055436021677188`, 4.32259657101383787`, 2.17840891788062362`, \(-1.74010973117731087`\), \(-1.09934814694070382`\), 0.0462613927666643665`, 0.90310185127511442`, \(-1.05112041249068277`\), \(-2.40851694578890374`\), \(-3.79258518611404182`\), 1.35799543187931415`, 1.41011694427426963`, 0.846756021719426499`, 2.17111132319974409`, 2.67680084031720744`, \(-0.420847307819944571`\), \(-2.26407446952861546`\), \(-2.40781972783639952`\), \(-1.46183327549209973`\), 3.02212937035695539`, 2.43191036796038373`, \(-3.56561764161053762`\), \(-0.105501372316380548`\), \(-2.46232858726498582`\), \(-0.794408425111221205`\), \(-0.729881255261845129`\), \(-2.22562292368247849`\), 0.208479399177163138`, 6.82914530468824843`, \(-1.56513204140336075`\), \(-2.3325603495032805`\), \(-1.35016820623142974`\), \(-0.335593839618504796`\), \(-0.425816867871658999`\), 2.31478084574541664`, 0.800150815609514509`, \(-1.76402283589894093`\), 0.548630180438231196`, 3.50965749868442777`, 3.90944856961846411`, 3.25409710430157916`, \(-2.69882453057398263`\), \(-0.175584335864961342`\), 0.622640421986971936`, \(-1.84761504176806656`\), \(-2.40995655020639931`\), \(-3.93752267555790869`\), 0.947700679554142766`, 1.71081313367955045`, \(-2.80696094078638544`\), 0.44003552386674567`, \(-3.69274562300898967`\), \(-1.58802826699461308`\), 1.41802308876464806`, 1.74238962277048798`, 0.528734814120088358`, \(-0.429097187512133348`\), \(-2.08016526678655777`\), 1.15783004743972806`, 0.558207310515035448`, 2.38494728048582027`, 0.39189300024421243`, \(-0.481676277148315268`\), \(-0.767185518234532892`\), \(-1.09579295673697153`\), \(-0.482715127894399209`\), \(-0.00684537470935741865`\), \(-0.361769210231785942`\), \(-0.23348721379776034`\), 2.24389738480049816`, \(-1.53262160930435893`\), 1.42076407409746963`, 0.483596167798464904`, 2.2442832237176522`, 0.723815239638304408`, \(-0.263828069644829676`\), 0.888347853399983833`, \(-0.258364293761252428`\), \(-2.31166426084284326`\), 5.91632011657096956`, 1.18687385951586165`, 1.19554988238194592`, 1.42087733038063257`, 3.81166119519806656`, \(-0.860211732536685147`\), 1.863784528657769`, 0.205838399633878577`, \(-0.133532402545298856`\), \(-2.00641679401106731`\), 1.01564867891850041`, 3.50349485707323893`, 1.36452168488033676`, 2.43787025261389933`, 1.93009653184256961`, 0.348474921613458343`, 2.62110841003244132`, \(-3.41815823209318336`\), 1.22309256867876592`, \(-1.12047121308695274`\), 1.40456924173334929`, 0.967372852699866037`, 0.913374428585784414`, 1.32708313369897301`, 4.11941518696129982`, 2.98210511696409916`, 0.896815054117990584`, 1.97730498857185317`, \(-0.0751802028085277029`\), \(-3.23754748739698339`\), \(-2.9245374426492777`\), \(-0.305519722491583234`\), \(-0.991642822333349904`\), \(-0.404637003495434832`\), \(-1.01970219994022071`\), \(-2.44448380293086753`\), \(-1.56772007995568802`\), \(-0.73563892423495405`\), \(-0.153537300703283818`\), 0.322974059629222809`, 0.205899520758027021`, \(-1.9999673943380289`\), \(-1.36179213736503945`\), \(-1.2153462002102835`\), \(-0.133565208775560684`\), 1.98999825888532804`, 1.98907457000781278`, \(-2.24472355310994586`\), \(-0.700955832903667452`\), 0.226962197566717582`, \(-0.320001123683527843`\), 4.40351396768030145`, \(-0.150381766545448636`\), \(-1.08428815113259657`\), \(-1.1031617877623705`\), 3.54657684924783822`, \(-2.63364978168324403`\), 1.74385608780134626`, \(-1.25321539338089715`\), \(-3.57161595590202507`\), 0.989875256235427869`, \(-0.0589821607414553206`\), \(-0.395795938482574527`\), \(-0.00862433801594182014`\), \(-2.45268809054341518`\), 0.958020500899824334`, 0.120415603560688211`, 1.13527104867423234`, \(-1.2511223189852576`\), 0.0320417438686836497`, 0.782021107348848865`, \(-0.253675537991011168`\), 0.518991769964271654`, 3.79593171402298779`, 1.69564767631742796`, 0.294231102466001779`}\), ",", \(Method \[Rule] Urzua\), ",", RowBox[{"Significance", "\[Rule]", StyleBox["0.01`", StyleBoxAutoDelete->True, PrintPrecision->1]}]}], "]"}]], "Output"] }, Closed]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic[testdata2, Method -> Automatic, Significance -> 0.9]\)], "Input"], Cell[BoxData[ TagBox[GridBox[{ {\("Automatic Test Stat"\), \("N for crit"\), \("Crit.Value at 0.9"\)}, {"90.050626950419641`", "200", StyleBox["11.0099999999999997`", StyleBoxAutoDelete->True, PrintPrecision->4]} }, RowSpacings->1, ColumnSpacings->3, RowAlignments->Baseline, ColumnAlignments->{Left}], (TableForm[ #]&)]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic[testdata4, Method -> Automatic, Significance -> 0.9]\)], "Input"], Cell[BoxData[ TagBox[GridBox[{ {\("Automatic Test Stat"\), \("N for crit"\), \("Crit.Value at 0.9"\)}, {"4.28398249830868671`", "200", StyleBox["13.9999999999999991`", StyleBoxAutoDelete->True, PrintPrecision->2]} }, RowSpacings->1, ColumnSpacings->3, RowAlignments->Baseline, ColumnAlignments->{Left}], (TableForm[ #]&)]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic[testdata2, Method -> Omnibus, Significance -> 0.9]\)], "Input"], Cell[BoxData[ TagBox[GridBox[{ {\("Omnibus Test Stat"\), \("N for crit"\), \("Crit.Value at 0.9"\)}, {"EconGroup`NormalityTests`Private`teststat$4", "200", "Null"} }, RowSpacings->1, ColumnSpacings->3, RowAlignments->Baseline, ColumnAlignments->{Left}], (TableForm[ #]&)]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic[testdata4, Method -> Omnibus, Significance -> 0.9]\)], "Input"], Cell[BoxData[ TagBox[GridBox[{ {\("Omnibus Test Stat"\), \("N for crit"\), \("Crit.Value at 0.9"\)}, {"EconGroup`NormalityTests`Private`teststat$5", "200", "Null"} }, RowSpacings->1, ColumnSpacings->3, RowAlignments->Baseline, ColumnAlignments->{Left}], (TableForm[ #]&)]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic[testdata2, Method -> Skewness, Significance -> 0.9]\)], "Input"], Cell[BoxData[ TagBox[GridBox[{ {\("Skewness Test Stat"\), \("N for crit"\), \("Crit.Value at 0.9"\)}, {"0.363233231737484985`", "200", StyleBox["6.26999999999999957`", StyleBoxAutoDelete->True, PrintPrecision->3]} }, RowSpacings->1, ColumnSpacings->3, RowAlignments->Baseline, ColumnAlignments->{Left}], (TableForm[ #]&)]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic[testdata4, Method -> Skewness, Significance -> 0.9]\)], "Input"], Cell[BoxData[ TagBox[GridBox[{ {\("Skewness Test Stat"\), \("N for crit"\), \("Crit.Value at 0.9"\)}, {"3.20886377093896779`", "200", StyleBox["7.92999999999999971`", StyleBoxAutoDelete->True, PrintPrecision->3]} }, RowSpacings->1, ColumnSpacings->3, RowAlignments->Baseline, ColumnAlignments->{Left}], (TableForm[ #]&)]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic[testdata2, Method -> Kurtosis, Significance -> 0.9]\)], "Input"], Cell[BoxData[ TagBox[GridBox[{ {\("Kurtosis Test Stat"\), \("N for crit"\), \("Crit.Value at 0.9"\)}, {"89.6873937186821557`", "200", StyleBox["6.12999999999999989`", StyleBoxAutoDelete->True, PrintPrecision->3]} }, RowSpacings->1, ColumnSpacings->3, RowAlignments->Baseline, ColumnAlignments->{Left}], (TableForm[ #]&)]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic[testdata4, Method -> Kurtosis, Significance -> 0.9]\)], "Input"], Cell[BoxData[ TagBox[GridBox[{ {\("Kurtosis Test Stat"\), \("N for crit"\), \("Crit.Value at 0.9"\)}, {"1.07511872736971936`", "200", StyleBox["7.92999999999999971`", StyleBoxAutoDelete->True, PrintPrecision->3]} }, RowSpacings->1, ColumnSpacings->3, RowAlignments->Baseline, ColumnAlignments->{Left}], (TableForm[ #]&)]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(multinormalTestStatistic[toobigdata, Method -> Kurtosis, Significance -> 0.9]\)], "Input"], Cell[BoxData[ \(multinormalTestStatistic::"nocrit" \( : \ \) "Data must be a matrix with five or fewer rows. You may need to \ transpose the matrix prior to calling multinormalTestStatistic."\)], "Message"] }, Open ]] }, Open ]] }, Open ]] }, FrontEndVersion->"Macintosh 3.0", ScreenRectangle->{{0, 640}, {0, 460}}, AutoGeneratedPackage->Automatic, CellGrouping->Automatic, WindowSize->{593, 420}, WindowMargins->{{Automatic, 11}, {Automatic, 8}}, PrivateNotebookOptions->{"ColorPalette"->{RGBColor, 128}}, ShowCellLabel->True, RenderingOptions->{"ObjectDithering"->True, "RasterDithering"->False}, MacintoshSystemPageSetup->"\<\ 00<0001804P000000`d26_oQon@3:`8g0dL5N`?P0080001804P000000]P2:001 0000I00000400`<30?l00BL?00400@0000000000000006P801T1T00000000000 00000000004000000000000000000000\>" ] (*********************************************************************** Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. ***********************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1731, 51, 66, 1, 98, "Title"], Cell[1800, 54, 61, 1, 46, "Subsubtitle"], Cell[1864, 57, 107, 3, 30, "Text"], Cell[CellGroupData[{ Cell[1996, 64, 28, 0, 50, "Section"], Cell[CellGroupData[{ Cell[2049, 68, 30, 0, 41, "Subsubsection"], Cell[2082, 70, 83, 1, 31, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[2202, 76, 31, 0, 41, "Subsubsection"], Cell[2236, 78, 26, 0, 30, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[2299, 83, 32, 0, 41, "Subsubsection"], Cell[2334, 85, 107, 3, 46, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[2478, 93, 34, 0, 41, "Subsubsection"], Cell[2515, 95, 243, 6, 94, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[2795, 106, 41, 0, 41, "Subsubsection"], Cell[2839, 108, 19, 0, 30, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[2895, 113, 101, 4, 42, "Subsubsection"], Cell[2999, 119, 19, 0, 30, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[3055, 124, 32, 0, 41, "Subsubsection"], Cell[3090, 126, 176, 7, 31, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[3303, 138, 33, 0, 41, "Subsubsection"], Cell[3339, 140, 25, 0, 30, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[3401, 145, 31, 0, 41, "Subsubsection"], Cell[3435, 147, 188, 7, 31, "Text"], Cell[3626, 156, 223, 6, 31, "Text"], Cell[3852, 164, 211, 6, 31, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[4100, 175, 33, 0, 41, "Subsubsection"], Cell[4136, 177, 107, 1, 31, "Text"], Cell[4246, 180, 315, 7, 63, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[4598, 192, 35, 0, 41, "Subsubsection"], Cell[4636, 194, 245, 4, 48, "Text"] }, Closed]], Cell[CellGroupData[{ Cell[4918, 203, 35, 0, 27, "Subsubsection"], Cell[4956, 205, 108, 1, 31, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[5101, 211, 37, 0, 41, "Subsubsection"], Cell[5141, 213, 96, 3, 30, "Text"] }, Open ]] }, Closed]], Cell[CellGroupData[{ Cell[5286, 222, 56, 1, 30, "Section", InitializationCell->True], Cell[5345, 225, 125, 4, 30, "Text", InitializationCell->True], Cell[CellGroupData[{ Cell[5495, 233, 102, 1, 44, "Subsection", InitializationCell->True], Cell[5600, 236, 180, 5, 57, "Input", InitializationCell->True], Cell[CellGroupData[{ Cell[5805, 245, 91, 1, 27, "Input", InitializationCell->True], Cell[5899, 248, 61, 1, 26, "Output"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[6009, 255, 124, 4, 44, "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[6158, 263, 193, 4, 59, "Input", InitializationCell->True], Cell[6354, 269, 128, 2, 41, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[6519, 276, 339, 5, 87, "Input", InitializationCell->True], Cell[6861, 283, 179, 3, 41, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[7077, 291, 198, 4, 59, "Input", InitializationCell->True], Cell[7278, 297, 122, 2, 41, "Output"] }, Open ]], Cell[7415, 302, 429, 8, 117, "Input", InitializationCell->True], Cell[7847, 312, 369, 7, 102, "Input", InitializationCell->True], Cell[8219, 321, 324, 7, 87, "Input", InitializationCell->True], Cell[8546, 330, 128, 4, 42, "Input", InitializationCell->True], Cell[8677, 336, 163, 4, 42, "Input", InitializationCell->True], Cell[8843, 342, 135, 4, 42, "Input", InitializationCell->True], Cell[8981, 348, 191, 5, 57, "Input", InitializationCell->True], Cell[9175, 355, 191, 5, 57, "Input", InitializationCell->True] }, Open ]], Cell[CellGroupData[{ Cell[9403, 365, 89, 1, 44, "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[9517, 370, 175, 4, 43, "Input", InitializationCell->True], Cell[9695, 376, 103, 2, 26, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[9835, 383, 160, 3, 43, "Input", InitializationCell->True], Cell[9998, 388, 85, 1, 26, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[10120, 394, 162, 3, 43, "Input", InitializationCell->True], Cell[10285, 399, 85, 1, 26, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[10407, 405, 243, 5, 59, "Input", InitializationCell->True], Cell[10653, 412, 164, 2, 41, "Output"] }, Open ]] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[10878, 421, 61, 1, 50, "Section", InitializationCell->True], Cell[10942, 424, 131, 3, 30, "Text"], Cell[CellGroupData[{ Cell[11098, 431, 97, 1, 44, "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[11220, 436, 65, 1, 27, "Input", InitializationCell->True], Cell[11288, 439, 69, 1, 26, "Output"] }, Open ]], Cell[11372, 443, 91, 1, 27, "Input", InitializationCell->True], Cell[11466, 446, 64, 1, 27, "Input", InitializationCell->True] }, Open ]], Cell[CellGroupData[{ Cell[11567, 452, 123, 4, 44, "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[11715, 460, 42, 0, 41, "Subsubsection"], Cell[11760, 462, 766, 14, 179, "Input", InitializationCell->True] }, Open ]], Cell[CellGroupData[{ Cell[12563, 481, 58, 0, 41, "Subsubsection"], Cell[12624, 483, 1867, 28, 427, "Input", InitializationCell->True], Cell[14494, 513, 1805, 28, 427, "Input", InitializationCell->True], Cell[16302, 543, 1822, 28, 427, "Input", InitializationCell->True] }, Closed]], Cell[CellGroupData[{ Cell[18161, 576, 47, 0, 27, "Subsubsection"], Cell[18211, 578, 207, 6, 72, "Input", InitializationCell->True], Cell[18421, 586, 1601, 27, 267, "Input", InitializationCell->True] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell[20071, 619, 86, 1, 28, "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[20182, 624, 77, 1, 41, "Subsubsection", InitializationCell->True], Cell[CellGroupData[{ Cell[20284, 629, 138, 3, 42, "Input", InitializationCell->True], Cell[20425, 634, 245, 6, 26, "Output"] }, Open ]], Cell[20685, 643, 2845, 51, 758, "Input", InitializationCell->True] }, Open ]], Cell[CellGroupData[{ Cell[23567, 699, 79, 1, 41, "Subsubsection", InitializationCell->True], Cell[CellGroupData[{ Cell[23671, 704, 183, 3, 43, "Input", InitializationCell->True], Cell[23857, 709, 281, 7, 26, "Output"] }, Open ]], Cell[24153, 719, 7097, 127, 839, "Text"], Cell[31253, 848, 3000, 41, 987, "Input", InitializationCell->True] }, Closed]] }, Open ]], Cell[CellGroupData[{ Cell[34302, 895, 73, 1, 28, "Subsection", InitializationCell->True], Cell[34378, 898, 63, 1, 27, "Input", InitializationCell->True], Cell[CellGroupData[{ Cell[34466, 903, 51, 1, 27, "Input", InitializationCell->True], Cell[34520, 906, 69, 1, 26, "Output"] }, Open ]] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[34650, 914, 53, 1, 50, "Section", InitializationCell->True], Cell[34706, 917, 76, 0, 30, "Text"], Cell[CellGroupData[{ Cell[34807, 921, 73, 1, 44, "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[34905, 926, 104, 1, 27, "Input", InitializationCell->True], Cell[35012, 929, 88, 1, 26, "Output"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[35149, 936, 73, 1, 44, "Subsection", InitializationCell->True], Cell[35225, 939, 58, 1, 27, "Input", InitializationCell->True] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[35332, 946, 34, 0, 50, "Section"], Cell[35369, 948, 41, 0, 30, "Text"], Cell[35413, 950, 71, 1, 27, "Input"], Cell[35487, 953, 450, 7, 78, "Text"], Cell[35940, 962, 73, 1, 27, "Input"], Cell[36016, 965, 82, 1, 27, "Input"], Cell[36101, 968, 180, 3, 59, "Input"], Cell[36284, 973, 115, 2, 27, "Input"], Cell[CellGroupData[{ Cell[36424, 979, 117, 2, 43, "Input"], Cell[36544, 983, 14282, 234, 1166, "Output"] }, Closed]], Cell[CellGroupData[{ Cell[50863, 1222, 112, 2, 40, "Input"], Cell[50978, 1226, 14277, 234, 1166, "Output"] }, Closed]], Cell[CellGroupData[{ Cell[65292, 1465, 112, 2, 40, "Input"], Cell[65407, 1469, 6300, 100, 491, "Output"] }, Closed]], Cell[CellGroupData[{ Cell[71744, 1574, 117, 2, 40, "Input"], Cell[71864, 1578, 459, 13, 40, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[72360, 1596, 117, 2, 43, "Input"], Cell[72480, 1600, 460, 13, 40, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[72977, 1618, 115, 2, 43, "Input"], Cell[73095, 1622, 369, 10, 41, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[73501, 1637, 115, 2, 43, "Input"], Cell[73619, 1641, 369, 10, 53, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[74025, 1656, 116, 2, 43, "Input"], Cell[74144, 1660, 460, 13, 52, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[74641, 1678, 116, 2, 43, "Input"], Cell[74760, 1682, 459, 13, 52, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[75256, 1700, 116, 2, 43, "Input"], Cell[75375, 1704, 459, 13, 52, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[75871, 1722, 116, 2, 43, "Input"], Cell[75990, 1726, 459, 13, 52, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[76486, 1744, 117, 2, 43, "Input"], Cell[76606, 1748, 217, 3, 52, "Message"] }, Open ]] }, Open ]] }, Open ]] } ] *) (*********************************************************************** End of Mathematica Notebook file. ***********************************************************************)