{"id":291917,"date":"2019-07-10T21:00:10","date_gmt":"2019-07-10T21:00:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=291917"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=291917","title":{"rendered":"\u041a\u0430\u043a \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0442 1 \u0434\u043e 10"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0442 1 \u0434\u043e 10. \u0422\u043e \u0435\u0441\u0442\u044c \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0442 1 \u0434\u043e 10 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0441 \u0440\u0430\u0432\u043d\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e (10%) \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e. \u041d\u043e, \u0441\u043a\u0430\u0436\u0435\u043c, \u0431\u0435\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043c\u043e\u043d\u0435\u0442\u0430\u043c, \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u043c, \u0440\u0430\u0434\u0438\u043e\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c\u0443 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0443 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u043c (\u043f\u0441\u0435\u0432\u0434\u043e) \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043d\u0430\u0442\u0430 \u0441 \u043b\u044e\u0434\u044c\u043c\u0438.<\/p>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u043d\u0430\u0442\u0435 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 8500 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u0421\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435\u00a0\u2014 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c: \u00ab\u042d\u0439, \u0432\u044b\u0431\u0435\u0440\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u043e \u0434\u0435\u0441\u044f\u0442\u0438!\u00bb. \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: \u00ab\u0421\u0435\u043c\u044c!\u00bb. \u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d\u043e \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c?<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a. \u0412\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0435 \u0438\u0445 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0438 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0445 \u043e\u0442\u0432\u0435\u0442\u044b, \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044f \u0434\u0440\u043e\u0431\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0438 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0434\u0443\u043c\u0430\u0435\u0442, \u0447\u0442\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442 1 \u0434\u043e 10 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 0. \u0412 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432 \u0432\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0435 \u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0435:<\/p>\n<pre><code class=\"plaintext\">library(tidyverse)  probabilities &lt;-   read_csv(\"https:\/\/git.io\/fjoZ2\") %&gt;%   count(outcome = round(pick_a_random_number_from_1_10)) %&gt;%   filter(!is.na(outcome),          outcome != 0) %&gt;%   mutate(p = n \/ sum(n))  probabilities %&gt;%   ggplot(aes(x = outcome, y = p)) +   geom_col(aes(fill = as.factor(outcome))) +   scale_x_continuous(breaks = 1:10) +   scale_y_continuous(labels = scales::percent_format(),                      breaks = seq(0, 1, 0.05)) +   scale_fill_discrete(h = c(120, 360)) +   theme_minimal(base_family = \"Roboto\") +   theme(legend.position = \"none\",         panel.grid.major.x = element_blank(),         panel.grid.minor.x = element_blank()) +   labs(title = '\"Pick a random number from 1-10\"',        subtitle = \"Human RNG distribution\",        x = \"\",        y = NULL,        caption = \"Source: https:\/\/www.reddit.com\/r\/dataisbeautiful\/comments\/acow6y\/asking_over_8500_students_to_pick_a_random_number\/\")<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-k\/tx\/ng\/-ktxngdw0b4tk1nqomn4gbkracu.png\"><br \/>  <i><font color=\"gray\">\u0414\u0430\u043d\u043d\u044b\u0435 \u0441 <a href=\"https:\/\/www.reddit.com\/r\/dataisbeautiful\/comments\/acow6y\/asking_over_8500_students_to_pick_a_random_number\">Reddit<\/a><\/font><\/i><\/p>\n<p>  \u0412\u044b \u0445\u043b\u043e\u043f\u0430\u0435\u0442\u0435 \u0441\u0435\u0431\u044f \u043f\u043e \u043b\u0431\u0443. \u041d\u0443 <a href=\"https:\/\/www.reddit.com\/r\/dataisbeautiful\/comments\/acow6y\/asking_over_8500_students_to_pick_a_random_number\/edac6ze\/\">\u043a\u043e\u043d\u0435\u0447\u043d\u043e<\/a>, \u043e\u043d\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c. \u0412 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432, <a href=\"https:\/\/www.youtube.com\/watch?v=93WRQ8HT_WA\">\u043d\u0435\u043b\u044c\u0437\u044f \u0434\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043b\u044e\u0434\u044f\u043c<\/a>.<\/p>\n<h1>\u0418\u0442\u0430\u043a, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c?<\/h1>\n<p>  \u0412\u043e\u0442 \u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u00ab\u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0413\u0421\u0427\u00bb \u0432 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u2026<\/p>\n<p>  \u0418\u043d\u0442\u0443\u0438\u0446\u0438\u044f \u0442\u0443\u0442 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430. \u041d\u0443\u0436\u043d\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0432\u0437\u044f\u0442\u044c \u043c\u0430\u0441\u0441\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0442\u0443\u0434\u0430, \u0433\u0434\u0435 \u043e\u043d\u0430 \u0432\u044b\u0448\u0435 10%, \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0442\u0443\u0434\u0430, \u0433\u0434\u0435 \u043e\u043d\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 10%. \u0422\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u0431\u044b\u043b\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/f9f\/ac0\/71e\/f9fac071e2c99a3110418506b46f14b2.png\"><\/p>\n<p>  \u041f\u043e \u0438\u0434\u0435\u0435, \u0442\u0430\u043a\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c. \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 (\u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438). \u0412 \u043a\u0440\u0430\u0439\u043d\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043c\u043e\u0436\u043d\u043e \u00ab\u0440\u0430\u0437\u0440\u0435\u0437\u0430\u0442\u044c\u00bb \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u043d\u0430 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u0430\u043b\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0439 \u0444\u043e\u0440\u043c\u044b (\u043a\u0430\u043a \u043a\u0438\u0440\u043f\u0438\u0447\u0438\u043a\u0438 Lego).<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0442\u0430\u043a\u043e\u0439 \u044d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043e\u043a. \u0412 \u0438\u0434\u0435\u0430\u043b\u0435 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f (\u0442. \u0435. \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u0437\u043c\u0435\u043b\u044c\u0447\u0435\u043d\u0438\u0439 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0439).<\/p>\n<h1>\u041a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043a\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e?<\/h1>\n<p>  \u041d\u0443, \u043d\u0430\u0448\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u0432\u044b\u0448\u0435 \u0437\u0432\u0443\u0447\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Linear_programming\">\u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/a>. \u0418\u0437 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438:<\/p>\n<p>  \u041b\u0438\u043d\u0435\u0439\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (LP, \u0442\u0430\u043a\u0436\u0435 \u0438\u043c\u0435\u043d\u0443\u0435\u0442\u0441\u044f \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439) \u2014 \u043c\u0435\u0442\u043e\u0434 \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0438\u043b\u0443\u0447\u0448\u0435\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u2026 \u0432 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u043c\u0438 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f\u043c\u0438\u2026 \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u0443\u044e \u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041e\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u0440\u0451\u0445 \u0447\u0430\u0441\u0442\u0435\u0439:<\/p>\n<ul>\n<li>\u041b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c  <\/li>\n<li>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0444\u043e\u0440\u043c\u044b  <\/li>\n<li>\u041d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435<\/li>\n<\/ul>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f.<\/p>\n<h1>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h1>\n<p>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/5b4\/b59\/c6a\/5b4b59c6a6124239d15d9993c60ad99b.svg\" alt=\"$(x_{i,j}$\" data-tex=\"inline\"><\/math>, \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442 \u0434\u043e\u043b\u044e \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438, \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0443\u044e \u043e\u0442 \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/bf8\/3b5\/32c\/bf83b532cd867d34004f8eded8c5c79a.svg\" alt=\"$i$\" data-tex=\"inline\"><\/math> (\u043e\u0442 1 \u0434\u043e 10) \u043a \u0446\u0435\u043b\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/b82\/8e2\/475\/b828e2475a3a56280b895f35eb250ea2.svg\" alt=\"$j$\" data-tex=\"inline\"><\/math> (\u043e\u0442 1 \u0434\u043e 10). \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1dd\/7a6\/24c\/1dd7a624ca00e77928406708698cd47a.svg\" alt=\"$(x_{7,1} = 0.2$\" data-tex=\"inline\"><\/math>, \u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 20% \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043e\u0442 \u0441\u0435\u043c\u0451\u0440\u043a\u0438 \u043a \u0435\u0434\u0438\u043d\u0438\u0446\u0435.<\/p>\n<pre><code class=\"plaintext\">variables &lt;-   crossing(from = probabilities$outcome,            to   = probabilities$outcome) %&gt;%   mutate(name = glue::glue(\"x({from},{to})\"),          ix = row_number())  variables<\/code><\/pre>\n<p>  <\/p>\n<pre>## # A tibble: 100 x 4 ##     from    to name       ix ##    &lt;dbl&gt; &lt;dbl&gt; &lt;glue&gt;  &lt;int&gt; ##  1     1     1 x(1,1)      1 ##  2     1     2 x(1,2)      2 ##  3     1     3 x(1,3)      3 ##  4     1     4 x(1,4)      4 ##  5     1     5 x(1,5)      5 ##  6     1     6 x(1,6)      6 ##  7     1     7 x(1,7)      7 ##  8     1     8 x(1,8)      8 ##  9     1     9 x(1,9)      9 ## 10     1    10 x(1,10)    10 ## # \u2026 with 90 more rows<\/pre>\n<p>  \u041c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u044d\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0441\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432 10%. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/b82\/8e2\/475\/b828e2475a3a56280b895f35eb250ea2.svg\" alt=\"$j$\" data-tex=\"inline\"><\/math> \u043e\u0442 1 \u0434\u043e 10:<\/p>\n<p><math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/266\/e9e\/845\/266e9e84523992398c85afdb20ef9ece.svg\" alt=\"$x_{1, j} + x_{2, j} + \\ldots\\ x_{10, j} = 0.1$\" data-tex=\"display\"><\/math><\/p>\n<p>  \u041c\u043e\u0436\u0435\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0432 \u0432\u0438\u0434\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0432 R. \u041f\u043e\u0437\u0436\u0435 \u0441\u0432\u044f\u0436\u0435\u043c \u0438\u0445 \u0432 \u043c\u0430\u0442\u0440\u0438\u0446\u0443.<\/p>\n<pre><code class=\"plaintext\">fill_array &lt;- function(indices,                        weights,                        dimensions = c(1, max(variables$ix))) {   init &lt;- array(0, dim = dimensions)    if (length(weights) == 1) {     weights &lt;- rep_len(1, length(indices))   }    reduce2(indices, weights, function(a, i, v) {     a[1, i] &lt;- v     a   }, .init = init) }  constrain_uniform_output &lt;-   probabilities %&gt;%   pmap(function(outcome, p, ...) {     x &lt;-       variables %&gt;%       filter(to == outcome) %&gt;%       left_join(probabilities, by = c(\"from\" = \"outcome\"))      fill_array(x$ix, x$p)   })<\/code><\/pre>\n<p>  \u041c\u044b \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u0441\u044f \u043c\u0430\u0441\u0441\u0430 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f. \u0422\u0430\u043a \u0447\u0442\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/b82\/8e2\/475\/b828e2475a3a56280b895f35eb250ea2.svg\" alt=\"$j$\" data-tex=\"inline\"><\/math> \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 1 \u0434\u043e 10:<\/p>\n<p><math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/266\/e9e\/845\/266e9e84523992398c85afdb20ef9ece.svg\" alt=\"$x_{1, j} + x_{2, j} + \\ldots\\ x_{10, j} = 0.1$\" data-tex=\"display\"><\/math><\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">one_hot &lt;- partial(fill_array, weights = 1)  constrain_original_conserved &lt;-   probabilities %&gt;%   pmap(function(outcome, p, ...) {     variables %&gt;%       filter(from == outcome) %&gt;%       pull(ix) %&gt;%       one_hot()   })<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u043d\u0430\u0448\u0430 \u0446\u0435\u043b\u044c (<i>objective<\/i>):<\/p>\n<p><math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/821\/e63\/c56\/821e63c56c953619b36349020e7a2523.svg\" alt=\"$maximise (x_{1, 1} + x_{2, 2} + \\ldots\\ x_{10, 10})$\" data-tex=\"display\"><\/math><\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">maximise_original_distribution_reuse &lt;-   probabilities %&gt;%   pmap(function(outcome, p, ...) {     variables %&gt;%       filter(from == outcome,              to == outcome) %&gt;%       pull(ix) %&gt;%       one_hot()   })  objective &lt;- do.call(rbind, maximise_original_distribution_reuse) %&gt;% colSums()<\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441\u043e\u043b\u0432\u0435\u0440\u0443, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0430\u043a\u0435\u0442\u0443 <code>lpSolve<\/code> \u0432 R, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0432 \u043e\u0434\u043d\u0443 \u043c\u0430\u0442\u0440\u0438\u0446\u0443:<\/p>\n<pre><code class=\"plaintext\"># Make results reproducible... set.seed(23756434)  solved &lt;- lpSolve::lp(   direction    = \"max\",   objective.in = objective,   const.mat    = do.call(rbind, c(constrain_original_conserved, constrain_uniform_output)),   const.dir    = c(rep_len(\"==\", length(constrain_original_conserved)),                    rep_len(\"==\", length(constrain_uniform_output))),   const.rhs    = c(rep_len(1, length(constrain_original_conserved)),                    rep_len(1 \/ nrow(probabilities), length(constrain_uniform_output))) )  balanced_probabilities &lt;-   variables %&gt;%   mutate(p = solved$solution) %&gt;%   left_join(probabilities,             by = c(\"from\" = \"outcome\"),             suffix = c(\"_redistributed\", \"_original\"))<\/code><\/pre>\n<p>  \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"plaintext\">library(gganimate)  redistribute_anim &lt;-   bind_rows(balanced_probabilities %&gt;%             mutate(key   = from,                    state = \"Before\"),             balanced_probabilities %&gt;%             mutate(key   = to,                    state = \"After\")) %&gt;%   ggplot(aes(x = key, y = p_redistributed * p_original)) +   geom_col(aes(fill = as.factor(from)),            position = position_stack()) +   scale_x_continuous(breaks = 1:10) +   scale_y_continuous(labels = scales::percent_format(),                      breaks = seq(0, 1, 0.05)) +   scale_fill_discrete(h = c(120, 360)) +   theme_minimal(base_family = \"Roboto\") +   theme(legend.position = \"none\",         panel.grid.major.x = element_blank(),         panel.grid.minor.x = element_blank()) +   labs(title = 'Balancing the \"Human RNG distribution\"',        subtitle = \"{closest_state}\",        x = \"\",        y = NULL) +   transition_states(     state,     transition_length = 4,     state_length = 3   ) +   ease_aes('cubic-in-out')  animate(   redistribute_anim,   start_pause = 8,   end_pause = 8 )<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/0a\/jd\/97\/0ajd97wzrznq0bw7hea6n4bikl8.gif\"><\/p>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0431\u043b\u0438\u0436\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0441\u0430:<\/p>\n<pre><code class=\"plaintext\">balanced_probabilities %&gt;%   ggplot(aes(x = from, y = to)) +   geom_tile(aes(alpha = p_redistributed, fill = as.factor(from))) +   geom_text(aes(label = ifelse(p_redistributed == 0, \"\", scales::percent(p_redistributed, 2)))) +   scale_alpha_continuous(limits = c(0, 1), range = c(0, 1)) +   scale_fill_discrete(h = c(120, 360)) +   scale_x_continuous(breaks = 1:10) +   scale_y_continuous(breaks = 1:10) +   theme_minimal(base_family = \"Roboto\") +   theme(panel.grid.minor = element_blank(),         panel.grid.major = element_line(linetype = \"dotted\"),         legend.position = \"none\") +   labs(title = \"Probability mass redistribution\",        x = \"Original number\",        y = \"Redistributed number\")<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hu\/ic\/xk\/huicxkem3bii4lq4vlysw6odf6o.png\"><\/p>\n<p>  \u042d\u0442\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 8% \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u043a\u043e\u0433\u0434\u0430 \u043a\u0442\u043e-\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0441\u0435\u043c\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043a\u0430\u043a \u0435\u0434\u0438\u043d\u0438\u0446\u0443. \u0412 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 92% \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043e\u043d \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432\u043e\u0441\u044c\u043c\u0451\u0440\u043a\u043e\u0439.<\/p>\n<p>  \u0411\u044b\u043b\u043e \u0431\u044b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443, \u0435\u0441\u043b\u0438 \u0431\u044b \u0443 \u043d\u0430\u0441 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0443 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b (\u043e\u0442 0 \u0434\u043e 1). \u041d\u043e \u0443 \u043d\u0430\u0441 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043d\u0430\u0442\u0430, \u043f\u043e\u043b\u043d\u0430\u044f \u043b\u044e\u0434\u0435\u0439. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0435\u0441\u043b\u0438 \u0432\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u043f\u0440\u0438\u043c\u0438\u0440\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044f\u043c\u0438, \u0442\u043e \u0438\u0437 \u043b\u044e\u0434\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0413\u0421\u0427, \u043d\u0435 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044f \u0431\u043e\u043b\u0435\u0435 \u0434\u0432\u0443\u0445 \u0440\u0430\u0437.<\/p>\n<p>  \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e.<\/p>\n<pre><code class=\"plaintext\">probabilities %&gt;%   transmute(number = outcome,             probability = scales::percent(p))<\/code><\/pre>\n<p>  <\/p>\n<pre>## # A tibble: 10 x 2 ##    number probability ##     &lt;dbl&gt; &lt;chr&gt; ##  1      1 3.4% ##  2      2 8.5% ##  3      3 10.0% ##  4      4 9.7% ##  5      5 12.2% ##  6      6 9.8% ##  7      7 28.1% ##  8      8 10.9% ##  9      9 5.4% ## 10     10 1.9%<\/pre>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430 \u043a\u0442\u043e-\u0442\u043e \u0434\u0430\u0451\u0442 \u043d\u0430\u043c \u0432\u043e\u0441\u0435\u043c\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430, \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0434\u043e\u043b\u0436\u043d\u0430 \u043b\u0438 \u044d\u0442\u0430 \u0432\u043e\u0441\u044c\u043c\u0451\u0440\u043a\u0430 \u0441\u0442\u0430\u0442\u044c \u0435\u0434\u0438\u043d\u0438\u0446\u0435\u0439 \u0438\u043b\u0438 \u043d\u0435\u0442 (\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c 8%). \u0415\u0441\u043b\u0438 \u043c\u044b \u0441\u043f\u0440\u043e\u0441\u0438\u043c <i>\u0434\u0440\u0443\u0433\u043e\u0433\u043e<\/i> \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u0442\u043e \u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e 8,5% \u043e\u043d \u043e\u0442\u0432\u0435\u0442\u0438\u0442 \u00ab\u0434\u0432\u0430\u00bb. \u0422\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0440\u0430\u0432\u043d\u043e 2, \u043c\u044b \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u0435\u0440\u043d\u0443\u0442\u044c 1 \u043a\u0430\u043a <i>\u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435<\/i> \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e.<\/p>\n<p>  \u0420\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0432 \u044d\u0442\u0443 \u043b\u043e\u0433\u0438\u043a\u0443 \u043d\u0430 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c:<\/p>\n<blockquote>\n<ul>\n<li>\u0421\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/bd1\/f50\/4ab\/bd1f504abc033890f84c24c37d3f4efc.svg\" alt=\"$n_1$\" data-tex=\"inline\"><\/math>.<\/li>\n<li><math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/992\/e47\/8d2\/992e478d2f8b1b5e30eda2dea261c174.svg\" alt=\"$n_1 = 1, 2, 3, 4, 6, 9,$\" data-tex=\"inline\"><\/math> \u0438\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/90c\/2a2\/ef3\/90c2a2ef3f252b20073a97d9f796ad28.svg\" alt=\"$ 10$\" data-tex=\"inline\"><\/math>:<br \/> \n<ul>\n<li>\u0412\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/bd1\/f50\/4ab\/bd1f504abc033890f84c24c37d3f4efc.svg\" alt=\"$n_1$\" data-tex=\"inline\"><\/math><\/li>\n<\/ul>\n<\/li>\n<li>\u0415\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/f95\/6e0\/35f\/f956e035f9f6433534c980a09c63bb45.svg\" alt=\"$n_1 = 5$\" data-tex=\"inline\"><\/math>:<br \/> \n<ul>\n<li>\u0421\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0443 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (<math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1a7\/914\/90e\/1a791490ebcf618bc9c21e77e5b6e476.svg\" alt=\"$n_2$\" data-tex=\"inline\"><\/math>)<\/li>\n<li>\u0415\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/58e\/d1e\/84f\/58ed1e84fa9a1b69f4f7999c8b4ee172.svg\" alt=\"$n_2 = 5$\" data-tex=\"inline\"><\/math> (12.2%):<br \/> \n<ul>\n<li>\u0412\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 2<\/li>\n<\/ul>\n<\/li>\n<li>\u0415\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/3d5\/78b\/8fa\/3d578b8faee05bc3fbc2d3eb5468ecf8.svg\" alt=\"$n_2 = 10$\" data-tex=\"inline\"><\/math> (1.9%):<br \/> \n<ul>\n<li>\u0412\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 4<\/li>\n<\/ul>\n<\/li>\n<li>\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 5<\/li>\n<\/ul>\n<\/li>\n<li>\u0415\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/bda\/251\/b65\/bda251b654326f62f1bfebb71b116d15.svg\" alt=\"$n_1 = 7$\" data-tex=\"inline\"><\/math>:<br \/> \n<ul>\n<li>\u0421\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0443 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (<math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1a7\/914\/90e\/1a791490ebcf618bc9c21e77e5b6e476.svg\" alt=\"$n_2$\" data-tex=\"inline\"><\/math>)<\/li>\n<li>\u0415\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/f9b\/1d1\/336\/f9b1d133618d113f8298770b9bdac837.svg\" alt=\"$n_2 = 2$\" data-tex=\"inline\"><\/math> or<math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/480\/820\/0cb\/4808200cb3668866f25a2e4437a6b74e.svg\" alt=\"$ 5$\" data-tex=\"inline\"><\/math> (20.7%):<br \/> \n<ul>\n<li>\u0412\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 1<\/li>\n<\/ul>\n<\/li>\n<li>\u0415\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/dd8\/0af\/12c\/dd80af12ce101b5149d9ce6b0d8f09c7.svg\" alt=\"$n_2 = 8$\" data-tex=\"inline\"><\/math> or<math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/87f\/b66\/6e5\/87fb666e57e51cf3d068c23b82f29915.svg\" alt=\"$ 9$\" data-tex=\"inline\"><\/math> (16.2%):<br \/> \n<ul>\n<li>\u0412\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 9<\/li>\n<\/ul>\n<\/li>\n<li>\u0415\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/b56\/d7c\/f1f\/b56d7cf1ff7dd1358a191ca205208ae3.svg\" alt=\"$n_2 = 7$\" data-tex=\"inline\"><\/math> (28.1%):<br \/> \n<ul>\n<li>\u0412\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 10<\/li>\n<\/ul>\n<\/li>\n<li>\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 7<\/li>\n<\/ul>\n<\/li>\n<li>\u0415\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/d90\/c5d\/66a\/d90c5d66a036d8834c55ff3b3358dcb5.svg\" alt=\"$n_1 = 8$\" data-tex=\"inline\"><\/math>:<br \/> \n<ul>\n<li>\u0421\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0443 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (<math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/1a7\/914\/90e\/1a791490ebcf618bc9c21e77e5b6e476.svg\" alt=\"$n_2$\" data-tex=\"inline\"><\/math>)<\/li>\n<li>\u0415\u0441\u043b\u0438 <math><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/f9b\/1d1\/336\/f9b1d133618d113f8298770b9bdac837.svg\" alt=\"$n_2 = 2$\" data-tex=\"inline\"><\/math> (8.5%):<br \/> \n<ul>\n<li>\u0412\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 1<\/li>\n<\/ul>\n<\/li>\n<li>\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432\u0430\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 8<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/blockquote>\n<p>\u041f\u043e \u044d\u0442\u043e\u043c\u0443 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0443 \u043b\u044e\u0434\u0435\u0439 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0447\u0435\u0433\u043e-\u0442\u043e \u0431\u043b\u0438\u0437\u043a\u043e\u0433\u043e \u043a \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0443 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u0442 1 \u0434\u043e 10!<\/p><\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <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\/post\/459532\/\"> https:\/\/habr.com\/ru\/post\/459532\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0442 1 \u0434\u043e 10. \u0422\u043e \u0435\u0441\u0442\u044c \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0442 1 \u0434\u043e 10 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0441 \u0440\u0430\u0432\u043d\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e (10%) \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e. \u041d\u043e, \u0441\u043a\u0430\u0436\u0435\u043c, \u0431\u0435\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043c\u043e\u043d\u0435\u0442\u0430\u043c, \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u043c, \u0440\u0430\u0434\u0438\u043e\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c\u0443 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0443 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u043c (\u043f\u0441\u0435\u0432\u0434\u043e) \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043d\u0430\u0442\u0430 \u0441 \u043b\u044e\u0434\u044c\u043c\u0438.<\/p>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u043d\u0430\u0442\u0435 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 8500 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u0421\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435\u00a0\u2014 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c: \u00ab\u042d\u0439, \u0432\u044b\u0431\u0435\u0440\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u043e \u0434\u0435\u0441\u044f\u0442\u0438!\u00bb. \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: \u00ab\u0421\u0435\u043c\u044c!\u00bb. \u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d\u043e \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c?  <\/p>\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-291917","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291917","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=291917"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291917\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=291917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=291917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=291917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}