{"id":320021,"date":"2021-03-22T09:00:56","date_gmt":"2021-03-22T09:00:56","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=320021"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=320021","title":{"rendered":"Cross-nested ordered probit: \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, ML \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u0434\u0430\u043b\u0451\u043a\u043e\u043c 2014 \u044f \u0435\u0449\u0451 \u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0441\u0442\u0430, \u043d\u043e \u0443\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0447\u0442\u0430\u043b \u0443\u0439\u0442\u0438 \u0432 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445. \u0418 \u043a\u043e\u0433\u0434\u0430 \u043c\u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430, \u044f \u0431\u044b\u043b \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432. \u041f\u0440\u043e\u0435\u043a\u0442 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f \u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043b\u044f \u043f\u0430\u043a\u0435\u0442\u0430 Stata. \u0421\u0442\u0430\u0442\u0443 \u044f \u0441 \u0442\u0435\u0445 \u043f\u043e\u0440 \u043b\u044e\u0442\u043e \u0432\u043e\u0437\u043d\u0435\u043d\u0430\u0432\u0438\u0434\u0435\u043b, \u043d\u043e \u0441\u0430\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0443\u0447\u0438\u043b \u043c\u0435\u043d\u044f \u043c\u043d\u043e\u0433\u043e\u043c\u0443. <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e Cross-Nested Ordered Probit, \u0437\u0430\u0431\u0430\u0432\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0445 \u0432\u0435\u043b\u0438\u0447\u0438\u043d, \u043f\u043e\u043a\u0430\u0436\u0443 \u0435\u0451 \u043a\u043e\u0434 \u043d\u0430 PyTorch, \u0438 \u043f\u043e\u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0430\u044e \u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f\u0445 \u0438 \u0441\u0445\u043e\u0434\u0441\u0442\u0432\u0430\u0445 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/65a\/853\/30c\/65a85330cbe1a7b19e610c4a0ff96e95.PNG\" width=\"1102\" height=\"622\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043e\u0431 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435 \u0432 \u0446\u0435\u043b\u043e\u043c, \u043f\u043e\u0432\u0435\u0441\u0442\u0432\u0443\u044e \u043e \u0442\u043e\u0440\u043c\u043e\u0437\u043d\u043e\u043c \u0445\u043e\u0434\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0434\u0435\u043b\u0438 CNOP, \u0438 \u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u044b \u0438\u0437 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u0432\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u043e\u0434\u0435\u043b\u044c, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043a \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0441\u0435\u043a\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u0436\u0435, \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0432\u0430\u0441 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0438 \u043a\u043e\u0434, \u0441\u043c\u0435\u043b\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0439\u0442\u0435 \u044d\u0442\u0443 \u0441\u0435\u043a\u0446\u0438\u044e.<\/p>\n<ol>\n<li>\n<p><a href=\"#econometrics\" rel=\"noopener noreferrer nofollow\">\u041e\u0431 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#project\" rel=\"noopener noreferrer nofollow\">\u041e \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#model\" rel=\"noopener noreferrer nofollow\">\u041e \u043c\u043e\u0434\u0435\u043b\u0438 <\/a><\/p>\n<ol>\n<li>\n<p><a href=\"#oprobit\" rel=\"noopener noreferrer nofollow\">Ordered Probit<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#cross-nested\" rel=\"noopener noreferrer nofollow\">Cross-Nested<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#pvalues\" rel=\"noopener noreferrer nofollow\">P-values \u0438 \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0430\u044f<\/a><\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p><a href=\"#learnings\" rel=\"noopener noreferrer nofollow\">\u041e \u0436\u0438\u0437\u043d\u0438<\/a><\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0440\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u044f \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0435\u0451 \u043a\u043e\u0434 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u044f\u0447\u044c\u0435\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 PyTorch. \u0415\u0441\u043b\u0438 \u0432\u044b \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0441\u0442 \u0438 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 Stata, \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0430\u043c, \u0447\u0442\u043e Python \u0442\u043e\u0436\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u0439. \u0415\u0441\u043b\u0438 \u0432\u044b ML\u0449\u0438\u043a \u0438 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u043a PyTorch, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u0430\u043c \u043f\u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0440\u044e\u043a\u043e\u0432.<\/p>\n<\/p>\n<p><a class=\"anchor\" name=\"econometrics\" id=\"econometrics\"><\/a><\/p>\n<h2>\u041e\u0431 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435<\/h2>\n<p>\u042d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u2013 \u044d\u0442\u043e \u043d\u0430\u0443\u043a\u0430 \u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c. \u0412 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 XX \u0432\u0435\u043a\u0430 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043a\u0430\u043a \u043d\u0430\u0443\u043a\u0430: \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u0438, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0433\u0438\u043f\u043e\u0442\u0435\u0437, \u043c\u0435\u0442\u043e\u0434 \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, \u0432\u0441\u0451 \u0432\u043e\u0442 \u044d\u0442\u043e \u0432\u043e\u0442. \u0413\u0434\u0435-\u0442\u043e \u0432 30-\u0445 \u0433\u043e\u0434\u0430\u0445 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0441\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u0430\u0436\u043d\u044b\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0442\u0438\u043f\u0430 &#171;\u043d\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0446\u0435\u043d\u0442\u043e\u0432 \u0440\u0430\u0441\u0442\u0451\u0442 \u0412\u0412\u041f \u0441\u0442\u0440\u0430\u043d\u044b \u043f\u0440\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0438 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043d\u0430 \u043e\u0434\u0438\u043d \u0434\u043e\u043b\u043b\u0430\u0440?&#187; \u0438\u043b\u0438 &#171;\u0432\u043b\u0438\u044f\u0435\u0442 \u043b\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u0430\u043d\u043a\u0430 \u043d\u0430 \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0439 \u0432 \u0441\u0442\u0440\u0430\u043d\u0435?&#187;. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0435 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u0438 \u0441 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438, \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b\u0438 \u043a \u0438\u0445 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u0435\u0441\u0442\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0435. \u0417\u0430 \u043f\u043e\u0447\u0442\u0438 \u0441\u0442\u043e\u043b\u0435\u0442\u0438\u0435 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0432\u044b\u0440\u043e\u0441\u043b\u0438, \u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u0440\u0443\u0442\u044b\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0441\u0442\u044b \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044e\u0442 \u0438\u043c\u0438 \u0441\u0432\u043e\u0438 \u0442\u0435\u043e\u0440\u0438\u0438. \u0418\u043d\u043e\u0433\u0434\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u2013 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0442\u043e\u043c \u0436\u0435 \u0426\u0411.<\/p>\n<p>\u041c\u0430\u0448\u0438\u043d\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u0436\u0435 \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u0438\u0437 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043d\u043e \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u2013 \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0432 50-\u0445 \u0433\u043e\u0434\u0430\u0445 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u044b \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b. \u0421\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0432 \u0441 \u0442\u043e\u0439 \u0436\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0447\u0442\u043e \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430, ML \u043f\u043e\u0448\u043b\u043e \u043f\u043e \u0438\u043d\u043e\u043c\u0443 \u043f\u0443\u0442\u0438. \u042d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u0437\u0430\u0431\u043e\u0442\u0438\u0442\u0441\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u044b \u043e \u043c\u0438\u0440\u0435 \u0438\u0437 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0434\u0435\u043b\u0438, \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u044f\u044f \u0438\u0445 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u0432\u0434\u0443\u043c\u0447\u0438\u0432\u044b\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u041c\u0430\u0448\u0438\u043d\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u0433\u043c\u0430\u0442\u0438\u0447\u043d\u043e, \u0442\u0430\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c &#8212; \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0431\u044b\u043b \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043b\u0438\u0436\u0435 \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f &#171;\u0432 \u043b\u043e\u0431&#187; \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0435, \u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u044b \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u044b\u043c\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0441\u0442 \u0438 ML\u0449\u0438\u043a \u043c\u043e\u0433\u0443\u0442 \u043e\u0431\u0443\u0447\u0438\u0442\u044c \u0434\u0432\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0441 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0439 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439, \u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b.<\/p>\n<p><a class=\"anchor\" name=\"project\" id=\"project\"><\/a><\/p>\n<h2>\u041e \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/h2>\n<p><strong>\u0424\u0430\u0437\u0430 \u043f\u0435\u0440\u0432\u0430\u044f: \u0432\u0437\u0440\u044b\u0432 \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0437\u043c\u0430.<\/strong> \u041f\u0440\u043e\u0435\u043a\u0442 \u043c\u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0410\u043d\u0434\u0440\u0435\u0439, \u043a\u0440\u0443\u0442\u043e\u0439 \u043f\u0440\u0435\u043f\u043e\u0434-\u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0441\u0442. \u041c\u043e\u0434\u0435\u043b\u044c CNOP \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u043e\u043d \u0432 2013 \u0433\u043e\u0434\u0443 (<a href=\"https:\/\/www.nbp.pl\/publikacje\/materialy_i_studia\/148_en.pdf\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044f<\/a>), \u0438 \u043e\u043d \u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043a\u043e\u0434 \u0434\u043b\u044f \u043d\u0435\u0451 \u0438 \u043f\u0430\u0440\u044b \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u0432 \u0434\u043e\u043f\u043e\u0442\u043e\u043f\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443\u043b\u0438\u043d\u0435 Gauss. \u041c\u043e\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0430 Stata, \u0447\u0442\u043e\u0431\u044b \u0438\u043c \u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u0435 \u043b\u044e\u0434\u0438, \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044e \u0434\u043b\u044f Stata Journal. \u042f \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u0434\u0435\u043b\u043e \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0438 \u0434\u0435\u043d\u044c\u0433\u0438 \u0437\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u043b\u0438\u0441\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0435.<\/p>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Stata \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u0430\u0431\u0430\u0432\u043d\u043e. \u0415\u0451 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430 \u0438\u0434\u0435\u0435 low-code: \u043d\u0443\u0436\u043d\u043e \u0438\u043b\u0438 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0435 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0442\u0438\u043f\u0430  <code>regress y x1 x2<\/code>, \u0438\u043b\u0438 \u043d\u0430\u043a\u043b\u0438\u043a\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0436\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u043e\u043a\u043e\u043d. \u042d\u0442\u043e\u043c\u0443 \u043c\u044b \u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u043f\u0430\u0440\u0430\u0445 \u043f\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435. \u041d\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u044d\u0442\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Stata \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e: \u0442\u0430\u043c \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0446\u0438\u043a\u043b\u044b \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435, \u0430 \u0434\u043b\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u043c\u0438, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438, \u0438 \u0432\u0441\u0451 \u0442\u0430\u043a\u043e\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0421\u0442\u0430\u0442\u044b \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f  \u2013  Mata, \u0447\u0442\u043e-\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043c\u0435\u0436\u0434\u0443 C \u0438 Matlab. \u0418 \u0432\u043e\u0442 \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u041c\u0430\u0442\u0435 \u043e\u0441\u043e\u0431\u043e \u043d\u0435\u0442 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u2013 \u043d\u0438 \u043a\u043d\u0438\u0433, \u043d\u0438 \u0431\u043b\u043e\u0433\u043f\u043e\u0441\u0442\u043e\u0432, \u043d\u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043d\u0430 Stackoverflow, \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u043b\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0430\u043b. \u0418 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u043c\u0430\u043d\u0443\u0430\u043b \u044f \u0441\u0435\u043b \u043f\u043e\u0442\u0438\u0445\u043e\u043d\u044c\u043a\u0443 \u043e\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c. <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u043a \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u0438 \u044f \u0434\u0438\u043a\u043e \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442: \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u0438\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f, \u043c\u0430\u0433\u0438\u044f \u2013 \u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f. \u041d\u043e \u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c \u043e\u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0438 \u0431\u0430\u0436\u043d\u043e, Mata \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0441\u044b\u043f\u0430\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043d\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u041c\u0430\u0442\u0435, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043d\u0435\u0442, \u0438 \u0432\u0441\u0435 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b, \u0440\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0432\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0445, \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u2013 \u0438 \u044f \u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0441 \u043a\u0443\u0447\u0435\u0439 \u0442\u0443\u043f\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. \u0412 \u043c\u0430\u043d\u0443\u0430\u043b\u0435 \u0431\u044b\u043b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u044f\u0437\u044b\u043a\u0430 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043d\u043e \u044f \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b <em>\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/em>: \u043a\u0430\u043a \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434, \u043a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u044e\u043d\u0438\u0442-\u0442\u0435\u0441\u0442\u044b, \u043a\u0430\u043a \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043f\u043e \u0444\u0430\u0439\u043b\u0430\u043c, \u0447\u0442\u043e\u0431\u044b \u0438\u043c \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u0448\u0438\u0432\u0430\u0442\u044c \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b Stata \u0438 Mata. \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u043f\u0440\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0434\u0443\u043c\u0430\u043b. \u0410 \u044f \u0434\u0443\u043c\u0430\u043b \u0438 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u0443\u043d\u044b\u0432\u0430\u043b.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 \u0432\u0442\u043e\u0440\u0430\u044f: \u0438\u0437\u0431\u0435\u0433\u0430\u043d\u0438\u0435<\/strong>. \u041f\u0435\u0440\u0432\u044b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u044f \u0441\u0442\u0430\u0440\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c, \u0438\u0441\u043a\u0430\u043b \u043a\u043e\u0441\u0442\u044b\u043b\u0438 \u0434\u043b\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0445 \u0443 \u043c\u0435\u043d\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0438 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442 \u0431\u043b\u0438\u0437\u043a\u043e \u2013 \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u0442\u044c \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0433\u043e\u0432, \u0434\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0438\u0447, \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043a\u0443\u0447\u0443 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0433\u043e\u0442\u043e\u0432\u044b\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0441\u0442\u0430\u0442\u044c\u0438&#8230; \u041d\u043e \u043f\u043e\u0442\u043e\u043c \u043c\u0435\u043d\u044f \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u043b\u0430 \u0438\u043d\u0430\u044f \u0436\u0438\u0437\u043d\u044c: \u0434\u0438\u043f\u043b\u043e\u043c, \u0433\u043e\u0441\u044b, \u0432\u043e\u0435\u043d\u043a\u0430, \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0432 \u043c\u0430\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u0443\u0440\u0443 \u0438 \u0428\u0410\u0414, \u0441\u0442\u0430\u0436\u0438\u0440\u043e\u0432\u043a\u0430 \u0432 \u041f\u0438\u0442\u0435\u0440\u0435 \u2013 \u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0430 \u0437\u0430\u0434\u043d\u0435\u043c \u043f\u043b\u0430\u043d\u0435. \u0423 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0441 \u043a\u0435\u043c \u043f\u0440\u043e\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e \u043d\u0438\u0445, \u0438 \u044d\u0442\u043e \u0434\u0435\u043c\u043e\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043b\u043e. \u042f \u043f\u0440\u043e\u0434\u043e\u043b\u0431\u0430\u043b \u0441\u0440\u043e\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u043f\u043b\u0430\u0442\u0443, \u0438 \u044d\u0442\u043e \u043c\u0435\u043d\u044f \u0434\u0435\u043c\u043e\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043b\u043e \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435. \u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2013 \u043c\u043e\u043b, \u0432\u043e\u0437\u0438\u0441\u044c \u0441\u0430\u043c \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u0421\u0442\u0430\u0442\u043e\u0439 \u2013 \u043d\u043e \u044f \u043d\u0435 \u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043c\u043e\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u044d\u0442\u043e. \u042f \u043d\u0430\u0447\u0430\u043b \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u0430 \u043e\u0442 \u0410\u043d\u0434\u0440\u0435\u044f \u0438 \u043f\u0430\u043d\u0438\u043a\u043e\u0432\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d \u0437\u0432\u043e\u043d\u0438\u043b \u043c\u043d\u0435 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d. \u0418\u043d\u043e\u0433\u0434\u0430 \u044f \u043d\u0430\u0445\u043e\u0434\u0438\u043b \u0432\u0440\u0435\u043c\u044f \u0438 \u0441\u0430\u0434\u0438\u043b\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u043e\u043d \u0441\u043a\u043e\u0440\u0435\u0435 \u0441\u0442\u043e\u044f\u043b, \u0447\u0435\u043c \u0434\u0432\u0438\u0433\u0430\u043b\u0441\u044f. \u0418 \u0442\u0430\u043a \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u0440\u0451\u0431\u0430\u043d\u044b\u0445 \u043b\u0435\u0442.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 \u0442\u0440\u0435\u0442\u044c\u044f: \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0434\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u043d\u0438\u0435<\/strong>. \u042f \u043a\u043e\u0432\u044b\u0440\u044f\u043b \u0447\u0442\u043e-\u0442\u043e \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0432 2015 \u0433\u043e\u0434\u0443 &#8212; \u0438 \u0442\u043e\u0433\u0434\u0430 \u043e\u043d \u0431\u044b\u043b \u0443\u0436\u0435 \u043f\u043e\u0447\u0442\u0438 \u0433\u043e\u0434\u043e\u0432. \u0418 \u0432 2016. \u0412 2017 \u043c\u044b \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0441\u0435\u043b\u0438 \u0438 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 \u043c\u043e\u0434\u0435\u043b\u0435\u043a \u043d\u0430 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u2013 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 \u043a\u0443\u0447\u0443 \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041a 2018 \u0433\u043e\u0434\u0443 \u043c\u044b \u0438\u0445 \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u043b\u0438 \u0438 \u0442\u0430\u043a\u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u043b\u0438 <a href=\"https:\/\/www.hse.ru\/data\/2018\/05\/30\/1149326878\/193EC2018.pdf\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0435\u043f\u0440\u0438\u043d\u0442<\/a> \u0441\u0442\u0430\u0442\u044c\u0438. \u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u043d\u0430\u0443\u0447\u043d\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f, \u0438 \u044f \u043f\u043e \u0438\u0434\u0435\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0438\u0443\u043c\u0444, \u043d\u043e \u044f, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0435\u0433\u043e \u043d\u0435 \u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b. \u041f\u043e\u0442\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0440\u0435\u0432\u044c\u044e\u0435\u0440\u044b \u0438\u0437 Stata Journal \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0430\u0432\u043e\u043a, \u0438 \u043f\u0440\u0430\u0432\u043a\u0438 \u044d\u0442\u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u0434\u0435. \u042f \u043e\u0431\u0435\u0449\u0430\u043b \u0432\u043d\u0435\u0441\u0442\u0438 \u044d\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0438 \u043e\u0442\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043b \u0438\u0445 \u0434\u043e 2019 \u0433\u043e\u0434\u0430. \u0415\u0449\u0451 \u043e\u0434\u043d\u0430 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u0440\u0435\u0432\u044c\u044e \u0437\u0430\u0442\u044f\u043d\u0443\u043b\u0430\u0441\u044c \u0434\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u044b 2020. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043d\u043e\u043c\u0435\u0440\u0435 Stata Journal \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0432\u044b\u0439\u0442\u0438, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c Stata \u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0451 \u0443 \u0441\u0435\u0431\u044f, \u0442\u043e \u043a\u043e\u0434 \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/avidale\/cnop\" rel=\"noopener noreferrer nofollow\">\u0432 \u043c\u043e\u0451\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a>.<\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u044f \u0434\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u043b \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u0430\u043a \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u043e\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0441 \u043d\u0438\u043c \u0442\u043e\u0440\u043e\u043f\u0438\u0442\u044c\u0441\u044f. \u041f\u043e\u0447\u0435\u043c\u0443 \u044f \u0435\u0433\u043e \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0434\u043e\u0434\u0435\u043b\u0430\u043b? \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0430 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0432\u0435\u043a\u0438 \u043d\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d\u043d\u044b\u043c \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b\u0430 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u043e\u0436\u0434\u0451\u043d\u043d\u043e\u0435 \u0441\u0442\u0440\u0435\u043c\u043b\u0435\u043d\u0438\u0435 \u043a \u043f\u043e\u0440\u044f\u0434\u043a\u0443. \u0418 \u0432\u043e\u0442 \u0440\u0430\u0434\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0433\u043e \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u044f \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0447\u0430\u0441\u043e\u0432 \u0441\u0432\u043e\u0435\u0439 \u0436\u0438\u0437\u043d\u0438 \u043d\u0430 \u0442\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u0435\u0441\u0442\u044c \u043d\u0430 \u0437\u0430\u0434\u043d\u0438\u0446\u0443 \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c. \u0418 \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u2013 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u043e\u0439 \u0448\u0430\u0433 \u0432 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p><a class=\"anchor\" name=\"model\" id=\"model\"><\/a><\/p>\n<h2>\u041e \u043c\u043e\u0434\u0435\u043b\u0438<\/h2>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u044b\u0432\u0430\u043b\u0430\u0441\u044c Cross-Nested Ordered Probit, \u043f\u043e\u0442\u043e\u043c \u043c\u044b \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043b\u0438 \u0435\u0451 \u0432 Zero Inflated Ordered Probit. \u041f\u0435\u0440\u0432\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u044b\u043c, \u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434\u043e\u043c. \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043f\u043e\u043d\u044f\u0442\u0438\u044f Ordered.<\/p>\n<p><a class=\"anchor\" name=\"oprobit\" id=\"oprobit\"><\/a><\/p>\n<h3>Ordered Probit<\/h3>\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u0435\u0439\u0448\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u2013 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0442\u043e \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b. \u0418 \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f: \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b <img decoding=\"async\" class=\"formula inline\" source=\"y\" alt=\"y\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2f0\/b3b\/cf1\/2f0b3bcf122c115800f020f9b4957224.svg\"> \u0440\u0430\u0432\u0435\u043d<img decoding=\"async\" class=\"formula inline\" source=\"\\hat{y}=Xw+b\" alt=\"\\hat{y}=Xw+b\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4b8\/b57\/757\/4b8b577574d9b1215a17590a8c98e3e0.svg\">, \u0433\u0434\u0435 <img decoding=\"async\" class=\"formula inline\" source=\"X\" alt=\"X\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8bc\/0fc\/179\/8bc0fc1798814e53b3c9573c26ce90af.svg\">&#8212; \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432,<img decoding=\"async\" class=\"formula inline\" source=\"w\" alt=\"w\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/49f\/2a7\/bc4\/49f2a7bc4687c6d1f2c7c29be3b4a2df.svg\">\u2013 \u0432\u0435\u043a\u0442\u043e\u0440 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u043a\u043b\u043e\u043d\u0430, <img decoding=\"async\" class=\"formula inline\" source=\"b\" alt=\"b\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8ce\/f2e\/1b1\/8cef2e1b15bd2a14a30c57bd86b41613.svg\">\u2013 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0447\u043b\u0435\u043d. \u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0435\u0434\u043a\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u0438 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u0442\u043a\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"e=y-\\hat{y}\" alt=\"e=y-\\hat{y}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/614\/e63\/7c1\/614e637c15d62c92bcf8e8779059f4ea.svg\">, \u0442\u043e \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0444\u0430\u043a\u0442\u043e\u043c \u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u043c, \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435. \u0412 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u0435\u043b\u0430\u044e\u0442 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u044d\u0442\u0438 \u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u044d\u0442\u0438 \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0438\u043c\u0435\u044e\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043c\u044b \u0440\u0435\u0448\u0430\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0443 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0443\u0433\u0430\u0434\u0430\u0442\u044c, \u043a\u0430\u043a\u043e\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 (\u0441\u0440\u0435\u0434\u043d\u0435\u0435, \u0432\u044b\u0441\u0448\u0435\u0435, \u0438\u043b\u0438 \u0443\u0447\u0451\u043d\u0430\u044f \u0441\u0442\u0435\u043f\u0435\u043d\u044c), \u0438\u043b\u0438 \u0445\u043e\u0442\u0438\u043c \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u043e\u0442\u0437\u044b\u0432\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a\u0430\u043a\u0443\u044e \u043e\u0446\u0435\u043d\u043a\u0443 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043a\u043b\u0438\u0435\u043d\u0442 \u0442\u043e\u0432\u0430\u0440\u0443 (\u043e\u0442 1 \u0434\u043e 5 \u0437\u0432\u0451\u0437\u0434\u043e\u0447\u0435\u043a), \u0438\u043b\u0438 \u043f\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c \u0432 \u0441\u0442\u0440\u0430\u043d\u0435 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0426\u0411 \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u043d\u0430 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0437\u0430\u0441\u0435\u0434\u0430\u043d\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u0441\u0442\u0430\u0432\u043a\u0443 (\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043f\u043e\u043d\u0438\u0437\u0438\u0442 \u043d\u0430 0.25% \u0438\u043b\u0438 \u043d\u0430 0.5%, \u0438\u043b\u0438 \u043f\u043e\u0432\u044b\u0441\u0438\u0442 \u043d\u0430 0.25% \u0438\u043b\u0438 0.5%). \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f \u0442\u0443\u0442 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0432 \u043d\u0435\u0439 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043d\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435, \u0430 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043a\u0430\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 (\u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043a\u0430\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439<img decoding=\"async\" class=\"formula inline\" source=\"y\" alt=\"y\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/316\/8a7\/90b\/3168a790bcf007e6a88fab89654e0b5d.svg\">. \u041c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0430\u0442\u044c \u044d\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u043a\u0430\u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0441\u0445\u043e\u0434\u0430 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0421\u0430\u043c\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f, \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"i\" alt=\"i\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5a2\/429\/44c\/5a242944c2b6c10c71fc734d3c8571fa.svg\">\u043f\u0440\u044f\u043c\u043e \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0439 <img decoding=\"async\" class=\"formula inline\" source=\"\\exp(Xw_i+b_i)\" alt=\"\\exp(Xw_i+b_i)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/13d\/831\/5ef\/13d8315ef2e1e1321c709a46c8170610.svg\">(\u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043d\u0443\u0436\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0431\u044b\u043b\u0438 \u043d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438). \u042d\u0442\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0443\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b \u043d\u0430\u043a\u043b\u043e\u043d\u0430, \u0438 \u0435\u0441\u043b\u0438 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043b\u043e, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0431\u043e\u0440\u043e\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438: \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0435 \u043c\u0435\u0436\u0434\u0443 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u0435\u0439 \u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u0430\u043a. \u0423 \u043d\u0430\u0441 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0435\u0441\u0442\u044c \u0435\u0434\u0438\u043d\u044b\u0439 \u0441\u043a\u043e\u0440 <img decoding=\"async\" class=\"formula inline\" source=\"Xw\" alt=\"Xw\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cae\/286\/023\/cae286023f91980f12c70dc4b8d282ea.svg\">, \u043d\u043e \u043c\u044b \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u044d\u0442\u043e\u0442 \u0441\u043a\u043e\u0440, \u0442\u0435\u043c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0431\u044b\u043b\u0438 \u0431\u044b &#171;\u0432\u044b\u0441\u043e\u043a\u0438\u0435&#187; \u043a\u043b\u0430\u0441\u0441\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u0447\u0442\u043e \u043a \u044d\u0442\u043e\u043c\u0443 \u0441\u043a\u043e\u0440\u0443 \u0441\u043d\u043e\u0432\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"\\varepsilon\" alt=\"\\varepsilon\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/80f\/5d0\/e09\/80f5d0e09e6e70dede3cee2db253f4c1.svg\">, \u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0432 \u043a\u0430\u043a\u043e\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0441\u0443\u043c\u043c\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"Xw+\\varepsilon\" alt=\"Xw+\\varepsilon\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f23\/833\/3df\/f238333dffb599ee4dedf7db701c4382.svg\">, \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441.<\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/eb2\/a27\/a62\/eb2a27a621e6f881153d4a3d0837f1a6.PNG\" alt=\"\" title=\"\" width=\"793\" height=\"569\"><figcaption><\/figcaption><\/figure>\n<p> \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b <img decoding=\"async\" class=\"formula inline\" source=\"w\" alt=\"w\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8c5\/9d4\/02a\/8c59d402a9dfb3636e6eeccc19f27409.svg\">\u0438 \u0435\u0449\u0451 \u043f\u043e\u0440\u043e\u0433\u0438 <img decoding=\"async\" class=\"formula inline\" source=\"\u0441_1,...,c_4\" alt=\"\u0441_1,...,c_4\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3d6\/7d7\/7b5\/3d67d77b5e36e7aab347e95f884c85c7.svg\">, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 <img decoding=\"async\" class=\"formula inline\" source=\"y\" alt=\"y\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/898\/24d\/0af\/89824d0af661b464e5fc702b4d530803.svg\">. \u0417\u0430\u0434\u0430\u0432 \u043c\u043e\u0434\u0435\u043b\u0438 \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u043c\u044b, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u0438 \u0447\u0438\u0441\u043b\u043e \u043e\u0431\u0443\u0447\u0430\u0435\u043c\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 (\u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u043a\u043b\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439), \u0438 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043f\u0440\u0438\u0434\u0430\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 inductive bias: \u043e\u0446\u0435\u043d\u043a\u0430 &#171;4&#187; \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u043e\u0446\u0435\u043d\u043a\u0438 &#171;3&#187; \u0438 &#171;5&#187;, \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 &#171;2&#187;, \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 &#171;1&#187;, \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0442\u0430\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Ordered Probit. Ordered \u2013 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u0430\u044f. Probit \u2013 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 CDF \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0421\u043b\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043a\u043e\u0440\u044b <img decoding=\"async\" class=\"formula inline\" source=\"X\\beta\" alt=\"X\\beta\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6b7\/2f8\/714\/6b72f8714815d1d71c4b05e7762f8884.svg\">\u0432 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438, \u043c\u043e\u0433 \u0431\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0432\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 PyTorch \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a. \u0412\u0435\u043a\u0442\u043e\u0440 <code>cutpoints<\/code> \u2013 \u044d\u0442\u043e \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u043f\u043e\u0440\u043e\u0433\u0438. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0434\u0442\u0438 \u0441\u0442\u0440\u043e\u0433\u043e \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e, \u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0437\u043e\u0432\u0430\u043b \u044d\u0442\u043e\u0442 \u0432\u0435\u043a\u0442\u043e\u0440: <code>bias<\/code>\u2013 \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0440\u043e\u0433, <code>log_difs<\/code> \u2013 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u044b (\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439) \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u043f\u0430\u0440\u0430\u043c\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0440\u043e\u0433\u043e\u0432. \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b \u043c\u0435\u0436\u0434\u0443 i-\u0442\u044b\u043c \u0438 i+1-\u044b\u043c \u043f\u043e\u0440\u043e\u0433\u0430\u043c\u0438 \u0440\u0430\u0432\u043d\u0430 \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u0438 CDF \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u044d\u0442\u0438\u0445 \u043f\u043e\u0440\u043e\u0433\u0430\u0445. <\/p>\n<pre><code class=\"python\">import torch import torch.nn as nn   class OrderedProbitHead(nn.Module):     \"\"\" A layer transforming a vector of hidden states into a matrix of probabilities.     Input size: [batch, 1]     Output size: [batch, levels]     \"\"\"     def __init__(self, levels):         super(OrderedProbitHead, self).__init__()         assert levels &gt;= 3         self.levels = levels         self.bias = nn.Parameter(torch.randn(1))         self.log_difs = nn.Parameter(torch.randn(levels - 2))         self.activation = torch.distributions.normal.Normal(0, 1).cdf      @property     def cutpoints(self):         diffs = torch.cat([torch.tensor([0]), torch.exp(self.log_difs)], 0)         return self.bias + torch.cumsum(diffs, 0)          def forward(self, x):         cdfs = self.activation(self.cutpoints - x)           lhs = torch.cat([cdfs, torch.ones_like(x)], 1)         rhs = torch.cat([torch.zeros_like(x), cdfs], 1)         return lhs - rhs<\/code><\/pre>\n<p>\u0418\u043c\u0435\u044f \u0442\u0430\u043a\u043e\u0439 \u0441\u043b\u043e\u0439, \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0443\u0436\u0435 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0443 \u0434\u043b\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u043e\u0439 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"python\">class OrderedProbitModel(nn.Module):     \"\"\" A model transforming a vector of features into a matrix of probabilities     Input size: [batch, features]     Output size: [batch, levels]     \"\"\"     def __init__(self, features, levels, smoothing=1e-10):         super(OrderedProbitModel, self).__init__()         self.dense = nn.Linear(features, 1, bias=False)         self.head = OrderedProbitHead(levels)         self.smoothing = smoothing      def forward(self, x):         probas = self.head(self.dense(x))         if self.smoothing:             probas = (1 - self.smoothing) * probas + self.smoothing * torch.ones_like(probas) \/ self.levels         return probas<\/code><\/pre>\n<p>\u0427\u0438\u0441\u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, CDF \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u0433\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0441\u0442\u0440\u043e\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0437\u0430 \u0441\u0447\u0451\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0439 \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043d\u0443\u043b\u0438. \u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u0440\u0442\u0438\u043b\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435, \u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043a\u043e \u0432\u0441\u0435\u043c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044f\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>smoothing<\/code>.<\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0431\u0443\u0447\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 \u0436\u0438\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u042d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u043e\u0433\u043e Federal Open Market Committee \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043d\u043e\u0439 \u0441\u0442\u0430\u0432\u043a\u0438 \u0437\u0430 20 \u043b\u0435\u0442. \u0425\u043e\u0442\u0438\u043c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 <code>rate_change<\/code> , \u043e\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u0441\u0435\u0434\u0430\u043d\u0438\u044f <code>pb<\/code> \u0440\u0430\u0437\u0440\u044b\u0432 \u043c\u0435\u0436\u0434\u0443 \u043f\u0430\u0440\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043d\u044b\u0445 \u0441\u0442\u0430\u0432\u043e\u043a <code>spread<\/code> \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0436\u0438\u043b\u0438\u0449\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 <code>houst<\/code>\u0438 \u0442\u0435\u043c\u043f \u043f\u0440\u0438\u0440\u043e\u0441\u0442\u0430 \u0412\u0412\u041f <code>gdp<\/code>. \u0426\u0435\u043b\u0435\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043a\u043e\u0434\u0438\u0440\u0443\u0435\u043c \u0432 \u0448\u043a\u0430\u043b\u0443 \u043e\u0442 1 \u0434\u043e 5, \u0433\u0434\u0435 1 \u0438 2 \u2013 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430 0.5% \u0438\u043b\u0438 0.25%, 3 \u2013 \u0441\u0442\u0430\u0432\u043a\u0430 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, 4 \u0438 5 \u2013 \u0441\u0442\u0430\u0432\u043a\u0430 \u0440\u0430\u0441\u0442\u0451\u0442 \u043d\u0430 0.25% \u0438\u043b\u0438 0.5%.<\/p>\n<pre><code class=\"python\">import pandas as pd  url = 'https:\/\/github.com\/avidale\/cnop\/blob\/master\/application\/rate_change.dta?raw=true' data = pd.read_stata(url) data['target'] = data.rate_change.apply(lambda x: int(x * 4 + 2)) print(data.shape) x = torch.tensor(data[['pb','spread','houst','gdp']].values) y = torch.tensor(data.target) data.sample(5)<\/code><\/pre>\n<p>\u0412\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/916\/137\/a07\/916137a07be4321360814923027de674.PNG\" width=\"382\" height=\"181\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 PyTorch, \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438 \u043c\u043e\u0434\u0435\u043b\u044c, \u0438 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0430\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435, \u044f \u043f\u043e\u043b\u043e\u0436\u0443 \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043e\u0434\u0438\u043d \u0431\u0430\u0442\u0447, \u0438 \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u0438\u0439 learning rate. \u041d\u0430 300 \u0448\u0430\u0433\u043e\u0432 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0443\u0445\u043e\u0434\u0438\u0442 \u043e\u043a\u043e\u043b\u043e 6 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<pre><code class=\"python\">from tqdm.auto import tqdm, trange  def train(model, x, y, steps=300, lr=0.1, max_norm=1.0, wd=1e-6):     loss_fn = nn.CrossEntropyLoss()     optimizer = torch.optim.Adam(model.parameters(), lr=lr, weight_decay=wd)     pbar = trange(steps)     for i in pbar:         optimizer.zero_grad()         proba = model(x)         loss = loss_fn(torch.log(proba), y)         loss.backward()         nn.utils.clip_grad_norm_(op.parameters(), max_norm)         pbar.set_description(f\"Loss: {loss.item():2.10f}\")         optimizer.step()          op = OrderedProbitModel(features=4, levels=5) train(op, x, y) # Loss: 0.7598916888  print(op.dense.weight.data) # tensor([[0.9262, 1.5742, 1.3730, 0.2391]]) print(op.head.cutpoints.data) # tensor([0.4655, 1.8380, 4.8357, 6.3309])<\/code><\/pre>\n<p><a class=\"anchor\" name=\"cross-nested\" id=\"cross-nested\"><\/a><\/p>\n<h3>Cross-nested<\/h3>\n<p>\u041c\u043e\u0434\u0435\u043b\u044c Ordered Probit \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438 \u0440\u043e\u0431\u0430\u0441\u0442\u043d\u0430\u044f, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0433\u0438\u0431\u043a\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0438\u0442\u0435\u0442\u0430. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u044d\u0442\u0430\u043f\u043d\u043e. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043c\u0438\u0442\u0435\u0442 \u0440\u0435\u0448\u0430\u0435\u0442 \u0432\u0435\u0440\u0445\u043d\u0435\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e: \u043f\u043e\u043d\u0438\u0436\u0430\u0442\u044c \u043b\u0438 \u0441\u0442\u0430\u0432\u043a\u0443, \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0435\u0436\u043d\u0435\u0439, \u0438\u043b\u0438 \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0438\u043b\u0438 \u043f\u043e\u043d\u0438\u0437\u0438\u0442\u044c, \u0442\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u044e\u0442, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e. \u041f\u043e\u0445\u043e\u0436\u0438\u043c \u043c\u043e\u0433 \u0431\u044b \u0431\u044b\u0442\u044c \u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0430\u043d\u0430\u043b\u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u0430 \u043e\u0442\u0437\u044b\u0432\u0430: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043e\u0431\u0449\u0443\u044e \u0442\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c (\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f, \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043b\u0438 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u0430\u044f), \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430 \u0442\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0430 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 (nested) \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438: \u043e\u0434\u0438\u043d ordered probit \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0435\u0440\u0445\u043d\u0435\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u043e\u0443\u0442\u043e\u0447\u043d\u044f\u0435\u0442 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0442\u0440\u0435\u0442\u0438\u0439 \u2013 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435. <\/p>\n<p>\u0412\u0438\u0448\u0435\u043d\u043a\u043e\u0439 \u043d\u0430 \u0442\u043e\u0440\u0442\u0438\u043a\u0435 \u0431\u0443\u0434\u0443\u0442 &#171;\u0440\u0430\u0437\u043d\u043e\u0440\u043e\u0434\u043d\u044b\u0435 \u043d\u0443\u043b\u0438&#187;. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0438\u0442\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e (\u0438\u043b\u0438, \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e), \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u0432 \u0438\u0442\u043e\u0433\u0435 \u043d\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0430\u0432\u043a\u0443. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e &#171;\u043d\u0443\u043b\u0435\u0432\u043e\u0435&#187; \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u0440\u0435\u0436\u0438\u043c\u0430\u0445 \u2013 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c, \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0438 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u043c. \u0422\u0430\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f cross-nested.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f06\/e12\/9ef\/f06e129ef594b8c06d228ec0ac7d18a0.PNG\" width=\"776\" height=\"575\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0430\u044f \u0434\u0432\u0443\u0445\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0435\u0449\u0451 \u043d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u043e\u0442\u0434\u0430\u043b\u044f\u0435\u0442 \u043d\u0430\u0441 \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u0438 \u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0430\u0435\u0442 \u043a \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u0412 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u0438 \u0438\u043b\u0438 Ordered Probit \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0443\u0447\u0438\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0432\u0435\u043a\u0442\u043e\u0440 <img decoding=\"async\" class=\"formula inline\" source=\"w\" alt=\"w\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ba8\/514\/746\/ba85147462b5355859160dfea4156ed6.svg\">, \u0432 \u043c\u043d\u043e\u0433\u043e\u043a\u043b\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u043b\u043e\u0433\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u0438 \u2013 \u043f\u044f\u0442\u044c \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432, \u0432 CNOP \u2013 \u0442\u0440\u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u0430. \u041e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0445\u043e\u0436\u0438 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430, \u0430 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u2013 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043c\u043e\u0433\u0443\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445. <\/p>\n<p>\u0417\u0430\u043a\u043e\u0434\u0438\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a. Dense \u0441\u043b\u043e\u0439 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0442\u0440\u0438 \u0441\u043a\u043e\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u0432 \u0442\u0440\u0438 Ordered Probit \u0433\u043e\u043b\u043e\u0432\u044b, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u0443 \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<pre><code class=\"python\">class CrossNestedOrderedProbitModel(nn.Module):     \"\"\" A model transforming a vector of features into a matrix of probabilities.     The model uses a neutral category (center),      negative categories (from 0 to center -1),     and positive categories (from center + 1 to levels - 1).     For each group of categories, parameters are different.     Input size: [batch, features]     Output size: [batch, levels]     \"\"\"     def __init__(self, features, levels, center, smoothing=1e-10):         super(CrossNestedOrderedProbitModel, self).__init__()         self.features = features         self.levels = levels         self.center = center         self.smoothing = smoothing         self.dense = nn.Linear(features, 3, bias=False)         self.head_zero = OrderedProbitHead(3)         self.head_neg = OrderedProbitHead(center + 1)         self.head_pos = OrderedProbitHead(levels - center)      def forward(self, x, y=None):         dense = self.dense(x)         nzp = self.head_zero(dense[:, [0]])         negative = self.head_neg(dense[:, [1]])         positive = self.head_pos(dense[:, [2]])         probas = torch.zeros([x.shape[0], self.levels])         probas[:, self.center] += nzp[:, 1]         probas[:, :(self.center+1)] += nzp[:, [0]] * negative         probas[:, self.center:] += nzp[:, [2]] * positive         if self.smoothing:             probas = (1-self.smoothing) * probas + self.smoothing * torch.ones_like(probas) \/ self.levels         return probas      cnop = CrossNestedOrderedProbitModel(features=4, levels=5, center=2) train(cnop, x, y, lr=0.1, steps=10000) # Loss: 0.6336604357<\/code><\/pre>\n<p>\u0412\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0434\u043b\u044f PyTorch \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0432\u0447\u0435\u0440\u0430 \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0430. \u041a\u043e\u0434 \u0434\u043b\u044f Stata \u044f \u043d\u0435 \u043c\u043e\u0433 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0432 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442. \u0418 \u0441\u0442\u044b\u0434\u043d\u043e, \u0438 \u0441\u043c\u0435\u0448\u043d\u043e.<\/p>\n<p><a class=\"anchor\" name=\"pvalues\" id=\"pvalues\"><\/a><\/p>\n<h3>P-values \u0438 \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0430\u044f<\/h3>\n<p>\u0412 \u0433\u043e\u043b\u043e\u0432\u0430\u0445 \u043c\u043d\u043e\u0433\u0438\u0445 (\u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0441\u0442\u043e\u0432, \u0438 ML\u0449\u0438\u043a\u043e\u0432) \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0433\u0434\u0435-\u0442\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430. \u0412 ML \u043c\u043e\u0434\u0435\u043b\u0438 (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438) \u0441\u043b\u043e\u0436\u043d\u044e\u0447\u0438\u0435 \u0438 \u043d\u0435\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0435, \u0430 \u0432 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435 \u0441\u0443\u043f\u0435\u0440 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0435, \u0438 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0449\u0443\u043f\u044b\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0442\u0435\u0441\u0442\u0430\u043c\u0438.<\/p>\n<p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435. CrossEntropyLoss, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432\u0441\u0435 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438-\u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u2013 \u044d\u0442\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u0438\u0437 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u0438\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u043c\u0438\u043d\u0443\u0441. \u0410 \u0437\u043d\u0430\u0447\u0438\u0442, \u0432\u0435\u0441\u0430 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438 \u2013 \u044d\u0442\u043e \u043e\u0446\u0435\u043d\u043a\u0438 \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, \u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0442 \u043a\u0443\u0447\u0435\u0439 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432. \u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0432\u044b\u0431\u043e\u0440\u043a\u0430\u0445 \u0438\u0445 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u043c\u0443 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441 \u043a\u043e\u0432\u0430\u0440\u0438\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u0435\u0439, \u0440\u0430\u0432\u043d\u043e\u0439 \u043c\u0438\u043d\u0443\u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u0435 \u0432\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e\u0442\u0435\u0440\u044c. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0435\u0441\u043e\u0432 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438, \u0430 \u0441 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u2013 \u0434\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u044c. \u0418 \u0435\u0441\u043b\u0438 \u0432 \u0441\u0442\u0430\u0440\u043e\u043c\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u0430\u0445 \u0442\u0438\u043f\u0430 Stata \u0432\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 \u043d\u0430\u0434\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438 (\u0438\u043b\u0438 \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b), \u0442\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0442\u0438\u043f\u0430 PyTorch \u0443\u043c\u0435\u044e\u0442 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u043e. \u0414\u0430\u0436\u0435 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0435\u0439\u0440\u043e\u043d\u043a\u0438:<\/p>\n<ol>\n<li>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 (\u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442) \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e\u0442\u0435\u0440\u044c \u043f\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u0441\u044f \u0446\u0438\u043a\u043b\u043e\u043c \u043f\u043e \u0432\u0441\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430, \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0440\u0443\u0435\u043c \u0438\u0445 \u0435\u0449\u0451 \u0440\u0430\u0437, \u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0432 \u043c\u0430\u0442\u0440\u0438\u0446\u0443;<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0449\u0451 \u0440\u0430\u0437 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c, \u0438 \u0434\u043e\u0441\u0442\u0430\u0451\u043c \u0441 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u041a\u043e\u0434<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">def get_standard_errors(model, loss):     all_params = torch.cat([p.view(-1) for p in model.parameters()])     hessian = torch.empty(all_params.shape * 2)      first_order_grads = torch.autograd.grad(loss, model.parameters(), retain_graph=True, create_graph=True)      c = 0     for i, (name, param) in enumerate(model.named_parameters()):         v = param.view(-1)         g = first_order_grads[i].view(-1)         var = torch.empty_like(v)         for j, gg in enumerate(g):             hh = torch.autograd.grad(gg, model.parameters(), retain_graph=True)             hessian[c] = torch.cat([p.view(-1) for p in hh])             c += 1      standard_deviations = torch.diag(torch.inverse(hessian)) ** 0.5      result = []     start = 0     for i, (name, param) in enumerate(model.named_parameters()):         v = param.view(-1)         n = v.shape[0]         ss = standard_deviations[start:start+n].view(param.shape)         result.append(ss)         start += n     return result <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u0434\u043b\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0434\u0435\u043b\u0438, \u043f\u0440\u044f\u043c\u043e \u043a\u0430\u043a \u0432 \u0432\u0430\u0448\u0435\u043c \u043b\u044e\u0431\u0438\u043c\u043e\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u0435:<\/p>\n<pre><code class=\"python\">from scipy.stats import norm  def report(model, loss):     result = []     names = []     se = get_standard_errors(model, loss)     for i, (name, param) in enumerate(model.named_parameters()):         shape = param.squeeze().shape         v = param.view(-1).detach().numpy()         s = se[i].view(-1).detach().numpy()         for j, (vv, ss) in enumerate(zip(v, s)):             t = np.abs(vv \/ ss)             result.append({                 'value': vv,                 'std': ss,                 't': t,                 'p-value': norm.cdf(-t) * 2,                 '[2.5%': vv-ss*1.96,                 '97.5%]': vv+ss*1.96,             })             if len(v) &gt; 1:                 names.append(f'{name}{list(np.unravel_index(j, shape))}')             else:                 names.append(name)     return pd.DataFrame(result, index=names)  likelihood = nn.CrossEntropyLoss(reduction='sum') report(op, likelihood(torch.log(op(x)), y)).round(4)<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/07a\/cf0\/4ae\/07acf04ae908b44b561bafed8e236e0f.PNG\" width=\"542\" height=\"301\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 Ordered Probit \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b \u043f\u0440\u0438 \u0432\u0441\u0435\u0445 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430\u0445 \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0435, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0440\u043e\u0441\u0442\u0430 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0441\u0442\u0430\u0432\u043a\u0438.<\/p>\n<p>\u041f\u043e\u0434\u043e\u0431\u043d\u044b\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b, \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c, \u0430 \u043f\u043e \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c.<\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043a\u0438 \u043e\u0442\u043d\u044e\u0434\u044c \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u043c\u0438 \u0441\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438. \u041f\u0440\u043e\u0441\u0442\u043e \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c. <\/p>\n<p><a class=\"anchor\" name=\"learnings\" id=\"learnings\"><img class=\"formula inline\"><img class=\"formula inline\"><img class=\"formula inline\"><\/a><\/p>\n<h2>\u041e \u0436\u0438\u0437\u043d\u0438<\/h2>\n<p>\u0417\u0430 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u044f \u043f\u043e\u0437\u043d\u0430\u043b \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0439 \u0438 \u043c\u043d\u043e\u0433\u043e \u0441\u0445\u043e\u0434\u0441\u0442\u0432:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0432 \u0442\u044b\u0441\u044f\u0447\u0438 \u0441\u0442\u0440\u043e\u043a \u0433\u043e\u0432\u043d\u043e\u043a\u043e\u0434\u0430, \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442 \u043e\u0442 \u043d\u0435\u0433\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 (\u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u2013 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e\u043c \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0432\u043d\u044f\u0442\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439).<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0432 \u0441 \u0447\u0443\u0434\u043e\u0432\u0438\u0449\u043d\u044b\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c Stata+Mata, \u044f \u0432\u0441\u0435\u0439 \u0434\u0443\u0448\u043e\u0439 \u043f\u043e\u043b\u044e\u0431\u0438\u043b \u0443\u0434\u043e\u0431\u043d\u044b\u0435, \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u0438\u0442\u043e\u043d\u044f\u0447\u044c\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u043b\u0433\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u044f\u0441\u044c \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u043e\u0439, \u0438 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u043c \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435\u043c, \u044f \u0443\u043a\u0440\u0435\u043f\u0438\u043b\u0441\u044f \u0432 \u043c\u044b\u0441\u043b\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0443\u0442\u044c \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435.<\/p>\n<\/li>\n<li>\n<p>\u042f \u043f\u0440\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b, \u0447\u0442\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0447\u0430\u0441\u0442\u044c\u044e \u043a\u0440\u0443\u043f\u043d\u043e\u0433\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u2013 \u0432\u0435\u0441\u044c\u043c\u0430 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>\u042f \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b, \u0447\u0442\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0438\u043a\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u2013 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0443\u043d\u044b\u043b\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u0436\u0435 \u0438\u0437 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 \u043f\u043e\u0441\u0442 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u043e\u0442 \u043c\u043e\u0439 <a href=\"https:\/\/github.com\/avidale\/cnop\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a>, \u0432\u043e\u0442 <a href=\"https:\/\/github.com\/avidale\/cnop\/blob\/master\/cnop_torch.ipynb\" rel=\"noopener noreferrer nofollow\">\u0431\u043b\u043e\u043a\u043d\u043e\u0442 <\/a>\u0441 \u043a\u043e\u0434\u043e\u043c \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435, \u0432\u043e\u0442 <a href=\"https:\/\/www.hse.ru\/data\/2018\/05\/30\/1149326878\/193EC2018.pdf\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044f<\/a>. <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e\u0431 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435, \u043c\u0430\u0448\u0438\u043d\u043a\u0435, \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0435 \u0438 \u0441\u043c\u044b\u0441\u043b\u0438 \u0436\u0438\u0437\u043d\u0438, \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u043c\u043d\u0435 \u0432 \u043b\u0438\u0447\u043a\u0443. <\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<\/div>\n<p> \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\/548100\/\"> https:\/\/habr.com\/ru\/post\/548100\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u0434\u0430\u043b\u0451\u043a\u043e\u043c 2014 \u044f \u0435\u0449\u0451 \u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0441\u0442\u0430, \u043d\u043e \u0443\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0447\u0442\u0430\u043b \u0443\u0439\u0442\u0438 \u0432 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445. \u0418 \u043a\u043e\u0433\u0434\u0430 \u043c\u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430, \u044f \u0431\u044b\u043b \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432. \u041f\u0440\u043e\u0435\u043a\u0442 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f \u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043b\u044f \u043f\u0430\u043a\u0435\u0442\u0430 Stata. \u0421\u0442\u0430\u0442\u0443 \u044f \u0441 \u0442\u0435\u0445 \u043f\u043e\u0440 \u043b\u044e\u0442\u043e \u0432\u043e\u0437\u043d\u0435\u043d\u0430\u0432\u0438\u0434\u0435\u043b, \u043d\u043e \u0441\u0430\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0443\u0447\u0438\u043b \u043c\u0435\u043d\u044f \u043c\u043d\u043e\u0433\u043e\u043c\u0443. <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e Cross-Nested Ordered Probit, \u0437\u0430\u0431\u0430\u0432\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0445 \u0432\u0435\u043b\u0438\u0447\u0438\u043d, \u043f\u043e\u043a\u0430\u0436\u0443 \u0435\u0451 \u043a\u043e\u0434 \u043d\u0430 PyTorch, \u0438 \u043f\u043e\u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0430\u044e \u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f\u0445 \u0438 \u0441\u0445\u043e\u0434\u0441\u0442\u0432\u0430\u0445 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0438.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043e\u0431 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435 \u0432 \u0446\u0435\u043b\u043e\u043c, \u043f\u043e\u0432\u0435\u0441\u0442\u0432\u0443\u044e \u043e \u0442\u043e\u0440\u043c\u043e\u0437\u043d\u043e\u043c \u0445\u043e\u0434\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0434\u0435\u043b\u0438 CNOP, \u0438 \u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u044b \u0438\u0437 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u0432\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u043e\u0434\u0435\u043b\u044c, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043a \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0441\u0435\u043a\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u0436\u0435, \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0432\u0430\u0441 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0438 \u043a\u043e\u0434, \u0441\u043c\u0435\u043b\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0439\u0442\u0435 \u044d\u0442\u0443 \u0441\u0435\u043a\u0446\u0438\u044e.<\/p>\n<ol>\n<li>\n<p><a href=\"#econometrics\" rel=\"noopener noreferrer nofollow\">\u041e\u0431 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#project\" rel=\"noopener noreferrer nofollow\">\u041e \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#model\" rel=\"noopener noreferrer nofollow\">\u041e \u043c\u043e\u0434\u0435\u043b\u0438 <\/a><\/p>\n<ol>\n<li>\n<p><a href=\"#oprobit\" rel=\"noopener noreferrer nofollow\">Ordered Probit<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#cross-nested\" rel=\"noopener noreferrer nofollow\">Cross-Nested<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#pvalues\" rel=\"noopener noreferrer nofollow\">P-values \u0438 \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0430\u044f<\/a><\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p><a href=\"#learnings\" rel=\"noopener noreferrer nofollow\">\u041e \u0436\u0438\u0437\u043d\u0438<\/a><\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0440\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u044f \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0435\u0451 \u043a\u043e\u0434 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u044f\u0447\u044c\u0435\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 PyTorch. \u0415\u0441\u043b\u0438 \u0432\u044b \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0441\u0442 \u0438 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 Stata, \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0430\u043c, \u0447\u0442\u043e Python \u0442\u043e\u0436\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u0439. \u0415\u0441\u043b\u0438 \u0432\u044b ML\u0449\u0438\u043a \u0438 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u043a PyTorch, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u0430\u043c \u043f\u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0440\u044e\u043a\u043e\u0432.<\/p>\n<\/p>\n<p><a class=\"anchor\" name=\"econometrics\" id=\"econometrics\"><\/a><\/p>\n<h2>\u041e\u0431 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435<\/h2>\n<p>\u042d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u2013 \u044d\u0442\u043e \u043d\u0430\u0443\u043a\u0430 \u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c. \u0412 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 XX \u0432\u0435\u043a\u0430 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043a\u0430\u043a \u043d\u0430\u0443\u043a\u0430: \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u0438, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0433\u0438\u043f\u043e\u0442\u0435\u0437, \u043c\u0435\u0442\u043e\u0434 \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, \u0432\u0441\u0451 \u0432\u043e\u0442 \u044d\u0442\u043e \u0432\u043e\u0442. \u0413\u0434\u0435-\u0442\u043e \u0432 30-\u0445 \u0433\u043e\u0434\u0430\u0445 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0441\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u0430\u0436\u043d\u044b\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0442\u0438\u043f\u0430 &#171;\u043d\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0446\u0435\u043d\u0442\u043e\u0432 \u0440\u0430\u0441\u0442\u0451\u0442 \u0412\u0412\u041f \u0441\u0442\u0440\u0430\u043d\u044b \u043f\u0440\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0438 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043d\u0430 \u043e\u0434\u0438\u043d \u0434\u043e\u043b\u043b\u0430\u0440?&#187; \u0438\u043b\u0438 &#171;\u0432\u043b\u0438\u044f\u0435\u0442 \u043b\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u0430\u043d\u043a\u0430 \u043d\u0430 \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0439 \u0432 \u0441\u0442\u0440\u0430\u043d\u0435?&#187;. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0435 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u0438 \u0441 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438, \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b\u0438 \u043a \u0438\u0445 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u0435\u0441\u0442\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0435. \u0417\u0430 \u043f\u043e\u0447\u0442\u0438 \u0441\u0442\u043e\u043b\u0435\u0442\u0438\u0435 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0432\u044b\u0440\u043e\u0441\u043b\u0438, \u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u0440\u0443\u0442\u044b\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0441\u0442\u044b \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044e\u0442 \u0438\u043c\u0438 \u0441\u0432\u043e\u0438 \u0442\u0435\u043e\u0440\u0438\u0438. \u0418\u043d\u043e\u0433\u0434\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u2013 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0442\u043e\u043c \u0436\u0435 \u0426\u0411.<\/p>\n<p>\u041c\u0430\u0448\u0438\u043d\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u0436\u0435 \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u0438\u0437 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043d\u043e \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u2013 \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0432 50-\u0445 \u0433\u043e\u0434\u0430\u0445 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u044b \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b. \u0421\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0432 \u0441 \u0442\u043e\u0439 \u0436\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0447\u0442\u043e \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430, ML \u043f\u043e\u0448\u043b\u043e \u043f\u043e \u0438\u043d\u043e\u043c\u0443 \u043f\u0443\u0442\u0438. \u042d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u0437\u0430\u0431\u043e\u0442\u0438\u0442\u0441\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u044b \u043e \u043c\u0438\u0440\u0435 \u0438\u0437 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0434\u0435\u043b\u0438, \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u044f\u044f \u0438\u0445 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u0432\u0434\u0443\u043c\u0447\u0438\u0432\u044b\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u041c\u0430\u0448\u0438\u043d\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u0433\u043c\u0430\u0442\u0438\u0447\u043d\u043e, \u0442\u0430\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c &#8212; \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0431\u044b\u043b \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043b\u0438\u0436\u0435 \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f &#171;\u0432 \u043b\u043e\u0431&#187; \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0435, \u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u044b \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u044b\u043c\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0441\u0442 \u0438 ML\u0449\u0438\u043a \u043c\u043e\u0433\u0443\u0442 \u043e\u0431\u0443\u0447\u0438\u0442\u044c \u0434\u0432\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0441 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0439 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439, \u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b.<\/p>\n<p><a class=\"anchor\" name=\"project\" id=\"project\"><\/a><\/p>\n<h2>\u041e \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/h2>\n<p><strong>\u0424\u0430\u0437\u0430 \u043f\u0435\u0440\u0432\u0430\u044f: \u0432\u0437\u0440\u044b\u0432 \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0437\u043c\u0430.<\/strong> \u041f\u0440\u043e\u0435\u043a\u0442 \u043c\u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0410\u043d\u0434\u0440\u0435\u0439, \u043a\u0440\u0443\u0442\u043e\u0439 \u043f\u0440\u0435\u043f\u043e\u0434-\u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0441\u0442. \u041c\u043e\u0434\u0435\u043b\u044c CNOP \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u043e\u043d \u0432 2013 \u0433\u043e\u0434\u0443 (<a href=\"https:\/\/www.nbp.pl\/publikacje\/materialy_i_studia\/148_en.pdf\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044f<\/a>), \u0438 \u043e\u043d \u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043a\u043e\u0434 \u0434\u043b\u044f \u043d\u0435\u0451 \u0438 \u043f\u0430\u0440\u044b \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u0432 \u0434\u043e\u043f\u043e\u0442\u043e\u043f\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443\u043b\u0438\u043d\u0435 Gauss. \u041c\u043e\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0430 Stata, \u0447\u0442\u043e\u0431\u044b \u0438\u043c \u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u0435 \u043b\u044e\u0434\u0438, \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044e \u0434\u043b\u044f Stata Journal. \u042f \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u0434\u0435\u043b\u043e \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0438 \u0434\u0435\u043d\u044c\u0433\u0438 \u0437\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u043b\u0438\u0441\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0435.<\/p>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Stata \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u0430\u0431\u0430\u0432\u043d\u043e. \u0415\u0451 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430 \u0438\u0434\u0435\u0435 low-code: \u043d\u0443\u0436\u043d\u043e \u0438\u043b\u0438 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0435 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0442\u0438\u043f\u0430  <code>regress y x1 x2<\/code>, \u0438\u043b\u0438 \u043d\u0430\u043a\u043b\u0438\u043a\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0436\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u043e\u043a\u043e\u043d. \u042d\u0442\u043e\u043c\u0443 \u043c\u044b \u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u043f\u0430\u0440\u0430\u0445 \u043f\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435. \u041d\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u044d\u0442\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Stata \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e: \u0442\u0430\u043c \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0446\u0438\u043a\u043b\u044b \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435, \u0430 \u0434\u043b\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u043c\u0438, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438, \u0438 \u0432\u0441\u0451 \u0442\u0430\u043a\u043e\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0421\u0442\u0430\u0442\u044b \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f  \u2013  Mata, \u0447\u0442\u043e-\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043c\u0435\u0436\u0434\u0443 C \u0438 Matlab. \u0418 \u0432\u043e\u0442 \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u041c\u0430\u0442\u0435 \u043e\u0441\u043e\u0431\u043e \u043d\u0435\u0442 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u2013 \u043d\u0438 \u043a\u043d\u0438\u0433, \u043d\u0438 \u0431\u043b\u043e\u0433\u043f\u043e\u0441\u0442\u043e\u0432, \u043d\u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043d\u0430 Stackoverflow, \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u043b\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0430\u043b. \u0418 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u043c\u0430\u043d\u0443\u0430\u043b \u044f \u0441\u0435\u043b \u043f\u043e\u0442\u0438\u0445\u043e\u043d\u044c\u043a\u0443 \u043e\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c. <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u043a \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u0438 \u044f \u0434\u0438\u043a\u043e \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442: \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u0438\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f, \u043c\u0430\u0433\u0438\u044f \u2013 \u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f. \u041d\u043e \u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c \u043e\u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0438 \u0431\u0430\u0436\u043d\u043e, Mata \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0441\u044b\u043f\u0430\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043d\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u041c\u0430\u0442\u0435, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043d\u0435\u0442, \u0438 \u0432\u0441\u0435 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b, \u0440\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0432\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0445, \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u2013 \u0438 \u044f \u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0441 \u043a\u0443\u0447\u0435\u0439 \u0442\u0443\u043f\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. \u0412 \u043c\u0430\u043d\u0443\u0430\u043b\u0435 \u0431\u044b\u043b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u044f\u0437\u044b\u043a\u0430 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043d\u043e \u044f \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b <em>\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/em>: \u043a\u0430\u043a \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434, \u043a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u044e\u043d\u0438\u0442-\u0442\u0435\u0441\u0442\u044b, \u043a\u0430\u043a \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043f\u043e \u0444\u0430\u0439\u043b\u0430\u043c, \u0447\u0442\u043e\u0431\u044b \u0438\u043c \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u0448\u0438\u0432\u0430\u0442\u044c \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b Stata \u0438 Mata. \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u043f\u0440\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0434\u0443\u043c\u0430\u043b. \u0410 \u044f \u0434\u0443\u043c\u0430\u043b \u0438 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u0443\u043d\u044b\u0432\u0430\u043b.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 \u0432\u0442\u043e\u0440\u0430\u044f: \u0438\u0437\u0431\u0435\u0433\u0430\u043d\u0438\u0435<\/strong>. \u041f\u0435\u0440\u0432\u044b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u044f \u0441\u0442\u0430\u0440\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c, \u0438\u0441\u043a\u0430\u043b \u043a\u043e\u0441\u0442\u044b\u043b\u0438 \u0434\u043b\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0445 \u0443 \u043c\u0435\u043d\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0438 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442 \u0431\u043b\u0438\u0437\u043a\u043e \u2013 \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u0442\u044c \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0433\u043e\u0432, \u0434\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0438\u0447, \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043a\u0443\u0447\u0443 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0433\u043e\u0442\u043e\u0432\u044b\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0441\u0442\u0430\u0442\u044c\u0438&#8230; \u041d\u043e \u043f\u043e\u0442\u043e\u043c \u043c\u0435\u043d\u044f \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u043b\u0430 \u0438\u043d\u0430\u044f \u0436\u0438\u0437\u043d\u044c: \u0434\u0438\u043f\u043b\u043e\u043c, \u0433\u043e\u0441\u044b, \u0432\u043e\u0435\u043d\u043a\u0430, \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0432 \u043c\u0430\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u0443\u0440\u0443 \u0438 \u0428\u0410\u0414, \u0441\u0442\u0430\u0436\u0438\u0440\u043e\u0432\u043a\u0430 \u0432 \u041f\u0438\u0442\u0435\u0440\u0435 \u2013 \u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0430 \u0437\u0430\u0434\u043d\u0435\u043c \u043f\u043b\u0430\u043d\u0435. \u0423 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0441 \u043a\u0435\u043c \u043f\u0440\u043e\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e \u043d\u0438\u0445, \u0438 \u044d\u0442\u043e \u0434\u0435\u043c\u043e\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043b\u043e. \u042f \u043f\u0440\u043e\u0434\u043e\u043b\u0431\u0430\u043b \u0441\u0440\u043e\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u043f\u043b\u0430\u0442\u0443, \u0438 \u044d\u0442\u043e \u043c\u0435\u043d\u044f \u0434\u0435\u043c\u043e\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043b\u043e \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435. \u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2013 \u043c\u043e\u043b, \u0432\u043e\u0437\u0438\u0441\u044c \u0441\u0430\u043c \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u0421\u0442\u0430\u0442\u043e\u0439 \u2013 \u043d\u043e \u044f \u043d\u0435 \u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043c\u043e\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u044d\u0442\u043e. \u042f \u043d\u0430\u0447\u0430\u043b \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u0430 \u043e\u0442 \u0410\u043d\u0434\u0440\u0435\u044f \u0438 \u043f\u0430\u043d\u0438\u043a\u043e\u0432\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d \u0437\u0432\u043e\u043d\u0438\u043b \u043c\u043d\u0435 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d. \u0418\u043d\u043e\u0433\u0434\u0430 \u044f \u043d\u0430\u0445\u043e\u0434\u0438\u043b \u0432\u0440\u0435\u043c\u044f \u0438 \u0441\u0430\u0434\u0438\u043b\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u043e\u043d \u0441\u043a\u043e\u0440\u0435\u0435 \u0441\u0442\u043e\u044f\u043b, \u0447\u0435\u043c \u0434\u0432\u0438\u0433\u0430\u043b\u0441\u044f. \u0418 \u0442\u0430\u043a \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u0440\u0451\u0431\u0430\u043d\u044b\u0445 \u043b\u0435\u0442.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 \u0442\u0440\u0435\u0442\u044c\u044f: \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0434\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u043d\u0438\u0435<\/strong>. \u042f \u043a\u043e\u0432\u044b\u0440\u044f\u043b \u0447\u0442\u043e-\u0442\u043e \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0432 2015 \u0433\u043e\u0434\u0443 &#8212; \u0438 \u0442\u043e\u0433\u0434\u0430 \u043e\u043d \u0431\u044b\u043b \u0443\u0436\u0435 \u043f\u043e\u0447\u0442\u0438 \u0433\u043e\u0434\u043e\u0432. \u0418 \u0432 2016. \u0412 2017 \u043c\u044b \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0441\u0435\u043b\u0438 \u0438 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 \u043c\u043e\u0434\u0435\u043b\u0435\u043a \u043d\u0430 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u2013 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 \u043a\u0443\u0447\u0443 \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041a 2018 \u0433\u043e\u0434\u0443 \u043c\u044b \u0438\u0445 \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u043b\u0438 \u0438 \u0442\u0430\u043a\u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u043b\u0438 <a href=\"https:\/\/www.hse.ru\/data\/2018\/05\/30\/1149326878\/193EC2018.pdf\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0435\u043f\u0440\u0438\u043d\u0442<\/a> \u0441\u0442\u0430\u0442\u044c\u0438. \u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u043d\u0430\u0443\u0447\u043d\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f, \u0438 \u044f \u043f\u043e \u0438\u0434\u0435\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0438\u0443\u043c\u0444, \u043d\u043e \u044f, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0435\u0433\u043e \u043d\u0435 \u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b. \u041f\u043e\u0442\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0440\u0435\u0432\u044c\u044e\u0435\u0440\u044b \u0438\u0437 Stata Journal \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0430\u0432\u043e\u043a, \u0438 \u043f\u0440\u0430\u0432\u043a\u0438 \u044d\u0442\u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u0434\u0435. \u042f \u043e\u0431\u0435\u0449\u0430\u043b \u0432\u043d\u0435\u0441\u0442\u0438 \u044d\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0438 \u043e\u0442\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043b \u0438\u0445 \u0434\u043e 2019 \u0433\u043e\u0434\u0430. \u0415\u0449\u0451 \u043e\u0434\u043d\u0430 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u0440\u0435\u0432\u044c\u044e \u0437\u0430\u0442\u044f\u043d\u0443\u043b\u0430\u0441\u044c \u0434\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u044b 2020. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043d\u043e\u043c\u0435\u0440\u0435 Stata Journal \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0432\u044b\u0439\u0442\u0438, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c Stata \u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0451 \u0443 \u0441\u0435\u0431\u044f, \u0442\u043e \u043a\u043e\u0434 \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/avidale\/cnop\" rel=\"noopener noreferrer nofollow\">\u0432 \u043c\u043e\u0451\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a>.<\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u044f \u0434\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u043b \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u0430\u043a \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u043e\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0441 \u043d\u0438\u043c \u0442\u043e\u0440\u043e\u043f\u0438\u0442\u044c\u0441\u044f. \u041f\u043e\u0447\u0435\u043c\u0443 \u044f \u0435\u0433\u043e \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0434\u043e\u0434\u0435\u043b\u0430\u043b? \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0430 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0432\u0435\u043a\u0438 \u043d\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d\u043d\u044b\u043c \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b\u0430 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u043e\u0436\u0434\u0451\u043d\u043d\u043e\u0435 \u0441\u0442\u0440\u0435\u043c\u043b\u0435\u043d\u0438\u0435 \u043a \u043f\u043e\u0440\u044f\u0434\u043a\u0443. \u0418 \u0432\u043e\u0442 \u0440\u0430\u0434\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0433\u043e \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u044f \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0447\u0430\u0441\u043e\u0432 \u0441\u0432\u043e\u0435\u0439 \u0436\u0438\u0437\u043d\u0438 \u043d\u0430 \u0442\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u0435\u0441\u0442\u044c \u043d\u0430 \u0437\u0430\u0434\u043d\u0438\u0446\u0443 \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c. \u0418 \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u2013 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u043e\u0439 \u0448\u0430\u0433 \u0432 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p><a class=\"anchor\" name=\"model\" id=\"model\"><\/a><\/p>\n<h2>\u041e \u043c\u043e\u0434\u0435\u043b\u0438<\/h2>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u044b\u0432\u0430\u043b\u0430\u0441\u044c Cross-Nested Ordered Probit, \u043f\u043e\u0442\u043e\u043c \u043c\u044b \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043b\u0438 \u0435\u0451 \u0432 Zero Inflated Ordered Probit. \u041f\u0435\u0440\u0432\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u044b\u043c, \u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434\u043e\u043c. \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043f\u043e\u043d\u044f\u0442\u0438\u044f Ordered.<\/p>\n<p><a class=\"anchor\" name=\"oprobit\" id=\"oprobit\"><\/a><\/p>\n<h3>Ordered Probit<\/h3>\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u0435\u0439\u0448\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u2013 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0442\u043e \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b. \u0418 \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f: \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b  \u0440\u0430\u0432\u0435\u043d, \u0433\u0434\u0435 &#8212; \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432,\u2013 \u0432\u0435\u043a\u0442\u043e\u0440 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u043a\u043b\u043e\u043d\u0430, \u2013 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0447\u043b\u0435\u043d. \u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0435\u0434\u043a\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u0438 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u0442\u043a\u0438 , \u0442\u043e \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0444\u0430\u043a\u0442\u043e\u043c \u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u043c, \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435. \u0412 \u044d\u043a\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u043a\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u0435\u043b\u0430\u044e\u0442 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u044d\u0442\u0438 \u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u044d\u0442\u0438 \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0438\u043c\u0435\u044e\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043c\u044b \u0440\u0435\u0448\u0430\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0443 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0443\u0433\u0430\u0434\u0430\u0442\u044c, \u043a\u0430\u043a\u043e\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 (\u0441\u0440\u0435\u0434\u043d\u0435\u0435, \u0432\u044b\u0441\u0448\u0435\u0435, \u0438\u043b\u0438 \u0443\u0447\u0451\u043d\u0430\u044f \u0441\u0442\u0435\u043f\u0435\u043d\u044c), \u0438\u043b\u0438 \u0445\u043e\u0442\u0438\u043c \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u043e\u0442\u0437\u044b\u0432\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a\u0430\u043a\u0443\u044e \u043e\u0446\u0435\u043d\u043a\u0443 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043a\u043b\u0438\u0435\u043d\u0442 \u0442\u043e\u0432\u0430\u0440\u0443 (\u043e\u0442 1 \u0434\u043e 5 \u0437\u0432\u0451\u0437\u0434\u043e\u0447\u0435\u043a), \u0438\u043b\u0438 \u043f\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c \u0432 \u0441\u0442\u0440\u0430\u043d\u0435 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0426\u0411 \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u043d\u0430 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0437\u0430\u0441\u0435\u0434\u0430\u043d\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u0441\u0442\u0430\u0432\u043a\u0443 (\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043f\u043e\u043d\u0438\u0437\u0438\u0442 \u043d\u0430 0.25% \u0438\u043b\u0438 \u043d\u0430 0.5%, \u0438\u043b\u0438 \u043f\u043e\u0432\u044b\u0441\u0438\u0442 \u043d\u0430 0.25% \u0438\u043b\u0438 0.5%). \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f \u0442\u0443\u0442 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0432 \u043d\u0435\u0439 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043d\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435, \u0430 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043a\u0430\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 (\u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043a\u0430\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439. \u041c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0430\u0442\u044c \u044d\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u043a\u0430\u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0441\u0445\u043e\u0434\u0430 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0421\u0430\u043c\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f, \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0440\u044f\u043c\u043e \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0439 (\u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043d\u0443\u0436\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0431\u044b\u043b\u0438 \u043d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438). \u042d\u0442\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0443\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b \u043d\u0430\u043a\u043b\u043e\u043d\u0430, \u0438 \u0435\u0441\u043b\u0438 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u043b\u043e, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0431\u043e\u0440\u043e\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438: \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0435 \u043c\u0435\u0436\u0434\u0443 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u0435\u0439 \u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u0430\u043a. \u0423 \u043d\u0430\u0441 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0435\u0441\u0442\u044c \u0435\u0434\u0438\u043d\u044b\u0439 \u0441\u043a\u043e\u0440 , \u043d\u043e \u043c\u044b \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u044d\u0442\u043e\u0442 \u0441\u043a\u043e\u0440, \u0442\u0435\u043c<\/p>\n<p><\/br><\/p>\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-320021","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/320021","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=320021"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/320021\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}