{"id":682,"date":"2005-12-07T12:55:00","date_gmt":"2005-12-07T12:55:00","guid":{"rendered":"http:\/\/maddruid.com\/wp\/?p=682"},"modified":"2006-10-08T16:05:03","modified_gmt":"2006-10-08T16:05:03","slug":"680-of-pengkalan-pasir-and-malaysian-general-election-in-2008-hypothesis-testing","status":"publish","type":"post","link":"https:\/\/maddruid.com\/?p=682","title":{"rendered":"[680] Of Pengkalan Pasir and Malaysian general election in 2008: hypothesis testing"},"content":{"rendered":"<p>So, Barisan Nasional won Pengkalan Pasir with a slim margin. A recount confirmed BN&#8217;s victory. But does this mean PAS in deep shit? More precisely, if this by-election acts as a signal for the next Malaysian general election, does this mean support for Barisan Nasional&#8217;s growing in Kelantan?<\/p>\n<p>Quite hard to say. Let&#8217;s see some statistics to see how hard it is.<\/p>\n<p>First of all, we know from the <a href=\"http:\/\/www.nst.com.my\/Current_News\/NST\/Wednesday\/Frontpage\/20051207073643\/Article\/indexb_html\">New Straits Times<\/a> that the first count showed that BN received 7419 votes, PAS 7290, Ibrahim Ali 414 and there were 160 spoiled votes. In total, 15283 votes.<\/p>\n<p>Now, let&#8217;s assume two things to make life simpler.<\/p>\n<p>Kick Ibrahim Ali out of our equation, like how he was kicked from UMNO. And then, we shoved all the spoiled votes into Ibrahim Ali&#8217;s throat before we kick him. That leaves us a total of 14709.<\/p>\n<p>Thanks to the two assumptions, now we have only BN and PAS to worry about. The assumptions help making things easier since it allows us to use bootstrapping method &#8211; the easiest way to get a standard error. Bootstrapping gives us a standard deviation of roughly 0.5 with 60.64 for SE.<\/p>\n<p>Now, my hypothesis is that the difference between BN and PAS &#8211; a difference of 129 votes &#8211; is zero. That makes t = 129\/60.64, which makes t about 2.13. t is as in the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Student%27s_t-distribution\">t-distribution<\/a>.<\/p>\n<p>Using <a href=\"http:\/\/en.wikipedia.org\/wiki\/Student%27s_t-test\">t-test<\/a>, the hypothesis at 25% <a href=\"http:\/\/en.wikipedia.org\/wiki\/Significance_level\">significance level<\/a> is rejected.<\/p>\n<p>However, at 10% and lower significance levels, the hypothesis is significant. Doesn&#8217;t necessarily mean it must be accepted but it can&#8217;t be rejected.<\/p>\n<p>So, did anybody win outright statistically? I don&#8217;t know. It&#8217;s likely the answer is no. More importantly, if this is a signal of things to come in 2008, Pengkalan Pasir is a crystal ball with industrial defect.<\/p>\n<p>Anyway, given this entry is written at 2 AM, you might be reading crap with bad statistics. Hah!<\/p>\n<p>Heh. I myself am not convinced with the statistics; the hypothesis testing in particular looks odd. I&#8217;ve done this before extensively but I haven&#8217;t touched real statistics in a long time. So, you are more than welcomed to check them up or even refined them to include Ibrahim Ali and the spoiled votes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, Barisan Nasional won Pengkalan Pasir with a slim margin. A recount confirmed BN&#8217;s victory. But does this mean PAS in deep shit? More precisely, if this by-election acts as a signal for the next Malaysian general election, does this mean support for Barisan Nasional&#8217;s growing in Kelantan? Quite hard to say. Let&#8217;s see some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,8],"tags":[],"class_list":["post-682","post","type-post","status-publish","format-standard","hentry","category-economics","category-politics-government"],"_links":{"self":[{"href":"https:\/\/maddruid.com\/index.php?rest_route=\/wp\/v2\/posts\/682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maddruid.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/maddruid.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/maddruid.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maddruid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=682"}],"version-history":[{"count":0,"href":"https:\/\/maddruid.com\/index.php?rest_route=\/wp\/v2\/posts\/682\/revisions"}],"wp:attachment":[{"href":"https:\/\/maddruid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/maddruid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/maddruid.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}