{"id":299092,"date":"2020-02-22T09:00:09","date_gmt":"2020-02-22T09:00:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=299092"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=299092","title":{"rendered":"\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c Data Sceince \u0432 \u043c\u0438\u0440\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0434\u043e\u043c\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/489486\/\">\n<blockquote><p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u0430\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0435, \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u0443\u043f\u0438\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0435, \u0430 \u0443 \u043d\u0430\u0441 \u0434\u0435\u043d\u0435\u0433 \u043d\u0435\u0442.<br \/>   \u2014 \u0422\u0440\u043e\u0435 \u0438\u0437 \u041f\u0440\u043e\u0441\u0442\u043e\u043a\u0432\u0430\u0448\u0438\u043d\u043e<\/p><\/blockquote>\n<p>  <\/p>\n<h1 id=\"vvedenie\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044f \u0436\u0438\u0432\u0443 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0435 (\u0438\u043b\u0438 \u043a\u043e\u043d\u0434\u043e \u043f\u043e-\u043c\u0435\u0441\u0442\u043d\u043e\u043c\u0443) \u0432 \u041c\u043e\u043d\u0440\u0435\u0430\u043b\u0435. \u0418 \u043e\u0434\u043d\u0430\u0436\u0434\u044b, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434 \u043c\u0435\u043d\u044f \u043f\u043e\u0441\u0435\u0442\u0438\u043b\u0430 \u043c\u044b\u0441\u043b\u044c \u0447\u0442\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e-\u0431\u044b \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043c. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u044b\u0442 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u0438 \u0436\u0438\u043b\u044c\u044f \u0443 \u043c\u0435\u043d\u044f \u0443\u0436\u0435 \u0431\u044b\u043b \u0438, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e-\u0431\u044b \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u043a \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u043f\u0440\u043e\u0441\u0442\u043e, \u043a\u0430\u043a \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043c\u0435\u0441\u0442\u043d\u044b\u0445 \u043e\u0431\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u0439: \u043d\u0430\u043d\u044f\u0442\u044c \u0440\u0438\u044d\u043b\u0442\u043e\u0440\u0430 \u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u043c\u0443 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u043d\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u043e-\u0431\u044b \u0441\u043a\u0443\u0447\u043d\u043e \u0438 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e. <\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u043a \u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u043b\u0443 \u043d\u0430\u0443\u0447\u043d\u043e: \u0435\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c, \u0438 \u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u043e \u0447\u0442\u043e \u044f \u043c\u043e\u0433\u0443 \u0441\u0435\u0431\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c. \u041d\u0443 \u0438 \u043f\u043e\u043f\u0443\u0442\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u2014 \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u0443\u0434\u0430 \u0434\u0443\u0435\u0442 \u0432\u0435\u0442\u0435\u0440. \u0418 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u043e-\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432 R.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0441\u0440\u0430\u0437\u0443 \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u043e\u043c ( single family house \u043f\u043e \u043c\u0435\u0441\u0442\u043d\u043e\u043c\u0443) \u044f \u043d\u0435 \u043f\u043e\u0442\u044f\u043d\u0443, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0443 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0432 \u0446\u0438\u0432\u0438\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0438 \u0443\u0434\u0430\u0440\u044f\u0442\u044c \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u044b\u043c \u0432\u0435\u043b\u043e\u043f\u0440\u043e\u0431\u0435\u0433\u043e\u043c \u043f\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u043e\u0442\u0435\u043f\u043b\u0435\u043d\u0438\u044e. \u0414\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0439 \u043c\u0435\u0441\u0442\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u043a\u0443\u043f\u0438\u0442\u044c \u0434\u0443\u043f\u043b\u0435\u043a\u0441 \u0438\u043b\u0438 \u0442\u0440\u0438\u043f\u043b\u0435\u043a\u0441, \u0442.\u0435 \u0434\u043e\u043c\u0430 \u0433\u0434\u0435 \u0434\u0432\u0435 \u0438\u043b\u0438 \u0442\u0440\u0438 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b: \u0432 \u043e\u0434\u043d\u043e\u0439 \u0436\u0438\u0432\u0435\u0448\u044c, \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u0432\u043e\u0434\u0438\u0448\u044c \u043a\u0440\u043e\u043b\u0438\u043a\u043e\u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0434\u0430\u044e\u0442\u0441\u044f \u0436\u0438\u043b\u044c\u0446\u0430\u043c. \u0422\u0443\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0449\u0451 \u043e\u0434\u043d\u0430 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430 \u2014 \u0434\u043e\u0445\u043e\u0434 \u043e\u0442 \u0430\u0440\u0435\u043d\u0434\u044b.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0433\u043e\u0440\u043e\u0434\u0430 \u0441 \u0446\u0435\u043d\u0430\u043c\u0438 \u0436\u0438\u043b\u044c\u044f \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0443, \u0446\u0435\u043d\u0430\u043c\u0438 \u043d\u0430 \u0430\u0440\u0435\u043d\u0434\u0443 \u043d\u0443 \u0438 \u0435\u0449\u0451 \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u0441\u0451 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c. <\/p>\n<p>  <\/p>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441\u044b \u0442\u0438\u043f\u0430 zillow, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u043e\u0439 \u0446\u0435\u043d\u044b \u0436\u0438\u043b\u044c\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u0438 \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438 \u0440\u0438\u044d\u043b\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0440\u0430\u043f\u043e\u0440\u0442\u0443\u044e\u0442 \u0447\u0442\u043e \u0446\u0435\u043d\u044b \u0438\u0434\u0443\u0442 \u0432\u0432\u0435\u0440\u0445, \u0430\u0436 \u0443\u0434\u0435\u0440\u0436\u0443 \u043d\u0435\u0442: <a href=\"https:\/\/apciq.ca\/en\/real-estate-market\/\" rel=\"nofollow\">https:\/\/apciq.ca\/en\/real-estate-market\/<\/a>. \u0426\u0435\u043d\u044b \u043d\u0430 \u0430\u0440\u0435\u043d\u0434\u0443 \u0442\u043e\u0436\u0435 \u043d\u0438\u043a\u0442\u043e \u043d\u0438\u0433\u0434\u0435 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043d\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0434\u043e\u0441\u043a\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439, \u043d\u043e \u044d\u0442\u043e \u0437\u0430\u043d\u044f\u0442\u0438\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043a\u0443\u0447\u043d\u043e\u0435.<\/p>\n<p>  <\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u044f \u043f\u0440\u043e\u0448\u0435\u0440\u0441\u0442\u0438\u043b \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430 \u0442\u0435\u043c\u0443 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0446\u0435\u043d\u0430\u0445 \u043d\u0430 \u043c\u0435\u0441\u0442\u043d\u0443\u044e \u043d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u044c, \u043f\u043e\u0447\u0442\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0448\u0451\u043b, \u0437\u0430\u0442\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0447\u0442\u043e \u043c\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0430 \u0436\u0438\u043b\u044c\u044f \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0443 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0430\u0431\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u0441\u043a\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u0440\u044b\u043d\u043a\u0435: <a href=\"https:\/\/github.com\/Froren\/realtorca\" rel=\"nofollow\">https:\/\/github.com\/Froren\/realtorca<\/a><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u043e \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0437\u0430 \u043c\u0430\u043b\u044b\u043c \u2014 \u0431\u044b\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u043e\u0441\u0442\u0440\u043e\u0432\u0443 \u041c\u043e\u043d\u0440\u0435\u0430\u043b\u044c \u0438 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044f\u043c \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0440\u044b\u043d\u043a\u0435, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u044b\u043b \u0441\u0434\u0435\u043b\u0430\u043d \u0432\u0435\u0431-\u0441\u043a\u0440\u0430\u043f\u043f\u0435\u0440 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 requests \u0438 beatifulsoap \u0442\u043e\u0436\u0435 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043e \u0436\u0438\u043b\u044c\u0435 \u043d\u0430 \u0441\u044a\u0435\u043c. <\/p>\n<p>  <\/p>\n<p>\u041e\u0431\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0434\u0430\u044e\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u2014 \u0440\u0438\u044d\u043b\u0442\u043e\u0440\u0441\u043a\u0438\u0439 \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u044e, \u0446\u0435\u043d\u0443 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0440\u043e\u0441\u044f\u0442, \u0442\u0438\u043f \u0436\u0438\u043b\u044c\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u0430\u043b\u0435\u043d, \u0438\u043d\u043e\u0433\u0434\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u0436\u0438\u043b\u044c\u044f \u0438 \u0437\u0435\u043c\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0447\u0430\u0441\u0442\u043a\u0430, \u044d\u0442\u0430\u0436\u043d\u043e\u0441\u0442\u044c; \u0434\u043e\u0441\u043a\u0430 \u043e\u0431\u044c\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u043e \u0436\u0438\u043b\u044c\u0435 \u043d\u0430 \u0430\u0440\u0435\u043d\u0434\u0443 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0446\u0435\u043d\u0443, \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u044e \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u0430\u043b\u0435\u043d \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p>  <\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043d\u0430\u043c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 <a href=\"http:\/\/donnees.ville.montreal.qc.ca\/\" rel=\"nofollow\">\u043f\u043e\u0440\u0442\u0430\u043b \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0433\u043e\u0440\u043e\u0434\u0430<\/a> \u0438 <a href=\"https:\/\/www.openstreetmap.org\/\" rel=\"nofollow\">openstreet map<\/a>, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b. <\/p>\n<p>  <\/p>\n<h1 id=\"obrabotka-dannyh\">\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/h1>\n<p>  <\/p>\n<p>\u0412\u0435\u0431\u0441\u043a\u0440\u0430\u043f\u043f\u0435\u0440 \u2014 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 \u0434\u0430\u043c\u043f \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0432 sqlite \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u044b\u043d\u043a\u0435, \u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0435\u0451 \u0446\u0435\u043d\u0430 \u0438 \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442. \u0427\u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0442\u0430\u043a \u044d\u0442\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0437\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0451 \u043f\u0440\u043e\u0434\u0430\u043b\u0438, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u0435\u0439, \u0432 \u043a\u0430\u043a\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0434\u043e\u043c \u0438 \u0442.\u0434. <\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043a\u0440\u0430\u043f\u043f\u0435\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 R, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438\u0437 \u043d\u0430\u0431\u043e\u0440\u0430 <a href=\"http:\/\/www.tidyverse.org\" rel=\"nofollow\">tidy-verse<\/a>, <a href=\"https:\/\/r-spatial.github.io\/sf\/index.html\" rel=\"nofollow\">Simple Features for R<\/a>, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0446\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u0441\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u2014 <a href=\"https:\/\/geocompr.robinlovelace.net\" rel=\"nofollow\">\u043e\u043d-\u043b\u0430\u0439\u043d \u043a\u043d\u0438\u0436\u043a\u0430 Geocomputation with R<\/a>, \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e ggplot2 ( \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 tidyverse), \u0438 <a href=\"https:\/\/github.com\/mtennekes\/tmap\" rel=\"nofollow\">tmap<\/a>. <\/p>\n<p>  <\/p>\n<p>\u0421\u043f\u0435\u0440\u0432\u0430 \u044f \u0434\u0435\u043b\u0430\u044e \u0432\u0441\u044f\u043a\u0438\u0439 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0438, \u0442\u0438\u043f\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0432 \u043c\u0435\u0441\u0442\u043d\u0443\u044e \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0438 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 (join?) \u0441 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0433\u043e\u0440\u043e\u0434\u0430. <\/p>\n<p>  <\/p>\n<h1 id=\"otslezhivanie-lokalnoy-ceny-kvartiry\">\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0446\u0435\u043d\u044b \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b<\/h1>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u0446\u0435\u043d\u0430\u043c \u043a\u0432\u0430\u0440\u0442\u0438\u0440 \u0432 \u043c\u043e\u0451\u043c \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0435, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <em>dplyr<\/em> \u043e\u0442\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043d\u0434\u043e\u043c\u0438\u043d\u0438\u043c\u0443\u043c\u044b, \u0430 \u043f\u043e\u0442\u043e\u043c \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0441 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043c\u043e\u0435\u0433\u043e \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430:<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0434\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c R \u0447\u0442\u043e \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0434\u0435\u043b\u043e \u0441 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0430 \u044d\u0442\u043e \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u044c \u0432 \u0432\u0430\u043a\u0443\u0443\u043c\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">library(tidyverse) library(sf)  property&lt;-read_csv(&quot;....&quot;) %&gt;%   st_as_sf(coords=c(&quot;lng&quot;,&quot;lat&quot;), crs=4326) %&gt;%   st_transform(crs=32188)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0430\u0439\u043e\u043d \u0433\u043e\u0440\u043e\u0434\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0436\u0438\u0432\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">neighbourhood&lt;-geojson_sf(&quot;quartierreferencehabitation.geojson&quot;) %&gt;%  st_transform(32188) %&gt;%   filter(nom_qr %in% c(&quot;Saint-Louis&quot;, &quot;Milton-Parc&quot;)) %&gt;%   summarize() %&gt;%   st_buffer(dist=0)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043a\u0432\u0430\u0440\u0442\u0438\u0440:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">neighbors &lt;- st_join(property, neighbourhood, left=F)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0441 openstreetmap \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441 \u0447\u0435\u043c \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0434\u0435\u043b\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">osm_neighbourhood&lt;-read_osm(st_bbox(neighbourhood%&gt;%st_transform(4326)), ext=1.5, type=&quot;esri&quot;)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0443 \u0438 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u0430 tmap :<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">library(tmap) library(tmaptools)  tm_shape(osm_neighbourhood) + tm_rgb(alpha=0.7)+   tm_shape(neighbourhood) + tm_borders(col='red',alpha=0.8)  +    tm_shape(neighbors) + tm_symbols(shape=3,size=0.2,alpha=0.8) +   tm_shape(ref_home) + tm_symbols(col='red',shape=4,size=0.5,alpha=0.8)+   tm_compass(position=c(&quot;right&quot;, &quot;bottom&quot;))+   tm_scale_bar(position=c(&quot;right&quot;, &quot;bottom&quot;))<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/58e\/efc\/c29\/58eefcc29df996dec0d1acb0d83a1c02.svg\" alt=\"image\"><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0446\u0435\u043d\u044b, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043f\u0430\u0440\u043a\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b55\/211\/d9f\/b55211d9f54e4351d5b5a1e750a180b3.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043b\u0438\u043d\u0435\u0439\u043d\u0443\u044e \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044e ( \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432):<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">lm(price ~ parking:area_interior)<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">## Coefficients: ##                            Estimate Std. Error t value Pr(&gt;|t|)     ## (Intercept)                33776.10   22175.97   1.523    0.129     ## parkingFALSE:area_interior   444.28      23.54  18.876   &lt;2e-16 *** ## parkingTRUE:area_interior    523.01      19.65  26.614   &lt;2e-16 ***<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422.\u0435 \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 \u043c\u043e\u0435\u0433\u043e \u0434\u043e\u043c\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u0444\u0443\u0442 \u0432 \u0434\u043e\u043c\u0435 \u0431\u0435\u0437 \u043f\u0430\u0440\u043a\u043e\u0432\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 444$ \u043a \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0446\u0435\u043d\u0435 \u0432 33\u043a, \u0430 \u0441 \u043f\u0430\u0440\u043a\u043e\u0432\u043a\u043e\u0439 +523$.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u043e\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u0443\u044e \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c 443k$, \u0441 \u0434\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c [433k$ \u2014 453k$] <\/p>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u0446\u0435\u043d\u043e\u0439 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u0442\u0435\u043c \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u0430: <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/219\/fd7\/792\/219fd7792c21cbb1115694cb164e24c5.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0422.\u0435 \u0438\u043c\u0435\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b, \u0442.\u0435 \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0434\u0435\u043b\u043e \u0441 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435\u043c \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u043c \u043c\u043e\u0434\u0435\u043b\u0438. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043d\u0430 \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u0438\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0442\u0430\u043a. \u041d\u043e, \u0435\u0441\u043b\u0438 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0446\u0435\u043d \u0441 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 <em>generalized linear model<\/em> \u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 <em>inverse Gaussian distribution<\/em> \u0438 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0441\u0432\u044f\u0437\u0438, \u043f\u043e-\u0440\u0443\u0441\u0441\u043a\u0438 \u0437\u0432\u0443\u0447\u0438\u0442 \u043a\u043e\u0440\u044f\u0432\u043e, \u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/007\/2ad\/d56\/0072add564f8de13689123c86bfaf745.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0418 \u043e\u0446\u0435\u043d\u043a\u0430 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438: 435k$, \u0441 95% \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u043c [419k$ \u2014 450k$] \u2014 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u043e\u0439-\u0436\u0435. <\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u043c\u0435\u0442\u0438\u043c, \u0447\u0442\u043e \u0432 \u043e\u0431\u043e\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u044f\u0445 \u044f \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u043d\u0430\u0442, \u044d\u0442\u0430\u0436 \u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0437\u0430\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u2014 \u0432\u0441\u0435\u0433\u043e \u0442\u0440\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430.<br \/>  \u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 \u043c\u043e\u0434\u0435\u043b\u0438, \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043a\u043e\u0440\u0440\u0435\u043b\u0438\u0440\u0443\u044e\u0442 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u2014 \u0442.\u0435 \u0432 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0435 \u0441 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u044c\u044e \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u043c\u043d\u0430\u0442 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0448\u0430\u043d\u0441\u043e\u0432 \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0430\u0440\u043a\u043e\u0432\u043a\u0430, \u0434\u0430 \u0438 \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0444\u0430\u043a\u0442\u043e\u0440\u043e\u0432 (\u043a\u043e\u043c\u043d\u0430\u0442\u044b X \u043f\u0430\u0440\u043a\u043e\u0432\u043a\u0430 X \u044d\u0442\u0430\u0436 ) \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. <\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043c\u043e\u0436\u043d\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u0430\u043c\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 (\u043f\u043b\u043e\u0449\u0430\u0434\u044c) \u0437\u0430 \u0441\u043a\u043e\u0431\u043a\u0438, \u0438 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0446\u0435\u043d\u0443 \u0437\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u0444\u0443\u0442 (<del>\u0438\u043b\u0438 \u043c\u0435\u0442\u0440, \u043d\u043e \u0432 \u043f\u043e\u043f\u0443\u0433\u0430\u044f\u0445 \u044f \u0434\u043b\u0438\u043d\u043d\u0435\u0435<\/del>).<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/969\/080\/2ae\/9690802aeccabd043ad9f734a38a2b14.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043e\u043f\u044f\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <em>generalized linear model<\/em> \u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 <em>inverse Gaussian<\/em> distribution \u0438 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0441\u0432\u044f\u0437\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">glm(price_sqft ~ parking + bedrooms,family=inverse.gaussian(link=&quot;log&quot;)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">## (Intercept)    parkingTRUE   bedrooms2   bedrooms3   bedrooms4  ## 503.1981961   1.1215828   0.9720589   0.9662187   0.8325715<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422.\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u0444\u0443\u0442 \u0441\u0442\u043e\u0438\u0442, \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c 503$, \u043f\u0430\u0440\u043a\u043e\u0432\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 12% \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 \u043a \u0446\u0435\u043d\u0435, \u0434\u0432\u0435 \u0441\u043f\u0430\u043b\u044c\u043d\u0438 \u2014 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u044e\u0442 \u0446\u0435\u043d\u0443 \u043d\u0430 2.8%, 3 \u0441\u043f\u0430\u043b\u044c\u043d\u0438 \u2014 \u043d\u0430 3.3%, 4 \u0441\u043f\u0430\u043b\u044c\u043d\u0438 \u043d\u0430 17%, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u043e\u0439 \u043d\u0430 \u043e\u0434\u043d\u0443 \u0441\u043f\u0430\u043b\u044c\u043d\u044e \u0442\u043e\u0439-\u0436\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u0438.<br \/>  \u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u043c\u043e\u0435\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f 430k$ [ 413k$ \u2014 448k$] <\/p>\n<p>  <\/p>\n<h1 id=\"vremennaya-dinamika\">\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0430<\/h1>\n<p>  <\/p>\n<p>\u0412\u0441\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u043e\u0446\u0435\u043d\u043a\u0438 \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b\u0438 \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043a\u0430\u043a \u0446\u0435\u043d\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0411\u044b\u043b\u043e-\u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043a\u0430\u043a \u0446\u0435\u043d\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f <del>\u0432 \u0437\u0430\u0432\u0438\u0441\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0444\u0430\u0437\u044b \u043b\u0443\u043d\u044b<\/del> \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c.<br \/>  \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0446\u0435\u043d\u044b \u043a\u0432\u0430\u0440\u0442\u0438\u0440 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u0441\u0433\u043b\u0430\u0434\u0438\u0442\u044c, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0442\u0440\u0435\u043d\u0434, \u043d\u043e \u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u2014 \u044d\u0442\u043e \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0446\u0435\u043d\u044b \u0440\u0430\u0441\u0442\u0443\u0442, \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u0441\u0442\u0430\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u0432\u0430\u0440\u0442\u0438\u0440 \u0441 \u043f\u0430\u0440\u043a\u043e\u0432\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0434\u0430\u0432\u0430\u0442\u0441\u044f?<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u0435\u043c \u0446\u0435\u043d\u044b \u043f\u043e \u0432\u0441\u0435\u043c \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0430\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <em>loess<\/em>.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/971\/703\/3e7\/9717033e7236995e67b49e244c69e7a2.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b \u043f\u043e \u0433\u0440\u0443\u043f\u043f\u0430\u043c, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0448\u0430 \u2014 \u043f\u043e\u0442\u043e\u043c\u0443-\u0447\u0442\u043e \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0440\u0430\u0437\u0440\u0435\u0436\u0435\u043d\u043d\u044b\u0435.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/28f\/d7f\/831\/28fd7f831faa836dfbd6553d6721d016.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043a\u0432\u0430\u0440\u0442\u0438\u0440 \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u0447\u043b\u0435\u043d\u043d\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e. \u041d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u0443\u044e \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0430\u043c\u0438 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 ( \u0430 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0449\u0451 \u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c) \u0438 \u043e\u0431\u0449\u0438\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0442\u0440\u0435\u043d\u0434\u043e\u043c. <\/p>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u043d\u0430\u043c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u201c\u043e\u0431\u043e\u0431\u0449\u0435\u043d\u043d\u044b\u0445 \u0430\u0434\u0434\u0438\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439\u201d <a href=\"https:\/\/en.wikipedia.org\/wiki\/Generalized_additive_model\" rel=\"nofollow\">Generalized additive model<\/a><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u0434\u0435\u0442\u0430\u043b\u0438, \u0442\u043e \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0437\u044f\u0442\u044c \u043e\u0431\u043e\u0431\u0449\u0435\u043d\u043d\u0443\u044e \u043b\u0438\u043d\u0435\u0439\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u043d\u0435\u0439 \u043d\u0435\u043a\u0443\u044e \u0433\u043b\u0430\u0434\u043a\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432. \u0412 R \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 <em>mgcv<\/em> \u0447\u0435\u0440\u0435\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <em>gam<\/em>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">gam(price_sqft ~ parking + bedrooms + s(start_date, k=24), family=inverse.gaussian(link=&quot;log&quot;))<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u0441\u0442\u0440\u043e\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u044c, \u043e\u043f\u044f\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435, \u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 inverse Gaussian distribution, \u043d\u043e \u0441 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0433\u043b\u0430\u0434\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043f\u043b\u0430\u0439\u043d \u0441 24\u044f \u0443\u0437\u043b\u0430\u043c\u0438. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u0430 gam \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u0433\u043b\u0430\u0434\u043a\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 k \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. <\/p>\n<p>  <\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u0430\u043f\u043f\u0440\u043e\u043a\u0441\u0438\u043c\u0430\u0446\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 ( \u0434\u043b\u044f 2\u0445 \u043a\u043e\u043c\u043d\u0430\u0442\u043d\u043e\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b \u0441 \u043f\u0430\u0440\u043a\u043e\u0432\u043a\u043e\u0439):<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/677\/cbf\/c8f\/677cbfc8fef6f08880e15c8442ffbfcf.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u0446\u0435\u043d\u044b: 429k [413k-447k], \u0442.\u0435 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0447\u0442\u043e \u0438 \u0440\u0430\u043d\u044c\u0448\u0435. \u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0434\u0435\u044f\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u0446\u0435\u043d\u0430 \u0440\u0430\u0441\u0442\u0451\u0442, \u0430 \u043d\u0435 \u043f\u0430\u0434\u0430\u0435\u0442 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c. <\/p>\n<p>  <\/p>\n<h1 id=\"skolko-vremeni-uydyot-na-prodazhu\">\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0443\u0439\u0434\u0451\u0442 \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0443<\/h1>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u0432\u0441\u0451 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f <a href=\"https:\/\/en.wikipedia.org\/wiki\/Survival_analysis\" rel=\"nofollow\">\u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0432\u044b\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0441\u0442\u0438<\/a> \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043c\u0435\u0442\u043e\u0434\u0443 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c \u0447\u0442\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0438\u0434\u044b \u043a\u0432\u0430\u0440\u0442\u0438\u0440 \u043f\u0440\u043e\u0434\u0430\u044e\u0442\u0441\u044f \u0441 \u0440\u0430\u0437\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e, \u043d\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/5c6\/3d2\/02e\/5c63d202e56401475ad563c6229359c6.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0412\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u043a\u0432\u0430\u0440\u0442\u0438\u0440 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u0441 \u0440\u044b\u043d\u043a\u0430 \u0437\u0430 60 \u0434\u043d\u0435\u0439. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u043e\u0434\u0430\u044e\u0442\u0441\u044f \u0435\u0449\u0451 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0445 \u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u0441\u043d\u0438\u043c\u0430\u044e\u0442 \u0441 \u0441\u0430\u0439\u0442\u0430. <\/p>\n<p>  <\/p>\n<h1 id=\"ocenivaem-doma\">\u041e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u043c\u0430<\/h1>\n<p>  <\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0441\u044f \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0435\u0433\u043e \u0442\u0430\u043c \u043c\u043d\u0435 \u0445\u043e\u0442\u044f\u0442 \u043f\u0440\u043e\u0434\u0430\u0442\u044c \u0440\u0438\u044d\u043b\u0442\u043e\u0440\u044b, \u044f \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u044f\u0442 \u0434\u043e\u043c\u0430 \u0432 \u043e\u043a\u0440\u0443\u0433\u0435. \u041b\u0435\u0433\u043a\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043a\u0443 \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443 \u0432\u0441\u0435\u0439 \u043d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 1\u043a\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0442\u0440\u0438\u043f\u043b\u0435\u043a\u0441\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044f \u043a\u0430\u043a-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0441\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\"># \u0438\u043d\u0434\u0435\u043a\u0441 \u043d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u043e\u0432 selected_mls=17758383  # \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u044f \u043f\u043e\u0438\u0441\u043a\u0430 2\u043a\u043c max_distance=2000   # \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043e\u0434\u043d\u043e\u0441\u0435\u043c\u0435\u0439\u043d\u044b\u0435 \u0434\u043e\u043c\u0430 \u0438 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b plex_pe&lt;-prop_geo_p %&gt;% filter(type!='Apartment', type!='House') ref&lt;-plex_pe%&gt;%filter(mls==selected_mls)   # \u0434\u0435\u043b\u0430\u0435\u043c \u043a\u0440\u0443\u0433\u043b\u0443\u044e \u043c\u0430\u0441\u043a\u0443 \u0432\u043e\u043a\u0440\u0443\u0433 \u0434\u043e\u043c\u0430 search_roi &lt;- st_buffer(ref, max_distance)  # \u0438 \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0432\u0441\u044f\u043a\u0438\u0435 \u043b\u0435\u0432\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 , \u0433\u0434\u0435 \u0440\u0438\u0435\u043b\u0442\u043e\u0440 \u0432\u043d\u0451\u0441 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0447\u0443\u0448\u044c  result &lt;- st_intersection(plex_pe %&gt;% filter(mls!=selected_mls), search_roi) %&gt;%  filter(area_interior&lt;10000, area_interior&gt;100,area_land&gt;0,price&lt;1e7,price&gt;100 ) <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/4e1\/587\/1d7\/4e15871d7535aab6a74659f9c6146a69.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0418 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0446\u0435\u043d\u044b:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/035\/34b\/dd6\/03534bdd6c6ec801eb352f0dc62d3a71.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0412\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0437\u0430 \u0434\u043e\u043c \u043f\u0440\u043e\u0441\u044f\u0442 \u0441\u043b\u0435\u0433\u043a\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e-\u0431\u044b \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u043d\u043e \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0432\u0430\u0440\u0438\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0446\u0435\u043d \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0443 \u043a\u0432\u0430\u0440\u0442\u0438\u0440, \u0447\u0442\u043e \u0432 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u0430\u043b\u0435\u043d, \u043d\u043e \u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 ( \u0432\u0441\u0435 \u044d\u0442\u0438 \u043f\u043b\u0435\u043a\u0441\u044b \u0431\u044b\u043b\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 XX \u0432\u0435\u043a\u0430), \u043a\u0430\u043a\u0438\u0435 \u0442\u0430\u043c \u0436\u0438\u043b\u044c\u0446\u044b \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0438 \u043f\u043b\u0430\u0442\u044f\u0442 \u0438 \u0442.\u0434.<br \/>  \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u0446\u0435\u043d\u043a\u0443 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0444\u0443\u0442\u0430, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0446\u0435\u043d\u043a\u0430 523k$, \u0441 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u043c [ 570k$ \u2014 620k$] <\/p>\n<p>  <\/p>\n<h1 id=\"risuem-karty-so-srednimi-cenami\">\u0420\u0438\u0441\u0443\u0435\u043c \u043a\u0430\u0440\u0442\u044b \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438 \u0446\u0435\u043d\u0430\u043c\u0438<\/h1>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0435\u043c\u0438 \u044d\u0442\u0438\u043c\u0438 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u044f\u043c\u0438, \u0430 \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0446\u0435\u043d \u0432 \u041c\u043e\u043d\u0440\u0435\u0430\u043b\u0435. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0440\u0435\u0434\u043d\u0438\u0442\u044c \u0446\u0435\u043d\u044b \u043d\u0430 \u0430\u0440\u0435\u043d\u0434\u0443 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0443. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 sf \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e:<\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b \u0441 \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u0430\u043b\u044c\u043d\u044f\u043c\u0438, \u0431\u0435\u0440\u0451\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0443\u044e \u043d\u0430\u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e (\u0446\u0435\u043d\u0430), \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u043a\u0430\u0440\u0442\u043e\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u043e\u0432, \u0430 \u043f\u043e\u0442\u043e\u043c \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043c\u0435\u0434\u0438\u0430\u043d\u0443 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">aggregate(filter(kijiji_geo_p,bedrooms==2)%&gt;%dplyr::select(price), mtl_p, median, join = st_contains)<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/895\/498\/c1d\/895498c1d59478b1b0e18cea42c2e2b0.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043a\u0430\u0440\u0442\u0430 \u0441 \u043f\u0440\u044f\u043c\u044b\u043c\u0438 \u043b\u0438\u043d\u0438\u044f\u043c\u0438 \u043f\u043e \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u043c \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u043e\u0432, \u0447\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0412\u0440\u044f\u0434 \u043b\u0438 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0446\u0435\u043d\u044b \u0443\u043b\u0438\u0446\u044b \u0446\u0435\u043d\u0430 \u0430\u0440\u0435\u043d\u0434\u044b \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u0441\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0439. \u041d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0446\u0435\u043d\u0443 \u043f\u043b\u0430\u0432\u043d\u043e.<br \/>  \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043e\u0431\u043e\u0431\u0449\u0435\u043d\u043d\u0443\u044e \u043b\u0438\u043d\u0435\u0439\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c, \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043b\u0430\u0432\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">gam(price_sqft ~ type + bedrooms + parking + s(x,y,k=100), family=inverse.gaussian(link=&quot;log&quot;))<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043d\u0430 \u0440\u0430\u0441\u0442\u0440, \u0441 \u0448\u0430\u0433\u043e\u043c 100\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">pred_rent_whole &lt;- raster(extent(mtl_land),res=100) crs(pred_rent_whole)&lt;-crs(mtl_land) my_predict&lt;-function(...) predict(...,type=&quot;response&quot;) pred_rent_whole&lt;- raster::interpolate(pred_rent_whole, model_rent_geo_whole, fun=my_predict, xyOnly=T,const=data.frame(bedrooms=2))  # \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u044d\u043a\u0441\u0442\u0440\u0430\u043f\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043e\u0441\u0442\u0440\u043e\u0432\u0430 pred_rent_whole &lt;- mask(pred_rent_whole, mtl_land)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u0440\u0438\u0441\u0443\u0435\u043c \u044d\u0442\u043e \u0432\u0441\u0451 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <em>tmap<\/em>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">tm_shape(osm_mtl)+tm_rgb(alpha=0.6)+   tm_shape(mtl_arr) + tm_borders(alpha=0.8, col='black')+   tm_shape(pred_rent_whole)+tm_raster(style=&quot;cont&quot;,alpha=0.7, title='$')+  tm_shape(subway_stop_p%&gt;%dplyr::select(stop_name))+tm_symbols(col='blue',alpha=0.2,size=0.03)+   tm_shape(subway_p)+tm_lines(col='blue',alpha=0.2)+   tm_compass(position=c(&quot;right&quot;, &quot;bottom&quot;))+   tm_scale_bar(position=c(&quot;left&quot;, &quot;bottom&quot;))+   tm_layout(scale=1.5)<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/47e\/a93\/8fd\/47ea938fd524dc1027091bba03b7f1d5.svg\" alt=\"image\"><br \/>  \u0421\u0438\u043d\u0435\u043d\u044c\u043a\u0438\u0435 \u043b\u0438\u043d\u0438\u0438 \u2014 \u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u0442\u0440\u043e.<\/p>\n<p>  <\/p>\n<p>\u0410\u0440\u0435\u043d\u0434\u0430 \u0432 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b3f\/272\/789\/b3f272789dd8ba919eb026a9b37a23aa.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0446\u0435\u043d \u043d\u0430 \u0434\u043e\u043c\u0430.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a89\/de3\/2a7\/a89de32a720f8a50b8fc0fdaf1e8a052.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0443 \u0438 \u043a\u0430\u043a \u0432\u0441\u044f\u043a\u0438\u0439 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043a\u0430\u043f\u0438\u0442\u0430\u043b\u0438\u0441\u0442, \u044f \u043c\u043e\u0433\u0443 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0442\u0440\u0438\u043f\u043b\u0435\u043a\u0441\u0430 ( \u0446\u0435\u043d\u0430 \u0430\u0440\u0435\u043d\u0434\u044b \u0437\u0430 \u0433\u043e\u0434\/(\u0446\u0435\u043d\u0430 \u0437\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u0444\u0443\u0442 * \u043f\u043b\u043e\u0449\u0430\u0434\u044c).<br \/>  \u0421\u0442\u0440\u043e\u0438\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u0442\u0440\u0438\u043f\u043b\u0435\u043a\u0441\u043e\u0432 \u0441 \u0442\u0440\u0435\u043c\u044f \u0441\u043f\u0430\u043b\u044c\u043d\u0430\u043c\u0438 \u0438 \u043f\u0430\u0440\u043a\u043e\u0432\u043a\u043e\u0439.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c81\/269\/8a9\/c812698a9809d34bd26cdead72c6fd00.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0418 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u043e\u0441\u0442\u044c ( \u0430\u0440\u0435\u043d\u0434\u0430 \u0437\u0430 \u0433\u043e\u0434\/\u043e\u0431\u0449\u0430\u044f \u0446\u0435\u043d\u0430 ).<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b88\/b94\/4ec\/b88b944ecca7908d3e78bf5b83fd3c84.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0443 \u0438 \u0437\u0430\u043e\u0434\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043d\u0435 \u0432\u0441\u0442\u0430\u0432\u0430\u0442\u044c, \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043d\u0430 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c (\u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0439\u043e\u043d\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u0431\u044b\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b).<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/3b5\/6bf\/684\/3b56bf6845a7558258397b1e07b90e74.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<h1 id=\"zaklyuchenie\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435 \u0438 R \u043c\u043e\u0436\u043d\u043e <del>\u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0443 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0445 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432<\/del> \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0447\u0442\u043e, \u043a\u043e\u0433\u0434\u0430 \u0438 \u0433\u0434\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u0438\u043b\u0438 \u043f\u0440\u043e\u0434\u0430\u0432\u0430\u0442\u044c. \u041d\u043e \u0436\u0438\u0437\u043d\u044c \u0448\u0442\u0443\u043a\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u0430\u044f, \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0437\u043d\u0430\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0446\u0435\u043d\u044b \u043f\u0440\u043e\u0434\u0430\u0436\u0438 (\u0432 \u043d\u0430\u0448\u0438\u0445 \u043a\u0440\u0430\u044f\u0445 \u044d\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0440\u0438\u044d\u043b\u0442\u043e\u0440\u0430\u043c). \u0422\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0436\u0438\u0434\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0443\u0442 \u0441 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 100%. \u0412 \u043e\u0431\u0449\u0435\u043c \u043a\u0442\u043e \u043d\u0435 \u0441\u043f\u0440\u044f\u0442\u0430\u043b\u0441\u044f \u2014 \u044f \u043d\u0435 \u0432\u0438\u043d\u043e\u0432\u0430\u0442. <\/p>\n<p>  <\/p>\n<h1 id=\"ishodnyy-kod\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/h1>\n<p>  <\/p>\n<p>\u0412\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438: <a href=\"https:\/\/github.com\/vfonov\/re_mtl\" rel=\"nofollow\">https:\/\/github.com\/vfonov\/re_mtl<\/a> <em>\u041f\u043e\u043a\u0443\u043f\u0430\u0439\u0442\u0435 \u043d\u0430\u0448\u0438\u0445 \u0441\u043b\u043e\u043d\u043e\u0432!<\/em><\/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\/489486\/\"> https:\/\/habr.com\/ru\/post\/489486\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/489486\/\">\n<blockquote><p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u0430\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0435, \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u0443\u043f\u0438\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0435, \u0430 \u0443 \u043d\u0430\u0441 \u0434\u0435\u043d\u0435\u0433 \u043d\u0435\u0442.<br \/>   \u2014 \u0422\u0440\u043e\u0435 \u0438\u0437 \u041f\u0440\u043e\u0441\u0442\u043e\u043a\u0432\u0430\u0448\u0438\u043d\u043e<\/p><\/blockquote>\n<p>  <\/p>\n<h1 id=\"vvedenie\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044f \u0436\u0438\u0432\u0443 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0435 (\u0438\u043b\u0438 \u043a\u043e\u043d\u0434\u043e \u043f\u043e-\u043c\u0435\u0441\u0442\u043d\u043e\u043c\u0443) \u0432 \u041c\u043e\u043d\u0440\u0435\u0430\u043b\u0435. \u0418 \u043e\u0434\u043d\u0430\u0436\u0434\u044b, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434 \u043c\u0435\u043d\u044f \u043f\u043e\u0441\u0435\u0442\u0438\u043b\u0430 \u043c\u044b\u0441\u043b\u044c \u0447\u0442\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e-\u0431\u044b \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043c. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u044b\u0442 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u0438 \u0436\u0438\u043b\u044c\u044f \u0443 \u043c\u0435\u043d\u044f \u0443\u0436\u0435 \u0431\u044b\u043b \u0438, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e-\u0431\u044b \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u043a \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u043f\u0440\u043e\u0441\u0442\u043e, \u043a\u0430\u043a \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043c\u0435\u0441\u0442\u043d\u044b\u0445 \u043e\u0431\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u0439: \u043d\u0430\u043d\u044f\u0442\u044c \u0440\u0438\u044d\u043b\u0442\u043e\u0440\u0430 \u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u043c\u0443 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u043d\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u043e-\u0431\u044b \u0441\u043a\u0443\u0447\u043d\u043e \u0438 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e. <\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u043a \u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u043b\u0443 \u043d\u0430\u0443\u0447\u043d\u043e: \u0435\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c, \u0438 \u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u043e \u0447\u0442\u043e \u044f \u043c\u043e\u0433\u0443 \u0441\u0435\u0431\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c. \u041d\u0443 \u0438 \u043f\u043e\u043f\u0443\u0442\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u2014 \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u0443\u0434\u0430 \u0434\u0443\u0435\u0442 \u0432\u0435\u0442\u0435\u0440. \u0418 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u043e-\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432 R.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-299092","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/299092","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=299092"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/299092\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=299092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=299092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=299092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}