{"id":397740,"date":"2024-06-29T13:38:51","date_gmt":"2024-06-29T13:38:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=397740"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-29T13:38:51","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=397740","title":{"rendered":"<span>\u0410\u043d\u0430\u043b\u0438\u0437 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u043d\u0430 R<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0418\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043e\u043d\u043b\u0430\u0439\u043d-\u0447\u0430\u0442\u0435 \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e, <a href=\"https:\/\/www.nature.com\/articles\/srep00402\" rel=\"noopener noreferrer nofollow\">\u043a\u0430\u043a \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u043b\u0438 \u0443\u0447\u0435\u043d\u044b\u0435 \u0438\u0437 \u0426\u044e\u0440\u0438\u0445\u0430 \u0438 \u0412\u0435\u043d\u044b \u0432 2012 \u0433\u043e\u0434\u0443<\/a>, \u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438\u043b\u0438 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u0432\u043e\u043d\u043a\u0430\u043c\u0438 \u0432 \u043a\u043e\u043b\u043b-\u0446\u0435\u043d\u0442\u0440\u0435 \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e, \u043a\u0430\u043a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Exponential_distribution#Occurrence_and_applications\" rel=\"noopener noreferrer nofollow\">\u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044f<\/a>.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0430\u0432\u0442\u043e\u0440 <a href=\"https:\/\/habr.com\/ru\/post\/331060\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0440\u043e \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439<\/a> \u0441\u043a\u0430\u0437\u0430\u043b \u0431\u044b, \u0447\u0442\u043e \u0433\u043b\u0443\u043f\u043e \u043f\u043e\u0441\u0442\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0447\u0435\u0433\u043e-\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u043f\u0440\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u044f\u0445. \u042d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0431\u043e\u043b\u0435\u0435 \u043e\u0431\u0449\u0435\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0412\u0435\u0439\u0431\u0443\u043b\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0449\u0443\u044e\u0441\u044f (\u0438\u043b\u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u044e\u0449\u0443\u044e\u0441\u044f) \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0439 (\u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438\u043b\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435 &#8212; \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043b\u0438\u0448\u044c \u0432 \u043e\u0431\u0449\u0438\u0445 \u0447\u0435\u0440\u0442\u0430\u0445 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/habr.com\/ru\/post\/428610\/\" rel=\"noopener noreferrer nofollow\">\u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441 \u0430\u0432\u0442\u043e\u0431\u0443\u0441\u0430\u043c\u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435<\/a>. <\/p>\n<p>\u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043e\u043d\u043b\u0430\u0439\u043d-\u0447\u0430\u0442\u0435. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/physicstoday.scitation.org\/doi\/full\/10.1063\/PT.3.3845\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0430 Physics Today<\/a>. \u041c\u043e\u0436\u043d\u043e \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043a\u043e\u0440\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0432 \u043a\u043e\u043b\u043b-\u0446\u0435\u043d\u0442\u0440 \u0438\u043b\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0430 \u0430\u0432\u0442\u043e\u0431\u0443\u0441\u043e\u0432 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0443 \u043d\u0438\u0445 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f.<\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0441\u0451\u0440\u0447 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u043c\u0438 \u0442\u0440\u0430\u0442\u0430\u043c\u0438 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043d\u0430 R \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a\u0430\u043a\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u0442\u044c\u0441\u044f. \u041e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043e\u043f\u043b\u0430\u0442\u044b \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u0447\u0435\u043c \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438\u043b\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439, \u0445\u043e\u0442\u044f \u0431\u044b \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043b\u0438\u0446\u0430. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/378\/0d6\/756\/3780d67563a7d907b65b63013f8d6a35.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 1: \u0418\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0445 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439, \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0438 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438.\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 1: \u0418\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0445 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439, \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0438 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438.\" width=\"5738\" height=\"4803\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/378\/0d6\/756\/3780d67563a7d907b65b63013f8d6a35.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 1: \u0418\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0445 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439, \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0438 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438.<\/figcaption><\/figure>\n<p><strong>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e:<\/strong><\/p>\n<ol>\n<li>\n<p>\u041a\u043e\u0434 \u043d\u0430 R \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u044e\u0431\u044b\u0445 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0431\u043e\u0440 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u0438\u044f (MLE). \u0414\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <code>fitdistr()<\/code> \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <code>MASS<\/code>, \u0430 \u0434\u043b\u044f \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0433\u043e <code>fit_power_law()<\/code> \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <code>igraph<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0441\u0442\u0430 \u041a\u043e\u043b\u043c\u043e\u0433\u043e\u0440\u043e\u0432\u0430-\u0421\u043c\u0438\u0440\u043d\u043e\u0432\u0430. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>ks.test()<\/code> \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <code>stats<\/code>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0440\u044f\u0434 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043f\u0440\u0438\u0434\u0435\u0442 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u043f\u043e \u043f\u043e\u0434\u0431\u043e\u0440\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0445 \u043f\u0440\u043e\u044f\u0441\u043d\u0438\u0442\u044c.<\/p>\n<h2>\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u043e\u0438\u0442 \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0422\u0438\u043d\u044c\u043a\u043e\u0444 \u0438\u043b\u0438 \u0420\u043e\u043a\u0435\u0442\u0431\u0430\u043d\u043a, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/414349\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0440\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043f\u043e \u041c\u0421\u0421<\/a>. <\/p>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043c\u0435\u043d\u0435\u0435 \u0441\u0443\u0442\u043e\u043a, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u0431\u043e\u043b\u0435\u0435 \u0441\u0443\u0442\u043e\u043a \u043c\u043e\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043b\u043e\u0432\u0430\u0442\u043e (\u044f \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0432\u0434\u0430\u043b\u0438 \u043e\u0442 \u0446\u0438\u0432\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0441\u0438\u0434\u0435\u043b \u0432 \u0441\u043f\u0435\u0446\u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a\u0430\u0445). <\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0441\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0434\u0430 \u043d\u0430 R<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"r\">library(data.table) # \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u0442\u0430-\u0444\u0440\u0435\u0439\u043c\u0430\u043c\u0438  operations &lt;- fread('operations.csv')  operations &lt;- operations[`\u0421\u0443\u043c\u043c\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438` &lt; 0]  # \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0438 operations &lt;- operations[`\u0421\u0442\u0430\u0442\u0443\u0441` == 'OK']      # \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0435 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 operations &lt;- operations[`\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435` != '\u041a\u043e\u043c\u0438\u0441\u0441\u0438\u044f \u0437\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e']                                                    # \u0423\u0431\u0435\u0440\u0435\u043c \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044e \u0437\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b operations &lt;- operations[`\u041d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b` != '']   # \u0423\u0431\u0435\u0440\u0435\u043c \u043f\u043b\u0430\u0442\u0443 \u0437\u0430 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b  # 1. \u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e strptime() operations[, time := strptime(`\u0414\u0430\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438`, \"%d.%m.%Y %H:%M:%S\")]  # 2. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0434\u0430\u0442\u0430\u0444\u0440\u0435\u0439\u043c \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0434\u0432\u0443\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043a\u0443\u043f\u043e\u043a (\u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445) operations &lt;- cbind(operations, as.numeric(diff(operations$time))) colnames(operations)[17] &lt;- \"intervals\" #\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b  # 3. \u041f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0432 \u0447\u0430\u0441\u044b \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 operations$intervals &lt;- operations$intervals \/ (60*60)*(-1) nrow(operations[intervals > 24])  # 4. \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 # \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043c\u0435\u043d\u044c\u0448\u0435 24 \u0447\u0430\u0441\u043e\u0432 \u0438 \u0441\u0442\u0440\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0443\u043b\u044f operations &lt;- operations[intervals &lt; 24, ,] nrow(operations[intervals > 8 &amp; intervals &lt; 24])<\/code><\/pre>\n<\/div>\n<\/details>\n<p>UPD: \u041f\u0440\u043e\u0448\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043f\u0440\u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0435 \u044f <strong>\u043d\u0435 \u0443\u0434\u0430\u043b\u044f\u043b \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0438<\/strong>. \u0418\u0445 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e \u0432 \u043c\u043e\u0435\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0435, \u043d\u043e \u043d\u0430 \u043d\u0438\u0445 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a. <\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/18POxQUu4UCbdxd_I-9I9WnYFUYnNEeNj\/view?usp=sharing\" rel=\"noopener noreferrer nofollow\">\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u0435\u043a\u0442\u043e\u0440 \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c\u0438<\/a>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438, \u044f \u0432\u044b\u043b\u043e\u0436\u0438\u043b \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f.<\/p>\n<h2>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e<\/h2>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0441\u0440\u0435\u0434\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u0434\u043e 24 \u0447\u0430\u0441\u043e\u0432. \u0422\u0430\u043a\u0438\u0445 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c 912, \u0430 36 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u0432 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u0438. <\/p>\n<ul>\n<li>\n<p>\u041c\u0435\u0434\u0438\u0430\u043d\u0430 (\u0447): 1.56<\/p>\n<\/li>\n<li>\n<p>\u0421\u0440\u0435\u0434\u043d\u0435\u0435 (\u0447): 4.64<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 &#8212; \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c, \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u0431\u043e\u043a\u0441\u043f\u043b\u043e\u0442. <\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0441\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0434\u0430 \u043d\u0430 R<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"r\"># \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0449\u0443\u044e \u043d\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 2 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f operations$distr &lt;- ifelse(operations$intervals &lt; 8, 'exp', 'norm')  # \u041c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f med_exp &lt;- median(operations[intervals &lt; 8, intervals,]) mean_exp &lt;- mean(operations[intervals &lt; 8, intervals,])  # \u041c\u0435\u0434\u0438\u0430\u043d\u0430, \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f med_norm &lt;- median(operations[intervals > 8, intervals,]) mean_norm &lt;- mean(operations[intervals > 8, intervals,]) sd_norm &lt;- sd(operations[intervals > 8, intervals,])  # \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445. g1 &lt;- ggplot(data = operations, aes(x = intervals, fill = distr)) +    geom_histogram(alpha = 0.5, binwidth = 1, show.legend = FALSE, colour = \"black\") +    coord_cartesian(xlim = c(0, 24)) +   labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +   annotate(\"label\", x = 4, y = 150,             size = 4,             label= \"n = 722\",            fill=\"red\", alpha = 0.25) +    annotate(\"label\", x = 16, y = 100,             size = 4,             label= \"n = 190\",             fill=\"#00AFBB\", alpha = 0.25) +    theme_bw()   # \u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0431\u043e\u043a\u0441\u043f\u043b\u043e\u0442 \u0442\u0430\u043a \u0436\u0435 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c. g2 &lt;- ggplot(data = operations, aes(x = intervals, fill = distr)) +    geom_boxplot(alpha = 0.5, show.legend = FALSE)+    labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +    # \u041c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432   annotate(\"label\", x = 16, y = -0.07,             size = 4,             label= paste(\"median =\", round(med_norm, 2)) ,            fill=\"#00AFBB\", alpha = 0.25) +    annotate(\"label\", x = 16, y = -0.195,             size = 4,             label = paste(\"mean =\", round(mean_norm, 2)),             fill = \"#00AFBB\", alpha = 0.25) +    annotate(\"label\", x = 16, y = -0.318,             size = 4,             label = paste(\"sd =\", round(sd_norm, 2)),             fill = \"#00AFBB\", alpha = 0.25) +     # \u041c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432   annotate(\"label\", x = 2, y = 0.27,             size = 4,             label = paste(\"median =\", round(med_exp, 2)),            fill=\"red\", alpha = 0.2) +    annotate(\"label\", x = 2, y = 0.13,             size = 4,             label = paste(\"mean =\", round(mean_exp, 2)),             fill = \"red\", alpha = 0.2) +     coord_cartesian(xlim = c(0, 24)) +   theme_bw()   # \u0421\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432\u043c\u0435\u0441\u0442\u0435 grid.arrange(g1, g2, nrow = 2, top = \"The distribution of intervals between two consecutive operations of Vladimir Silkin (me)\\n Focus on two parts of distribution\") <\/code><\/pre>\n<\/div>\n<\/details>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/706\/6e6\/eb9\/7066e6eb9f2cb3a0e327e2ac9edd5c7b.png\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 2: \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438, \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0442\u0440\u0435\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438 \u2014 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\u044e, \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u0438 boxplot.\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 2: \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438, \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0442\u0440\u0435\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438 \u2014 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\u044e, \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u0438 boxplot.\" width=\"2187\" height=\"1350\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/706\/6e6\/eb9\/7066e6eb9f2cb3a0e327e2ac9edd5c7b.png\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 2: \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438, \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0442\u0440\u0435\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438 \u2014 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\u044e, \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u0438 boxplot.<\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 2 \u0433\u0440\u0443\u043f\u043f\u044b &#8212; \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0442 0 \u0434\u043e 8 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043e\u0442 8 \u0434\u043e 24.<\/p>\n<ul>\n<li>\n<p>\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 <strong>\u043f\u0435\u0440\u0432\u044b\u0445<\/strong> \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043b\u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0435, \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u043e\u0432 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0442\u0440\u0430\u0442\u0430\u043c\u0438, \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0438\u043c\u0438 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430\u043c (\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0433\u0443\u043b\u043a\u0443 \u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u043a\u0443\u043f\u0438\u0442\u044c). \u042d\u0442\u043e \u043c\u043e\u0435 \u043e\u0446\u0435\u043d\u043e\u0447\u043d\u043e\u0435 \u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 <strong>\u0432\u0442\u043e\u0440\u044b\u0445<\/strong> \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435. \u041e\u043d\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u043e\u0432 \u043e\u043a\u043e\u043b\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u043e\u0434\u0440\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f &#8212; 16 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u043c\u0438, \u0443\u0437\u043d\u0430\u0435\u043c \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043f\u0435\u0440\u0432\u0430 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043d\u0438\u0445 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e.<\/p>\n<h2>\u0411\u0435\u0440\u0435\u043c \u0444\u043e\u043a\u0443\u0441 \u043d\u0430 \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f<\/h2>\n<p>\u042d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435\/\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0430\u043c\u0438 \u0442\u0440\u0430\u0442 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 <strong>\u043a\u0440\u0430\u0441\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c<\/strong>. \u041e\u043a\u043e\u043b\u043e\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e\u0437\u043b\u0435 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0430 \u0431\u043e\u0434\u0440\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043e <strong>\u0441\u0438\u043d\u0438\u043c \u0446\u0432\u0435\u0442\u043e\u043c<\/strong>.<\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0441\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0434\u0430 \u043d\u0430 R<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"r\"># \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0449\u0443\u044e \u043d\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 2 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f operations$distr &lt;- ifelse(operations$intervals &lt; 8, 'exp', 'norm')  # \u041c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f med_exp &lt;- median(operations[intervals &lt; 8, intervals,]) mean_exp &lt;- mean(operations[intervals &lt; 8, intervals,])  # \u041c\u0435\u0434\u0438\u0430\u043d\u0430, \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f med_norm &lt;- median(operations[intervals > 8, intervals,]) mean_norm &lt;- mean(operations[intervals > 8, intervals,]) sd_norm &lt;- sd(operations[intervals > 8, intervals,])  # \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445. g1 &lt;- ggplot(data = operations, aes(x = intervals, fill = distr)) +    geom_histogram(alpha = 0.5, binwidth = 1, show.legend = FALSE, colour = \"black\") +    coord_cartesian(xlim = c(0, 24)) +   labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +   annotate(\"label\", x = 4, y = 150,             size = 4,             label= \"n = 722\",            fill=\"red\", alpha = 0.25) +    annotate(\"label\", x = 16, y = 100,             size = 4,             label= \"n = 190\",             fill=\"#00AFBB\", alpha = 0.25) +    theme_bw()   # \u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0431\u043e\u043a\u0441\u043f\u043b\u043e\u0442 \u0442\u0430\u043a \u0436\u0435 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c. g2 &lt;- ggplot(data = operations, aes(x = intervals, fill = distr)) +    geom_boxplot(alpha = 0.5, show.legend = FALSE)+    labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +      annotate(\"label\", x = 16, y = -0.07,             size = 4,             label= paste(\"median =\", round(med_norm, 2)) ,            fill=\"#00AFBB\", alpha = 0.25) +    annotate(\"label\", x = 16, y = -0.195,             size = 4,             label = paste(\"mean =\", round(mean_norm, 2)),             fill = \"#00AFBB\", alpha = 0.25) +    annotate(\"label\", x = 16, y = -0.318,             size = 4,             label = paste(\"sd =\", round(sd_norm, 2)),             fill = \"#00AFBB\", alpha = 0.25) +         annotate(\"label\", x = 2, y = 0.27,             size = 4,             label = paste(\"median =\", round(med_exp, 2)),            fill=\"red\", alpha = 0.2) +    annotate(\"label\", x = 2, y = 0.13,             size = 4,             label = paste(\"mean =\", round(mean_exp, 2)),             fill = \"red\", alpha = 0.2) +           coord_cartesian(xlim = c(0, 24)) +   theme_bw()   # \u0421\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a \u0432\u043c\u0435\u0441\u0442\u0435 grid.arrange(g1, g2, nrow = 2, top = \"The distribution of intervals between two consecutive operations of Vladimir Silkin (me)\\n Focus on two parts of distribution\") <\/code><\/pre>\n<\/div>\n<\/details>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/614\/50d\/e9c\/61450de9c82ee37a14eebdb759ac17fa.png\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 3: \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0433\u0440\u0443\u043f\u043f\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043f\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u2014 \u043e\u0442 0 \u0434\u043e 8 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043e\u0442 8 \u0434\u043e 24 \u0447\u0430\u0441\u043e\u0432.\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 3: \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0433\u0440\u0443\u043f\u043f\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043f\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u2014 \u043e\u0442 0 \u0434\u043e 8 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043e\u0442 8 \u0434\u043e 24 \u0447\u0430\u0441\u043e\u0432.\" width=\"2187\" height=\"1350\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/614\/50d\/e9c\/61450de9c82ee37a14eebdb759ac17fa.png\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 3: \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0433\u0440\u0443\u043f\u043f\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043f\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u2014 \u043e\u0442 0 \u0434\u043e 8 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043e\u0442 8 \u0434\u043e 24 \u0447\u0430\u0441\u043e\u0432.<\/figcaption><\/figure>\n<h3>1. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>\u0421\u043f\u0435\u0440\u0432\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u043e\u043a\u043e\u043b\u043e\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c. \u041f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f \u043e\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0441\u0442\u0430 \u0428\u0430\u043f\u0438\u0440\u043e-\u0423\u0438\u043b\u043a\u0430.<\/p>\n<pre><code>shapiro.test(operations[intervals > 8, intervals])<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <img decoding=\"async\" class=\"formula inline\" source=\"p.value \\approx 0.03\" alt=\"p.value \\approx 0.03\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c3f\/584\/48c\/c3f58448cbaab0d6c43ebc61f368a356.svg\"\/>\u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0430\u0448\u0430 \u0432\u044b\u0431\u043e\u0440\u043a\u0430, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0432\u0437\u044f\u0442\u0430 \u0438\u0437 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u0442\u043e \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f \u043e\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f 3%.<\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0441\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0434\u0430 \u043d\u0430 R<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"r\">g1 &lt;- ggplot(data = operations[intervals > 8], aes(x = intervals)) +    geom_density(size = 1,                 aes(color = 'real density function')) +   stat_function(fun = dnorm,                  aes(color = 'ideal normal distrubution'),               args = list(16,4),                size = 1) +   scale_colour_manual(NULL, values = c(\"darkgreen\", \"black\")) +      geom_histogram(aes(y = stat(count) \/ sum(count)),                   fill = \"#00AFBB\",                  alpha = 0.4,                   colour = \"black\",                  binwidth = 1) +    coord_cartesian(xlim = c(8, 24)) +      labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +   theme_bw() +   theme(legend.position = c(0.82, 0.85),          legend.background = element_rect(fill = \"white\", color = \"black\"))   # \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f grid.arrange(g1, nrow = 1, top = \"The distribution of intervals between two consecutive operations of Vladimir Silkin (me) \\n Long intervals (longer than 8 hours and shorter than 24 hours)\")<\/code><\/pre>\n<\/div>\n<\/details>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/126\/772\/e7f\/126772e7fa9e9dfe76dadd7cd00b51ca.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 4: \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043e\u0442 8 \u0434\u043e 24 \u0447\u0430\u0441\u043e\u0432, \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 (\u0447\u0435\u0440\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f) \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f (\u043f\u0443\u043d\u043a\u0442\u0438\u0440\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f).\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 4: \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043e\u0442 8 \u0434\u043e 24 \u0447\u0430\u0441\u043e\u0432, \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 (\u0447\u0435\u0440\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f) \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f (\u043f\u0443\u043d\u043a\u0442\u0438\u0440\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f).\" width=\"6682\" height=\"4124\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/126\/772\/e7f\/126772e7fa9e9dfe76dadd7cd00b51ca.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 4: \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043e\u0442 8 \u0434\u043e 24 \u0447\u0430\u0441\u043e\u0432, \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 (\u0447\u0435\u0440\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f) \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f (\u043f\u0443\u043d\u043a\u0442\u0438\u0440\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f).<\/figcaption><\/figure>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u043d\u0435 \u0441\u0442\u0430\u043d\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0431\u0449\u0435\u043f\u0440\u0438\u043d\u044f\u0442\u044b\u043c \u043f\u043e\u0440\u043e\u0433\u043e\u043c \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 5% \u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u044f\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u0443\u044e \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b\u0431\u043e\u0440\u043a\u0430 \u0432\u0437\u044f\u0442\u0430 \u0438\u0437 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f. \u041f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443 \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b\u0431\u043e\u0440\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u0432 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0435 \u043e\u0442 12 \u0434\u043e 20 \u0447\u0430\u0441\u043e\u0432 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0435\u0434\u043f\u043e\u0441\u044b\u043b\u043a\u0438 \u043a \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0430 \u043e\u0431 \u0438\u0445 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438.<\/p>\n<h3>2. \u041f\u043e\u0434\u0431\u043e\u0440 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439.<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0444\u0438\u0442\u0430\u043d\u0443\u0442\u044c \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0432\u0443\u0445 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 &#8212; \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0433\u043e. \u041e\u043d\u0438 \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"\\begin{gather}  f_{exp}(x) = \\alpha \\, e^{-\\alpha \\, x} \\\\ f_{pow}(x) = (\\alpha-1)\\, x_{min}^{\\alpha-1}\\, x^{-\\alpha}   \\end{gather}\" alt=\"\\begin{gather}  f_{exp}(x) = \\alpha \\, e^{-\\alpha \\, x} \\\\ f_{pow}(x) = (\\alpha-1)\\, x_{min}^{\\alpha-1}\\, x^{-\\alpha}   \\end{gather}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/612\/651\/d69\/612651d69a4db1ceeec48362504d6e38.svg\" width=\"231\" height=\"53\"\/><\/p>\n<p>\u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u0434 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0438\u0437-\u0437\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u043a\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u0430 \u0441\u0430\u043c \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u043a\u043e\u043d \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043a \u0434\u0430\u043d\u043d\u044b\u043c, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e <img decoding=\"async\" class=\"formula inline\" source=\"x_{min}\" alt=\"x_{min}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e12\/669\/6d0\/e126696d072b36612e252e16e2ec2d7b.svg\"\/>. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u0435\u0433\u043e \u044f \u0431\u0443\u0434\u0443 \u0431\u0440\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u2014 0.004 \u0447\u0430\u0441\u0430 \u0438\u043b\u0438 14 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<blockquote>\n<p>\u0412 \u0440\u0430\u0431\u043e\u0442\u0435 Data-Scientist`\u0430 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u2014  \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. (<a href=\"https:\/\/stepik.org\/lesson\/216065\/step\/4?unit=188927\" rel=\"noopener noreferrer nofollow\">\u041c\u0430\u044d\u0441\u0442\u0440\u043e<\/a>)<\/p>\n<\/blockquote>\n<pre><code class=\"r\">library(MASS) # \u0414\u043b\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e fitdistr() library(igraph) # \u0414\u043b\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e fit_power_law() library(stats) # \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u0430 \u041a\u043e\u043b\u043c\u043e\u0433\u043e\u0440\u043e\u0432\u0430-\u0421\u043c\u0438\u0440\u043d\u043e\u0432\u0430<\/code><\/pre>\n<p><strong>\u0424\u0438\u0442\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c:<\/strong><\/p>\n<pre><code class=\"r\">fit_e &lt;- fitdistr(operations[intervals &lt; 8, intervals], \"exponential\") fit_e$estimate[1][[1]] # alpha fit_e$sd[1][[1]] # alpha_error ks.test(operations[intervals &lt; 8, intervals], \"pexp\", fit_e$estimate, exact = TRUE)$p.value #p.value<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043c <img decoding=\"async\" class=\"formula inline\" source=\"\\alpha \\approx 0.61\" alt=\"\\alpha \\approx 0.61\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/891\/5a1\/5e1\/8915a15e1a62adda28f69005bc6081c1.svg\"\/>\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"p.value \\sim 10^{-10}\" alt=\"p.value \\sim 10^{-10}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f33\/ae8\/355\/f33ae8355d2272ef0917db5ec26dfce7.svg\"\/><\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u0438\u044f, \u0430 \u0432\u0442\u043e\u0440\u043e\u0435 &#8212; \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0441\u0442\u0430 \u041a\u043e\u043b\u043c\u043e\u0433\u043e\u0440\u043e\u0432\u0430-\u0421\u043c\u0438\u0440\u043d\u043e\u0432\u0430.<\/p>\n<p>\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043c\u044b\u0441\u043b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0442\u0435\u0441\u0442\u0430 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435, \u043a\u0430\u043a \u0438 \u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0442\u0435\u0441\u0442\u0430 \u0428\u0430\u043f\u0438\u0440\u043e-\u0423\u0438\u043b\u043a\u0430: \u0435\u0441\u043b\u0438 \u0432 \u0433\u0435\u043d\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e, \u0442\u043e \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0438 \u0441\u043a\u043e\u043b\u044c \u0443\u0433\u043e\u0434\u043d\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f \u043e\u0442 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e, \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0432\u043d\u0430 \u043d\u0443\u043b\u044e. \u041f\u0440\u043e \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c\u0443\u044e \u0432 \u0442\u0435\u0441\u0442\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Kolmogorov%E2%80%93Smirnov_test\" rel=\"noopener noreferrer nofollow\">\u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438<\/a>.<\/p>\n<p><strong>\u0424\u0438\u0442\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c:<\/strong><\/p>\n<pre><code class=\"r\">fit_p &lt;- fit_power_law(operations[intervals &lt; 8, intervals],                         xmin = min(operations$intervals),                         implementation = \"plfit\") # \u0412 xmin \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0447\u043a\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0431\u043e\u0440 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f  fit_p$alpha # alpha fit_p$KS.p  # p-\u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u0437 \u0442\u0435\u0441\u0442\u0430 \u041a\u043e\u043b\u043c\u043e\u0433\u043e\u0440\u043e\u0432\u0430-\u0421\u043c\u0438\u0440\u043d\u043e\u0432\u0430<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043c <img decoding=\"async\" class=\"formula inline\" source=\"\\alpha \\approx 2.05\" alt=\"\\alpha \\approx 2.05\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/239\/d96\/4bd\/239d964bd53147da201fb2910230e95d.svg\"\/>\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"p.value \\approx 10^{-7}\" alt=\"p.value \\approx 10^{-7}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/198\/7d9\/1ac\/1987d91ac18013aa71f67cb6ec24e4cc.svg\"\/><\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c p.value \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0431\u0449\u0435\u043f\u0440\u0438\u043d\u044f\u0442\u043e\u0433\u043e \u043f\u043e\u0440\u043e\u0433\u0430 \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u0438. <\/p>\n<p><strong>\u0421\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0438\u0442\u043e\u0433\u043e\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438:<\/strong><\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"265\" width=\"265\">\n<p align=\"center\">Equation<\/p>\n<\/th>\n<th data-colwidth=\"257\" width=\"257\">\n<p align=\"center\">Parameter<\/p>\n<\/th>\n<th>\n<p align=\"center\">Significance<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td data-colwidth=\"265\" width=\"265\">\n<p align=\"center\"><img decoding=\"async\" class=\"formula inline\" source=\"f_{exp}(x) = \\alpha \\, e^{-\\alpha \\, x}\" alt=\"f_{exp}(x) = \\alpha \\, e^{-\\alpha \\, x}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/116\/268\/39e\/11626839eb7f9ad0b5053fb2a7ce0e39.svg\"\/><\/p>\n<\/td>\n<td data-colwidth=\"257\" width=\"257\">\n<p align=\"center\"><img decoding=\"async\" class=\"formula inline\" source=\"\\alpha \\approx 0.61\" alt=\"\\alpha \\approx 0.61\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/780\/842\/400\/7808424000a501aa26cffe8b486f238f.svg\"\/><\/p>\n<\/td>\n<td>\n<p align=\"center\"><img decoding=\"async\" class=\"formula inline\" source=\"p.value \\sim 10^{-10}\" alt=\"p.value \\sim 10^{-10}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a36\/ab0\/01f\/a36ab001fef357afdb2f57055f679451.svg\"\/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"265\" width=\"265\">\n<p align=\"center\"><img decoding=\"async\" class=\"formula inline\" source=\"f_{pow}(x)=(\\alpha-1)\\,x_{min}^{\\alpha-1}\\,x^{-\\alpha}\" alt=\"f_{pow}(x)=(\\alpha-1)\\,x_{min}^{\\alpha-1}\\,x^{-\\alpha}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6ea\/fbb\/f66\/6eafbbf66ce8fcbfbb0c5619306c4c06.svg\"\/><\/p>\n<\/td>\n<td data-colwidth=\"257\" width=\"257\">\n<p align=\"center\"><img decoding=\"async\" class=\"formula inline\" source=\"\\alpha \\approx 2.05 \\:\\:\\: x_{min} \\approx 0.004\" alt=\"\\alpha \\approx 2.05 \\:\\:\\: x_{min} \\approx 0.004\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4a8\/f35\/05c\/4a8f3505c2dc673d86002b5620760640.svg\"\/><\/p>\n<\/td>\n<td>\n<p align=\"center\"><img decoding=\"async\" class=\"formula inline\" source=\"p.value \\sim 10^{-7}\" alt=\"p.value \\sim 10^{-7}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/491\/a88\/bc7\/491a88bc755c5f38fb539432606cab4f.svg\"\/><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u0430\u0448\u0438 \u0444\u0438\u0442\u044b \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435. <\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0441\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0434\u0430 \u043d\u0430 R<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"r\"># \u041d\u0430\u043f\u0438\u0448\u0435\u043c, \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u043a\u043e\u043d # \u041f\u043e\u043c\u0435\u0441\u0442\u0438\u043c \u0432 \u043d\u0435\u0435 alpha \u0438 xmin, \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435 plaw &lt;- function(x){(fit_p$alpha-1)*0.004166667^(fit_p$alpha-1)*x^(-fit_p$alpha)}  gf &lt;- ggplot(data = operations[intervals &lt; 8], aes(x = intervals)) +    geom_density(size = 1) +    geom_histogram(alpha = 0.3,                  aes(y = stat(count) \/ sum(count)),                  binwidth = 1,                  fill = \"red\",                  colour = \"black\")+      stat_function(fun = dexp, args = list(0.6136122), size = 1, colour = 'blue') +   stat_function(fun = plaw, size = 1, colour = 'red') +    coord_cartesian(xlim = c(0, 8), ylim = c(0, 0.5))+   labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +   theme_bw()     grid.arrange(gf, nrow = 1, top = \"The distribution of time between two consecutive operations of Vladimir Silkin (me) \\n  Short intervals (shorter than 8 hours)\")<\/code><\/pre>\n<\/div>\n<\/details>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/e41\/135\/b9a\/e41135b9af3446b8279ec6478851d660.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 5: \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043e\u0442 0 \u0434\u043e 8 \u0447\u0430\u0441\u043e\u0432, \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 (\u0447\u0435\u0440\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f), \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u2014  \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f (\u0441\u0438\u043d\u044f\u044f) \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u0430\u044f (\u043a\u0440\u0430\u0441\u043d\u0430\u044f).\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 5: \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043e\u0442 0 \u0434\u043e 8 \u0447\u0430\u0441\u043e\u0432, \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 (\u0447\u0435\u0440\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f), \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u2014  \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f (\u0441\u0438\u043d\u044f\u044f) \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u0430\u044f (\u043a\u0440\u0430\u0441\u043d\u0430\u044f).\" width=\"6682\" height=\"4124\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e41\/135\/b9a\/e41135b9af3446b8279ec6478851d660.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 5: \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043e\u0442 0 \u0434\u043e 8 \u0447\u0430\u0441\u043e\u0432, \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 (\u0447\u0435\u0440\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f), \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u2014  \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f (\u0441\u0438\u043d\u044f\u044f) \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u0430\u044f (\u043a\u0440\u0430\u0441\u043d\u0430\u044f).<\/figcaption><\/figure>\n<p><strong>UPD:<\/strong> \u0418\u0442\u043e\u0433\u043e\u0432\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0441\u043c\u0435\u0441\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0420\u0438\u0441. 4 \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0420\u0438\u0441. 5. \u041f\u0435\u0440\u0432\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0445\u043e\u0434\u0438\u0442\u044c \u0441 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u043c 3\/4, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 3\/4 \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043b\u0435\u0436\u0438\u0442 \u0432 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0435 \u043e\u0442 0 \u0434\u043e 8 \u0447\u0430\u0441\u043e\u0432 (\u0441\u043c. \u0420\u0438\u0441. 3). \u0412\u0442\u043e\u0440\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0441\u043c\u0435\u0441\u044c \u0434\u0432\u0443\u0445 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u0441 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u043c 1\/4, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 1\/4 \u0432\u0441\u0435\u0445 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u043b\u0435\u0436\u0438\u0442 \u0432 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0435 \u043e\u0442 8 \u0434\u043e 24 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"\\boxed{f_{density}(x) \\approx \\frac{3}{4}Exp(0.6) + \\frac{1}{4} Norm(16, 4)}\" alt=\"\\boxed{f_{density}(x) \\approx \\frac{3}{4}Exp(0.6) + \\frac{1}{4} Norm(16, 4)}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bb8\/23b\/083\/bb823b08319bb474e7f3aad7dedb95c3.svg\" width=\"355\" height=\"53\"\/><\/p>\n<p>\u0413\u0434\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"Exp(0.6)\" alt=\"Exp(0.6)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1fc\/061\/0f5\/1fc0610f534a067500eba347877a22a5.svg\"\/>\u2014  \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c 0.6. \u0412\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0435 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c 2 (\u0441\u043c. \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u044b\u0448\u0435). \u0410 <img decoding=\"async\" class=\"formula inline\" source=\"Norm(16, 4)\" alt=\"Norm(16, 4)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0f0\/7af\/c05\/0f07afc0528c32c8485e08ec51de354e.svg\"\/>\u2014 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0438\u043c 16 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435\u043c 4. <\/p>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>\u0421\u0443\u0434\u044f \u043f\u043e \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438, \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044c, \u0447\u0442\u043e \u043d\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0437\u044f\u0442\u044b \u0438\u0437 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f.<\/p>\n<p>\u042f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u043c\u043e\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439. \u0415\u0441\u043b\u0438 \u043a\u043e\u043f\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u0436\u0435, \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b:<\/p>\n<ol>\n<li>\n<p>\u0415\u0441\u0442\u044c \u043b\u0438 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043c\u044b\u0441\u043b \u0443 \u043c\u0435\u0434\u0438\u0430\u043d\u044b \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432? \u0421\u0435\u0439\u0447\u0430\u0441 \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u0430 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u0443\u0435\u0442 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u043f\u043e\u043d\u0442\u0430\u043d\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043e\u0436\u0438\u0434\u0430\u044e, \u0447\u0442\u043e \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\u043c\u0438 \u0438 \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044c \u043e \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u043a \u043d\u0435\u043c\u0443 \u043d\u0430\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445?<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/575116\/\"> https:\/\/habr.com\/ru\/articles\/575116\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0418\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043e\u043d\u043b\u0430\u0439\u043d-\u0447\u0430\u0442\u0435 \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e, <a href=\"https:\/\/www.nature.com\/articles\/srep00402\" rel=\"noopener noreferrer nofollow\">\u043a\u0430\u043a \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u043b\u0438 \u0443\u0447\u0435\u043d\u044b\u0435 \u0438\u0437 \u0426\u044e\u0440\u0438\u0445\u0430 \u0438 \u0412\u0435\u043d\u044b \u0432 2012 \u0433\u043e\u0434\u0443<\/a>, \u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438\u043b\u0438 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u0432\u043e\u043d\u043a\u0430\u043c\u0438 \u0432 \u043a\u043e\u043b\u043b-\u0446\u0435\u043d\u0442\u0440\u0435 \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e, \u043a\u0430\u043a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Exponential_distribution#Occurrence_and_applications\" rel=\"noopener noreferrer nofollow\">\u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044f<\/a>.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0430\u0432\u0442\u043e\u0440 <a href=\"https:\/\/habr.com\/ru\/post\/331060\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0440\u043e \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439<\/a> \u0441\u043a\u0430\u0437\u0430\u043b \u0431\u044b, \u0447\u0442\u043e \u0433\u043b\u0443\u043f\u043e \u043f\u043e\u0441\u0442\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0447\u0435\u0433\u043e-\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u043f\u0440\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u044f\u0445. \u042d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0431\u043e\u043b\u0435\u0435 \u043e\u0431\u0449\u0435\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0412\u0435\u0439\u0431\u0443\u043b\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0449\u0443\u044e\u0441\u044f (\u0438\u043b\u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u044e\u0449\u0443\u044e\u0441\u044f) \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0439 (\u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438\u043b\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435 &#8212; \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043b\u0438\u0448\u044c \u0432 \u043e\u0431\u0449\u0438\u0445 \u0447\u0435\u0440\u0442\u0430\u0445 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/habr.com\/ru\/post\/428610\/\" rel=\"noopener noreferrer nofollow\">\u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441 \u0430\u0432\u0442\u043e\u0431\u0443\u0441\u0430\u043c\u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435<\/a>. <\/p>\n<p>\u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043e\u043d\u043b\u0430\u0439\u043d-\u0447\u0430\u0442\u0435. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/physicstoday.scitation.org\/doi\/full\/10.1063\/PT.3.3845\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0430 Physics Today<\/a>. \u041c\u043e\u0436\u043d\u043e \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043a\u043e\u0440\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0432 \u043a\u043e\u043b\u043b-\u0446\u0435\u043d\u0442\u0440 \u0438\u043b\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0430 \u0430\u0432\u0442\u043e\u0431\u0443\u0441\u043e\u0432 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0443 \u043d\u0438\u0445 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f.<\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0441\u0451\u0440\u0447 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u043c\u0438 \u0442\u0440\u0430\u0442\u0430\u043c\u0438 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043d\u0430 R \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a\u0430\u043a\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u0442\u044c\u0441\u044f. \u041e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043e\u043f\u043b\u0430\u0442\u044b \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u0447\u0435\u043c \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438\u043b\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439, \u0445\u043e\u0442\u044f \u0431\u044b \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043b\u0438\u0446\u0430. <\/p>\n<figure class=\"full-width\"><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 1: \u0418\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0445 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439, \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0438 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438.<\/figcaption><\/figure>\n<p><strong>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e:<\/strong><\/p>\n<ol>\n<li>\n<p>\u041a\u043e\u0434 \u043d\u0430 R \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u044e\u0431\u044b\u0445 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0431\u043e\u0440 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u0438\u044f (MLE). \u0414\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <code>fitdistr()<\/code> \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <code>MASS<\/code>, \u0430 \u0434\u043b\u044f \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0433\u043e <code>fit_power_law()<\/code> \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <code>igraph<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0441\u0442\u0430 \u041a\u043e\u043b\u043c\u043e\u0433\u043e\u0440\u043e\u0432\u0430-\u0421\u043c\u0438\u0440\u043d\u043e\u0432\u0430. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>ks.test()<\/code> \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <code>stats<\/code>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0440\u044f\u0434 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043f\u0440\u0438\u0434\u0435\u0442 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u043f\u043e \u043f\u043e\u0434\u0431\u043e\u0440\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0445 \u043f\u0440\u043e\u044f\u0441\u043d\u0438\u0442\u044c.<\/p>\n<h2>\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u043e\u0438\u0442 \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0422\u0438\u043d\u044c\u043a\u043e\u0444 \u0438\u043b\u0438 \u0420\u043e\u043a\u0435\u0442\u0431\u0430\u043d\u043a, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/414349\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0440\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043f\u043e \u041c\u0421\u0421<\/a>. <\/p>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043c\u0435\u043d\u0435\u0435 \u0441\u0443\u0442\u043e\u043a, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u0431\u043e\u043b\u0435\u0435 \u0441\u0443\u0442\u043e\u043a \u043c\u043e\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043b\u043e\u0432\u0430\u0442\u043e (\u044f \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0432\u0434\u0430\u043b\u0438 \u043e\u0442 \u0446\u0438\u0432\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0441\u0438\u0434\u0435\u043b \u0432 \u0441\u043f\u0435\u0446\u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a\u0430\u0445). <\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0441\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0434\u0430 \u043d\u0430 R<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"r\">library(data.table) # \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u0442\u0430-\u0444\u0440\u0435\u0439\u043c\u0430\u043c\u0438  operations &lt;- fread('operations.csv')  operations &lt;- operations[`\u0421\u0443\u043c\u043c\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438` &lt; 0]  # \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0438 operations &lt;- operations[`\u0421\u0442\u0430\u0442\u0443\u0441` == 'OK']      # \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0435 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 operations &lt;- operations[`\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435` != '\u041a\u043e\u043c\u0438\u0441\u0441\u0438\u044f \u0437\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e']                                                    # \u0423\u0431\u0435\u0440\u0435\u043c \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044e \u0437\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b operations &lt;- operations[`\u041d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b` != '']   # \u0423\u0431\u0435\u0440\u0435\u043c \u043f\u043b\u0430\u0442\u0443 \u0437\u0430 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b  # 1. \u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e strptime() operations[, time := strptime(`\u0414\u0430\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438`, \"%d.%m.%Y %H:%M:%S\")]  # 2. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0434\u0430\u0442\u0430\u0444\u0440\u0435\u0439\u043c \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0434\u0432\u0443\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043a\u0443\u043f\u043e\u043a (\u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445) operations &lt;- cbind(operations, as.numeric(diff(operations$time))) colnames(operations)[17] &lt;- \"intervals\" #\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b  # 3. \u041f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0432 \u0447\u0430\u0441\u044b \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 operations$intervals &lt;- operations$intervals \/ (60*60)*(-1) nrow(operations[intervals > 24])  # 4. \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 # \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043c\u0435\u043d\u044c\u0448\u0435 24 \u0447\u0430\u0441\u043e\u0432 \u0438 \u0441\u0442\u0440\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0443\u043b\u044f operations &lt;- operations[intervals &lt; 24, ,] nrow(operations[intervals > 8 &amp; intervals &lt; 24])<\/code><\/pre>\n<\/div>\n<\/details>\n<p>UPD: \u041f\u0440\u043e\u0448\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043f\u0440\u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0435 \u044f <strong>\u043d\u0435 \u0443\u0434\u0430\u043b\u044f\u043b \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0438<\/strong>. \u0418\u0445 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e \u0432 \u043c\u043e\u0435\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0435, \u043d\u043e \u043d\u0430 \u043d\u0438\u0445 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a. <\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/18POxQUu4UCbdxd_I-9I9WnYFUYnNEeNj\/view?usp=sharing\" rel=\"noopener noreferrer nofollow\">\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u0435\u043a\u0442\u043e\u0440 \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c\u0438<\/a>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438, \u044f \u0432\u044b\u043b\u043e\u0436\u0438\u043b \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f.<\/p>\n<h2>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e<\/h2>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0441\u0440\u0435\u0434\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u0434\u043e 24 \u0447\u0430\u0441\u043e\u0432. \u0422\u0430\u043a\u0438\u0445 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c 912, \u0430 36 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u0432 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u0438. <\/p>\n<ul>\n<li>\n<p>\u041c\u0435\u0434\u0438\u0430\u043d\u0430 (\u0447): 1.56<\/p>\n<\/li>\n<li>\n<p>\u0421\u0440\u0435\u0434\u043d\u0435\u0435 (\u0447): 4.64<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 &#8212; \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c, \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u0431\u043e\u043a\u0441\u043f\u043b\u043e\u0442. <\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0441\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0434\u0430 \u043d\u0430 R<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"r\"># \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0449\u0443\u044e \u043d\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 2 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f operations$distr &lt;- ifelse(operations$intervals &lt; 8, 'exp', 'norm')  # \u041c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f med_exp &lt;- median(operations[intervals &lt; 8, intervals,]) mean_exp &lt;- mean(operations[intervals &lt; 8, intervals,])  # \u041c\u0435\u0434\u0438\u0430\u043d\u0430, \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f med_norm &lt;- median(operations[intervals > 8, intervals,]) mean_norm &lt;- mean(operations[intervals > 8, intervals,]) sd_norm &lt;- sd(operations[intervals > 8, intervals,])  # \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445. g1 &lt;- ggplot(data = operations, aes(x = intervals, fill = distr)) +    geom_histogram(alpha = 0.5, binwidth = 1, show.legend = FALSE, colour = \"black\") +    coord_cartesian(xlim = c(0, 24)) +   labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +   annotate(\"label\", x = 4, y = 150,             size = 4,             label= \"n = 722\",            fill=\"red\", alpha = 0.25) +    annotate(\"label\", x = 16, y = 100,             size = 4,             label= \"n = 190\",             fill=\"#00AFBB\", alpha = 0.25) +    theme_bw()   # \u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0431\u043e\u043a\u0441\u043f\u043b\u043e\u0442 \u0442\u0430\u043a \u0436\u0435 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c. g2 &lt;- ggplot(data = operations, aes(x = intervals, fill = distr)) +    geom_boxplot(alpha = 0.5, show.legend = FALSE)+    labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +    # \u041c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432   annotate(\"label\", x = 16, y = -0.07,             size = 4,             label= paste(\"median =\", round(med_norm, 2)) ,            fill=\"#00AFBB\", alpha = 0.25) +    annotate(\"label\", x = 16, y = -0.195,             size = 4,             label = paste(\"mean =\", round(mean_norm, 2)),             fill = \"#00AFBB\", alpha = 0.25) +    annotate(\"label\", x = 16, y = -0.318,             size = 4,             label = paste(\"sd =\", round(sd_norm, 2)),             fill = \"#00AFBB\", alpha = 0.25) +     # \u041c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432   annotate(\"label\", x = 2, y = 0.27,             size = 4,             label = paste(\"median =\", round(med_exp, 2)),            fill=\"red\", alpha = 0.2) +    annotate(\"label\", x = 2, y = 0.13,             size = 4,             label = paste(\"mean =\", round(mean_exp, 2)),             fill = \"red\", alpha = 0.2) +     coord_cartesian(xlim = c(0, 24)) +   theme_bw()   # \u0421\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432\u043c\u0435\u0441\u0442\u0435 grid.arrange(g1, g2, nrow = 2, top = \"The distribution of intervals between two consecutive operations of Vladimir Silkin (me)\\n Focus on two parts of distribution\") <\/code><\/pre>\n<\/div>\n<\/details>\n<figure class=\"full-width\"><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 2: \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u043c\u0438, \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0442\u0440\u0435\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438 \u2014 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\u044e, \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u0438 boxplot.<\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 2 \u0433\u0440\u0443\u043f\u043f\u044b &#8212; \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0442 0 \u0434\u043e 8 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043e\u0442 8 \u0434\u043e 24.<\/p>\n<ul>\n<li>\n<p>\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 <strong>\u043f\u0435\u0440\u0432\u044b\u0445<\/strong> \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043b\u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0435, \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u043e\u0432 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0442\u0440\u0430\u0442\u0430\u043c\u0438, \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0438\u043c\u0438 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430\u043c (\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0433\u0443\u043b\u043a\u0443 \u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u043a\u0443\u043f\u0438\u0442\u044c). \u042d\u0442\u043e \u043c\u043e\u0435 \u043e\u0446\u0435\u043d\u043e\u0447\u043d\u043e\u0435 \u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 <strong>\u0432\u0442\u043e\u0440\u044b\u0445<\/strong> \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435. \u041e\u043d\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u043e\u0432 \u043e\u043a\u043e\u043b\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u043e\u0434\u0440\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f &#8212; 16 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u043c\u0438, \u0443\u0437\u043d\u0430\u0435\u043c \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043f\u0435\u0440\u0432\u0430 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043d\u0438\u0445 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e.<\/p>\n<h2>\u0411\u0435\u0440\u0435\u043c \u0444\u043e\u043a\u0443\u0441 \u043d\u0430 \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f<\/h2>\n<p>\u042d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435\/\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0430\u043c\u0438 \u0442\u0440\u0430\u0442 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 <strong>\u043a\u0440\u0430\u0441\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c<\/strong>. \u041e\u043a\u043e\u043b\u043e\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e\u0437\u043b\u0435 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0430 \u0431\u043e\u0434\u0440\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043e <strong>\u0441\u0438\u043d\u0438\u043c \u0446\u0432\u0435\u0442\u043e\u043c<\/strong>.<\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0441\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0434\u0430 \u043d\u0430 R<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"r\"># \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0449\u0443\u044e \u043d\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 2 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f operations$distr &lt;- ifelse(operations$intervals &lt; 8, 'exp', 'norm')  # \u041c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f med_exp &lt;- median(operations[intervals &lt; 8, intervals,]) mean_exp &lt;- mean(operations[intervals &lt; 8, intervals,])  # \u041c\u0435\u0434\u0438\u0430\u043d\u0430, \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f med_norm &lt;- median(operations[intervals > 8, intervals,]) mean_norm &lt;- mean(operations[intervals > 8, intervals,]) sd_norm &lt;- sd(operations[intervals > 8, intervals,])  # \u0413\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445. g1 &lt;- ggplot(data = operations, aes(x = intervals, fill = distr)) +    geom_histogram(alpha = 0.5, binwidth = 1, show.legend = FALSE, colour = \"black\") +    coord_cartesian(xlim = c(0, 24)) +   labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +   annotate(\"label\", x = 4, y = 150,             size = 4,             label= \"n = 722\",            fill=\"red\", alpha = 0.25) +    annotate(\"label\", x = 16, y = 100,             size = 4,             label= \"n = 190\",             fill=\"#00AFBB\", alpha = 0.25) +    theme_bw()   # \u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0431\u043e\u043a\u0441\u043f\u043b\u043e\u0442 \u0442\u0430\u043a \u0436\u0435 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c. g2 &lt;- ggplot(data = operations, aes(x = intervals, fill = distr)) +    geom_boxplot(alpha = 0.5, show.legend = FALSE)+    labs(x = \"Time intervals between two consecutive operations (hours)\", y = NULL) +      annotate(\"label\", x = 16, y = -0.07,             size = 4,             label= paste(\"median =\", round(med_norm, 2)) ,            fill=\"#00AFBB\", alpha = 0.25) +    annotate(\"label\", x = 16, y = -0.195,     <\/code><\/pre>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-397740","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/397740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=397740"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/397740\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=397740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=397740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=397740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}