{"id":1747,"date":"2023-07-25T03:30:46","date_gmt":"2023-07-25T03:30:46","guid":{"rendered":"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/"},"modified":"2023-07-25T03:30:46","modified_gmt":"2023-07-25T03:30:46","slug":"aic-%d0%bd%d0%b0-python","status":"publish","type":"post","link":"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/","title":{"rendered":"\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 aic \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 python"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u0406\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u0438\u0439 \u043a\u0440\u0438\u0442\u0435\u0440\u0456\u0439 Akaike (AIC) \u2014 \u0446\u0435 \u043f\u043e\u043a\u0430\u0437\u043d\u0438\u043a, \u044f\u043a\u0438\u0439 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0440\u0456\u0432\u043d\u044f\u043d\u043d\u044f \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e\u0441\u0442\u0456 \u0440\u0456\u0437\u043d\u0438\u0445 \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0412\u0456\u043d \u0440\u043e\u0437\u0440\u0430\u0445\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u0438\u043c \u0447\u0438\u043d\u043e\u043c:<\/span><\/p>\n<p> <span style=\"color: #000000;\">AIC = 2K \u2013 2 <em>ln<\/em> (L)<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0437\u043e\u043b\u043e\u0442\u043e:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>K:<\/strong> \u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432 \u043c\u043e\u0434\u0435\u043b\u0456. \u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f K \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454 2, \u0442\u043e\u043c\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u043b\u0438\u0448\u0435 \u0437 \u043e\u0434\u043d\u0456\u0454\u044e \u0437\u043c\u0456\u043d\u043d\u043e\u044e \u043f\u0440\u0435\u0434\u0438\u043a\u0442\u043e\u0440\u0430 \u043c\u0430\u0442\u0438\u043c\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f K 2+1 = 3.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong><em>ln<\/em> (L)<\/strong> : \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u0456\u0431\u043d\u043e\u0441\u0442\u0456 \u043c\u043e\u0434\u0435\u043b\u0456. \u0426\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043d\u0430\u043c \u043f\u0440\u043e \u0439\u043c\u043e\u0432\u0456\u0440\u043d\u0456\u0441\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0456 \u0437 \u0443\u0440\u0430\u0445\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u0434\u0430\u043d\u0438\u0445.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">AIC \u0440\u043e\u0437\u0440\u043e\u0431\u043b\u0435\u043d\u043e, \u0449\u043e\u0431 \u0437\u043d\u0430\u0439\u0442\u0438 \u043c\u043e\u0434\u0435\u043b\u044c, \u044f\u043a\u0430 \u043f\u043e\u044f\u0441\u043d\u044e\u0454 \u043d\u0430\u0439\u0431\u0456\u043b\u044c\u0448\u0443 \u0432\u0430\u0440\u0456\u0430\u0446\u0456\u044e \u0432 \u0434\u0430\u043d\u0438\u0445, \u0432\u043e\u0434\u043d\u043e\u0447\u0430\u0441 \u0448\u0442\u0440\u0430\u0444\u0443\u044e\u0447\u0438 \u043c\u043e\u0434\u0435\u043b\u0456, \u044f\u043a\u0456 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u043d\u0430\u0434\u043c\u0456\u0440\u043d\u0443 \u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u041f\u0456\u0441\u043b\u044f \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u0445 \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0440\u0456\u0432\u043d\u044f\u0442\u0438<\/span> <span style=\"color: #000000;\">\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f AIC \u043a\u043e\u0436\u043d\u043e\u0457 \u043c\u043e\u0434\u0435\u043b\u0456. \u041c\u043e\u0434\u0435\u043b\u044c \u0437 \u043d\u0430\u0439\u043d\u0438\u0436\u0447\u0438\u043c AIC \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u0454 \u043d\u0430\u0439\u043a\u0440\u0430\u0449\u0435 \u043f\u0440\u0438\u043b\u044f\u0433\u0430\u043d\u043d\u044f.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0429\u043e\u0431 \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 AIC \u043a\u0456\u043b\u044c\u043a\u043e\u0445 \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python, \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0456\u044e <strong>statsmodels.regression.linear_model.OLS()<\/strong> , \u044f\u043a\u0430 \u043c\u0430\u0454 \u0432\u043b\u0430\u0441\u0442\u0438\u0432\u0456\u0441\u0442\u044c \u043f\u0456\u0434 \u043d\u0430\u0437\u0432\u043e\u044e <strong>aic<\/strong> , \u044f\u043a\u0430 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u044f\u0454 \u043d\u0430\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f AIC \u0434\u043b\u044f \u0434\u0430\u043d\u043e\u0457 \u043c\u043e\u0434\u0435\u043b\u0456.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0423 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e, \u044f\u043a \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0446\u044e \u0444\u0443\u043d\u043a\u0446\u0456\u044e \u0434\u043b\u044f \u043e\u0431\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044f \u0442\u0430 \u0456\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0456\u0457 AIC \u0434\u043b\u044f \u0440\u0456\u0437\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0457 \u0432 Python.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u041f\u0440\u0438\u043a\u043b\u0430\u0434: \u043e\u0431\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044f \u0442\u0430 \u0456\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0456\u044f AIC \u0443 Python<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\u0421\u043a\u0430\u0436\u0456\u043c\u043e, \u043c\u0438 \u0445\u043e\u0447\u0435\u043c\u043e \u043f\u0456\u0434\u0456\u0431\u0440\u0430\u0442\u0438 \u0434\u0432\u0456 \u0440\u0456\u0437\u043d\u0456 <a href=\"https:\/\/statorials.org\/uk\/\u043c\u043d\u043e\u0436\u0438\u043d\u043d\u0430-\u043b\u0456\u043d\u0456\u0438\u043d\u0430-\u0440\u0435\u0433\u0440\u0435\u0441\u0456\u044f\/\" target=\"_blank\" rel=\"noopener\">\u043c\u043e\u0434\u0435\u043b\u0456 \u043c\u043d\u043e\u0436\u0438\u043d\u043d\u043e\u0457 \u043b\u0456\u043d\u0456\u0439\u043d\u043e\u0457 \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0457<\/a> \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0437\u043c\u0456\u043d\u043d\u0438\u0445 \u0456\u0437 \u043d\u0430\u0431\u043e\u0440\u0443 \u0434\u0430\u043d\u0438\u0445 <strong>mtcars<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0421\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u043c\u0438 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u043c\u043e \u0446\u0435\u0439 \u043d\u0430\u0431\u0456\u0440 \u0434\u0430\u043d\u0438\u0445:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">linear_model<\/span> <span style=\"color: #008000;\">import<\/span> LinearRegression\n<span style=\"color: #008000;\">import<\/span> statsmodels. <span style=\"color: #3366ff;\">api<\/span> <span style=\"color: #008000;\">as<\/span> sm\n<span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n\n<span style=\"color: #008080;\">#define URL where dataset is located\n<\/span>url = \"https:\/\/raw.githubusercontent.com\/Statology\/Python-Guides\/main\/mtcars.csv\"\n\n<span style=\"color: #008080;\">#read in data\n<\/span>data = pd. <span style=\"color: #3366ff;\">read_csv<\/span> (url)\n\n<span style=\"color: #008080;\">#view head of data\n<\/span>data. <span style=\"color: #3366ff;\">head<\/span> ()\n\n        model mpg cyl disp hp drat wt qsec vs am gear carb\n0 Mazda RX4 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4\n1 Mazda RX4 Wag 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 4\n2 Datsun 710 22.8 4 108.0 93 3.85 2.320 18.61 1 1 4 1\n3 Hornet 4 Drive 21.4 6 258.0 110 3.08 3.215 19.44 1 0 3 1\n4 Hornet Sportabout 18.7 8 360.0 175 3.15 3.440 17.02 0 0 3 2\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">\u041e\u0441\u044c \u0437\u043c\u0456\u043d\u043d\u0456 \u043f\u0440\u0435\u0434\u0438\u043a\u0442\u043e\u0440\u0430, \u044f\u043a\u0456 \u043c\u0438 \u0431\u0443\u0434\u0435\u043c\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0432 \u043a\u043e\u0436\u043d\u0456\u0439 \u043c\u043e\u0434\u0435\u043b\u0456:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">\u0417\u043c\u0456\u043d\u043d\u0456 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0443 \u0432 \u043c\u043e\u0434\u0435\u043b\u0456 1: disp, hp, wt, qsec<\/span><\/li>\n<li> <span style=\"color: #000000;\">\u0417\u043c\u0456\u043d\u043d\u0456 \u043f\u0440\u0435\u0434\u0438\u043a\u0442\u043e\u0440\u0430 \u0432 \u043c\u043e\u0434\u0435\u043b\u0456 2: disp, qsec<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043a\u043e\u0434 \u043f\u043e\u043a\u0430\u0437\u0443\u0454, \u044f\u043a \u043f\u0456\u0434\u0456\u0431\u0440\u0430\u0442\u0438 \u043f\u0435\u0440\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u0456 \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 AIC:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define response variable\n<\/span>y = data['mpg']\n\n<span style=\"color: #008080;\">#define predictor variables\n<\/span>x = data[['disp', 'hp', 'wt', 'qsec']]\n\n<span style=\"color: #008080;\">#add constant to predictor variables\n<\/span>x = sm. <span style=\"color: #3366ff;\">add_constant<\/span> (x)\n\n<span style=\"color: #008080;\">#fit regression model\n<\/span>model = sm. <span style=\"color: #3366ff;\">OLS<\/span> (y,x). <span style=\"color: #3366ff;\">fit<\/span> ()\n\n<span style=\"color: #008080;\">#view AIC of model\n<\/span><span style=\"color: #993300;\">print<\/span> (model. <span style=\"color: #3366ff;\">aic<\/span> )\n\n157.06960941462438<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">AIC \u0446\u0456\u0454\u0457 \u043c\u043e\u0434\u0435\u043b\u0456 \u0432\u0438\u0445\u043e\u0434\u0438\u0442\u044c <strong>157,07<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0414\u0430\u043b\u0456 \u043f\u0456\u0434\u0433\u0430\u043d\u044f\u0454\u043c\u043e \u0434\u0440\u0443\u0433\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u0456 \u0440\u043e\u0437\u0440\u0430\u0445\u043e\u0432\u0443\u0454\u043c\u043e AIC:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define response variable\n<\/span>y = data['mpg']\n\n<span style=\"color: #008080;\">#define predictor variables\n<\/span>x = data[['disp', 'qsec']]\n\n<span style=\"color: #008080;\">#add constant to predictor variables\n<\/span>x = sm. <span style=\"color: #3366ff;\">add_constant<\/span> (x)\n\n<span style=\"color: #008080;\">#fit regression model\n<\/span>model = sm. <span style=\"color: #3366ff;\">OLS<\/span> (y,x). <span style=\"color: #3366ff;\">fit<\/span> ()\n\n<span style=\"color: #008080;\">#view AIC of model\n<\/span><span style=\"color: #993300;\">print<\/span> (model. <span style=\"color: #3366ff;\">aic<\/span> )\n\n169.84184864154588<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">AIC \u0446\u0456\u0454\u0457 \u043c\u043e\u0434\u0435\u043b\u0456 \u0432\u0438\u0445\u043e\u0434\u0438\u0442\u044c <strong>169,84<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u041e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043f\u0435\u0440\u0448\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u0430\u0454 \u043d\u0438\u0436\u0447\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f AIC, \u0432\u043e\u043d\u0430 \u0454 \u043d\u0430\u0439\u043a\u0440\u0430\u0449\u043e\u044e.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u041a\u043e\u043b\u0438 \u043c\u0438 \u0432\u0438\u0437\u043d\u0430\u0447\u0438\u043c\u043e \u0446\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u044f\u043a \u043d\u0430\u0439\u043a\u0440\u0430\u0449\u0443, \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u043f\u0456\u0434\u0433\u043e\u043d\u043a\u0443 \u043c\u043e\u0434\u0435\u043b\u0456 \u0442\u0430 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0456\u0437\u0443\u0432\u0430\u0442\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0447\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f R-\u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0456 \u0431\u0435\u0442\u0430-\u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0438, \u0449\u043e\u0431 \u0432\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438 \u0442\u043e\u0447\u043d\u0438\u0439 \u0437\u0432\u2019\u044f\u0437\u043e\u043a \u043c\u0456\u0436 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043d\u0438\u0445 \u0437\u043c\u0456\u043d\u043d\u0438\u0445 \u0456 <a href=\"https:\/\/statorials.org\/uk\/\u0437\u043c\u0456\u043d\u043d\u0456-\u043f\u043e\u044f\u0441\u043d\u044e\u0432\u0430\u043b\u044c\u043d\u0456-\u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456\/\" target=\"_blank\" rel=\"noopener\">\u0437\u043c\u0456\u043d\u043d\u043e\u044e \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456<\/a> .<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u0414\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0456 \u0440\u0435\u0441\u0443\u0440\u0441\u0438<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/uk\/\u043b\u0456\u043d\u0456\u0438\u043d\u0430-\u0440\u0435\u0433\u0440\u0435\u0441\u0456\u044f-python\/\" target=\"_blank\" rel=\"noopener\">\u041f\u043e\u0432\u043d\u0438\u0439 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a \u0456\u0437 \u043b\u0456\u043d\u0456\u0439\u043d\u043e\u0457 \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0457 \u0432 Python<\/a><br \/> <a href=\"https:\/\/statorials.org\/uk\/r-square-\u0443-python-\u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0443\u0454\/\" target=\"_blank\" rel=\"noopener\">\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 \u0441\u043a\u043e\u0440\u0438\u0433\u043e\u0432\u0430\u043d\u0438\u0439 R-\u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0443 Python<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0406\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u0438\u0439 \u043a\u0440\u0438\u0442\u0435\u0440\u0456\u0439 Akaike (AIC) \u2014 \u0446\u0435 \u043f\u043e\u043a\u0430\u0437\u043d\u0438\u043a, \u044f\u043a\u0438\u0439 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0440\u0456\u0432\u043d\u044f\u043d\u043d\u044f \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e\u0441\u0442\u0456 \u0440\u0456\u0437\u043d\u0438\u0445 \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439. \u0412\u0456\u043d \u0440\u043e\u0437\u0440\u0430\u0445\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u0438\u043c \u0447\u0438\u043d\u043e\u043c: AIC = 2K \u2013 2 ln (L) \u0437\u043e\u043b\u043e\u0442\u043e: K: \u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432 \u043c\u043e\u0434\u0435\u043b\u0456. \u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f K \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454 2, \u0442\u043e\u043c\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u043b\u0438\u0448\u0435 \u0437 \u043e\u0434\u043d\u0456\u0454\u044e \u0437\u043c\u0456\u043d\u043d\u043e\u044e \u043f\u0440\u0435\u0434\u0438\u043a\u0442\u043e\u0440\u0430 \u043c\u0430\u0442\u0438\u043c\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f K 2+1 = 3. ln (L) : \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u0456\u0431\u043d\u043e\u0441\u0442\u0456 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 AIC \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python<\/title>\n<meta name=\"description\" content=\"\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u043f\u043e\u044f\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u043e\u0433\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0456\u044e Akaike (AIC) \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/uk\/aic-\u043d\u0430-python\/\" \/>\n<meta property=\"og:locale\" content=\"uk_UA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 AIC \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python\" \/>\n<meta property=\"og:description\" content=\"\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u043f\u043e\u044f\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u043e\u0433\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0456\u044e Akaike (AIC) \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/uk\/aic-\u043d\u0430-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-25T03:30:46+00:00\" \/>\n<meta name=\"author\" content=\"\u0420\u0435\u0434\u0430\u043a\u0446\u0456\u044f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0420\u0435\u0434\u0430\u043a\u0446\u0456\u044f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u0445\u0432\u0438\u043b\u0438\u043d\u0430\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/\",\"url\":\"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/\",\"name\":\"\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 AIC \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/uk\/#website\"},\"datePublished\":\"2023-07-25T03:30:46+00:00\",\"dateModified\":\"2023-07-25T03:30:46+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/uk\/#\/schema\/person\/2affa1a5da08a4b61ab4becd078c191a\"},\"description\":\"\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u043f\u043e\u044f\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u043e\u0433\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0456\u044e Akaike (AIC) \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/#breadcrumb\"},\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0434\u043e\u0434\u043e\u043c\u0443\",\"item\":\"https:\/\/statorials.org\/uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 aic \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/uk\/#website\",\"url\":\"https:\/\/statorials.org\/uk\/\",\"name\":\"Statorials\",\"description\":\"\u0412\u0430\u0448 \u043f\u0443\u0442\u0456\u0432\u043d\u0438\u043a \u0434\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u043d\u043e\u0457 \u043a\u043e\u043c\u043f\u0435\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0456!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"uk\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/uk\/#\/schema\/person\/2affa1a5da08a4b61ab4becd078c191a\",\"name\":\"\u0420\u0435\u0434\u0430\u043a\u0446\u0456\u044f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/statorials.org\/uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/uk\/wp-content\/uploads\/2023\/11\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/uk\/wp-content\/uploads\/2023\/11\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u0420\u0435\u0434\u0430\u043a\u0446\u0456\u044f\"},\"description\":\"\u041f\u0440\u0438\u0432\u0456\u0442, \u044f \u0411\u0435\u043d\u0434\u0436\u0430\u043c\u0456\u043d, \u043f\u0440\u043e\u0444\u0435\u0441\u043e\u0440 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043d\u0430 \u043f\u0435\u043d\u0441\u0456\u0457, \u044f\u043a\u0438\u0439 \u0441\u0442\u0430\u0432 \u0432\u0438\u043a\u043b\u0430\u0434\u0430\u0447\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438. \u041c\u0430\u044e\u0447\u0438 \u0432\u0435\u043b\u0438\u043a\u0438\u0439 \u0434\u043e\u0441\u0432\u0456\u0434 \u0456 \u0437\u043d\u0430\u043d\u043d\u044f \u0432 \u0433\u0430\u043b\u0443\u0437\u0456 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438, \u044f \u0433\u043e\u0442\u043e\u0432\u0438\u0439 \u043f\u043e\u0434\u0456\u043b\u0438\u0442\u0438\u0441\u044f \u0441\u0432\u043e\u0457\u043c\u0438 \u0437\u043d\u0430\u043d\u043d\u044f\u043c\u0438, \u0449\u043e\u0431 \u0440\u043e\u0437\u0448\u0438\u0440\u0438\u0442\u0438 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0456 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0456\u0432 \u0447\u0435\u0440\u0435\u0437 Statorials. \u0414\u0456\u0437\u043d\u0430\u0439\u0442\u0435\u0441\u044f \u0431\u0456\u043b\u044c\u0448\u0435\",\"sameAs\":[\"http:\/\/statorials.org\/uk\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 AIC \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python","description":"\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u043f\u043e\u044f\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u043e\u0433\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0456\u044e Akaike (AIC) \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/uk\/aic-\u043d\u0430-python\/","og_locale":"uk_UA","og_type":"article","og_title":"\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 AIC \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python","og_description":"\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u043f\u043e\u044f\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u043e\u0433\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0456\u044e Akaike (AIC) \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python.","og_url":"https:\/\/statorials.org\/uk\/aic-\u043d\u0430-python\/","og_site_name":"Statorials","article_published_time":"2023-07-25T03:30:46+00:00","author":"\u0420\u0435\u0434\u0430\u043a\u0446\u0456\u044f","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e":"\u0420\u0435\u0434\u0430\u043a\u0446\u0456\u044f","\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f":"1 \u0445\u0432\u0438\u043b\u0438\u043d\u0430"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/","url":"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/","name":"\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 AIC \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python","isPartOf":{"@id":"https:\/\/statorials.org\/uk\/#website"},"datePublished":"2023-07-25T03:30:46+00:00","dateModified":"2023-07-25T03:30:46+00:00","author":{"@id":"https:\/\/statorials.org\/uk\/#\/schema\/person\/2affa1a5da08a4b61ab4becd078c191a"},"description":"\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u043f\u043e\u044f\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u043e\u0433\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0456\u044e Akaike (AIC) \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 Python.","breadcrumb":{"@id":"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/#breadcrumb"},"inLanguage":"uk","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/uk\/aic-%d0%bd%d0%b0-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0434\u043e\u0434\u043e\u043c\u0443","item":"https:\/\/statorials.org\/uk\/"},{"@type":"ListItem","position":2,"name":"\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 aic \u0440\u0435\u0433\u0440\u0435\u0441\u0456\u0439\u043d\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443 python"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/uk\/#website","url":"https:\/\/statorials.org\/uk\/","name":"Statorials","description":"\u0412\u0430\u0448 \u043f\u0443\u0442\u0456\u0432\u043d\u0438\u043a \u0434\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u043d\u043e\u0457 \u043a\u043e\u043c\u043f\u0435\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0456!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"uk"},{"@type":"Person","@id":"https:\/\/statorials.org\/uk\/#\/schema\/person\/2affa1a5da08a4b61ab4becd078c191a","name":"\u0420\u0435\u0434\u0430\u043a\u0446\u0456\u044f","image":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/statorials.org\/uk\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/uk\/wp-content\/uploads\/2023\/11\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/uk\/wp-content\/uploads\/2023\/11\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u0420\u0435\u0434\u0430\u043a\u0446\u0456\u044f"},"description":"\u041f\u0440\u0438\u0432\u0456\u0442, \u044f \u0411\u0435\u043d\u0434\u0436\u0430\u043c\u0456\u043d, \u043f\u0440\u043e\u0444\u0435\u0441\u043e\u0440 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043d\u0430 \u043f\u0435\u043d\u0441\u0456\u0457, \u044f\u043a\u0438\u0439 \u0441\u0442\u0430\u0432 \u0432\u0438\u043a\u043b\u0430\u0434\u0430\u0447\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438. \u041c\u0430\u044e\u0447\u0438 \u0432\u0435\u043b\u0438\u043a\u0438\u0439 \u0434\u043e\u0441\u0432\u0456\u0434 \u0456 \u0437\u043d\u0430\u043d\u043d\u044f \u0432 \u0433\u0430\u043b\u0443\u0437\u0456 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438, \u044f \u0433\u043e\u0442\u043e\u0432\u0438\u0439 \u043f\u043e\u0434\u0456\u043b\u0438\u0442\u0438\u0441\u044f \u0441\u0432\u043e\u0457\u043c\u0438 \u0437\u043d\u0430\u043d\u043d\u044f\u043c\u0438, \u0449\u043e\u0431 \u0440\u043e\u0437\u0448\u0438\u0440\u0438\u0442\u0438 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0456 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0456\u0432 \u0447\u0435\u0440\u0435\u0437 Statorials. \u0414\u0456\u0437\u043d\u0430\u0439\u0442\u0435\u0441\u044f \u0431\u0456\u043b\u044c\u0448\u0435","sameAs":["http:\/\/statorials.org\/uk"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/posts\/1747"}],"collection":[{"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/comments?post=1747"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/posts\/1747\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/media?parent=1747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/categories?post=1747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/tags?post=1747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}