{"id":767,"date":"2016-09-30T10:22:01","date_gmt":"2016-09-30T15:22:01","guid":{"rendered":"http:\/\/zhanxw.com\/blog\/?p=767"},"modified":"2017-02-17T10:42:42","modified_gmt":"2017-02-17T16:42:42","slug":"%e5%8d%a1%e6%96%b9%e6%a3%80%e9%aa%8c%e7%9a%84%e5%85%ac%e5%bc%8f%ef%bc%882x2%ef%bc%89","status":"publish","type":"post","link":"https:\/\/zhanxw.com\/blog\/2016\/09\/%e5%8d%a1%e6%96%b9%e6%a3%80%e9%aa%8c%e7%9a%84%e5%85%ac%e5%bc%8f%ef%bc%882x2%ef%bc%89\/","title":{"rendered":"\u5361\u65b9\u68c0\u9a8c\u7684\u516c\u5f0f\uff082&#215;2\uff09"},"content":{"rendered":"<p>\u5361\u65b9\u68c0\u9a8c\u7684\u516c\u5f0f\uff082&#215;2\uff09<br \/>\nA short-cut formula for Chi-square test a 2 by 2 table<\/p>\n<p>\u6700\u8fd1\u53d1\u73b0\u4e00\u4e2a\u5feb\u901f\u8ba1\u7b97\u5361\u65b9\u68c0\u9a8c\u7684\u516c\u5f0f\u3002<br \/>\n\u5bf9\u4e8e2&#215;2\u7684\u8868\u683c<\/p>\n<p>[latex]<br \/>\n\\begin{array}{|c|c|c|}<br \/>\n\\hline<br \/>\na &#038; b &#038; (a+b)\\\\ \\hline<br \/>\nc &#038; d &#038; (c+d)\\\\ \\hline<br \/>\n(a+c)  &#038; (b+d)  &#038; n\\\\ \\hline<br \/>\n\\end{array}<br \/>\n[\/latex]<br \/>\n\u4e0a\u5f0f\u4e2d[latex]n=a+b+c+d[\/latex]<\/p>\n<p>\u5361\u65b9\u68c0\u9a8c\u7684\u7edf\u8ba1\u91cf\u662f\uff1a<br \/>\n[latex]<br \/>\n\\chi^2_1 = \\frac{n(ad-bc)^2}{(a+b)(c+d)(a+c)(b+d)}<br \/>\n[\/latex]<\/p>\n<p>\u8fd9\u4e2a\u65b9\u6cd5\u548cR\u8ba1\u7b97\u7684\u7ed3\u679c\uff08\u4e0d\u8981\u7528continuity correction, e.g. chisq(&#8230;, correct = FALSE))\u662f\u4e00\u81f4\u7684\u3002<\/p>\n<p>\uff0d\uff0d February 17, 2017\u66f4\u65b0 \uff0d\uff0d<\/p>\n<p>\u521a\u521a\u53d1\u73b0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Matthews_correlation_coefficient\">Matthew&#8217;s Correlation Coefficient (MCC)<\/a>\u7684\u5b9a\u4e49\u548c2&#215;2 table\u7684\u5361\u65b9\u68c0\u9a8c\u6709\u5982\u4e0b\u8054\u7cfb<br \/>\n[latex]<br \/>\n|MCC| = \\sqrt{\\frac{\\chi^2}{n}}<br \/>\n[\/latex]<br \/>\n\u56e0\u4e3aMCC\u7684\u8303\u56f4\u662f\uff0d1\u52301\uff0c\u56e0\u6b64[latex]\\chi^2 [\/latex]\u7684\u8303\u56f4\u662f0\u5230[latex]n[\/latex]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5361\u65b9\u68c0\u9a8c\u7684\u516c\u5f0f\uff082&#215;2\uff09 A short-cut formula for Chi-square test a 2 by 2 table \u6700\u8fd1\u53d1\u73b0\u4e00\u4e2a\u5feb\u901f\u8ba1\u7b97\u5361\u65b9\u68c0\u9a8c\u7684\u516c\u5f0f\u3002 \u5bf9\u4e8e2&#215;2\u7684\u8868\u683c [latex] \\begin{array}{|c|c|c|} \\hline a &#038; b &#038; (a+b)\\\\ \\hline c &#038; d &#038; (c+d)\\\\ \\hline (a+c) &#038; (b+d) &#038; n\\\\ \\hline \\end{array} [\/latex] \u4e0a\u5f0f\u4e2d[latex]n=a+b+c+d[\/latex] \u5361\u65b9\u68c0\u9a8c\u7684\u7edf\u8ba1\u91cf\u662f\uff1a [latex] \\chi^2_1 = \\frac{n(ad-bc)^2}{(a+b)(c+d)(a+c)(b+d)} [\/latex] \u8fd9\u4e2a\u65b9\u6cd5\u548cR\u8ba1\u7b97\u7684\u7ed3\u679c\uff08\u4e0d\u8981\u7528continuity correction, e.g. chisq(&#8230;, correct = FALSE))\u662f\u4e00\u81f4\u7684\u3002 \uff0d\uff0d February 17, 2017\u66f4\u65b0 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[134,151],"class_list":["post-767","post","type-post","status-publish","format-standard","hentry","category-statistics","tag-chisquare","tag-formula"],"_links":{"self":[{"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/posts\/767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/comments?post=767"}],"version-history":[{"count":0,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/posts\/767\/revisions"}],"wp:attachment":[{"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/media?parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/categories?post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhanxw.com\/blog\/wp-json\/wp\/v2\/tags?post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}