<?xml version="1.0" encoding="UTF-8"?>
<article article-type="research-article" dtd-version="1.3" xml:lang="ru" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://metafora.rcsi.science/xsd_files/journal3.xsd">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">moitvivt</journal-id>
      <journal-title-group>
        <journal-title xml:lang="ru">Моделирование, оптимизация и информационные технологии</journal-title>
        <trans-title-group xml:lang="en">
          <trans-title>Modeling, Optimization and Information Technology</trans-title>
        </trans-title-group>
      </journal-title-group>
      <issn pub-type="epub">2310-6018</issn>
      <publisher>
        <publisher-name>Издательство</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.26102/2310-6018/2025.49.2.022</article-id>
      <article-id pub-id-type="custom" custom-type="elpub">1880</article-id>
      <title-group>
        <article-title xml:lang="ru">Алгоритмы и программы расчета непараметрических критериев проверки статистических гипотез на основе перестановок с повторениями</article-title>
        <trans-title-group xml:lang="en">
          <trans-title>Algorithms and programs for calculating nonparametric criteria for statistical hypothesis testing based on permutations with repetitions</trans-title>
        </trans-title-group>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes">
          <contrib-id contrib-id-type="orcid">0009-0009-6909-9399</contrib-id>
          <name-alternatives>
            <name name-style="eastern" xml:lang="ru">
              <surname>Агамиров</surname>
              <given-names>Левон Владимирович</given-names>
            </name>
            <name name-style="western" xml:lang="en">
              <surname>Agamirov</surname>
              <given-names>Levon Vladimirovich</given-names>
            </name>
          </name-alternatives>
          <email>itno_agamirov@mail.ru</email>
          <xref ref-type="aff">aff-1</xref>
        </contrib>
        <contrib contrib-type="author">
          <contrib-id contrib-id-type="orcid">0000-0001-9181-7726</contrib-id>
          <name-alternatives>
            <name name-style="eastern" xml:lang="ru">
              <surname>Агамиров</surname>
              <given-names>Владимир Левонович</given-names>
            </name>
            <name name-style="western" xml:lang="en">
              <surname>Agamirov</surname>
              <given-names>Vladimir Levonovich</given-names>
            </name>
          </name-alternatives>
          <email>avhere@yandex.ru</email>
          <xref ref-type="aff">aff-2</xref>
        </contrib>
        <contrib contrib-type="author">
          <contrib-id contrib-id-type="orcid">0000-0002-2851-8472</contrib-id>
          <name-alternatives>
            <name name-style="eastern" xml:lang="ru">
              <surname>Тутова</surname>
              <given-names>Наталья Владимировна</given-names>
            </name>
            <name name-style="western" xml:lang="en">
              <surname>Toutova</surname>
              <given-names>Natalia Vladimirovna</given-names>
            </name>
          </name-alternatives>
          <email>e-natasha@mail.ru</email>
          <xref ref-type="aff">aff-3</xref>
        </contrib>
        <contrib contrib-type="author">
          <contrib-id contrib-id-type="orcid">0009-0000-8988-3097</contrib-id>
          <name-alternatives>
            <name name-style="eastern" xml:lang="ru">
              <surname>Андреев</surname>
              <given-names>Илья Александрович</given-names>
            </name>
            <name name-style="western" xml:lang="en">
              <surname>Andreev</surname>
              <given-names>Ilya Aleksandrovich</given-names>
            </name>
          </name-alternatives>
          <email>i.a.andreev@mtuci.ru</email>
          <xref ref-type="aff">aff-4</xref>
        </contrib>
        <contrib contrib-type="author">
          <contrib-id contrib-id-type="orcid">0009-0000-7117-5375</contrib-id>
          <name-alternatives>
            <name name-style="eastern" xml:lang="ru">
              <surname>Зиганшин</surname>
              <given-names>Джамиль Дамирович</given-names>
            </name>
            <name name-style="western" xml:lang="en">
              <surname>Ziganshin</surname>
              <given-names>Dzhamil</given-names>
            </name>
          </name-alternatives>
          <email>klafovich@gmail.com</email>
          <xref ref-type="aff">aff-5</xref>
        </contrib>
      </contrib-group>
      <aff-alternatives id="aff-1">
        <aff xml:lang="ru">Национальный исследовательский университет «МЭИ» Московский авиационный институт, Московский технический университет связи и информатики</aff>
        <aff xml:lang="en">National Research University "MPEI" Moscow Technical University of Communications and Informatics, Moscow Aviation Institute</aff>
      </aff-alternatives>
      <aff-alternatives id="aff-2">
        <aff xml:lang="ru">Московский технический университет связи и информатики Московский авиационный институт</aff>
        <aff xml:lang="en">Moscow Technical University of Communications and Informatics Moscow Aviation Institute</aff>
      </aff-alternatives>
      <aff-alternatives id="aff-3">
        <aff xml:lang="ru">Московский технический университет связи и информатики</aff>
        <aff xml:lang="en">Moscow Technical University of Communications and Informatics</aff>
      </aff-alternatives>
      <aff-alternatives id="aff-4">
        <aff xml:lang="ru">Московский технический университет связи и информатики</aff>
        <aff xml:lang="en">Moscow Technical University of Communications and Informatics</aff>
      </aff-alternatives>
      <aff-alternatives id="aff-5">
        <aff xml:lang="ru">Московский авиационный институт</aff>
        <aff xml:lang="en">Moscow Aviation Institute</aff>
      </aff-alternatives>
      <pub-date pub-type="epub">
        <day>01</day>
        <month>01</month>
        <year>2026</year>
      </pub-date>
      <volume>1</volume>
      <issue>1</issue>
      <elocation-id>10.26102/2310-6018/2025.49.2.022</elocation-id>
      <permissions>
        <copyright-statement>Copyright © Авторы, 2026</copyright-statement>
        <copyright-year>2026</copyright-year>
        <license license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/">
          <license-p>This work is licensed under a Creative Commons Attribution 4.0 International License</license-p>
        </license>
      </permissions>
      <self-uri xlink:href="https://moitvivt.ru/ru/journal/article?id=1880"/>
      <abstract xml:lang="ru">
        <p>Одной из важных задач статистического анализа является проверка статистических гипотез, а в этой группе наиболее перспективной представляется подгруппа непараметрических ранговых критериев, весьма устойчивых для работы с малыми выборками, когда не представляется возможность достоверно обосновать гипотетический закон распределения. В свою очередь, это обстоятельство вызывает необходимость отказаться от асимптотических аппроксимаций и располагать точными критическими значениями критериев (или так называемыми в современной литературе p-value). В настоящее время аналитические решения имеются лишь для весьма ограниченного класса критериев (знаков, Уилкоксона, серий, Ансари-Брэдли). Для всех остальных, для точного решения, требуется компьютерный перебор огромного количества возможных перестановок рангов. Созданию универсального алгоритма для получения точного и быстрого распределения ранговых непараметрических критериев и посвящена настоящая работа. Алгоритм, реализованный на языках программирования с открытым исходным кодом С++, Javascript и Python, основан на известной задаче комбинаторики – перестановок с повторениями, с адаптацией его к задачам проверки гипотез ранговыми критериями. В качестве таких критериев рассмотрены критерии: Краскелла-Уоллиса, Муда, Лемана-Розенблатта, а также группа критериев нормальных меток: Фишера-Йетса, Кэйпона, Клотца, Ван-дер-Вардена. Алгоритм адаптирован и для других возможных ранговых задач непараметрической статистики.</p>
      </abstract>
      <trans-abstract xml:lang="en">
        <p>One of the important tasks of statistical analysis is to test statistical hypotheses, and in this group the most promising is the subgroup of nonparametric ranking criteria, which are very stable for work with small samples, when it is not possible to reliably justify the hypothetical law of distribution. In its turn, this fact causes the necessity to abandon asymptotic approximations and to have exact critical values of the criteria (or so-called p-values in modern literature). At present, analytical solutions are available only for a very limited class of criteria (signs, Wilcoxon, series, Ansari-Bradley). For all others, a computerized enumeration of a huge number of possible permutations of ranks is required for an exact solution. The creation of a universal algorithm for obtaining an accurate and fast distribution of ranks of nonparametric criteria is the focus of the present work. The algorithm, implemented in open-source programming languages C++, Javascript and Python, is based on a well-known combinatorics problem - permutations with repetitions, with its adaptation to the task of hypothesis testing by rank criteria. The following criteria are considered as such criteria: Kraskell-Wallis, Muda, Lehman-Rosenblatt, as well as a group of normal label criteria: Fisher-Yates, Capon, Klotz, Van der Varden. The algorithm is also adapted for other possible ranking problems of nonparametric statistics.</p>
      </trans-abstract>
      <kwd-group xml:lang="ru">
        <kwd>проверка статистических гипотез</kwd>
        <kwd>непараметрические критерии</kwd>
        <kwd>ранговые критерии</kwd>
        <kwd>точные распределения ранговых критериев</kwd>
        <kwd>перестановки с повторениями</kwd>
        <kwd>алгоритмы перестановки</kwd>
        <kwd>программы C++ для перестановок</kwd>
      </kwd-group>
      <kwd-group xml:lang="en">
        <kwd>statistical hypothesis testing</kwd>
        <kwd>nonparametric criteria</kwd>
        <kwd>rank criteria</kwd>
        <kwd>exact distributions of rank criteria</kwd>
        <kwd>permutations with repetitions</kwd>
        <kwd>permutation algorithms</kwd>
        <kwd>C++ programs for permutations</kwd>
      </kwd-group>
      <funding-group>
        <funding-statement xml:lang="ru">Исследование выполнено без спонсорской поддержки.</funding-statement>
        <funding-statement xml:lang="en">The study was performed without external funding.</funding-statement>
      </funding-group>
    </article-meta>
  </front>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="cit1">
        <label>1</label>
        <mixed-citation xml:lang="ru">Mehta C.R., Patel N.R. IBM SPSS Exact Tests. IBM Corp.; 2013. 226 p.</mixed-citation>
      </ref>
      <ref id="cit2">
        <label>2</label>
        <mixed-citation xml:lang="ru">Агамиров Л.В., Агамиров В.Л., Вестяк В.А. Численные методы и алгоритмы расчета точных распределений непараметрических критериев проверки статистических гипотез. Вестник Московского авиационного института. 2013;20(4):212–218.</mixed-citation>
      </ref>
      <ref id="cit3">
        <label>3</label>
        <mixed-citation xml:lang="ru">Van de Wiel M.A. The Probability Generating Function of the Freund-Ansari-Bradley Statistic. In: Memorandum COSOR: Volume 9711. Eindhoven: Technische Universiteit Eindhoven; 1997. 9 p.</mixed-citation>
      </ref>
      <ref id="cit4">
        <label>4</label>
        <mixed-citation xml:lang="ru">Choi W., Lee J.W., Huh M.-H., Kang S.-H. An Algorithm for Computing the Exact Distribution of the Kruskal-Wallis Test. Communications in Statistics – Simulation and Computation. 2003;32(4):1029–1040. https://doi.org/10.1081/SAC-120023876</mixed-citation>
      </ref>
      <ref id="cit5">
        <label>5</label>
        <mixed-citation xml:lang="ru">Meyer J.P., Seaman M.A. A Comparison of the Exact Kruskal-Wallis Distribution to Asymptotic Approximations for All Sample Sizes up to 105. The Journal of Experimental Education. 2013;81(2):139–156. https://doi.org/10.1080/00220973.2012.699904</mixed-citation>
      </ref>
      <ref id="cit6">
        <label>6</label>
        <mixed-citation xml:lang="ru">Van de Wiel M.A. Exact Distributions of Multiple Comparisons Rank Statistics. Journal of the American Statistical Association. 2002;97(460):1081–1089. https://doi.org/10.1198/016214502388618898</mixed-citation>
      </ref>
      <ref id="cit7">
        <label>7</label>
        <mixed-citation xml:lang="ru">Odiase J.I., Ogbonmwan S.M. JMASM20: Exact Permutation Critical Values for The Kruskal-Wallis One-Way ANOVA. Journal of Modern Applied Statistical Methods. 2005;4(2). https://doi.org/0.22237/jmasm/1130804820</mixed-citation>
      </ref>
      <ref id="cit8">
        <label>8</label>
        <mixed-citation xml:lang="ru">Spurrier J.D. On the Null Distribution of the Kruskal-Wallis Statistic. Journal of Nonparametric Statistics. 2003;15(6):685–691. https://doi.org/10.1080/10485250310001634719</mixed-citation>
      </ref>
      <ref id="cit9">
        <label>9</label>
        <mixed-citation xml:lang="ru">Divine G.W., Norton H.J., Barón A.E., Juarez-Colunga E. The Wilcoxon-Mann-Whitney Procedure Fails as a Test of Medians. The American Statistician. 2018;72(3):278–286. https://doi.org/10.1080/00031305.2017.1305291</mixed-citation>
      </ref>
      <ref id="cit10">
        <label>10</label>
        <mixed-citation xml:lang="ru">Hothorn T., Hornik K., van de Wiel M.A., Zeileis A. Implementing a Class of Permutation Tests: The Coin Package. Journal of Statistical Software. 2008;28(8):1–23. https://doi.org/10.18637/jss.v028.i08</mixed-citation>
      </ref>
      <ref id="cit11">
        <label>11</label>
        <mixed-citation xml:lang="ru">Антипина Н.М., Захаров В.Н., Протасов Ю.М., Юров В.М. Непараметрический критерий различия для двух связанных выборок в табличном редакторе MS Excel. Вестник Московского государственного областного университета Серия: Экономика. 2021;(2):47–55.</mixed-citation>
      </ref>
      <ref id="cit12">
        <label>12</label>
        <mixed-citation xml:lang="ru">Streitberg B., Rohmel J. Exact Distributions for Permutation and Rank Tests: An Introduction to Some Recently Published Algorithms. Statistical Software Newsletter. 1986;12(1):10–17.</mixed-citation>
      </ref>
      <ref id="cit13">
        <label>13</label>
        <mixed-citation xml:lang="ru">Кобзарь А.И. Прикладная математическая статистика. Для инженеров и научных работников. Москва: ФИЗМАТЛИТ; 2006. 816 с.</mixed-citation>
      </ref>
      <ref id="cit14">
        <label>14</label>
        <mixed-citation xml:lang="ru">Pollard J.H. A Handbook of Numerical and Statistical Techniques: With Examples Mainly from the Life Sciences. Cambridge: Cambridge University Press; 1977. 349 p.</mixed-citation>
      </ref>
      <ref id="cit15">
        <label>15</label>
        <mixed-citation xml:lang="ru">Липский В. Комбинаторика для программистов. Москва: Мир; 1988. 213 c.</mixed-citation>
      </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>