﻿{"id":1734,"date":"2013-01-25T19:00:37","date_gmt":"2013-01-25T10:00:37","guid":{"rendered":"http:\/\/fujiitoshiki.com\/improvesociety\/?p=1734"},"modified":"2014-08-05T17:01:10","modified_gmt":"2014-08-05T08:01:10","slug":"pearson-product-moment-correlation-coefficient-r-and-t-test-on-it","status":"publish","type":"post","link":"https:\/\/www.fujiitoshiki.com\/improvesociety\/?p=1734","title":{"rendered":"Pearson product-moment correlation coefficient (r) and t-test on it"},"content":{"rendered":"<div class=\"theContentWrap-ccc\"><p>The index of relation between <img src='https:\/\/s0.wp.com\/latex.php?latex=x&#038;bg=T&#038;fg=000000&#038;s=0' alt='x' title='x' class='latex' \/> and <img src='https:\/\/s0.wp.com\/latex.php?latex=y&#038;bg=T&#038;fg=000000&#038;s=0' alt='y' title='y' class='latex' \/> is correlation coefficient or Pearson product moment correlation coefficient as formula below. Range of correlation coefficient is between -1 and 1. <\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+r+%3D+%5Cfrac%7B%5Csum_%7Bi%3D1%7D%5En%28x_i-%5Cbar+x%29%28y_i+-+%5Cbar+y%29%7D%7B%5Csqrt%7B%5Csum_%7Bi%3D1%7D%5En%28x_i+-+%5Cbar+x%29%5E2%7D%5Csqrt%7B%5Csum_%7Bi%3D1%7D%5En%28y_i+-+%5Cbar+y%29%5E2%7D%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\displaystyle r = \\frac{\\sum_{i=1}^n(x_i-\\bar x)(y_i - \\bar y)}{\\sqrt{\\sum_{i=1}^n(x_i - \\bar x)^2}\\sqrt{\\sum_{i=1}^n(y_i - \\bar y)^2}}' title='\\displaystyle r = \\frac{\\sum_{i=1}^n(x_i-\\bar x)(y_i - \\bar y)}{\\sqrt{\\sum_{i=1}^n(x_i - \\bar x)^2}\\sqrt{\\sum_{i=1}^n(y_i - \\bar y)^2}}' class='latex' \/><\/p>\n<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cbar+x&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\bar x' title='\\bar x' class='latex' \/> and <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cbar+y&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\bar y' title='\\bar y' class='latex' \/> are average of <img src='https:\/\/s0.wp.com\/latex.php?latex=x&#038;bg=T&#038;fg=000000&#038;s=0' alt='x' title='x' class='latex' \/> and <img src='https:\/\/s0.wp.com\/latex.php?latex=y&#038;bg=T&#038;fg=000000&#038;s=0' alt='y' title='y' class='latex' \/>, respectively. i is number of sample (incremental variable). n is number of sample. <\/p>\n<p>Correlation coefficient (r) of 2 variables randomly extracted from population follows t-distribution. T-statistics of r is calculated formula as below and follows t-distribution with degree of freedom n-2, n is number of sample. When correlation coefficient of population is <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Crho&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\rho' title='\\rho' class='latex' \/>, null hypothesis is described that &#8220;<img src='https:\/\/s0.wp.com\/latex.php?latex=%5Crho&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\rho' title='\\rho' class='latex' \/> = 0&#8243;. If t-statistics calculated from number of sample (n) and correlation coefficient (r) is greater than that of significance level (<img src='https:\/\/s0.wp.com\/latex.php?latex=%5Calpha&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\alpha' title='\\alpha' class='latex' \/>), null hypothesis is rejected. <\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+t+%3D+r%5Csqrt%7B%5Cfrac%7Bn+-+2%7D%7B1+-+r%5E2%7D%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\displaystyle t = r\\sqrt{\\frac{n - 2}{1 - r^2}}' title='\\displaystyle t = r\\sqrt{\\frac{n - 2}{1 - r^2}}' class='latex' \/><\/p>\n<blockquote>\n<p>The test of significance for this important null hypothesis H (&rho; = 0) is equivalent to that for the null hypothesis H (&beta;<sub>1<\/sub> = 0) or H (&beta;<sub>2<\/sub> = 0). It now follows that if x and y have a joint bivariate normal distribution, then the test for the null hypothesis H (&rho; = 0) is obtained by using the fact that if the null hypothesis under test is true, then<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+F+%3D+%5Cfrac%7B%28n-2%29Z%5E2%7D%7BXY-Z%5E2%7D+%3D+%5Cfrac%7B%28n-2%29r%5E2%7D%7B1-r%5E2%7D%5Cvspace%7B0.1in%7D%5C%5C+X+%3D+%5Csum%28x+-+%5Cbar%7Bx%7D%29%5E2%5Cvspace%7B0.1in%7D%5C%5C+Y+%3D+%5Csum%28y+-+%5Cbar%7By%7D%29%5E2%5Cvspace%7B0.1in%7D%5C%5C+Z+%3D+%5Csum%28x+-+%5Cbar%7Bx%7D%29%28y+-+%5Cbar%7By%7D%29%5Cvspace%7B0.1in%7D%5C%5C+r%5E2+%3D+%5Cfrac%7BZ%5E2%7D%7BXY%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\displaystyle F = \\frac{(n-2)Z^2}{XY-Z^2} = \\frac{(n-2)r^2}{1-r^2}\\vspace{0.1in}\\\\ X = \\sum(x - \\bar{x})^2\\vspace{0.1in}\\\\ Y = \\sum(y - \\bar{y})^2\\vspace{0.1in}\\\\ Z = \\sum(x - \\bar{x})(y - \\bar{y})\\vspace{0.1in}\\\\ r^2 = \\frac{Z^2}{XY}' title='\\displaystyle F = \\frac{(n-2)Z^2}{XY-Z^2} = \\frac{(n-2)r^2}{1-r^2}\\vspace{0.1in}\\\\ X = \\sum(x - \\bar{x})^2\\vspace{0.1in}\\\\ Y = \\sum(y - \\bar{y})^2\\vspace{0.1in}\\\\ Z = \\sum(x - \\bar{x})(y - \\bar{y})\\vspace{0.1in}\\\\ r^2 = \\frac{Z^2}{XY}' class='latex' \/><\/p>\n<p>has the F distribution with 1, n &#8211; 2 d.f. An equivalent test of significance for the null hypothesis is obtained by using the fact that if the null hypothesis is true, then<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+t+%3D+%5Cfrac%7Br%5Csqrt%7Bn+-+2%7D%7D%7B%5Csqrt%7B1+-+r%5E2%7D%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\displaystyle t = \\frac{r\\sqrt{n - 2}}{\\sqrt{1 - r^2}}' title='\\displaystyle t = \\frac{r\\sqrt{n - 2}}{\\sqrt{1 - r^2}}' class='latex' \/><\/p>\n<p>has &#8220;Student&#8217;s&#8221; distribution. with n &#8211; 2 d.f.<\/p>\n<p>For any non-zero null hypothesis about &rho; there is no parallelism between the correlation coefficient &rho; and the regression coefficients &beta;<sub>1<\/sub> and &beta;<sub>2<\/sub>. In fact, no exact test of significance is available for testing readily non-zero null hypothesis about &rho;. Fisher has given an approximate method for such null hypothesis, but we do not consider this here.<\/p>\n<\/blockquote>\n<p><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;OneJS=1&#038;Operation=GetAdHtml&#038;MarketPlace=US&#038;source=ss&#038;ref=ss_til&#038;ad_type=product_link&#038;tracking_id=improsocie-20&#038;marketplace=amazon&#038;region=US&#038;placement=0852640684&#038;asins=0852640684&#038;linkId=OO3FDONRKZQ5OVGX&#038;show_border=true&#038;link_opens_in_new_window=true\"><\/iframe><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>The index of relation between and is correlation coefficient or Pearson product moment correlation coefficient &hellip; <a href=\"https:\/\/www.fujiitoshiki.com\/improvesociety\/?p=1734\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Pearson product-moment correlation coefficient (r) and t-test on it&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1734","post","type-post","status-publish","format-standard","hentry","category-statistics"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts\/1734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1734"}],"version-history":[{"count":27,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts\/1734\/revisions"}],"predecessor-version":[{"id":6119,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts\/1734\/revisions\/6119"}],"wp:attachment":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}