{"id":4296,"date":"2023-07-12T04:44:09","date_gmt":"2023-07-12T04:44:09","guid":{"rendered":"https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/"},"modified":"2023-07-12T04:44:09","modified_gmt":"2023-07-12T04:44:09","slug":"p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation","status":"publish","type":"post","link":"https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/","title":{"rendered":"\u042f\u043a \u0437\u043d\u0430\u0439\u0442\u0438 p \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/uk\/\u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442-\u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0456-\u043f\u0456\u0440\u0441\u043e\u043d\u0430-1\/\" target=\"_blank\" rel=\"noopener\">\u041a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u041f\u0456\u0440\u0441\u043e\u043d\u0430<\/a> \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0434\u043b\u044f \u0432\u0438\u043c\u0456\u0440\u044e\u0432\u0430\u043d\u043d\u044f \u043b\u0456\u043d\u0456\u0439\u043d\u043e\u0433\u043e \u0437\u0432\u2019\u044f\u0437\u043a\u0443 \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0426\u0435\u0439 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0437\u0430\u0432\u0436\u0434\u0438 \u043f\u0440\u0438\u0439\u043c\u0430\u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u0456\u0434 <strong>-1<\/strong> \u0434\u043e <strong>1<\/strong> , \u0434\u0435:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>-1<\/strong> : \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u0430 \u043b\u0456\u043d\u0456\u0439\u043d\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u044f \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>0<\/strong> : \u043d\u0435\u043c\u0430\u0454 \u043b\u0456\u043d\u0456\u0439\u043d\u043e\u0457 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>1:<\/strong> \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u0430 \u043b\u0456\u043d\u0456\u0439\u043d\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u044f \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">\u0429\u043e\u0431 \u0432\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438, \u0447\u0438 \u0454 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u043d\u043e \u0437\u043d\u0430\u0447\u0443\u0449\u0438\u043c, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0438\u0439 t-\u043f\u043e\u043a\u0430\u0437\u043d\u0438\u043a \u0456 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u0434\u043b\u044f \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u043d\u043a\u0443 t-\u043f\u043e\u043a\u0430\u0437\u043d\u0438\u043a\u0430 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 (r):<\/span><\/p>\n<p> <span style=\"color: #000000;\">t = r\u221a <span style=\"border-top: 1px solid black;\">n-2<\/span> \/ \u221a <span style=\"border-top: 1px solid black;\">1-r <sup>2<\/sup><\/span><\/span><\/p>\n<p> <span style=\"color: #000000;\">P-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043e\u0431\u0447\u0438\u0441\u043b\u044e\u0454\u0442\u044c\u0441\u044f \u044f\u043a \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0435 \u0434\u0432\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0454 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043b\u044f t-\u0440\u043e\u0437\u043f\u043e\u0434\u0456\u043b\u0443 \u0437 n-2 \u0441\u0442\u0443\u043f\u0435\u043d\u044f\u043c\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u0438.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0429\u043e\u0431 \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u041f\u0456\u0440\u0441\u043e\u043d\u0430 \u0432 \u043f\u0430\u043d\u0434\u0430\u0445, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0456\u0454\u044e <strong>pearsonr()<\/strong> \u0456\u0437 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0438 <strong>SciPy<\/strong> :<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">from<\/span> scipy. <span style=\"color: #3366ff;\">stats<\/span> <span style=\"color: #008000;\">import<\/span> pearsonr\n\npearsonr(df[' <span style=\"color: #ff0000;\">column1<\/span> '], df[' <span style=\"color: #ff0000;\">column2<\/span> '])\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">\u0426\u044f \u0444\u0443\u043d\u043a\u0446\u0456\u044f \u043f\u043e\u0432\u0435\u0440\u043d\u0435 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u041f\u0456\u0440\u0441\u043e\u043d\u0430 \u043c\u0456\u0436 \u0441\u0442\u043e\u0432\u043f\u0446\u044f\u043c\u0438 <strong>column1<\/strong> \u0456 <strong>column2<\/strong> \u0440\u0430\u0437\u043e\u043c \u0456\u0437 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0438\u043c p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c, \u044f\u043a\u0435 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u044f\u0454 \u043d\u0430\u043c, \u0447\u0438 \u0454 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u043d\u043e \u0437\u043d\u0430\u0447\u0443\u0449\u0438\u043c \u0447\u0438 \u043d\u0456.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u042f\u043a\u0449\u043e \u0432\u0438 \u0445\u043e\u0447\u0435\u0442\u0435 \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043b\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u041f\u0456\u0440\u0441\u043e\u043d\u0430 \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0457 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0457 \u043f\u043e\u043f\u0430\u0440\u043d\u043e\u0457 \u043a\u043e\u043c\u0431\u0456\u043d\u0430\u0446\u0456\u0457 \u0441\u0442\u043e\u0432\u043f\u0446\u0456\u0432 \u0443 DataFrame, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f \u0442\u0430\u043a\u043e\u044e \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u043e\u044e \u0444\u0443\u043d\u043a\u0446\u0456\u0454\u044e \u0434\u043b\u044f \u0446\u044c\u043e\u0433\u043e:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">def<\/span> r_pvalues(df):\n    cols = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> (columns= <span style=\"color: #3366ff;\">df.columns<\/span> )\n    p = cols. <span style=\"color: #3366ff;\">transpose<\/span> (). <span style=\"color: #3366ff;\">join<\/span> (cols, how=' <span style=\"color: #ff0000;\">outer<\/span> ')\n    <span style=\"color: #008000;\">for<\/span> r <span style=\"color: #008000;\">in<\/span> df. <span style=\"color: #3366ff;\">columns<\/span> :\n        <span style=\"color: #008000;\">for<\/span> c <span style=\"color: #008000;\">in<\/span> df. <span style=\"color: #3366ff;\">columns<\/span> :\n            tmp = df[df[r]. <span style=\"color: #3366ff;\">notnull<\/span> () &amp; df[c]. <span style=\"color: #3366ff;\">notnull<\/span> ()]\n            p[r][c] = round(pearsonr(tmp[r], tmp[c])[1], 4)\n    <span style=\"color: #008000;\">return<\/span> p\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">\u0423 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0445 \u043d\u0438\u0436\u0447\u0435 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0430\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e, \u044f\u043a \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0446\u0456 \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f p \u0434\u043b\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0456\u0432 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0442\u0430\u043a\u0438\u0445 \u043f\u0430\u043d\u0434 DataFrame:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n\n<span style=\"color: #008080;\">#createDataFrame\n<\/span>df = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> ({' <span style=\"color: #ff0000;\">x<\/span> ': [4, 5, 5, 7, 8, 10, 12, 13, 14, 15],\n                   ' <span style=\"color: #ff0000;\">y<\/span> ': [10, 12, 14, 18, np.nan, 19, 13, 20, 14, np.nan],\n                   ' <span style=\"color: #ff0000;\">z<\/span> ': [20, 24, 24, 23, 19, 15, 18, 14, 10, 12]})\n\n<span style=\"color: #008080;\">#view DataFrame\n<\/span><span style=\"color: #008000;\">print<\/span> (df)\n\n    X Y Z\n0 4 10.0 20\n1 5 12.0 24\n2 5 14.0 24\n3 7 18.0 23\n4 8 NaN 19\n5 10 19.0 15\n6 12 13.0 18\n7 13 20.0 14\n8 14 14.0 10\n9 15 NaN 12\n<\/strong><\/span><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>\u041f\u0440\u0438\u043a\u043b\u0430\u0434 1: \u043e\u0431\u0447\u0438\u0441\u043b\u0456\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f P \u0434\u043b\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0441\u0442\u043e\u0432\u043f\u0446\u044f\u043c\u0438 \u0432 Pandas<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">\u0423 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u043c\u0443 \u043a\u043e\u0434\u0456 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u041f\u0456\u0440\u0441\u043e\u043d\u0430 \u0442\u0430 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f p \u0434\u043b\u044f \u0441\u0442\u043e\u0432\u043f\u0446\u0456\u0432 <strong>x<\/strong> \u0456 <strong>y<\/strong> DataFrame:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">from<\/span> scipy. <span style=\"color: #3366ff;\">stats<\/span> <span style=\"color: #008000;\">import<\/span> pearsonr\n\n<span style=\"color: #008080;\">#drop all rows with NaN values\n<\/span>df_new = df. <span style=\"color: #3366ff;\">dropna<\/span> ()\n\n<span style=\"color: #008080;\">#calculation correlation coefficient and p-value between x and y\n<\/span>pearsonr(df_new[' <span style=\"color: #ff0000;\">x<\/span> '], df_new[' <span style=\"color: #ff0000;\">y<\/span> '])\n\nPearsonRResult(statistic=0.4791621985883838, pvalue=0.22961622926360523)\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">\u0417 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u043c\u0438 \u0431\u0430\u0447\u0438\u043c\u043e:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">\u041a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u041f\u0456\u0440\u0441\u043e\u043d\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <strong>0,4792<\/strong> .<\/span><\/li>\n<li> <span style=\"color: #000000;\">\u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f p \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <strong>0,2296<\/strong> .<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">\u041e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0434\u043e\u0434\u0430\u0442\u043d\u0438\u0439, \u0446\u0435 \u0432\u043a\u0430\u0437\u0443\u0454 \u043d\u0430 \u0442\u0435, \u0449\u043e \u0456\u0441\u043d\u0443\u0454 \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u0430 \u043b\u0456\u043d\u0456\u0439\u043d\u0430 \u0437\u0430\u043b\u0435\u0436\u043d\u0456\u0441\u0442\u044c \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u041e\u0434\u043d\u0430\u043a, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u043d\u0435 \u043c\u0435\u043d\u0448\u0435 0,05, \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u044f \u043d\u0435 \u0454 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u043d\u043e \u0437\u043d\u0430\u0447\u0443\u0449\u043e\u044e.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0417\u0430\u0443\u0432\u0430\u0436\u0442\u0435, \u0449\u043e \u043c\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u043c\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, \u0449\u043e\u0431 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#extract p-value of correlation coefficient\n<\/span>pearsonr(df_new[' <span style=\"color: #ff0000;\">x<\/span> '], df_new[' <span style=\"color: #ff0000;\">y<\/span> '])[1]\n\n0.22961622926360523\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">P-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043b\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <strong>0,2296<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0426\u0435 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454 \u0440-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044e \u0437 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u041f\u0440\u0438\u043a\u043b\u0430\u0434 2: \u043e\u0431\u0447\u0438\u0441\u043b\u0456\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f P \u0434\u043b\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u043c\u0456\u0436 \u0443\u0441\u0456\u043c\u0430 \u0441\u0442\u043e\u0432\u043f\u0446\u044f\u043c\u0438 \u0432 Pandas<\/strong><\/span><\/h2>\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 \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u041f\u0456\u0440\u0441\u043e\u043d\u0430 \u0442\u0430 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f p \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0457 \u043f\u043e\u043f\u0430\u0440\u043d\u043e\u0457 \u043a\u043e\u043c\u0431\u0456\u043d\u0430\u0446\u0456\u0457 \u0441\u0442\u043e\u0432\u043f\u0446\u0456\u0432 \u0443 pandas DataFrame:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\"><span style=\"color: #008080;\">#create function to calculate p-values for each pairwise correlation coefficient<\/span>\ndef<\/span> r_pvalues(df):\n    cols = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> (columns= <span style=\"color: #3366ff;\">df.columns<\/span> )\n    p = cols. <span style=\"color: #3366ff;\">transpose<\/span> (). <span style=\"color: #3366ff;\">join<\/span> (cols, how=' <span style=\"color: #ff0000;\">outer<\/span> ')\n    <span style=\"color: #008000;\">for<\/span> r <span style=\"color: #008000;\">in<\/span> df. <span style=\"color: #3366ff;\">columns<\/span> :\n        <span style=\"color: #008000;\">for<\/span> c <span style=\"color: #008000;\">in<\/span> df. <span style=\"color: #3366ff;\">columns<\/span> :\n            tmp = df[df[r]. <span style=\"color: #3366ff;\">notnull<\/span> () &amp; df[c]. <span style=\"color: #3366ff;\">notnull<\/span> ()]\n            p[r][c] = round(pearsonr(tmp[r], tmp[c])[1], 4)\n    <span style=\"color: #008000;\">return<\/span> p\n\n<span style=\"color: #008080;\">#use custom function to calculate p-values\n<\/span>r_pvalues(df)\n\n             X Y Z\nx 0.0 0.2296 0.0005\ny 0.2296 0.0 0.4238\nz 0.0005 0.4238 0.0<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">\u0417 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u043c\u0438 \u0431\u0430\u0447\u0438\u043c\u043e:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">P-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043b\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u043c\u0456\u0436 x \u0456 y \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <strong>0,2296<\/strong> .<\/span><\/li>\n<li> <span style=\"color: #000000;\">P-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043b\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u043c\u0456\u0436 x \u0456 z \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454 <strong>0,0005<\/strong> .<\/span><\/li>\n<li> <span style=\"color: #000000;\">P-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043b\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u043c\u0456\u0436 y \u0456 z \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <strong>0,4238<\/strong> .<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">\u0417\u0430\u0443\u0432\u0430\u0436\u0442\u0435, \u0449\u043e \u043c\u0438 \u043e\u043a\u0440\u0443\u0433\u043b\u0438\u043b\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043e \u0447\u043e\u0442\u0438\u0440\u044c\u043e\u0445 \u0437\u043d\u0430\u043a\u0456\u0432 \u043f\u0456\u0441\u043b\u044f \u043a\u043e\u043c\u0438 \u0432 \u043d\u0430\u0448\u0456\u0439 \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0456\u0439 \u0444\u0443\u043d\u043a\u0446\u0456\u0457.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u041d\u0435 \u0441\u043e\u0440\u043e\u043c\u0442\u0435\u0441\u044f \u0437\u0430\u043c\u0456\u043d\u0438\u0442\u0438 <strong>4<\/strong> \u0432 \u043e\u0441\u0442\u0430\u043d\u043d\u044c\u043e\u043c\u0443 \u0440\u044f\u0434\u043a\u0443 \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u043d\u0430 \u0456\u043d\u0448\u0435 \u0447\u0438\u0441\u043b\u043e, \u0449\u043e\u0431 \u043e\u043a\u0440\u0443\u0433\u043b\u0438\u0442\u0438 \u0434\u043e \u0456\u043d\u0448\u043e\u0457 \u043a\u0456\u043b\u044c\u043a\u043e\u0441\u0442\u0456 \u0437\u043d\u0430\u043a\u0456\u0432 \u043f\u0456\u0441\u043b\u044f \u043a\u043e\u043c\u0438.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>\u041f\u0440\u0438\u043c\u0456\u0442\u043a\u0430<\/strong> . \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0432\u043d\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u044e \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0456\u0457 SciPy <strong>pearsonr()<\/strong> <a href=\"https:\/\/docs.scipy.org\/doc\/scipy\/reference\/generated\/scipy.stats.pearsonr.html\" target=\"_blank\" rel=\"noopener\">\u0442\u0443\u0442<\/a> .<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u0414\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0456 \u0440\u0435\u0441\u0443\u0440\u0441\u0438<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">\u0423 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0445 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0430\u0445 \u043f\u043e\u044f\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f, \u044f\u043a \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438 \u0456\u043d\u0448\u0456 \u043f\u043e\u0448\u0438\u0440\u0435\u043d\u0456 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f \u043f\u0430\u043d\u0434\u0438:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/uk\/\u0433\u0440\u0443\u043f\u0438-\u043f\u0430\u043d\u0434-\u0437\u0430-\u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0454\u044e\/\" target=\"_blank\" rel=\"noopener\">\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u044e \u0437\u0430 \u0433\u0440\u0443\u043f\u043e\u044e \u0432 Pandas<\/a><br \/> <a href=\"https:\/\/statorials.org\/uk\/\u043f\u0430\u043d\u0434\u0438-\u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0438\u043d\u0438\u0438-\u043f\u0456\u0434\u0448\u0438\u043f\u043d\u0438\u043a\/\" target=\"_blank\" rel=\"noopener\">\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 \u043a\u043e\u0432\u0437\u043d\u0443 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u044e \u0432 \u043f\u0430\u043d\u0434\u0430\u0445<\/a><br \/> <a href=\"https:\/\/statorials.org\/uk\/\u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u044f-spearman-python\/\" target=\"_blank\" rel=\"noopener\">\u042f\u043a \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u044e \u0440\u0430\u043d\u0433\u0456\u0432 \u0421\u043f\u0456\u0440\u043c\u0435\u043d\u0430 \u0432 \u043f\u0430\u043d\u0434\u0430\u0445<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u041f\u0456\u0440\u0441\u043e\u043d\u0430 \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0434\u043b\u044f \u0432\u0438\u043c\u0456\u0440\u044e\u0432\u0430\u043d\u043d\u044f \u043b\u0456\u043d\u0456\u0439\u043d\u043e\u0433\u043e \u0437\u0432\u2019\u044f\u0437\u043a\u0443 \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438. \u0426\u0435\u0439 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0437\u0430\u0432\u0436\u0434\u0438 \u043f\u0440\u0438\u0439\u043c\u0430\u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u0456\u0434 -1 \u0434\u043e 1 , \u0434\u0435: -1 : \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u0430 \u043b\u0456\u043d\u0456\u0439\u043d\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u044f \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438. 0 : \u043d\u0435\u043c\u0430\u0454 \u043b\u0456\u043d\u0456\u0439\u043d\u043e\u0457 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438. 1: \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u0430 \u043b\u0456\u043d\u0456\u0439\u043d\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u044f \u043c\u0456\u0436 \u0434\u0432\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438. \u0429\u043e\u0431 \u0432\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438, \u0447\u0438 \u0454 \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 [&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 \u0437\u043d\u0430\u0439\u0442\u0438 P \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434 - Statorials<\/title>\n<meta name=\"description\" content=\"\u0426\u0435\u0439 \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a \u043f\u043e\u044f\u0441\u043d\u044e\u0454, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434, \u0456\u0437 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0430\u043c\u0438.\" \/>\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\/p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f-pandas-correlation\/\" \/>\n<meta property=\"og:locale\" content=\"uk_UA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u042f\u043a \u0437\u043d\u0430\u0439\u0442\u0438 P \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434 - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u0426\u0435\u0439 \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a \u043f\u043e\u044f\u0441\u043d\u044e\u0454, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434, \u0456\u0437 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0430\u043c\u0438.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/uk\/p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f-pandas-correlation\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-12T04:44:09+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\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/\",\"url\":\"https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/\",\"name\":\"\u042f\u043a \u0437\u043d\u0430\u0439\u0442\u0438 P \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434 - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/uk\/#website\"},\"datePublished\":\"2023-07-12T04:44:09+00:00\",\"dateModified\":\"2023-07-12T04:44:09+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/uk\/#\/schema\/person\/2affa1a5da08a4b61ab4becd078c191a\"},\"description\":\"\u0426\u0435\u0439 \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a \u043f\u043e\u044f\u0441\u043d\u044e\u0454, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434, \u0456\u0437 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0430\u043c\u0438.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/#breadcrumb\"},\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/#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 \u0437\u043d\u0430\u0439\u0442\u0438 p \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434\"}]},{\"@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 \u0437\u043d\u0430\u0439\u0442\u0438 P \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434 - Statorials","description":"\u0426\u0435\u0439 \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a \u043f\u043e\u044f\u0441\u043d\u044e\u0454, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434, \u0456\u0437 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0430\u043c\u0438.","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\/p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f-pandas-correlation\/","og_locale":"uk_UA","og_type":"article","og_title":"\u042f\u043a \u0437\u043d\u0430\u0439\u0442\u0438 P \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434 - Statorials","og_description":"\u0426\u0435\u0439 \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a \u043f\u043e\u044f\u0441\u043d\u044e\u0454, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434, \u0456\u0437 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0430\u043c\u0438.","og_url":"https:\/\/statorials.org\/uk\/p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f-pandas-correlation\/","og_site_name":"Statorials","article_published_time":"2023-07-12T04:44:09+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\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/","url":"https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/","name":"\u042f\u043a \u0437\u043d\u0430\u0439\u0442\u0438 P \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434 - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/uk\/#website"},"datePublished":"2023-07-12T04:44:09+00:00","dateModified":"2023-07-12T04:44:09+00:00","author":{"@id":"https:\/\/statorials.org\/uk\/#\/schema\/person\/2affa1a5da08a4b61ab4becd078c191a"},"description":"\u0426\u0435\u0439 \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a \u043f\u043e\u044f\u0441\u043d\u044e\u0454, \u044f\u043a \u043e\u0431\u0447\u0438\u0441\u043b\u0438\u0442\u0438 p-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434, \u0456\u0437 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0430\u043c\u0438.","breadcrumb":{"@id":"https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/#breadcrumb"},"inLanguage":"uk","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/uk\/p-%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-pandas-correlation\/#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 \u0437\u043d\u0430\u0439\u0442\u0438 p \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0430 \u043a\u043e\u0440\u0435\u043b\u044f\u0446\u0456\u0457 \u0443 \u043f\u0430\u043d\u0434"}]},{"@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\/4296"}],"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=4296"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/posts\/4296\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/media?parent=4296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/categories?post=4296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/uk\/wp-json\/wp\/v2\/tags?post=4296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}