{"id":72,"date":"2013-01-16T05:27:00","date_gmt":"2013-01-16T05:27:00","guid":{"rendered":"https:\/\/paulgcurran.com\/skepticalstats\/?p=72"},"modified":"2013-01-16T05:27:00","modified_gmt":"2013-01-16T05:27:00","slug":"this-one-is-about-halo-4-but-also-about-the-association-of-nominal-dichotomous-variables","status":"publish","type":"post","link":"https:\/\/paulgcurran.com\/skepticalstats\/?p=72","title":{"rendered":"This one is about Halo 4 (but also about the association of nominal dichotomous variables)"},"content":{"rendered":"<p>If you follow video games &#8211; and even if you don&#8217;t &#8211; you may have heard of the Halo series.&nbsp; Halo 4 came out recently, and I&#8217;ve been playing a bit of it.&nbsp; It&#8217;s a good game, though that&#8217;s not really what we&#8217;re here to talk about today. <\/p>\n<p>The Halo series has always been pretty good at keeping very detailed statistics for everything you do in the game, and Halo 4 is no exception.&nbsp; The website <a href=\"http:\/\/www.halowaypoint.com\/en-us\/\">Halo Waypoint<\/a> allows you to access a ton of great information about how you&#8217;ve been playing the game.<\/p>\n<p>Now, a major component of Halo 4 is the multiplayer aspect.&nbsp; Much of the time I spend playing is playing online with friends &#8211; in fact, using the game to keep in touch with distant friends is a big part of playing.&nbsp; There are a number of different game types you can play, and there are also a number of different maps that you can play on. <\/p>\n<p>While playing with different friends I started to notice an odd trend in one game type on a certain map.&nbsp; Specifically, for those who care, the game type that seems to be producing these odd trends is the objective-based game type of dominion.&nbsp; When a game is being set up, the way things work is that a number of players are found, and then those players vote on a map to play on.&nbsp; Once the map is selected, Halo divides the players into teams, assigns them to either red team or blue team, and then starts the game.&nbsp; <\/p>\n<p>What I started to notice &#8211; and initially joked about &#8211; was the fact that while I was playing with one friend in particular we would always be placed on blue team on a certain map.&nbsp; Let&#8217;s call that friend Brad.&nbsp; That map &#8211; again for those who care &#8211; is the map called Longbow.<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/3.bp.blogspot.com\/-v-ISEsExREc\/UPVlSvKgjgI\/AAAAAAAAB0g\/VcA6fhQvDoM\/s1600\/halo4longbow01.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-v-ISEsExREc\/UPVlSvKgjgI\/AAAAAAAAB0g\/VcA6fhQvDoM\/s1600\/halo4longbow01.jpg\" height=\"360\" width=\"640\" \/><\/a><\/div>\n<p>This started as a joke, but as things progressed it started to seem more and more true that being in a group with Brad meant that the game would always assign us to blue team while playing dominion on Longbow.&nbsp; This assignment is (seemingly) random, and completely out of our hands.<\/p>\n<p>Like I mentioned, Halo Waypoint allows you to pull down a whole lot of stats about what you&#8217;re doing in the game.&nbsp; It was fairly easy to go in to my play history and pull out all the games of dominion that I have played on this map.&nbsp; I was then able to sort these into games on two criteria: where I was playing with this particular friend and those where I wasn&#8217;t, and if we were on blue team or red team.<\/p>\n<p>What this produces is a two by two table that looks like this:<\/p>\n<p><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 299px;\">\n<colgroup>\n<col style=\"mso-width-alt: 2486; mso-width-source: userset; width: 51pt;\" width=\"68\"><\/col>\n<col style=\"mso-width-alt: 2706; mso-width-source: userset; width: 56pt;\" width=\"74\"><\/col>\n<col style=\"mso-width-alt: 3401; mso-width-source: userset; width: 70pt;\" width=\"93\"><\/col>\n<col style=\"width: 48pt;\" width=\"64\"><\/col>\n<\/colgroup>\n<tbody>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt; width: 51pt;\" width=\"68\"><\/td>\n<td style=\"width: 56pt;\" width=\"74\">With Brad<\/td>\n<td style=\"width: 70pt;\" width=\"93\">Without Brad<\/td>\n<td style=\"width: 48pt;\" width=\"64\">Totals<\/td>\n<\/tr>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt;\">Red Team<\/td>\n<td align=\"right\">2<\/td>\n<td align=\"right\">14<\/td>\n<td align=\"right\">16<\/td>\n<\/tr>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt;\">Blue Team<\/td>\n<td align=\"right\">14<\/td>\n<td align=\"right\">10<\/td>\n<td align=\"right\">24<\/td>\n<\/tr>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt;\">Totals<\/td>\n<td align=\"right\">16<\/td>\n<td align=\"right\">24<\/td>\n<td align=\"right\">40<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This is called a contingency table, and represents the multivariate frequency distribution of these variables.&nbsp; Each game can (and must) have one of two values on each of these two variables.&nbsp; In every game we have to be placed on either red or blue team, and in every game Brad is either there or he isn&#8217;t. <\/p>\n<p>These variables are special in that each of them has only two values that they can take.&nbsp; Variables of these type are a special type of nominal categorical variable called dichotomous variables, based on the two values that can be taken. <\/p>\n<p>If you have two dichotomous variables there are a few tests that can be used to look at the relationship between those variables.&nbsp; What we&#8217;re going to use today is Fisher&#8217;s exact test. <\/p>\n<p>This test was devised by R.A. Fisher back in the 1920s.&nbsp; Anecdotally, he devised this method to test a colleague who claimed that she was able to tell by taste whether the milk or tea was added first to a given cup of tea (a seemingly difficult claim).&nbsp; Fisher proposed that he would give her eight cups of tea &#8211; four of each type &#8211; prepared and presented in random order.&nbsp; The woman (Dr. Muriel Bristol) was able to successfully identify all cups correctly. <\/p>\n<p>Regardless of how successful she was, you can imagine producing a contingency table of this data.&nbsp; For her specific case it would look like this:<br \/>&nbsp;&nbsp;  <\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 302px;\">\n<colgroup>\n<col style=\"mso-width-alt: 4132; mso-width-source: userset; width: 85pt;\" width=\"113\"><\/col>\n<col style=\"mso-width-alt: 3510; mso-width-source: userset; width: 72pt;\" width=\"96\"><\/col>\n<col style=\"mso-width-alt: 3401; mso-width-source: userset; width: 70pt;\" width=\"93\"><\/col>\n<\/colgroup>\n<tbody>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt; width: 85pt;\" width=\"113\"><\/td>\n<td style=\"width: 72pt;\" width=\"96\">Says Milk First<\/td>\n<td style=\"width: 70pt;\" width=\"93\">Says Tea First<\/td>\n<\/tr>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt;\">Actually Milk First<\/td>\n<td align=\"right\">4<\/td>\n<td align=\"right\">0<\/td>\n<\/tr>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt;\">Actually Tea First<\/td>\n<td align=\"right\">0<\/td>\n<td align=\"right\">4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Long story short, this data can be analyzed with a Fisher&#8217;s exact test.&nbsp; A significant result means that there is a relationship between the two variables such that information about one provides you with better than random information about the other.&nbsp; In the case of the lady tasting tea (as the experiment is known), there is a relationship between what Dr. Bristol said and what was actually the case.&nbsp; In fact, there is a perfect relationship in this case &#8211; each of the 4 times that she said milk was added first the milk was actually added first, and each of the 4 times that she said tea was added first the tea was actually added first.<\/p>\n<p>The lady tasting tea experiment data is significant, but what about our Halo data?&nbsp; &nbsp; <\/p>\n<p>Well, it&#8217;s significant too, actually.&nbsp; If you want to try it yourself there&#8217;s a good online calculator here:<\/p>\n<p><a href=\"http:\/\/graphpad.com\/quickcalcs\/contingency1\/\">http:\/\/graphpad.com\/quickcalcs\/contingency1\/<\/a><\/p>\n<p>In order for this to be statistically significant we&#8217;re looking for a <i>p<\/i> value below 0.05.&nbsp; Our <i>p<\/i> value in this case is actually 0.0074, below 0.05 and thus significant at that level. <\/p>\n<p>What this means is that there is a statistically significant relationship between our two variables.&nbsp; Our two variables are the presence of Brad, and the assignment of team.&nbsp; The presence of Brad in my game is actually statistically related to the team to which we are assigned.&nbsp; This would seem to make it appear that our team assignment is not random on this map. <\/p>\n<p>This got me wondering about other maps.&nbsp; This effect was only large enough for me to casually pick up on for this one map, but might things be similar on others?&nbsp; If other maps don&#8217;t show these relationships then there would potentially be an effect of the map.<\/p>\n<p>The map Longbow gets played a lot for the dominion game type, but there&#8217;s another map that gets similar (if not a little more) play.&nbsp; That map is Exile.<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/1.bp.blogspot.com\/-QVq04V-qya8\/UPVv5AotFzI\/AAAAAAAAB08\/61Qog8TFd38\/s1600\/gallery_1_204_667843.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/1.bp.blogspot.com\/-QVq04V-qya8\/UPVv5AotFzI\/AAAAAAAAB08\/61Qog8TFd38\/s1600\/gallery_1_204_667843.png\" height=\"480\" width=\"640\" \/><\/a><\/div>\n<p>So in the same way as I pulled down the numbers for Longbow I went in and pulled down the numbers for Exile.&nbsp; Here they are: &nbsp;&nbsp; <\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 299px;\">\n<tbody>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt; width: 51pt;\" width=\"68\"><\/td>\n<td style=\"width: 56pt;\" width=\"74\">With Brad<\/td>\n<td style=\"width: 70pt;\" width=\"93\">Without Brad<\/td>\n<td style=\"width: 48pt;\" width=\"64\">Totals<\/td>\n<\/tr>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt;\">Red Team<\/td>\n<td align=\"right\">13<\/td>\n<td align=\"right\">18<\/td>\n<td align=\"right\">31<\/td>\n<\/tr>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt;\">Blue Team<\/td>\n<td align=\"right\">16<\/td>\n<td align=\"right\">14<\/td>\n<td align=\"right\">30<\/td>\n<\/tr>\n<tr height=\"17\" style=\"height: 12.75pt;\">\n<td height=\"17\" style=\"height: 12.75pt;\">Totals<\/td>\n<td align=\"right\">29<\/td>\n<td align=\"right\">32<\/td>\n<td align=\"right\">61<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You can use the same calculator to run the same Fisher&#8217;s exact test, but for this map we fail to find a significant result &#8211; the <i>p<\/i> value for these numbers is greater than 0.05 and thus not significant (it&#8217;s actually 0.4462). <\/p>\n<p>This would seem to implicate that the effect that we&#8217;re seeing is map specific, and specific to the map Longbow.&nbsp; Having Brad in my group doesn&#8217;t seem to impact team selection on Exile &#8211; it follows with the fact that unlike Longbow I haven&#8217;t casually noticed it on that map, or others.<\/p>\n<p>So, there you go &#8211; find some other dichotomous variables in your life and put together some contingency tables.&nbsp; You might be surprised (like I am) at what you find. <\/p>\n<p>343 Industries, maybe you should look into this?&nbsp; And what more could I find if I had access to your full overall data?&nbsp; Probably some pretty cool stuff.&nbsp; =)&nbsp;&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you follow video games &#8211; and even if you don&#8217;t &#8211; you may have heard of the Halo series.&nbsp; Halo 4 came out recently, and I&#8217;ve been playing a bit of it.&nbsp; It&#8217;s a good game, though that&#8217;s not really what we&#8217;re here to talk about today. The Halo series has always been pretty &hellip; <a href=\"https:\/\/paulgcurran.com\/skepticalstats\/?p=72\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">This one is about Halo 4 (but also about the association of nominal dichotomous variables)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/paulgcurran.com\/skepticalstats\/index.php?rest_route=\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paulgcurran.com\/skepticalstats\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paulgcurran.com\/skepticalstats\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paulgcurran.com\/skepticalstats\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paulgcurran.com\/skepticalstats\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=72"}],"version-history":[{"count":0,"href":"https:\/\/paulgcurran.com\/skepticalstats\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"https:\/\/paulgcurran.com\/skepticalstats\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paulgcurran.com\/skepticalstats\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paulgcurran.com\/skepticalstats\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}