{"id":388,"date":"2011-05-16T21:23:42","date_gmt":"2011-05-17T02:23:42","guid":{"rendered":"http:\/\/osric.com\/chris\/accidental-developer\/?p=388"},"modified":"2011-05-16T21:27:05","modified_gmt":"2011-05-17T02:27:05","slug":"online-advertising-click-thru-rates-revisited","status":"publish","type":"post","link":"https:\/\/osric.com\/chris\/accidental-developer\/2011\/05\/online-advertising-click-thru-rates-revisited\/","title":{"rendered":"Online Advertising Click-Thru Rates, Revisited"},"content":{"rendered":"<p>A couple years ago, I wrote <a href=\"https:\/\/osric.com\/chris\/accidental-developer\/2009\/12\/online-advertisements-and-statistical-analysis\/\">Online Advertisements and Statistical Analysis<\/a>, in which I did my best to show that a past study of online advertising click-thru rates (CTRs) wasn&#8217;t worth the pixels it was printed on.<\/p>\n<p>About a week ago, my wife and I were visiting friends, and I found myself in a room with 3 neuroscientists. The topic of statistics came up, and I managed to insert into conversation my small triumph in analyzing the click-thru study and determining both a confidence interval and the number of tests that would need to be run in order to have a meaningful confidence interval. &#8220;Sure,&#8221; one of the scientists says, &#8220;but what you should <em>really<\/em> do instead is a chi-square test for goodness-of-fit.&#8221;<br \/>\n<!--more--><br \/>\nI had no idea what that meant, or even how it was spelled (I was thinking <em>Kai<\/em> at first instead of <em>chi<\/em>), but I found a description in my statistics textbook.<\/p>\n<p>In the original post, there were 6 different banner advertisements, which varied only slightly. Each one was run for 30,000 impressions, which resulted in 6 click-frequencies:<\/p>\n<table border=\"1\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>Ad<\/th>\n<th>A<\/th>\n<th>B<\/th>\n<th>C<\/th>\n<th>D<\/th>\n<th>E<\/th>\n<th>F<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Clicks per 30,000<\/td>\n<td>81<\/td>\n<td>84<\/td>\n<td>90<\/td>\n<td>96<\/td>\n<td>99<\/td>\n<td>108<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The chi-square test calls not just for <em>observed<\/em> values, but also for <em>expected<\/em> values:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/osric.com\/chris\/accidental-developer\/wp-content\/uploads\/2011\/05\/chi-square.png\" alt=\"Equation: sum of the square of the observed value less expected value over the expected value\" title=\"chi-square\" width=\"314\" height=\"23\" class=\"aligncenter size-full wp-image-391\" srcset=\"https:\/\/osric.com\/chris\/accidental-developer\/wp-content\/uploads\/2011\/05\/chi-square.png 314w, https:\/\/osric.com\/chris\/accidental-developer\/wp-content\/uploads\/2011\/05\/chi-square-300x21.png 300w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/><\/p>\n<p>For the expected value, I used the mean of all 6 ads, 93 clicks per 30,000 ad impressions. (I don&#8217;t know if this is the best value to pick, but it falls in line with the textbook examples.)<\/p>\n<p>I got a chi-square value of 5.42. I wasn&#8217;t positive in this case if there were 5 degrees of freedom, or 4, but in either case, using a lookup table, it suggested that the <em>p<\/em>-value was greater than 0.1, which further suggests that the differences in clicks may have been due to chance, rather than differences in ad design.<\/p>\n<p>My wife uses several stats software packages, so we entered my data into <a href=\"http:\/\/www.graphpad.com\/prism\/prism.htm\">GraphPad Prism<\/a> and ran a chi-square test there. It came up with a chi-square value very close to mine (though not identical&#8211;I&#8217;ll have to check my figures again), and a <em>p<\/em>-value of 0.37. That value, if I interpret things correctly, means there was a 37% chance that the results were due to random chance. <\/p>\n<p>I realized part-way through this exercise that there is a way to trick people into believing the truth without any analysis at all, though. Instead of focusing on the clicks, focus on the instances where people didn&#8217;t click. Sure, if one ad gets 81 clicks and another gets 108 clicks, one seems clearly superior to the other. If you instead compare 29,919 non-clicks to 29,892 non-clicks, the difference seems trivial.<\/p>\n<p>I am more satisfied with my result, though. We should be skeptical when people try to convince us that such small differences are significant over so few tests. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Revisiting a post from 2 years ago, I re-analyze online advertisement click-thru rates using a different statistical technique (a chi-square test).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[184,187,185,130,127,132],"class_list":["post-388","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-advertising","tag-chi-square","tag-click-thru-rates","tag-ctr","tag-online-ads","tag-statistics"],"_links":{"self":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/comments?post=388"}],"version-history":[{"count":6,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/388\/revisions"}],"predecessor-version":[{"id":395,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/388\/revisions\/395"}],"wp:attachment":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/media?parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/categories?post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/tags?post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}