<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">umovest</journal-id><journal-title-group><journal-title xml:lang="ru">Статистика и Экономика</journal-title><trans-title-group xml:lang="en"><trans-title>Statistics and Economics</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">2500-3925</issn><publisher><publisher-name>Plekhanov Russian University of Economics</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.21686/2500-3925-2024-6-57-67</article-id><article-id custom-type="elpub" pub-id-type="custom">umovest-1863</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>СТАТИСТИКА И МАТЕМАТИЧЕСКИЕ МЕТОДЫ В ЭКОНОМИКЕ</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>STATISTICAL AND MATHEMATICAL METHODS  IN ECONOMICS</subject></subj-group></article-categories><title-group><article-title>Программная реализация критерия Эппса-Палли в среде моделирования Matlab</article-title><trans-title-group xml:lang="en"><trans-title>Software Implementation of the Epps-Pulley Criterion in Matlab Modeling Environment</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Типикин</surname><given-names>А. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Tipikin</surname><given-names>A. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Алексей Алексеевич Типикин, Начальник отдела</p><p>Санкт-Петербург</p></bio><bio xml:lang="en"><p>Alexey A. Tipikin, Head of DepartmentSt. Petersburg</p></bio><email xlink:type="simple">alextip@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Прусаков</surname><given-names>А. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Prusakov</surname><given-names>A. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Александр Александрович Прусаков, Старший научный сотрудник</p><p>Санкт-Петербург</p></bio><bio xml:lang="en"><p>Alexander A. Prusakov, Senior Researcher</p><p>St. Petersburg</p></bio><email xlink:type="simple">prusakovaa@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Тимошенко</surname><given-names>Н. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Timoshenko</surname><given-names>N. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Николай Александрович Тимошенко, Младший научный сотрудник</p><p>Санкт-Петербург</p></bio><bio xml:lang="en"><p>Nikolai A. Timoshenko, Junior Researcher</p><p>St. Petersburg</p></bio><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Военный учебно-научный центр Военно-морского флота «Военно-морская академия имени Адмирала Флота Советского Союза Н.Г. Кузнецова</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Military Training and Research Center of the Navy&#13;
“Naval Academy named after Admiral of the Fleet of&#13;
the Soviet Union N.G. Kuznetsov”</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2024</year></pub-date><pub-date pub-type="epub"><day>24</day><month>01</month><year>2025</year></pub-date><volume>21</volume><issue>6</issue><fpage>57</fpage><lpage>67</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Типикин А.А., Прусаков А.А., Тимошенко Н.А., 2025</copyright-statement><copyright-year>2025</copyright-year><copyright-holder xml:lang="ru">Типикин А.А., Прусаков А.А., Тимошенко Н.А.</copyright-holder><copyright-holder xml:lang="en">Tipikin A.A., Prusakov A.A., Timoshenko N.A.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://statecon.rea.ru/jour/article/view/1863">https://statecon.rea.ru/jour/article/view/1863</self-uri><abstract><sec><title> Цель работы</title><p> Цель работы. Системы моделирования и платформы программирования дают широкие возможности по использованию статистических инструментов в научно-исследовательской деятельности. Так как нормальное распределение является одним из наиболее часто встречающихся законов распределения, то критерий проверки выборки на нормальность имеет высокую востребованность среди инструментов статистического оценивания, среди которых критерий Эппса-Палли имеет статус одного из наиболее мощных. тестов для проверки отклонения распределения от нормального. Есть ряд реализаций данного теста на языках R и Python. Однако в одной из наиболее популярных систем моделирования Matlab данный тест не реализован. Таким образом, цель данного исследования разработать программную реализацию критерия Эппса-Палли в среде Matlab и проверить корректность проводимых расчетов.</p></sec><sec><title>Материалы и методы</title><p>Материалы и методы. Вычисление статистики Эппса-Палли реализовано двумя методами – классическим, с помощью циклов, и матрично-векторным – с помощью операций линейной алгебры. Классический метод требует вычисления промежуточных величин, необходимых для получения статистики критерия, с помощью двух независимых циклов, причем второй цикл является двойным, в котором один цикл вложен в другой. Матрично-векторный метод требует меньше строк кода за счет выполнения расчетов с помощью операций линейной алгебры над матрицами и векторами. Критические значения статистики для объема выборки от 8 до 1000 элементов получены с помощью двухмерной линейной интерполяции табличных значений. Для выборки свыше 1000 элементов использована аппроксимация бета-функцией III рода.</p></sec><sec><title>Результаты</title><p>Результаты. Оценка вычислительной эффективности способов показала, что циклический подход примерно в три раза превосходит матрично-векторный по показателю затрачиваемого времени, что предположительно связано с обработкой незначащих элементов в треугольных матрицах при выполнении покомпонентных операций. Корректность программной реализации теста Эппса-Палли проверена на нескольких примерах, которые подтвердили соответствие рассчитываемых значений статистики критерия, а также критических значений статистики, известным данным. Проведена статистическая оценка критерия по эмпирическим значениям ошибки первого рода. Получено соответствие значений ошибок задаваемым уровням значимости. Проведены сравнительные оценки критерия Эппса-Палли с критериями Андерса-Дарлинга и Шапиро-Уилка по показателю эмпирической мощности критерия. Результаты оценок табулированы.</p><p>Программная реализация критерия Эппса-Палли опубликована на Интернет-ресурсе MATLAB Central и доступна для свободного использования.</p></sec></abstract><trans-abstract xml:lang="en"><sec><title>Purpose</title><p>Purpose. Modeling systems and programming platforms provide broad opportunities for the use of statistical tools in research activities. Since the normal distribution is one of the most common distribution laws, the criterion for checking the sample for normality is in high demand among statistical assessment tools, among which the Epps-Pulley test has the status as one of the most powerful tests to check the deviation of the distribution from the normal one. There are a number of implementations of this test in the R and Python languages. However, this test is not implemented in one of the most popular Matlab modeling software. Thus, the purpose of this study is to develop a software implementation of the Epps-Pulley criterion in the Matlab environment and verify the correctness of the performed calculations.</p></sec><sec><title>Materials and methods</title><p>Materials and methods. We implemented the calculation of EppsPulley statistics by two methods – classical, using cycles, and matrix-vector, using linear algebra operations. The classical method requires calculating the intermediate values necessary to obtain the criterion statistics using two independent cycles, the second cycle being a double one, in which one cycle is nested within the other. The matrix-vector method requires fewer lines of code by performing calculations using linear algebra operations on matrices and vectors. We obtained critical statistical values for the sample size ranging from 8 to 1000 elements with two-dimensional linear interpolation of tabular values. We used an approximation by a beta function of the third kind for a sample of over 1000 elements.</p></sec><sec><title>Results</title><p>Results. An assessment of the computational efficiency of the methods showed that the cyclic approach is about three times higher than the matrix-vector approach in terms of consumed time, which is presumably associated with the processing of insignificant elements in triangular matrices when performing component-by-component operations. The correctness of the software implementation of the Epps-Pulley criterion was tested on several examples, which confirmed the compliance of the calculated values of the criterion statistics, as well as the critical values of statistics, with known data. We carried out a criterion statistical evaluation based on the empirical values of the error of the first kind. We obtained the error values correspondence to the specified significance levels. We performed comparative estimates of the Epps-Pulley test with the Anders-Darling and Shapiro-Wilk tests in terms of the criterion empirical power. Evaluation results are tabulated. The software implementation of the Epps-Pulley test is published on the MATLAB Central Internet resource and is available for free use. </p></sec></trans-abstract><kwd-group xml:lang="ru"><kwd>критерий Эппса-Палли</kwd><kwd>нормальное распределение</kwd><kwd>моделирование</kwd><kwd>программная реализация</kwd><kwd>вычислительная эффективность</kwd><kwd>ошибка первого рода</kwd><kwd>мощность критерия</kwd></kwd-group><kwd-group xml:lang="en"><kwd>Epps-Pulley criterion</kwd><kwd>normal distribution</kwd><kwd>simulation</kwd><kwd>software implementation</kwd><kwd>calculation efficiency</kwd><kwd>error of the first kind</kwd><kwd>criterion power</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Гнатюк В.И. Закон оптимального построения техноценозов. Калининград: КИЦ «Техноценоз», 2019. 940 с.</mixed-citation><mixed-citation xml:lang="en">Gnatyuk V.I. Zakon optimal’nogo postroyeniya tekhnotsenozov = The Law of Optimal Construction of Technocenoses. Kaliningrad: KIC «Tekhnotsenoz»; 2019. 940 p. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Murray-Smith D.J. Testing and Validation of Computer Simulation Models. Principles, Methods and Applications. New York: Springer, 2015. 258 с. DOI: 10.1007/978-3-319-15099-4.</mixed-citation><mixed-citation xml:lang="en">Murray-Smith D.J. Testing and Validation of Computer Simulation Models. Principles, Methods and Applications. New York: Springer; 2015. 258 p. DOI: 10.1007/978-3-319-15099-4.</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Большев Л.Н., Смирнов Н.В. Таблицы математической статистики. 3-е изд. М.: Наука, 1983. 416 с.</mixed-citation><mixed-citation xml:lang="en">Bol’shev L.N., Smirnov N.V. Tablitsy matematicheskoy statistiki. 3-ye izd. = Tables of Mathematical Statistics. 3rd ed. Moscow: Science; 1983. 416 p. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Кобзарь А. И. Прикладная математическая статистика. Для инженеров и научных работников. М.: Физматлит, 2006. 816 с.</mixed-citation><mixed-citation xml:lang="en">Kobzar’ A.I. Prikladnaya matematicheskaya statistika. Dlya inzhenerov i nauchnykh rabotnikov = Applied Mathematical Statistics. For Engineers and Researchers. Moscow: Fizmatlit; 2006. 816 p. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Волчихин В.И., Иванов А.И., Безяев А.В., Куприянов Е. Н. Нейросетевой анализ нормальности малых выборок биометрических данных с использованием хи-квадрат критерия и критериев Андерсона-Дарлинга // Инженерные технологии и системы. 2019. Т. 29. № 2. С. 205– 217. DOI: 10.15507.2658-4123.029.201902.205-217.</mixed-citation><mixed-citation xml:lang="en">Volchikhin V.I., Ivanov A.I., Bezyayev A.V., Kupriyanov Ye.N. Neural network analysis of normality of small samples of biometric data using the chi-square test and Anderson-Darling criteria. Inzhenernyye tekhnologii i sistemy = Engineering technologies and systems. 2019; 29; 2 205–217. DOI: 10.15507.2658-4123.029.201902.205-217. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Ivanov A.I., Vjatchanin S.E., Malygina E.A., Lukin V.S. Precision statistics: neuroet networking of chi-square test and Shapiro-Wilk test in the analysis of small selections of biometric data // Надежность и качество сложных систем. 2019. № 2(26). С. 27–34. DOI: 10.21685/2307-4205-2019-2-4.</mixed-citation><mixed-citation xml:lang="en">Ivanov A.I., Vjatchanin S.E., Malygina E.A., Lukin V.S. Precision statistics: neuroet networking of chi-square test and Shapiro-Wilk test in the analysis of small selections of biometric data. Nadezhnost’ i kachestvo slozhnykh system = Reliability and quality of complex systems. 2019; 2(26): 27–34. DOI: 10.21685/2307-4205-2019-2-4. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Ebner B., Henze N. Bahadur efficiencies of the Epps–Pulley test for normality // Journal of Mathematical Sciences. 2021. № 273. С. 861–870. DOI: 10.1007/s10958-023-06547-2.</mixed-citation><mixed-citation xml:lang="en">Ebner B., Henze N. Bahadur efficiencies of the Epps–Pulley test for normality. Journal of Mathematical Sciences. 2021; 273: 861–870. DOI: 10.1007/s10958-023-06547-2.</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Лемешко Б.Ю. Критерии проверки отклонения распределения от нормального закона. Руководство по применению. Новосибирск: НГТУ, 2014. 192 с.</mixed-citation><mixed-citation xml:lang="en">Lemeshko B.Yu. Kriterii proverki otkloneniya raspredeleniya ot normal’nogo zakona. Rukovodstvo po primeneniyu = Criteria for testing the deviation of a distribution from the normal law. Application Guide. Novosibirsk: NSTU; 2014. 192 p. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Лемешко Б.Ю. Статистический анализ данных, моделирование и исследование вероятностных закономерностей. Компьютерный подход. Новосибирск: НГТУ, 2011. 888 с.</mixed-citation><mixed-citation xml:lang="en">Lemeshko B.Yu. Statisticheskiy analiz dannykh, modelirovaniye i issledovaniye veroyatnostnykh zakonomernostey. Komp’yuternyy podkhod = Statistical data analysis, modeling and study of probability patterns. Computer approach. Novosibirsk: NSTU; 2011. 888 p. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Razali N.M., Wah Y.B. Power comparisons of Shapiro-Wilk, Kolmogorov-Smirnov, Lilliefors and Anderson-Darling tests // Journal of Statistical Modeling and Analytics. 2011. Т. 2. № 1. С. 21–33.</mixed-citation><mixed-citation xml:lang="en">Razali N.M., Wah Y.B. Power comparisons of Shapiro-Wilk, Kolmogorov-Smirnov, Lilliefors and Anderson-Darling tests. Journal of Statistical Modeling and Analytics. 2011; 2; 1: 21–33.</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Statistics and Machine Learning Toolbox User’s Guide. [Электрон. ресурс]. Режим доступа: https://www.mathworks.com/help/pdf_doc/stats/stats.pdf.</mixed-citation><mixed-citation xml:lang="en">Statistics and Machine Learning Toolbox User’s Guide [Internet]. Available from: https://www.mathworks.com/help/pdf_doc/stats/stats.pdf.</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">BenSaida A. Shapiro-Wilk and ShapiroFrancia normality tests. [Электрон. ресурс]. Режим доступа: https://www.mathworks.com/ matlabcentral/fileexchange/13964-shapiro-wilkand-shapiro-francia-normality-tests.</mixed-citation><mixed-citation xml:lang="en">BenSaida A. Shapiro-Wilk and ShapiroFrancia normality tests [Internet]. Available from: https://www.mathworks.com/matlabcentral/ fileexchange/13964-shapiro-wilk-and-shapirofrancia-normality-tests.</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Назаров А.А. Проверка нормальности распределения с использованием критерия Эппса-Палли средствами Python [Электрон. ресурс]. Режим доступа: https://github.com/AANazarov/MyModulePython.git.</mixed-citation><mixed-citation xml:lang="en">Nazarov A.A. Proverka normal’nosti raspredeleniya s ispol’zovaniyem kriteriya EppsaPalli sredstvami Python = Testing the Normality of Distribution Using the Epps-Pally Test Using Python [Internet]. Available from: https://github.com/AANazarov/MyModulePython.git. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Kelly D.E. Oceanographics Analysis with R. New York: Springer-Verlag, 2018. 280 с. DOI: 10.1007/978-1-4939-8844-0.</mixed-citation><mixed-citation xml:lang="en">Kelly D.E. Oceanographics Analysis with R. New York: Springer-Verlag; 2018. 280 p. DOI: 10.1007/978-1-4939-8844-0.</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">The R project for Statistical Computing [Электрон. ресурс]. Режим доступа: https:// www.r-project.org.</mixed-citation><mixed-citation xml:lang="en">The R project for Statistical Computing [Internet]. Available from: https://www.r-project.org.</mixed-citation></citation-alternatives></ref><ref id="cit16"><label>16</label><citation-alternatives><mixed-citation xml:lang="ru">ГОСТ Р ИСО 5479–2002. Проверка отклонения распределения вероятностей от нормального распределения. М.: Госстандарт России, 2002.</mixed-citation><mixed-citation xml:lang="en">GOST R ISO 5479–2002. Proverka otkloneniya raspredeleniya veroyatnostey ot normal’nogo raspredeleniya = GOST R ISO 5479–2002. Testing the Deviation of a Probability Distribution from a Normal Distribution. Moscow: Gosstandart of Russia; 2002. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit17"><label>17</label><citation-alternatives><mixed-citation xml:lang="ru">International Standard ISO 5479-1997. Statistical interpretation of data – Test for departure from the normal Distribution. Geneva: International Standardization Organization, 1997.</mixed-citation><mixed-citation xml:lang="en">International Standard ISO 5479-1997. Statistical interpretation of data – Test for departure from the normal Distribution. Geneva: International Standardization Organization, 1997.</mixed-citation></citation-alternatives></ref><ref id="cit18"><label>18</label><citation-alternatives><mixed-citation xml:lang="ru">Altar R.R., Samanta D., Konar D., Bhattacharryya S. Software Source Code: Statistical Modeling. Berlin: De Grunter, 2021. 358 с. DOI: 10.1515/9783110703399.</mixed-citation><mixed-citation xml:lang="en">Altar R.R., Samanta D., Konar D., Bhattacharryya S. Software Source Code: Statistical Modeling. Berlin: De Grunter, 2021. 358 s. DOI: 10.1515/9783110703399.</mixed-citation></citation-alternatives></ref><ref id="cit19"><label>19</label><citation-alternatives><mixed-citation xml:lang="ru">Tipikin A.A. Epps-Pulley test for departure from normal distribution [Электрон. ресурс]. Режим доступа: https://www.mathworks.com/matlabcentral/fileexchange/158036-eptest.</mixed-citation><mixed-citation xml:lang="en">Tipikin A.A. Epps-Pulley test for departure from normal distribution [Internet]. Available from: https://www.mathworks.com/matlabcentral/fileexchange/158036-eptest.</mixed-citation></citation-alternatives></ref><ref id="cit20"><label>20</label><citation-alternatives><mixed-citation xml:lang="ru">Stigler S.M. Do robust estimators work with real data? // The Annals of Statistics. 1977. Т. 5. № 6. С. 1055–1098. DOI: 10.1214/aos/1176343997.</mixed-citation><mixed-citation xml:lang="en">Stigler S.M. Do robust estimators work with real data? The Annals of Statistics. 1977; 5; 6: 1055–1098. DOI: 10.1214/aos/1176343997.</mixed-citation></citation-alternatives></ref><ref id="cit21"><label>21</label><citation-alternatives><mixed-citation xml:lang="ru">Бессонов А.А. Искусственный интеллект и математическая статистика в криминалистическом изучении преступлений. М.: Проспект, 2021. 816 с.</mixed-citation><mixed-citation xml:lang="en">Bessonov A.A. Iskusstvennyy intellekt i matematicheskaya statistika v kriminalisticheskom izuchenii prestupleniy = Artificial Intelligence and Mathematical Statistics in Forensic Study of Crimes. Moscow: Prospekt; 2021. 816 p. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit22"><label>22</label><citation-alternatives><mixed-citation xml:lang="ru">Karamandis M., Beutler F. Ensemble slice sampling // Statistics and Computing. 2021. Т. 31. № 61. С. 1–18. DOI: 10.1007/s11222-021-10038-2.</mixed-citation><mixed-citation xml:lang="en">Karamandis M., Beutler F. Ensemble slice sampling. Statistics and Computing. 2021; 31; 61: 1–18. DOI: 10.1007/s11222-021-10038-2.</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
