<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zusch Login</title>
	<atom:link href="http://www.zuschlogin.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.zuschlogin.com</link>
	<description>Human factors, human-computer interface, GUI design, and usability engineering pondered monthly by Michael Zuschlag</description>
	<lastBuildDate>Wed, 21 Nov 2012 15:33:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Name calling</title>
		<link>http://www.zuschlogin.com/?p=289</link>
		<comments>http://www.zuschlogin.com/?p=289#comments</comments>
		<pubDate>Wed, 05 Sep 2012 22:30:00 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[The Discipline]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=289</guid>
		<description><![CDATA[The risks of title proliferation and the boundaries of UX
Starting my current job 15 years ago, I opened my new box of business cards and read: &#8220;Michael Zuschlag, Engineering Psychologist.&#8221; I&#8217;m an engineering psychologist? I had no idea. If I were to choose the title for myself, I probably would&#8217;ve gone with &#8220;Human Factors Engineer.&#8221; [...]]]></description>
			<content:encoded><![CDATA[<h3>The risks of title proliferation and the boundaries of UX</h3>
<p>Starting my current job 15 years ago, I opened my new box of business cards and read: &#8220;Michael Zuschlag, Engineering Psychologist.&#8221; I&#8217;m an engineering psychologist? I had no idea. If I were to choose the title for myself, I probably would&#8217;ve gone with &#8220;Human Factors Engineer.&#8221; After all, I got the job by dropping off my resume in the job center at the Human Factors and Ergonomics Society annual meeting. In prior jobs, working on telecommunications and business enterprise software user interfaces, I might&#8217;ve accepted being called a usability engineer, but even then I preferred human factors engineer. Usability engineering wasn&#8217;t so much something I <em>was</em> as something I <em>did</em>.</p>
<p>So, &#8220;engineering psychologist.&#8221; What the hell is that? I suspected it was something made up by some government worker toiling deep in the National Bureau of Occupational Classification, Office of Idiosyncratic Nomenclature. But it turns out to be a well-accepted name, and the more I thought about it, the more I liked it. Engineering. Psychology. Engineering concerns the design and analysis of products to achieve a certain level of performance. Engineers <em>invent</em> things. Psychology is the scientific study of behavior and mental experiences. Psychologists <em>discover</em> things. Hey, that&#8217;s what I want to do! I don&#8217;t want to be just a human factors <em>engineer</em>, and only make new things, and I don&#8217;t want to be just an academic psychologist (a prior career incarnation), and only find new things. I want to be a designer and a researcher, both a builder and an explorer. Comprise the whole research and development life cycle. Be holistic. Who wouldn&#8217;t want that?</p>
<p>Well, it would seem, lots of people in the user experience community, because that&#8217;s the way they&#8217;re heading, dividing and subdividing the field into smaller sub-specializations. Or maybe it&#8217;s unintentional, collateral damage from rampant title proliferation. We have:</p>
<ul>
<li>Human Computer Interaction</li>
<li>Usability Engineering</li>
<li>User Centered Design</li>
<li>User Experience</li>
<li>Visual Design</li>
<li>Information Architecture</li>
<li>Interaction Design</li>
</ul>
<p>And those are just the more commonly used ones. I&#8217;ve also heard <a title="Norman - Human-Centered Design Considered Harmful" href="http://www.jnd.org/dn.mss/human-centered_desig.html">activity centered design</a>, <a title="Craig Marion - What is Performance-Centered Design?" href="http://mysite.verizon.net/resnx4g7/PCD/WhatIsPCD.html">performance centered design</a>, <a title="Ask Eric - Is User Experience different from Usability?" href="http://www.humanfactors.com/downloads/askericarchiveprofession.asp#UXvsUsability">personnel subsystem design</a>, <a title="JJ Garrett - Elements of User Experience" href="http://www.jjg.net/elements/pdf/elements.pdf">information design</a>,  <a title="UXMatters - The Essence of Interaction Design—Part I: Designing Virtual Contexts for Interaction" href="http://www.uxmatters.com/mt/archives/2011/01/the-essence-of-interaction-designpart-i-designing-virtual-contexts-for-interaction.php">user assistance design</a>, <a title="Hydrant: Customer experience consulting and design" href="http://www.hydrantsf.com/">customer experience</a>, <a title="UXDesign.com UX Design Defined" href="http://uxdesign.com/ux-defined">contextual design</a>,  <a title="Wikipedia - User Experience" href="http://en.wikipedia.org/wiki/User_experience">user experience architecture</a>, and <a title="Tognazzini - It's Time We Got Respect" href="http://www.asktog.com/columns/057ItsTimeWeGotRespect.html">interaction architecture</a>.</p>
<h3>Definitions and Differences</h3>
<p>After I searched around the web, including making prodigious use of Wikipedia, which is nothing if not the consensus of the interested community on the meaning of things, the definitions seem straightforward enough.</p>
<ul>
<li><a title="SIGCHI - Human-computer Interaction" href="http://old.sigchi.org/cdg/cdg2.html"><em>Human-computer interaction</em></a> (or HCI, but sometimes CHI, just to have some variety) is a field concerning &#8220;the design, evaluation, and implementation of interactive computing systems for human use.&#8221;</li>
<li><a title="Nielsen - Usability 101: Introduction to Usability" href="http://www.useit.com/alertbox/20030825.html"><em>Usability engineering</em></a> (or UE) also concerns the design of human-computer interfaces but specifically seeks to maximize the user&#8217;s performance on dimensions such as learning, efficiency, and accuracy. So it provides the goal for user interface design.</li>
<li><a title="Scribd - User Centered Design Process" href="http://www.scribd.com/doc/29104404/User-Centered-Design-Process"><em>User-centered design</em></a> (or UCD, but sometimes &#8220;human-centered design,&#8221; to specifically exclude potential orangutan users, is the process of designing a user interface through iterations of collecting user data (especially by observing user interactions) and creating designs. So that&#8217;s the means to the goals annunciated by usability engineering.</li>
<li><a title="e-Consultancy - Usability or user experience - what's the difference ?" href="http://econsultancy.com/us/blog/2321-usability-or-user-experience-what-s-the-difference"><em>User Experience</em></a> (or UX) is all a user perceives about a product. That includes the usability the user experiences, but also any <a title="Ask Eric - Is User Experience different from Usability?" href="http://www.humanfactors.com/downloads/askericarchiveprofession.asp#UXvsUsability">emotional and motivational</a> states. Designing a UI for a positive user experience implies expanding the goals beyond user effectiveness and efficiency of usability to include anything else that contributes to user satisfaction. UX also implies designing <a title="UXMatters - Defining Experience: Clarity Amidst the Jargon" href="http://www.uxmatters.com/MT/archives/000277.php">more than the product</a> itself, but anything else (e.g., the packaging, the technical support) that affect the experience of the product.</li>
<li> <a style="font-style: italic;" title="JJ Garrett - Elements of User Experience" href="http://www.jjg.net/elements/pdf/elements.pdf">Visual Design</a> is the application of visual details (e.g., color, line, shape, space, images, typography) to create a target user experience, using visuals to communicate both information and emotion. That is, it&#8217;s the medium of design. It&#8217;s synonymous with graphic design applied to interactive products.</li>
<li><a title="IA Institute - Glossary" href="http://iainstitute.org/en/learn/resources/glossary.php"><em>Information Architecture</em></a> (or IA) is the design of the &#8220;organization, labeling, navigation schemes and retrieval mechanisms&#8230; [and] structural design of an information space to facilitate task completion and intuitive access.&#8221; That is, it&#8217;s another medium of design. While visual design uses visual details to create a targeted user experience, IA uses organization and labeling to create a targeted user experience.</li>
<li><a title="IxD - Encyclopedia" href="http://www.interaction-design.org/encyclopedia/interaction_design.html"><em>Interaction Design</em></a> (or IxD) is the design of &#8220;digital products for people&#8217;s use,&#8221; which is pretty much the same as HCI, expanded beyond computers per se to include anything using digital electronics.</li>
</ul>
<p>Obviously, there is <a title="Cennydd Bowles - Enter title here" href="http://www.cennydd.co.uk/2011/enter-title-here">a lot of overlap</a> in the definitions and even more in practice. For example, while theoretically HCI can pursue any goal in the design a of UI (e.g., easy implementation), in practice, HCI work almost always seeks to improve usability, or some other part of UX. UCD is sometimes used to mean the philosophy that design should conform to the capabilities and tendencies of the user in order to achieve the best user performance, making it virtually synonymous with UE. Furthermore, while in UE and IxD use a variety of design methods and tools (e.g., cognitive walk-throughs), iterative design with observation of users <a href="http://web.archive.org/web/20090316052058/http://gamma.ixda.org/about_interaction.php">has the central role</a>, making UE and IxD nearly synonymous with UCD. IxD includes <a title="Uday Gajendar - IxD is about three fundamental things" href="http://www.ghostinthepixel.com/?p=197">communicating with the user</a>, so it overlaps with visual design (graphic communication) and IA (labeling). UX by definition includes all experiences about the product, which has <a title="Zusch Login - A Man of Wealth and Taste" href="../../?p=149">profound implications</a> for those working on the emotional and motivational aspects of user experience. However, if the questions on <a href="http://ux.stackexchange.com/">UX Stack Exchange</a> are any indication, the dominant concern remains the usability of the product (i.e., making its use clear, easy, and accurate). Put a link on a web page, and you&#8217;re simultaneously doing visual design (the color and font of the link), information architecture (specifying what it links to and what its label should be), and interaction design (instantiating it a link -an interactive control that responds to the user).</p>
<p>Practically the greatest differences among these names are in their connotations. HCI implies producing papers for scientific journals, rather than products for the marketplace, like the other names imply. Practitioners of visual design, IA, and IxD tend to be associated with different academic departments (visual arts, library science, and psychology, respectively). UCD tends to emphasize design over testing and analysis and UE vice versa. Also, as <a title="Quesenbery - What's In a Name?" href="http://wqusability.com/articles/whats-in-name.html">Whitney Quesenbery observed</a>, <a title="Nova - From HCI to UX" href="http://liftlab.com/think/nova/2009/04/11/from-hci-to-ux/">HCI</a>, UCD, and UE also mean you&#8217;re old, compared to those who align themselves with the UX or IxD label. (Mental note: add more gray to my beard in the illustration at the top of this blog.)</p>
<p>Personally, I don&#8217;t have a problem with any of that. It&#8217;s a similar situation with human factors engineering, human performance engineering, engineering psychology, and ergonomics. A job candidate could use any of those labels for his or her knowledge and experience, and I&#8217;d see them as pretty much equal; I&#8217;d look for more details in their resume to distinguish them. Human factors engineers may graduate from psychology or engineering departments. No one cares which it is.</p>
<p>On the other hand, I have to wonder if UX needs so many overlapping labels, and worry that it sows <a title="Adaptive Path - About UX Management at Cisco" href="http://www.adaptivepath.com/ideas/essays/archives/000926.php">confusion among ourselves</a> and our <a title="marty cagan - An Open Letter To The Design Community" href="http://www.svpg.com/an-open-letter-to-the-design-community/">clients, employers, and other laypeople</a>. Even more worrying, certain people in the UX community feel a need to define and <a title="CMS Wire - The Difference Between Usability and User Experience" href="http://www.cmswire.com/cms/web-publishing/the-difference-between-usability-and-user-experience--006963.php">divide</a> the above into <em>non</em>-overlapping subdisciplines, to inflate the subtle connotations into distinct formal dimensions.</p>
<h3>Why?</h3>
<p>Why so many names for largely the same discipline? The three different academic origins of visual design, IA, and IxD helps explain why those three names exist, but doesn&#8217;t explain why we have also have HCI, UE, and IxD, which all come from largely the same academic tradition. I see a couple of reason for name proliferation:</p>
<ul>
<li>Keeping it Fresh.</li>
<li>Expanding the Scope.</li>
</ul>
<h4>Keeping it Fresh</h4>
<p>Maybe it’s the way the business world sees the digital age: if it&#8217;s something you heard about 18 months ago, then it must be obsolete. In the fast-pace high-tech world, you need to re-invent your title periodically or else you seem outmoded and irrelevant, like ASP programmers. To move your career forward, you re-brand yourself with the latest buzzwords, like &#8220;content strategist,&#8221; rather than tired old &#8220;editor-in-chief.&#8221; At one government agency, I learned that information technology (which used to be called data processing) isn&#8217;t &#8220;information technology&#8221; any more. Now it&#8217;s &#8220;knowledge management.&#8221; Except, now they&#8217;re changing <em>that</em> to something new, but I can&#8217;t remember what. Maybe &#8220;solution innovation&#8221; or &#8220;innovating solutions&#8221; or something. Civil engineers don&#8217;t have to put up with this. The name of their discipline remains unchanged for over two centuries, even as it has come to sound a little weird (they&#8217;re called &#8220;civil,&#8221; not because they&#8217;re necessarily polite and inoffensive, but because they designed and analyzed civilian works, as opposed to military works, which was once the only other kind of engineering there was).</p>
<p>The tech world&#8217;s requirement for periodic re-branding surely applies to us, but even more so. Branding itself is the latest business craze, which UXers have embraced, so if we&#8217;re going to build credibility for our discipline with the suits outside the UX community, we better be supremely branding ourselves to show that we get it. We gotta have the coolest names.</p>
<p>&#8220;Visual design&#8221; is cooler than &#8220;graphic design.&#8221; I mean, you&#8217;re designing <em>visually</em>, man, not graphically, the latter sounding like you forgot your pants that morning. More seriously, &#8220;graphic&#8221; implies physically printed matter, and that&#8217;s so twentieth century. I mean, no one uses paper anymore. &#8220;Architect,&#8221; as in &#8220;information architect,&#8221; is supremely cool. That carries prestige, so much so that early on there was a push for &#8220;<a title="Tognazzini - It's Time We Got Respect" href="http://www.asktog.com/columns/057ItsTimeWeGotRespect.html">interaction architecture</a>&#8221; rather than &#8220;interaction design.&#8221; &#8220;Design&#8221; won out, maybe because it felt newer and more mystical. Real architecture comes down to bricks and mortar, and we all know that&#8217;s precisely what the web is driving to extinction. Design, in contrast, is virtual. Like The Cloud, it doesn&#8217;t really exist, so it must be the future.</p>
<p>We also have to have the coolest abbreviations, on par with AJAX and .Net. Bonus points for mixed-case names for that extra techie edge. It&#8217;s widely accepted that &#8220;X&#8221; is the coolest letter in the alphabet (arguably; I passionately believe &#8220;Z&#8221; is clearly cooler). From this perspective, the most significant way UX and IxD differs from UE and HCI is that the former <a title="Sauro - User Experience BS Generator" href="http://www.measuringusability.com/ux-bs.php">have an &#8220;X&#8221;</a> in their respective abbreviations.</p>
<p>Well, hey, if rebranding works, why not do it? After all, UX needed all the credibility it can get to go up against the entrenched ignore-the-user attitudes that prevailed in the business world. That would be fine as long as we don&#8217;t take our own rebranding too seriously, and recognize that the name-of-the-month is for our audience in the business world, not for us. But it seems some do take it seriously, and spend considerable effort picking apart the names, confusing themselves. It can divide us, pitting us against each other. Oh, man, you&#8217;re not still doing user-centered design, are you? <em>I&#8217;m</em> doing interaction design. Like the latest detergent, it&#8217;s new and improved. <em>I</em> should get the consultant contract, not you. What&#8217;s new and improved about it? New and improved packaging.</p>
<p><a title="52 Weeks - UX: The Enemy Within" href="http://52weeksofux.com/post/2094540762/ux-the-enemy-within">Confusion and conflicts</a> like that end up weakening us, <a title="IXda discussion - why the hate-on User-centered Design?" href="http://www.ixda.org/node/18100">wasting our resources</a> and undermining the unified voice we need for credibility. Sometimes, these conflicts end up looking kind of pathetic, such as a few years ago when a couple of venerable gurus, in what looked like an attempt to re-assert their relevance, tried to <a title="Norman - Human-Centered Design Considered Harmful" href="http://www.jnd.org/dn.mss/human-centered_desig.html">rebrand</a> <a title="UIE - Journey to the Center of Design" href="http://www.uie.com/brainsparks/2008/04/23/ia-summit-keynote-journey-to-the-center-of-design/">UCD</a> to convince everyone they had a new breakthrough design method. Not that there isn&#8217;t progress in UX, but progress in any field is usually gradual. We don&#8217;t get a Newton or Einstein every year. It&#8217;s counter-productive to come up with new names like activity-centered design or research-informed design (or whatever Spool calls it) just because some people are doing UCD badly. If UXers are not paying enough attention to the task, tell them to pay more attention to the task. If they’re being too dogmatic, tell them to stop being so dogmatic. Don’t pretend you’ve invented a new way of doing design that deserves its own name.</p>
<p>At this point in our short history, I suspect re-branding is <a title="UXMatters - Defining Experience: Clarity Amidst the Jargon" href="http://www.uxmatters.com/MT/archives/000277.php">reaching the point of diminishing net returns</a>. Pretty soon even the pointiest hair of the pointy hair bosses will pick up that it&#8217;s a gimmick. Maybe it&#8217;s time we stopped.</p>
<h4>Expanding the Scope</h4>
<p>We know we got a good thing. Our methods and tools work. We&#8217;ve measured dramatic improvements in user interfaces after doing our job. But &#8220;user interface&#8221; implies computers -that&#8217;s what users use (either that or recreational drugs). Surely our methods and tools can work wonders for other forms of technology too. We shouldn&#8217;t be <a title="Fahey - Letter to a Young Interaction Designer" href="http://www.graphpaper.com/2010/01-24_letter-to-a-young-interaction-designer">limited to user-centered web sites</a> and software applications. The public also needs cook-centered stoves, photographer-centered cameras, nurse-centered medical apparatus, <a title="Science Daily - Human Factors Issues In Firearms Design And Training" href="http://www.sciencedaily.com/releases/2006/03/060306214532.htm">shooter-centered guns</a>, pilot-centered airplanes, audience-centered entertainment systems, and <a title="Bad Ergonomics - Example 37" href="http://www.hfes-europe.org/badergo/bad37.htm">showerer-center showers</a>. It&#8217;s natural that we&#8217;d seek to <a title="Malouf - Intra-technological age" href="http://davemalouf.com/?p=1600">expand the scope of our discipline</a> and improve the usability of devices beyond general purpose computers of various form factors.</p>
<p>Oh, wait. That&#8217;s already been done. That&#8217;s engineering psychology / human factors engineering. Usability engineering is a sub-discipline of it.</p>
<p>Ah, but what about <em>user experience</em>? By including emotional design and addressing user motivation, it overlaps with human factors, rather than falls entirely within it. If we can expand the &#8220;user&#8221; in user experience to include the operator of any technology, then <a title="Peña-Bickley - ON: Experience Design" href="http://joannapenabickley.typepad.com/on/2007/11/on-experience-d.html">human factors becomes a subdiscipline</a> of <em>UX</em>. What a coup!</p>
<p>The noble effort to expand UX to everything is apparently the second driver of name proliferation in UX. To do that we need to shed any specific association with computers inherent with names like HCI, user-centered design, and usability engineering, and we certainly don&#8217;t want to be associated with physical printing with a name like graphic design. So we came up with the names visual design, information architecture, and interaction design, all technology-neutral names. They apply to anything visible, informative, and <a title="Malouf - “There is no [IxD]” –Neo" href="http://davemalouf.com/?p=1994">interactive</a>, respectively. Like &#8220;experience&#8221; in UX  they raise the level of abstraction, shifting focus from the specific artifacts to be designed, like a computer-user interface, to the psychological -what people sense, feel,  know, and do with respect to unspecified artifacts.</p>
<p>Take information architecture, for example. I get the feeling that at the start of the information revolution in 1994, there was excitement about all the new ways of organizing information that will be available by shaking off the shackles of physical space by using a hyperlinked network. However, in the end all we really use is linear and hierarchical structures (or both at once), two forms of organization going back to ancient times. Maybe that’s a human limitation. Maybe we are hardwired to think in sequences and categories (and sub-categories), and anything else becomes too confusing for the typical user. Consider how much training and experience users need to effectively query multiple tables in a relational database (an information structure that is curiously ignored by information architecture). It&#8217;s not natural for us.</p>
<p>Do we need a new name for doing in HTML the same thing we&#8217;ve been doing for hundreds of years with things like book chapters and shelves, card catalogues, and the Dewey decimal system? IA seeks to apply the &#8220;<a title="Wikipedia - Information Architecture" href="http://en.wikipedia.org/wiki/Information_architecture">principles of design and architecture</a> to the digital landscape.&#8221; But while physical space is defined by three continuous dimensions, hyper-linked information is defined by one discrete dimension: the number of links. Merely linking web pages together is Little IA. How do we expand it to Big IA? Well, if you take &#8220;architecture&#8221; to mean &#8220;the designed form of something,&#8221; then you expand the scope of information architecture to encompass all ways of representing information, and not just on web pages. That implies all sorts of things: IA may include how information is arranged on the screen, how graphics are used to convey structure and information,and  what displays and controls are used to represent what information, including information acquired from the user.</p>
<h3>Collision Course</h3>
<p>Unfortunately visual and <a title="Econsultancy - Usability or interaction design: who does what" href="http://econsultancy.com/blog/5875-usability-or-interaction-design-who-does-what">interaction designers</a> were also thinking big. In the process of expanding their scopes, <a title="Malouf - Why define the damn thing (part 5281)" href="http://davemalouf.com/?p=1378">they collided</a> with the information architects. For example, successfully retrieving information clearly depends on the information architecture, but the act of retrieving is clearly interactive and therefore legitimate turf for interaction designers to claim. The information hierarchy on a page is marked by the graphic use of space, color, line, shape, and font, implying it&#8217;s visual design, not information architecture.</p>
<p>Well, we can&#8217;t have this. We have to have clearly defined and divided roles, practices, and even job positions.</p>
<p>The problem is there isn&#8217;t that much to web site design, which is where UX is currently concentrated. You probably make a UI that users use to access informative or entertaining content. For the vast majority of projects, the only information of consequence is text, the only interaction is clicking links, and the only visuals are the template for the page. Pictures typically provide secondary illustration of the text content, and occasionally there&#8217;s audio and video, but mostly text is the medium for the content. In theory, IxD involves designing how users accomplish many operations with content: create, modified, delete, and transfer it. If you&#8217;re lucky enough to work on bespoke web apps for industrial use, then you may get to make a sophisticated UI for a database. But if you work on consumer web sites, interaction is mostly navigation -clicking links. Occasionally, you take a little content from the user, maybe a paragraph of text or the choice of a picture or a delivery address and credit card number. Occasionally, the user does something other than consume content, such as clicking a Purchase or Share button. Contrast that to applications like word processing, where navigation is a small part of the interaction (confined largely to the Open dialog), and complex content manipulation is the bulk of the interactions. In web sites, there&#8217;s just not much IxD that isn&#8217;t also IA.</p>
<p>Try to divide web work up among each subdiscipline, and each gets so little. You <a title="UX-Matters - UX Design Defined" href="http://www.uxmatters.com/mt/archives/2012/06/ux-design-defined.php">have absurdly</a> <a title="UXMatters - The Five Competencies of User Experience Design" href="http://www.uxmatters.com/MT/archives/000230.php">limited roles</a> <a title="LukeW - 10 Things I Learned In Web School" href="http://www.lukew.com/ff/entry.asp?1133">for each discipline</a>, such as information architecture only dividing text into pages, interaction design only laying out the pages, visual design only determining the emotional &#8220;feel&#8221; of the page, and usability engineering only doing usability testing. Dividing web design into such narrow roles may lead to navigation structure, pages, and templates each designed in isolation resulting in imbalanced and uncoordinated sites with <a title="Norman - HCD harmful? A Clarification" href="http://www.jnd.org/dn.mss/hcd_harmful_a_clari.html">awkward task flows</a>. These limited roles are not consistent with how these disciplines have been practiced. In effort to expand UX to encompass more, we each end up getting less.</p>
<p>Conflict and division are not productive, but the feeling seems to be that this is a temporary state. We&#8217;re expanding UX beyond computer UIs, after all, which will <a title="Malouf - Enough UX Chumbaya!!!" href="http://davemalouf.com/?p=1556">accentuate our differences</a>. Not everything is both informative and interactive, for example. A lot of things are one or the other. Soon there will be plenty of work for everyone. Above the interaction designers, visual designers, information architects, and usability engineers will be <a title="Adaptive Path - Just What is a UX Manager?" href="http://adaptivepath.com/ideas/just-what-is-a-ux-manager">UX managers</a>, strategizing and coordinating the <a title="Robert Hoekman, Jr - 13 Tenets of User Experience" href="http://rhjr.tumblr.com/post/25440289520/13-tenets-of-user-experience">whole experience of a corporation</a> -all the touch points with customers: all the communications, marketing, services, products, and support. The customer experience with a company determines if the customer buys from company, so UX is central to company survival and growth. We UXers should be in charge of running companies. And we will be.</p>
<p>Right.</p>
<h3>We&#8217;re Just UI Design</h3>
<p>I&#8217;ve been hearing how UX will soon expand throughout the business world for ten years now. While some are <a title="Boxes and Arrows - The Past and Future of Experience Design: What a difference 10 years make" href="http://www.boxesandarrows.com/view/the-past-and-future">impressed with the progress we&#8217;ve made</a>, I don&#8217;t see much progress on that front. The truth is we are software user interface designers. We have been successful in convincing most businesses they need UX for their web sites and apps, and that&#8217;s a substantial accomplishment that has ensured our long-term viability.</p>
<p>But expand beyond the UI? No. There are no UXers designing theater, dining, weddings, retail outlets, packaging, and customer service experiences. We’re in no position to specify that web-selected merchandise be <a title="UIE - The Difference Between Usability and User Experience" href="http://www.uie.com/brainsparks/2007/03/16/the-difference-between-usability-and-user-experience/ ">in stock for in-store pickup</a>. Very few of us made the short step to digital hardware or embedded software design. Over 90% of the questions on <a href="http://ux.stackexchange.com/">UX Stack Exchange</a> concern UI design. Even saying &#8220;we&#8217;re UI design&#8221; is being generous if you&#8217;re limited to doing consumer web sites or web apps. Our only expansion in the past decade has been to add mobile, which mostly means web sites and apps for a different form factor and technology. Our aspirations have exceeded acquisitions. In all my non-web-related work, I have never encountered anyone with titles like visual designer, information architect, or interaction designer. Despite the ambitions of these disciplines, you don&#8217;t see them in the making of airplanes, cars, ships, or trains, or even the computer-user interfaces to these technologies.</p>
<p><a title="WQUsability - What's In a Name?" href="http://www.wqusability.com/articles/whats-in-name.html">Every discipline thinks</a> <a title="Quesenbery - What's In a Name?" href="http://wqusability.com/articles/whats-in-name.html">it&#8217;s the lynch pin</a>, the solution to all problems, and the deeper you go into a discipline, the more likely you feel that way, because the deeper you go, the more abstract it becomes, and the more you see connections and inclusions of other fields. I bet the same thing happens in non-UX disciplines: smart economists, geographers, anthropologists, biologists, physicists, medical doctors probably all think they have The Solution to things. In the business world, expert marketers think marketing should <a title="MaRS - Customer relationship management: Kotler on marketing" href="http://www.marsdd.com/articles/customer-relationship-management-kotler-on-marketing/">drive the whole company</a>, and I bet finance experts think finance should drive it, and likewise for experts in accounting, project management, engineers, personnel, and probably even the lawyers.</p>
<p>Frankly, everyone probably can make a pretty good argument on why they&#8217;re so important. The result is no one is going to get the sole control of the business world. UXers are not going to be running corporations, at least, no more often than anyone from any other business-related discipline.</p>
<p>The best case scenario for UX expansion is that you convince the suits that UX covers all touch points. But if we succeed on that, we still lose. If everyone believes UX to encompasses everything in addition to web sites, then people from other disciplines -the people already working on everything else -will <a title="52 Weeks of UX - Is the term “UX” being marginalized?" href="http://52weeksofux.com/post/634887207/is-the-term-ux-being-marginalized">commandeer the UX name</a>. They will put the latest buzzword on their resume if we succeed in making it trendy. And soon, like so many buzzwords before, <a title="Sauro - User Experience BS Generator" href="http://www.measuringusability.com/ux-bs.php">it&#8217;ll come to</a> <a title="52 Weeks of UX - Is the term “UX” being marginalized?" href="http://52weeksofux.com/post/634887207/is-the-term-ux-being-marginalized">mean nothing</a>. Meanwhile, we&#8217;ll still be doing only the web site.</p>
<p>More likely others will redefine our names for us. We may think that a name like interaction design will give us leverage to expand beyond web sites. Words are powerful, as any politician knows, but ultimately, their effect is transitory. Names are ultimately defined not by their components or etymology but by what people currently associate them with. &#8220;Ethnic cleansing&#8221; was originally coined by Serbian politicians because it made their policies sound good, but then the world saw what ethnic cleansing really was, and now no politician in the world will say they favor it. So, you can call yourself an information architect or interaction designer or whatever, but ultimately to everyone else, you&#8217;re the web guy.</p>
<h3>Crossing, Not Expanding</h3>
<p>The main reason that UX hasn&#8217;t expanded beyond UI is there&#8217;s already other disciplines controlling the territory we want to expand into. Human factors engineers and industrial designers got the hardware covered. Marketers got the customer experience, packaging, and retail. Theater professionals have theaters, restaurant management has restaurants, wedding planners have weddings, and so on. And you know what? The people in these disciplines are better at it than us. They&#8217;ve been doing it far longer and have all the specialized knowledge.</p>
<p>I don&#8217;t want to discourage UX from making forays beyond UI. I&#8217;m as biased as the next UXer, so naturally I think that UX has more to offer than nice web sites. However, it&#8217;s more realistic to aim to <em>cross</em> UX with other disciplines, rather than expand UX to encompass roles already covered by other disciplines. There&#8217;s a difference between cross-discipline exchange and taking something over. In the latter, you get conflict. In the former you get embraced. I was hired into a transportation human factors division partially because my UI design experience was regarded as relevant with vehicles becoming more computerized.</p>
<p>User experience and its subdisciplines are <a title="Malouf - Intra-technological age" href="http://davemalouf.com/?p=1600">touted as vertical</a>, being relevant across technologies, and I believe that&#8217;s true. But to work in any horizontal discipline requires unique knowledge specific to that discipline. We need to recognize that we have as much to learn from other fields as they have to learn from us. For instance, if you want to apply UX methods to cartography, go study cartography for year or two, then bring over your UX skills. It&#8217;ll work well. But now you&#8217;re as much a cartographer as a UX designer. Similarly, a <a title="Adaptive Path - Just What is a UX Manager?" href="http://adaptivepath.com/ideas/just-what-is-a-ux-manager">UX manager</a> is basically a marketing manager who knows what goes into web design. Both management and marketing are disciplines of their own, so if you want to be an UX manager, get an MBA in marketing to compliment your bachelor&#8217;s degree in UX/IxA/IA/whatever. You&#8217;ll succeed.</p>
<p>Along with acquiring the knowledge, crossing UX with a non-software field implies you also must leave some traditional UX knowledge behind. Take <a title="Slideshare - Designing the Intangible: an Introduction to Service Design" href="http://www.slideshare.net/jlbove/designing-the-intangible-an-introduction-to-service-design-presentation">service design</a>, for example. From what I can see, it&#8217;s not so much an expansion of  UX from UI design, but a branch, merging with the market research branch of marketing. Service design took only the user research and task analysis skills from UX (i.e., the usability part, narrowly defined), and left behind most of the UX knowledge and skills. Knowing how to organize information, knowing which GUI control or pattern is for what, knowing how to make a 100-by-200 pixel image recognizable -none of that is relevant for general service design, unless you&#8217;re designing a software UI as part of the service.</p>
<h3>The Web is Enough</h3>
<p>I don&#8217;t bemoan the failure of UX to expand beyond software user interfaces. I don&#8217;t even bemoan that it&#8217;s concentrated in web design, although I would personally be bored if that&#8217;s all I did. The fact is the web is a whole lot. It&#8217;s a technology that has fundamentally changed our lives. In just two decades it&#8217;s become part of most peoples everyday interactions, and, with mobile, it&#8217;s becoming more ubiquitous.</p>
<p>We should be proud that we&#8217;re making a central contribution to that revolution, putting the awesome power of exabytes of information in everyone&#8217;s hands wherever they are. If a layperson asks what you do, don&#8217;t tell them, &#8220;I <a title="Wikipedia - User experiecne design" href="http://en.wikipedia.org/wiki/User_experience_design">structure information to support findability</a>,&#8221; don&#8217;t say &#8220;I <a title="Wikipedia - Interaction design" href="http://en.wikipedia.org/wiki/Interaction_design">shape interactive systems</a> for use by people,&#8221; or &#8220;I <a title="Malouf - Malouf - What is IxD and What does an Interaction Designer Do? Discuss!" href="http://davemalouf.com/?p=1865">manage the growth of complexity</a>,&#8221; and certainly don&#8217;t say, &#8220;I design experiences.&#8221; Say, &#8220;I design web sites.&#8221; If they ask what that means, you can say something like, &#8221;Have you ever not been able to find something on a web site that you knew had to be there? I fix that.&#8221; Let&#8217;s stand up and clearly say what we are, rather than shroud ourselves in abstract language that will more likely confuse our listeners than impress them.</p>
<p>More formally, we can take a cue from our sibling vertical discipline, industrial design. Industrial design seeks to make physical products look well and work well for people. That&#8217;s what UX is, only substitute software for physical products. I&#8217;m not saying it&#8217;s easy to do UX. You need a comprehensive background in computer technologies, psychology, information management, and aesthetics to do it. You need to be a well-rounded professional that understands categorization, layout, behavior, graphics, testing, and analysis. What I&#8217;m saying is it&#8217;s easy to define. For the purpose of clear communication, we don&#8217;t really need names like usability engineer, interaction designer, and so on.</p>
<h3>Characteristics, not Specializations</h3>
<p>So, if UX is mostly web design now and in the future, where does that leave the subdisciplines? We&#8217;re back to a relatively small pie to divide up. I think the answer is that there is no need for IxD, IA, usability, and visual design to be separate subdisciplines, specializations, or job titles. I don&#8217;t see why a single person can&#8217;t have sufficient skills to do all the practices in UX. Saying your web design team needs a interaction designer, information architect, and visual designer is like saying it needs an HTML coder, CSS coder, and Javascript coder. How many college classes does it take to cover it all? Is there such thing as Advanced Information Architecture or Usability Testing II?  Part of me wonders if there is a natural division between functional design and aesthetic design, but maybe that&#8217;s only because my own academic background in aesthetic design is weak. Architects (real ones) and industrial designers don&#8217;t seem to have a problem covering both function and aesthetics.</p>
<p>I also don&#8217;t think it makes sense to regard IxD, IA, usability, and visual design as separate roles or <a title="IxDA - IA Summit 2009 Keynote" href="http://www.ixda.org/node/19533">practices</a>, because even there they have too much overlap. For example I wouldn&#8217;t define card-sorting as a information architecture practice. Although it&#8217;s a key technique for organizing content, you can also use it to make a menu of commands rather than web pages -isn&#8217;t that then practicing interaction design? Rather than dividing ourselves, maybe it makes more sense to divide the user interface, similar to how the UI is divided into HTML, CSS, and Javascript. Let&#8217;s treat IxD, IA, usability, and visual design as interrelating characteristics of the UI. A web site has an <a title="LukeW- Defining User Experience" href="http://www.lukew.com/ff/entry.asp?797">information architecture communicated by its visual design and accessed through it interaction design</a> achieving a certain level of usability. For example you might say, &#8220;This icon has poor usability, compromising the information architecture. Let&#8217;s change the visual design to improve the interaction design.&#8221; Or you could say that users couldn&#8217;t find the right information because the icon was a poor label because users couldn&#8217;t tell what it was supposed to be a picture of. Sometimes it&#8217;s best if we ditch the jargon.</p>
<h3>Pick a Name</h3>
<p>Recognizing the close relation among IxD, IA, usability, and visual design doesn&#8217;t resolve the problem of what to call yourself. I can sympathize that you don&#8217;t want to go with &#8220;web site designer&#8221; or, &#8220;user interface designer&#8221; (if you do more than web sites). However accurate it is, I understand that it&#8217;s not a good career move given certain audiences.</p>
<p>Fine. Call yourself whatever you want to the suits. Change it every 18 months so you appear to have the latest business-critical skills. Save time, and make a <a title="Aaron Weyenberg - UX title generator" href="http://aaronweyenberg.com/uxgenerator/">Title Generator app</a> that randomly combines the trendiest terms, coming up with things like Experience Engineer, or Knowledge Strategist, or Engagement Synergist.</p>
<p>Oh, but what should we call ourselves <em>to ourselves</em>? Well, if you don&#8217;t want to use &#8220;UI designer,&#8221; I&#8217;m okay with &#8220;user experience designer.&#8221; UX seems to have gained widespread use and understanding. Some seem hung up on the thought that you <a title="Smashing - Why User Experience Cannot Be Designed" href="http://uxdesign.smashingmagazine.com/2011/03/15/why-user-experience-cannot-be-designed/">can&#8217;t design experiences</a>, only artifacts (the same can be said about interaction and visual design). But, seriously, we know what we mean: &#8220;UX designer&#8221; is shorthand for someone who designs artifacts in effort to achieve a specific user experience. The name is not going to lead to delusions of power. We already have those.</p>
<p>I&#8217;m also okay with user experience practitioner, user experience specialist, and, of course, simply UXer (&#8221;uckser&#8221;? &#8220;oosker&#8221;? &#8220;oozer&#8221;? &#8220;youkser&#8221;? Just not &#8220;uzer&#8221; to avoid confusion). If you lean towards working with one characteristic of UI more than others, than go ahead and use one of the subdiscipline names consistent with its connotations.</p>
<p>I really don&#8217;t care.</p>
<p>On second thought, maybe I shouldn&#8217;t be so quick to dismiss the potential of UX to expand beyond software UIs. Let&#8217;s have a discipline name we can grow into, with latitude to expand, however improbable that is. Just because it hasn&#8217;t happened in 10 years, doesn&#8217;t mean it won&#8217;t ever happen. We should have a name that avoids &#8220;user&#8221; or other specific association with computers. We could go with simply &#8220;experience designers,&#8221; but the problem with that is &#8220;experience&#8221; isn&#8217;t the whole thing. That&#8217;s only sensations, perceptions, cognition, motivation, and emotion. To fully include interaction design, we need to cover human <em>behavior</em> in addition to human experience. And &#8220;designer&#8221; is also too specific. To include usability testing we also need to cover the empirical and analytic activities. The name should emphasize the centrality of the human mind in our work on products. It should pay homage to the scientific tradition from which our methods spring, but still indicate the practical applied nature of our work.</p>
<p>I&#8217;ve just the name: Engineering psychology.</p>
<h3>Summary Checklist</h3>
<h4>Problem: Title proliferation in our discipline causing confusion and conflict.</h4>
<p><strong>Potential solution</strong>:</p>
<ul>
<li>Embrace the overlap among our subdisciplines.</li>
<li>Don&#8217;t take efforts to be trendy too seriously.</li>
<li>Expect that we will remain user interface designers.</li>
<li>Look to cross with those working outside UI, not replace or subsume them.</li>
<li>Celebrate that we make significant contributions to the information revolution.</li>
<li>Use subdiscipline names to characterize the UI rather than than each other.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=289</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Blog Launched</title>
		<link>http://www.zuschlogin.com/?p=275</link>
		<comments>http://www.zuschlogin.com/?p=275#comments</comments>
		<pubDate>Sun, 01 Apr 2012 15:36:26 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[April 1st]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=275</guid>
		<description><![CDATA[It&#8217;s time I branch out to other on-line projects than this blog. I&#8217;ve still a few things to say about usability, but I feel the need express my other interests as well. I considered a blog on Christmas lights overclocking or maybe Segway scuba, before settling on something that combines my passion for computers, cooking, and [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s time I branch out to other on-line projects than this blog. I&#8217;ve still a few things to say about usability, but I feel the need express my other interests as well. I considered a blog on Christmas lights overclocking or maybe Segway scuba, before settling on something that combines my passion for computers, cooking, and a responsible green lifestyle. So today I present: <a title="Cooking Notebook blog" href="../../content/CookingNotebook/CookingNotebook.html">The Cooking Notebook</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=275</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Stat 203</title>
		<link>http://www.zuschlogin.com/?p=269</link>
		<comments>http://www.zuschlogin.com/?p=269#comments</comments>
		<pubDate>Thu, 08 Mar 2012 22:21:04 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[Analysis & Statistics]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=269</guid>
		<description><![CDATA[Comparing Counts

Calculating probabilities for two-category responses.
Binary choice testing.
A-B testing.
Normal approximations for categorical data, and its limits.
Binomial, Fisher&#8217;s Exact, Chi-square, and G tests.
Multiple design (&#8221;multivariate&#8221;) testing.
Pitfalls in on-line apps.

Prerequisites: Stat 101, Stat 201, Stat 202, license to operate a time machine.
Over at DIY themes, a simple A-B test lead to a startling conclusion: Removing &#8220;social proof&#8221; [...]]]></description>
			<content:encoded><![CDATA[<h3>Comparing Counts</h3>
<ul>
<li>Calculating probabilities for two-category responses.</li>
<li>Binary choice testing.</li>
<li>A-B testing.</li>
<li>Normal approximations for categorical data, and its limits.</li>
<li>Binomial, Fisher&#8217;s Exact, Chi-square, and G tests.</li>
<li>Multiple design (&#8221;multivariate&#8221;) testing.</li>
<li>Pitfalls in on-line apps.</li>
</ul>
<p><strong>Prerequisites</strong>: <a title="Zusch Login - Basic statistical concepts" href="../../?p=78">Stat 101</a>, <a title="Zusch Login - Comparing Averages, Part 1" href="../../?p=219">Stat 201</a>, <a title="Zusch Login - Comparing Averages Part 2" href="../../?p=261">Stat 202</a>, license to operate a time machine.</p>
<p>Over at DIY themes, a simple A-B test lead to a startling conclusion: <a title="DIY Themes - How Split-Testing Our Opt-In Form Increased Our Conversion Rate by 102.2%" href="http://diythemes.com/thesis/increase-conversions-split-testing/">Removing &#8220;social proof&#8221; text at sign-up doubled conversions</a> from 1% to a blistering 2%. Over 80 comments were exchanged debating how such a &#8220;sure-fire persuasion tactic&#8221; hurt web site performance. Few commenters are suspicious of the small &#8220;sample size&#8221; (the given numbers suggest 8 conversions out of 793 visitors for one site design, and 15 conversions out of 736 visitors for the other design). However, only Stephen comes close to asking the right question: what is the p-value?  Using a p-value calculator supplied by the service that did the A-B test, he gets  0.051, which he declares not significant (i.e., <em>p</em> is more than 0.050).</p>
<p>Is that enough to ignore the results? If you read the <a title="Zusch Login - Stat 101" href="../../?p=78">first post in this series</a> you know that &#8220;statistical significance&#8221; is not some magic border between reality and falsehood. For the purposes of making business decisions, the difference between 0.051 and 0.050 is barely anything. It&#8217;s equal to, well, the difference between 0.051 and 0.050. But that doesn&#8217;t mean I think we&#8217;ve evidence that social proof had backfired in this case.</p>
<p>&#8220;How many?&#8221; It&#8217;s the simplest quantitative data you can imagine: the mere count or frequency of something. How many users fail to complete a task? How many conversions? How many prefer Design A over Design B? Simple as it is to measure counts (or related percents), it is among the most complicated forms of data to analyze, with several viable options each with their own strengths and limitations. It&#8217;s easier than you might expect to get it wrong.</p>
<h3>Binomial Probabilities</h3>
<p>But how complicated can counts be? After all, we&#8217;ve already dealt with counts in Stat 101. There, we calculated the p-values of two or more users having a problem with a site or app given a couple hypothetical states. For example, we determined that, assuming a population failure rate of 10%, there is a 0.028 probability of 2 or more users failing out of a sample size of three. Based on that, we concluded that the actual population rate is over 10%. We did it all without doing any math.</p>
<p>As Tonto said to the Lone Ranger when they were surrounded by hostile Sioux, &#8220;What do you mean &#8216;we,&#8217; pale face?&#8221; Of course, <em>I</em> did the math for you behind the scenes. What I actually did was, using the 10% hypothetical chance of a single failure, calculate <em>every possible</em> path to getting 2 out of 3 failures. I calculated the probability of the first two users failing but not the third, the probability of the last two users failing but not the first, and the probability of the first and third user failing but not the second. I summed all those probabilities to get the probability of 2 out of 3 failing. Then I did the same for 3 out of 3 failing (there&#8217;s only one path for getting that) and added <em>that</em> in to get the total probability of 2 <em>or more</em> failing for a sample size of three. To make the graphs and table for a sample size of three, I did the same for 3, 1 and no users failing out of three.</p>
<p>The probability of getting a certain count of events (e.g., failures) given the chance of a single event (failure) is a <em>binomial </em>probability. The &#8220;bi&#8221; in &#8220;binomial&#8221; in this case means &#8220;two possible outcomes&#8221; for each event -succeed or fail for example. That&#8217;s in contrast to other kinds of events, like a user rating something on a 35-point scale, which has 35 possible outcomes, or the time to complete a task, which has roughly a bjillion possible outcomes, depending on the precision of your stopwatch. For those situations, we already saw that you get p-values on the averages using a t-distribution as our sampling distribution.</p>
<p>For the number of users failing (versus succeeding), we use the <em>binomial distribution</em> as a our sampling distribution, which comprises the probability of every possible result (counts of users) of every possible sample for a certain sample size and hypothetical state. Each column of each table in my <a title="Zusch Login - Tables of binomial probabilities." href="../../content/blogimages/67/BinomialTable.htm">tables of binomial probabilities</a> from Stat 101 is a sampling distribution.</p>
<h4>Calculating Binomials</h4>
<p>The process for calculating binomial probabilities to get the sample distribution actually isn&#8217;t so complicated. We&#8217;re helped tremendously by assuming that the users perform <em>independently</em> -that the chance of the second user failing is uncorrelated by the chance of the first user failing, for example. Specifically we assumed that each user has a 10% chance of failing (our Hypothetical State A) regardless of how every other user actually performs in each possible path. Such independence of events is reasonable to expect as long as you&#8217;re testing each user separately.</p>
<p>Independence simplifies life for the statistician. When you assume independence, then the you can get the probability of any path by multiplying together the probability of each event in that path. For example the probability of the first two users failing but not the third is 0.10 * 0.10 * 0.90 = 0.009 (the last number is the probability of <em>not</em> failing). It also means the probability of the first two users failing is the same as the probability of the last two users failing is the same as the probability of the first and third user failing, thanks to the good ol&#8217; commutative property that you learned in grade school. Once you know the probability of one path, you know the probability of all paths. So the way to actually calculate binomial probabilities is to calculate the probability of one of the possible paths then multiply that by the number of possible paths. In this example, there are three different combinations of success and failure that give me two out of three, so the chance of getting precisely 2 out of 3 failures is 0.009 * 3 = 0.027.</p>
<p>Mathematically, it&#8217;s <em>p</em> = <em>P</em>^<em>f</em> * (1 &#8211; <em>P</em>)^(<em>n</em> &#8211; <em>f</em>) * <em>n</em>! / (<em>f</em>! * (<em>n</em> &#8211; <em>f</em>)!), which breaks down as:</p>
<p><img class="alignnone" title="P^f = probability of f failures,  (1 - P)^(n - f) = probability of the rest not failing, n! / (f! * (n - f)!) = combinations of f failures out of n." src="/content/blogimages/stat200/BinomialFormula.png" alt="" width="479" height="245" /></p>
<p>Where:</p>
<ul>
<li><em>n</em> = sample size</li>
<li><em>f</em> = your number of observed events (failures)</li>
<li><em>P</em> = your probability (not percent) in your hypothetical state</li>
</ul>
<p>Where <em>f</em>! isn&#8217;t a loud and obnoxious f-er, but  the &#8220;factorial&#8221; of <em>f</em>, which is:</p>
<p style="margin-left: 40px;"><em>f</em>! = <em>f</em> * (<em>f</em> &#8211; 1) * (<em>f</em> &#8211; 2) * (<em>f</em> &#8211; 3) &#8230; all the way down until you get to 1.</p>
<p>Likewise for <em>n</em>!.</p>
<p>That&#8217;s the process for getting the probability of precisely <em>f</em> out of <em>n</em> events. To get the probability of <em>f</em> or more events, you also calculate the probability of <em>f</em> + 1 events, <em>f</em> + 2 events, <em>f</em> + 3 events up to and including <em>n</em>, then add all those probabilities together. In the case of two or more out of three, the only path remaining is the chance of getting three failures in a row, which is 0.001. Add that to the 0.027 we got for precisely 2-out-of-3, and you get the final answer of 0.028.</p>
<p>Here&#8217;re all the binomial probabilities for a sample size of three with a hypothetical state of 10%. Just as you can sum the probabilities for each precise <em>f</em> to get the probability of <em>f</em>-or-more, you can also sum them the other direction to get the probability of <em>f</em>-or-less.</p>
<table style="text-align: left; width: 425px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td style="width: 47px; text-align: center;"><em>f</em></td>
<td style="width: 115px; text-align: center;">p(precisely       <em>f)</em></td>
<td style="text-align: center; width: 115px;">p(<em>f </em>or less)</td>
<td style="text-align: center; width: 115px;">p(<em>f </em>or more)</td>
</tr>
<tr>
<td style="width: 47px; text-align: center;">0</td>
<td style="width: 115px; text-align: center;">0.729</td>
<td style="text-align: center; width: 115px;">0.729</td>
<td style="text-align: center; width: 115px;">1.000</td>
</tr>
<tr>
<td style="width: 47px; text-align: center;">1</td>
<td style="width: 115px; text-align: center;">0.243</td>
<td style="text-align: center; width: 115px;">0.972</td>
<td style="text-align: center; width: 115px;">0.271</td>
</tr>
<tr>
<td style="width: 47px; text-align: center;">2</td>
<td style="width: 115px; text-align: center;">0.027</td>
<td style="text-align: center; width: 115px;">0.999</td>
<td style="text-align: center; width: 115px;">0.028</td>
</tr>
<tr>
<td style="width: 47px; text-align: center;">3</td>
<td style="width: 115px; text-align: center;">0.001</td>
<td style="text-align: center; width: 115px;">1.000</td>
<td style="text-align: center; width: 115px;">0.001</td>
</tr>
</tbody>
</table>
<h4>No, How you <em>Really</em> Calculate Binomial Probabilities</h4>
<p>By now it&#8217;s clear that binomials are not so much complicated as boring. The probability of getting two or more out of three isn&#8217;t so bad, but if you have a sample size of 30 and you want to know the probability of getting 20 or more failures, that means getting the probability of precisely 20, 21, 22, 23, and so on to 30 failures, then adding them up. This is 2012. We don&#8217;t have that kind of attention span. So write a program or script to loop through the calculation of <em>f</em>-or-more failures (one of my earliest desktop programs -in Pascal -calculated binomial probabilities), or set up a spreadsheet that replicates the calculations through <em>x</em>-to-<em>n</em> number of cells.</p>
<p>Or why bother to re-invent the wheel? Excel, for example, has a BINOMDIST() function. Enter the observed count of events (<em>f</em>), the sample size (<em>n</em>), the probability from the hypothetical state, and TRUE for &#8220;cumulative,&#8221; and Excel gives you the probability of <em>f</em> events or less. That is, it gives you the left tail of the distribution. To get the probability of <em>f</em> events or more, calculate <em>f</em> &#8211; 1 events or less and subtract that from one:</p>
<p style="margin-left: 40px;">p(<em>f</em> events or more) = 1 &#8211; BINOMDIST(<em>f</em> &#8211; 1, <em>n</em>, <em>P</em>)</p>
<p>For example, to get the probability of 2 or more failures out of three, calculate 1 minus the probability 1 or fewer failures.</p>
<p><img class="alignnone" title="Histogram probability of 2 or more = 1 minus probability of 1 or less." src="/content/blogimages/stat200/MoreEqual1MinusLess.png" alt="" width="360" height="445" /></p>
<p>This is reminiscent of what we did with the t-distribution when we wanted the p-value through the center of the distribution. A key difference is that the binomial distribution is discrete -the possible observed values are integers -while the t-distribution (like the normal distribution) is continuous, allowing any fraction. In a t-distribution the probability of <em>x</em> or more is essentially the same as the probability of one minus <em>x</em> or less. But in a discrete distribution, the probability of <em>f</em> or more is 1 minus (<em>f</em> &#8211; 1) or less.</p>
<p>If it&#8217;s too uncool to use old-fashion desktop application, you can search for a web or mobile app to calculate binomial probabilities. More on that in a minute.</p>
<p>Now you know where I get my Stat 101 numbers from. More practically, now you can calculate your own probabilities for values of <em>P</em> that I didn&#8217;t include in my tables (e.g., 16.7%, 3%, 0.01%).</p>
<h3>Binary Choice Data</h3>
<h4>Time Warp</h4>
<p>But supposed you fall through a moth hole in the fabric of space-time to 1978, a time when mobile apps, iTunes, the web, PCs, and computers were not routinely available or existing. You immediately notice that Mick Jagger is already old. Almost as horrific, you next notice that people&#8217;s attention span really isn&#8217;t significantly different than today&#8217;s. Statisticians didn&#8217;t have the patience to calculate binomial probabilities by hand back then either. Instead, they worked out short-cuts.</p>
<p>Suppose you wanted to improve the user experience for your users in 1978, by&#8230; umm&#8230;  providing blank punch cards in an assortment of colors. As your users sit in windowless institutional cinder block keypunch rooms clacking away on battleship gray keypunch machines, maybe a little more color will trickle some sunshine into their dreary little lives (the users, not the keypunch machines).</p>
<p>You float the idea to Sven, the Supreme Lord of the Mainframes and the original Bastard Operator from Hell (BOFH). Sven is delighted by the idea. In fact, Sven is willing to consider investing in the more expensive colored punch cards if you can show there&#8217;s <em>any</em> preference for them among the users. You&#8217;re surprised that a BOFH would lift a finger to help users, but this is the <em>original</em> BOFH -he&#8217;s <em>literally</em> a bastard operator from Hell. With a tear in his eye, he&#8217;ll proudly tell you how is unmarried mother worked days and nights in his tiny hometown of Hell, Norway so he could get an education and become the Supreme Lord of the Mainframes.</p>
<p>To test users for card preference, you count how many users choose colored versus plain punch cards. To keep your users independent, you have to observe at a time and place when only one user at a time goes to get punch cards so that they don&#8217;t influence each other. Also, if you see the same user twice, you only count his or her choice for the first time in order to maintain independent observations (yes, his or <em>her</em> in 1978; just ask my sister-in-law). You also have to switch the shelf positions of the punch cards between each users to balance out any possible position effects (maybe users naturally tend to grab from the stack of cards on the left or right). After doing this for 40 users, it&#8217;s getting monotonous, but the data are very compelling: 29 out of 40 users took colored punch cards -almost 3 out of 4.</p>
<p>So let&#8217;s set Hypothetical State A to represent No Preference, which would mean the population chance of choosing colored over plain is 50%. Using your binomial app or BINOMDIST() function, you see that the probability of getting 29 or more users out of 40 for a 50% population rate is 1 &#8211; BINOMDIST(28,40,0.5) = 0.0032.</p>
<p>Looks like you have a solid statistical case for users preferring colored punch cards.</p>
<h4>The Normal Approximation of the Binomial</h4>
<p>Oh, right, you can&#8217;t get binomial probabilities so easily because it&#8217;s 1978 and your smart phone&#8217;s battery is dead from too many games of Angry Birds while you were waiting for users to come get their punch cards. This is when you appreciate the shortcuts pioneered by yesterday&#8217;s statisticians.</p>
<p>Take a look at the binomial distribution for 40 with a 50% hypothetical population rate. This graph gives the probability of observing each <em>f</em> precisely (i.e., BINOMDIST(<em>f</em>,40,0.5,FALSE)), so to get <em>f</em>-or-more, you&#8217;d add all the bars from <em>f</em> to the right tail of the distribution.</p>
<p><img class="alignnone" title="Symmetrical bell-shaped binomial distribution, average centered on f = 20." src="/content/blogimages/stat200/Binomial40,50.png" alt="" width="479" height="257" /></p>
<p>Looks like a normal distribution, doesn&#8217;t it? In fact, thanks to the Central Limit Theorem, binomial distributions tend to be normal distributions, much like sampling distributions of averages tend to be normal distributions. Any binomial distribution will tend to be normally distributed with:</p>
<p style="margin-left: 40px;">population average = <em>P</em>*<em>n</em></p>
<p style="margin-left: 40px;">standard error = SQRT( <em>n</em> * <em>P</em> * (1- <em>P</em>) )</p>
<p>We can use the normal distribution much like the t-distribution by converting our observed statistic (29, the count of users who chose colored punch cards) into units of standard error of the normal distribution. The new converted statistic is called &#8220;z&#8221;. I tell statistics groupies it&#8217;s named after me. Really impresses them.</p>
<p style="margin-left: 40px;">z = (<em>f</em> &#8211; <em>hypo</em>) / <em>se</em></p>
<p>Where</p>
<p style="margin-left: 40px;"><em>f</em> = the observed count, 29 in this case.</p>
<p style="margin-left: 40px;"><em>hypo</em> = the hypothetical state for counts (i.e., <em>P</em> * <em>n</em>, or 20 in this case).</p>
<p>It works just like the t-statistic except that we have the actual standard error, not an estimate based on the standard deviations in our samples. That means there are no degrees of freedom to worry about, and you use the standard normal distribution, rather than the t-distribution adjustment for using an estimated standard error. In Excel, that&#8217;s the NORMSDIST() function, which gives the one-tailed probability of <em>z</em> or less, so you have to subtract it from 1 to get <em>z</em> or more.</p>
<h4>Accuracy of the Normal Approximation</h4>
<p>Applying the normal approximation to our punch card data, we get:</p>
<p style="margin-left: 40px;"><em>z</em> = (29 &#8211; 0.5 * 40) / SQRT(40 * 0.5 * 0.5) = 2.85</p>
<p>Using Excel&#8217;s NORMSDIST() to get the p-value, remembering that NORMSDIST() gives the p-value for <em>f</em> or less.:</p>
<p style="margin-left: 40px;">p-value = 1 &#8211; NORMALDIST(2.85) = 1 &#8211; 0.9978.= 0.0022</p>
<p>Compare to the true value we got from the binomial distribution, that&#8217;s not bad for an estimation. I mean, 0.0032, 0.0022, whatever. The point is you can&#8217;t plausibly say there is no preference for colored punch cards.</p>
<p>But the normal approximation is only an estimation based on the assumption that your sampling distribution (the binomial distribution for your sample size and hypothetical state) is close enough to a normal distribution. It&#8217;s the same assumption underlying the t-test, so it&#8217;s accuracy can be foiled by the same combination of the things:</p>
<ul>
<li>The smaller the sample size the worse the accuracy.</li>
<li>The more skewed the distribution the worse the accuracy.</li>
</ul>
<p>For sample size effects, consider the probability of getting 6 or more events out of a sample of 8. The true binomial probability is 0.1445 while the normal approximation estimates it&#8217;s 0.0786, about half as much. Contrast that with the 0.0032 versus 0.0022 estimates above, where the estimate is off by about a third.</p>
<p>Skewness is related to <em>P</em>, the probability in your hypothetical state. The more <em>P</em> deviates from the midpoint of 0.5, the more lopsided the binomial distribution becomes. That makes sense: the lower the probability of each event, the more frequently you&#8217;ll get samples with low counts of events&#8211;the more they&#8217;ll tend to pile up at the low end of the scale. Here, for example, is the binomial distribution for a sample size of 40 when the population rate is 5%:</p>
<p><img class="alignnone" title="Positively skewed bell-shaped binomial distribution, average of f = 2." src="/content/blogimages/stat200/Binomial40,05.png" alt="" width="479" height="261" /></p>
<p>The opposite holds when the population rate of each event is over 50%.</p>
<p>For example, instead of measuring colored punch card preference, suppose you ran your 40 users through a usability test and counted how many failed to complete the task. You might need to run such a large sample size if the cost of both Type I or Type II errors are so large there&#8217;s little gap between Hypothetical States A and B . If Hypothetical State A is 0.05, then the true probability of observing 4 failures or more out of 40 users is 0.1381, but the normal approximation estimates it at  0.0734 -again half as much. Not to good to underestimate your error rate so much when costs are high.</p>
<p>Put both small sample size and skewed distributions together, and you can be way off. Remember that the true probability of 2 or more out of 3 given a 10% population rate is 0.0280? The normal approximation estimates it&#8217;s 0.000535!</p>
<h4>What to Do About it</h4>
<p>There are some attempts to reduce the inaccuracies of the normal approximation. Some of the inaccuracy of the normal estimate can be traced to the counts ( <em>f</em>) in the binomial distribution being discrete integers, but the normal distribution is a smooth continuous function. Yates continuity correction seems to me a reasonable and effective way to compensate for this, but apparently it <a title="London Business School - Yates Correction (pdf)" href="http://faculty.london.edu/cstefanescu/Yates.pdf">doesn&#8217;t work as well as it should</a> when you run it on realistic data, so it&#8217;s controversial today.</p>
<p>The real solution is simply don&#8217;t use the normal approximation. This isn&#8217;t 1978 and we&#8217;re not punching cards any more. Just about anyone with any access to today&#8217;s technology can calculate the true binomial probabilities.</p>
<p>The only reason I can see to use the normal approximation today is when you&#8217;re doing a quick check literally in your head. For example, Jason Cohen has described a <a title="A Smart Bear - Easy statistics for AdWords AB testing, and hamsters" href="http://blog.asmartbear.com/easy-statistics-for-adwords-ab-testing-and-hamsters.html">simple rule</a> that allows you to decide if an observed count has a p-value less than 0.05 given a population rate of 50%. I&#8217;ve personally used the rule that the 95% confidence interval of the observed rate of a binary event  is about the same as the inverse of the sample size (1/SQRT(<em>n</em>), so you need a sample size of 100 to get results you&#8217;re very sure are within 10% of the true value). I use it to estimate the sample size of poll results on TV when they report the &#8220;margin of error.&#8221; Another way to wow the stat groupies. Both of these mental tricks use the normal approximation of the binomial distribution (technically, Cohen uses the chi-square distribution with one degree of freedom, but that&#8217;s a mathematical function of the normal distribution so it gives the same answer). Go ahead and use them, but realize you can be off by a factor of 2 pretty easily, and that either trick only works well with large samples sizes and population rates not too far from 50%.</p>
<p>The real reason I spent so much time on the normal approximation of the binomial distribution is that some apps out there use the normal approximation instead of calculating the true binomial probabilities. They seem to be many of the ones that come up when you google for A-B testing. Before you use a binomial calculator on the web or download a binomial app, check if it&#8217;s giving real probabilities or the approximation. If the documentation isn&#8217;t clear, test the app with a small sample size and population rate far from 50% and compare the results to what you get with BINOMDIST() or my <a title="Zusch Login - Binomial Tables" href="../../content/blogimages/67/BinomialTable.htm">binomial tables</a>. For example, the true chance of getting three or more out of 10 when the population rate is 10% is 0.0702. The normal approximation will say it&#8217;s 0.0175 or maybe 0.0569 if it&#8217;s attempting to correct for continuity.</p>
<h4>Tail Trap</h4>
<p>Another pitfall I&#8217;ve seen in some on-line apps is to fail to distinguish between one-tail and two-tailed testing. Like a t-test, a binomial test can be used to calculate the probability for a one-tailed or two-tailed test. In a one-tailed test, you calculate the probability of getting either an observed count or more, or an observed count or less, but not both at once. So far, all tests in this post and in Stat 101 were one-tailed tests. For instance, in our colored punch card test, we only considered the possibility of users preferring colored cards over plain cards. We weren&#8217;t interested in the possibility that users prefer plain cards over colored cards. As far as we were concerned, that wouldn&#8217;t be any different than no preference for either cards.</p>
<p>In a two-tailed test, you calculate the probability of getting an observed count <em>as extreme or more extreme</em>-you determine the chance of deviating both ways away from your hypothetical state at the same time. This is the procedure you use if you&#8217;re interested in the possibility of plain cards being preferred over colored -where that would impact your UI design (or punch card policy, in this case). For example, suppose plain and colored cards cost about the same, or suppose that, while usually plain cards are cheaper than colored cards, sometimes colored cards are cheaper than plain cards. Now it makes a difference whether users prefer plain cards versus users not caring. If users don&#8217;t care, you&#8217;d buy whatever cards are cheaper at the moment, but if users prefer plain cards, you&#8217;d buy plain cards, favoring them even if they&#8217;re more expensive. Or maybe there&#8217;s an important lesson to learn if users prefer plain cards over colored -something about users being distracted or annoyed by gratuitous attempts to improve aesthetics (although there are practical reasons to use colored punch cards too). All these are reasons to do a two-tailed test -to calculate the probability of getting a count as extreme or more extreme than what you&#8217;ve observed in your sample.</p>
<p>If your Hypothetical State A is exactly 50%, then the binomial probabilities are symmetrical, and you get the two-tailed probability for both Hypothetical State A and B the same way you do with a t-test -simply double your one-tailed probability. In our punch card example, the two-tailed probability of getting 29 out of 40 is 0.0032 * 2 = 0.0064, which is actually the probability of getting 29 or more <em>or</em> 11 or less.</p>
<p>When Hypothetical State A isn&#8217;t exactly 50%, then the binomial probabilities are no longer symmetrical, and the probability of one tail isn&#8217;t quite equal to the probability of the other. The most common procedure for getting the two-tailed value is the <a title="Quantitative Skills - Method of small p-values" href="http://www.quantitativeskills.com/sisa/papers/paper5.htm">Method of Small p-values</a>, which, in a nutshell, means finding the precise count of events in the other tail that have a probability equal to or less than the probability of precisely the observed count, then sum the probabilities from the count you found to the end of the tail. That can mean some hunting around if you have to do it manually with a one-tailed app or function like BINOMDIST(). Fortunately, rarely in usability testing do you ever have a two-tailed test with a Hypothetical State A other than 50%.</p>
<p>But the real lesson from this is that you need to check if your binomial app or function is giving you one or two-tailed probabilities. Given two-tailed has about twice the probability of one-tailed, it makes a big difference. Ideally, the app should give you the choice of one-tailed or two-tailed results since you may be using either in a usability test. If the app doesn&#8217;t say what it does, you can test it by comparing results with Excel&#8217;s BINOMDIST(), which gives one-tailed probabilities of an observed count or less.</p>
<h3>A-B Testing</h3>
<p>Meanwhile, back in your time warp, you&#8217;ve found another opportunity to improve the user experience of your hapless keypunching users. You noticed that a thick cable crosses the route to the card reader in the I/O room. Occasionally, users stumble on it, and then some dump their carefully ordered stacks of punch cards on the floor.</p>
<p>You mention this issue to Sven the BOFH, but he&#8217;s skeptical. He points out that this is 1978 and all computer users tend towards the geeky side of the population distribution -they&#8217;re not exactly known for their physical coordination, so who&#8217;s to say they wouldn&#8217;t stumble and drop their cards anyway? (You admit you have witnessed that some users are apparently capable of stumbling while standing still waiting for the card reader to read their cards.) Indeed, Sven argues that the big fat black cable is a feature not a bug: it&#8217;s such an obvious tripping hazard that it encourages the geeks to walk more carefully reducing the frequency of stumbles from what it otherwise would be. Besides, the only alternative is to route users through a different door to the I/O room, but that&#8217;s a somewhat longer walk, which increases the chance for stumbles.</p>
<p>You can forgive Sven for being obtuse about modern usability/human factors. It&#8217;s only with today&#8217;s UX enlightenment that you never see the <a title="UIE - Five Usability Challenges of Web-Based Applications" href="http://www.uie.com/articles/usability_challenges_of_web_apps/">virtual equivalent</a> of a <a title="UIE - “Please, let me redesign your airline for you.”" href="http://www.uie.com/brainsparks/2010/08/02/please-let-me-redesign-your-airline-for-you/">big-ass</a> <a title="UIE - Hey AIGA: 1996 called. They want their online pub tool back." href="http://www.uie.com/brainsparks/2010/06/22/hey-aiga-1996-called-they-want-their-online-pub-tool-back/">tripping</a> <a title="UIE - Web Form Design in the Wild, Part I" href="http://www.uie.com/articles/forms-fairmont-hotel/">hazard</a> on a web site. Besides, to his credit, the BOFH is open-minded -anything to improve the lot of his users. He&#8217;s willing to do an A-B test. You sit outside the I/O room and, by flipping a coin, direct each user to one route or the other to the card reader, and count the number of users that stumble as they pass you. Like before, you exclude users you&#8217;ve already observed once to maintain independence of your observations.</p>
<p>It&#8217;s important to know if the short way is better than the long way (as Sven theorizes) in addition to the long way being better than the short way (your theory), so this will be a two-tailed test. It&#8217;s safe to say that any change that reduces any stumbling and card dumping is worth considering, so that implies a Hypothetical State A of 50% -an equal number of users will stumble whichever way they go. For Hypothetical State B, you and Sven agree that a one-third reduction in stumbling rates is definitely worth favoring one route over the other (e.g., of the users that stumble, 40% stumble on one route, and 60% stumble on the other).</p>
<p>Of the 100 different users you observed, 19 stumbled on the way to the card reader, a 19% rate comparable to the percent of <a title="Measuring Usability - How common are usability problems?" href="http://www.measuringusability.com/problem-frequency.php">users that have a problem in a usability test</a> of a modern interactive application. But more of interest to you, of those 19 users, 13 stumbled taking the short route over the cable, but only 6 stumbled taking the long route through the alternative entrance. In other words, in your sample, taking the long route reduced stumbling by more than a half. So you want the probability of 6 or fewer users out of 19 stumbling assuming 50% stumble in the population.</p>
<p style="margin-left: 40px;">p(6 or less out of 19 given 50%) = BINOMDIST(6,19,0.5,TRUE) = 0.0835</p>
<p>This is a two-tailed test, so the p-value for observing something as extreme as 6-or-less out of 19 is 0.0835 * 2 = 0.1671.</p>
<p>There&#8217;s a pretty reasonable chance of seeing results like this when the true population rate is 50%. You don&#8217;t have to calculate the p-value for Hypothetical State B which stipulates only a one-third reduction. Given your observed one-half reduction, you&#8217;re not in the Whatever Zone where it seems like it makes little difference which route your users take. You start planning to run more users.</p>
<h4>Correcting for Base Rates</h4>
<p>Then the ever-helpful BOFH notices something in your data: of the 100 users you observed, 45 were sent the short way over the cable, and 55 went the long way. There&#8217;s no good reason to think there&#8217;s something wrong with the coin you were tossing. If you calculate the binomial probability for it, you&#8217;ll see it&#8217;s quite plausible to get deviations at least that large with a fair coin. But nonetheless you happened to send fewer users over the cable than around it. Sven reasons that if the route really makes no difference, then if you send 55 of <em>all</em> 100 users the long way, then 55%, not 50%, of your 19 <em>stumbling</em> users should have gone the long way.</p>
<p>Sven is right. You&#8217;re using the wrong population rate for Hypothetical State A. And you&#8217;re <a title="Jesse Farmer - Statistical Analysis and A/B Testing" href="http://20bits.com/articles/statistical-analysis-and-ab-testing/">not the only one</a>. Your hypothetical rates need to reflect the base or marginal exposure rates. If there is no effect, then the population rate of a condition is equal to the proportion of users exposed to that condition. Failing to correct for the base rates -for the number of users in each condition of an A-B test -can give you p-values that are bigger or smaller than they really are, depending on which condition gets the greater number of users. Failure to take into account the base rate is a common error not only among students of statistics but in less mathematically formal <a title="Wikipedia - Base rate fallacy" href="http://en.wikipedia.org/wiki/Neglect_of_prior_base_rates_effect">problems in our lives</a>.</p>
<p>It&#8217;s easy enough to take into account the base rate with binomial probabilities. In this case, you sent more than half the users on the long route, which means you accentuated the exposure to stumbling on the long route, so your p-value is too small. For the number of users stumbling on the long route, Hypothetical State A is 55%, not 50%. Redoing the binomial probability:</p>
<p style="margin-left: 40px;">p(6 or less out of 19 given 55%) = BINOMDIST(5,19,0.55,TRUE) = 0.0342</p>
<p>The p-value is down on one tail, as expected. But now you&#8217;re pissed, because that stupid blogger told you you&#8217;d wouldn&#8217;t have to do two-tailed binomial tests in usability for anything other than a 50% population rate, and here it is, only a few paragraphs later and you have to do precisely that.</p>
<p>Trust me here a minute.</p>
<p>If  you were to follow the Method of Small p-values, you&#8217;d find the opposite extreme of 6-or-less out of 19 is 15-or-more out of 19 (the  probability of precisely 15 out of 19 is 0.0203, just under the probability of precisely 6 of 19, which is 0.0233). So the other tail&#8217;s probability is:</p>
<p style="margin-left: 40px;">p(15 or more out of 19 given 55%) = 1 &#8211; BINOMDIST(14,19,0.55,TRUE) = 0.0280.</p>
<p>So, the two-tailed p-value for seeing something as extreme as 6-or-less is 0.0342 + 0.0280 = 0.0622. Thank you, BOFH. That may to you look like an acceptable Type I error rate right there, leading you to conclude there be less stumbling if users always take the long route. However, it&#8217;s not good enough for Sven. Most of his users have scientific and mathematical backgrounds. They&#8217;re not going to be happy with him blocking the short route unless he can put the stamp of Statistically Significant on the results. Sven wants to see the p-value go below 0.05. So you&#8217;re back to running more users, although it&#8217;s not as bad as it was before.</p>
<h4>Consistency and Inconsistency</h4>
<p>While you were doing all these calculations by hand, Sven whipped up a Cobol BINOMDIST subroutine, and is enjoying printing out his own tables of binomial probabilities. He confirms your 0.0622 two-tailed probability for 6-or-fewer out of 19. Now he decides to look at those who took the short route, of whom 13 out of 19 stumbled, and the base exposure rate was 45%.</p>
<p style="margin-left: 40px;">p(13 or more out of 19 given 45%) = 1 &#8211; BINOMDIST(12,19,0.45,TRUE) = 0.0342</p>
<p>That&#8217;s a familiar looking number. And sure enough, using the Method of Small p-values, he finds the other extreme is 4 or fewer:</p>
<p style="margin-left: 40px;">p(4 or less out of 19 given 45%) = BINOMDIST(4,19,0.45,TRUE) = 0.0280</p>
<p>An exact mirror image of your results, with the same total p-value. Of course. Logically, they should have the same probability since you can&#8217;t have 6 out of 19 stumbling on one route without also having 13 out of 19 stumbling on the other route. 6-or-less out of 19 given 55% is synonymous with 13-or-more out of 19 given 45%. The same situation must have the same probability no matter how you state the problem. Math is truth and beauty.</p>
<p>Just for fun, Sven now calculates the probability of observing the users <em>not</em> stumbling when they take the long route. Nineteen of your 100 users stumbled, which means 81 didn&#8217;t stumble. You sent 55 users the long way, of whom 6 stumbled, so 49 didn&#8217;t stumble. Logically, the probability of 49-or-more out of 81 should be the same as 6-or-fewer out the 19 since they are simple restatements of the same situation.</p>
<div style="margin-left: 40px;">p(49 or more out of 81 given 55%) = 1 &#8211; BINOMDIST(48,81,0.55,TRUE) = 0.1891</div>
<p>Wait of minute. Sven has only done one tail so far, and his p-value is already far larger than what you got for the users that stumbled. Following the Method of the Smallest p-value, Sven finds the other tail starts at 40.</p>
<div style="margin-left: 40px;">p(40 or less out of 81 given 55%) = BINOMDIST(40,81,0.55,TRUE) = 0.1827</div>
<p>Total p-value = 0.1891 + 0.1827 = 0.3718</p>
<p>Two very different p-values for the same situation. One of them has to be wrong. Do you go with the users who stumbled or those that don&#8217;t? Which is right, 0.0622 or 0.3718? Why?</p>
<h3>Fishers Exact Test</h3>
<p>The answer of course, is that neither 0.0622 nor 0.3718 is right. The problem with both p-values is that they are using only part of the information you have available. What you need is a procedure that calculates the probability of the entire situation including both those that stumbled and those that didn&#8217;t. You want to include all the information in this 2-by-2 cross-tabulation table:</p>
<table style="text-align: left; width: 348px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td style="width: 80px;"></td>
<td style="width: 99px;"></td>
<td style="width: 68px; text-align: center;" colspan="2">Route</td>
</tr>
<tr>
<td style="width: 80px;"></td>
<td style="text-align: right; width: 99px;"></td>
<td style="text-align: right; width: 68px;">Short</td>
<td style="text-align: right; width: 67px;">Long</td>
</tr>
<tr>
<td style="width: 80px;">Response</td>
<td style="text-align: right; width: 99px;">Stumble</td>
<td style="text-align: right; width: 68px;">13</td>
<td style="text-align: right; width: 67px;">6</td>
</tr>
<tr>
<td style="width: 80px;"></td>
<td style="text-align: right; width: 99px;">Not Stumble</td>
<td style="text-align: right; width: 68px;">32</td>
<td style="text-align: right; width: 67px;">49</td>
</tr>
</tbody>
</table>
<p>Looking at it this way, you see now that you really have <em>two</em> binary variables in your usability test -two separate sets of categories to classify your users. One is the route you assigned each user (long or short route) and the other is the <em>response</em> of the user (stumble or not). The binomial test is inadequate for this situation because it only has <em>one</em> binary variable. As is often the case when you use less than all the information available, you lose statistical power or &#8220;decision potential.&#8221; The p-values both you and Sven calculated are larger than they would be if you used the information from both binary variables at once.</p>
<p>This appears to be a <a title="Jesse Farmer - Statistical Analysis and A/B Testing" href="http://20bits.com/articles/statistical-analysis-and-ab-testing/">common error</a> <a title="Ceondo - Split and A/B Testing Confidence Calculator" href="http://abtester.com/calculator/">in A-B testing</a>. I can only guess they get away with it because the error in the p-value is small when the total number of conversions is much smaller than the total number of non-conversions, which is pretty typical. But why be even a little wrong? Use your computer to compute. Use all the information you have.</p>
<p>The procedure to calculate a p-value for the joint counts from two binary variables is Fishers Exact Test (not to be confused with Fisher&#8217;s F or Fisher&#8217;s Z; that guy Fisher did a lot of great stuff; probably had a lot of groupies too). While the binomial test calculates the probability of observing two mutually exclusive counts (failures and non-failures), Fisher&#8217;s Exact test calculates the probability of four mutually exclusive counts from cross-tabulating two binary variables with each other. Like the binomial test, you first calculate the probability of precisely the observed configuration of counts, and then you add to that all other more extreme configurations for either one-tail or two-tails, depending on your intentions with the usability test.</p>
<p>Unlike a binomial test, however, Fisher Exact tests for only one hypothetical state: that the proportions of each cell are equal to the base rate. To put it another way, the hypothetical state is that there is no correlation between your two variables that characterize your users -for example that the tendency to stumble is unrelated to the route a user takes. To put it yet another way, the hypothetical state is that the two binary variables are <em>independent</em>. By &#8220;independent&#8221; I mean the same thing we mean when we talk about users performing independently. When users are independent, the chance of one user failing or succeeding is unrelated to whether another fails or succeeds. When binary variables are independent, then the chance of a user falling in a particular category of one variable is unrelated to his or her category on the other. The chance of stumbling is not different whatever route the user takes, for example.</p>
<p>A state of uncorrelated or independent variables is usually what you want for Hypothetical State A. It&#8217;s what we meant to have for this case of alternative routes to the card reader. However, since that&#8217;s the only hypothetical state that Fisher&#8217;s Exact tests, you cannot test Hypothetical State B with Fisher&#8217;s Exact. At least, I haven&#8217;t figure out a way yet. Like I said, statistical analysis of counts is surprisingly complicated.</p>
<h4>Calculating Fisher&#8217;s Exact</h4>
<p>To calculate Fisher&#8217;s Exact, first figure your row and column totals.</p>
<table style="text-align: left; width: 412px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td style="width: 80px;"></td>
<td style="width: 99px;"></td>
<td style="width: 68px; text-align: center;" colspan="2">Route</td>
<td style="width: 67px;"></td>
</tr>
<tr>
<td style="width: 80px;"></td>
<td style="text-align: right; width: 99px;"></td>
<td style="text-align: right; width: 68px;">Short</td>
<td style="text-align: right; width: 67px;">Long</td>
<td style="width: 67px; text-align: right;">Total</td>
</tr>
<tr>
<td style="width: 80px;">Response</td>
<td style="text-align: right; width: 99px;">Stumble</td>
<td style="text-align: right; width: 68px;">13</td>
<td style="text-align: right; width: 67px;">6</td>
<td style="width: 67px; text-align: right;">19</td>
</tr>
<tr>
<td style="width: 80px;"></td>
<td style="text-align: right; width: 99px;">Not Stumble</td>
<td style="text-align: right; width: 68px;">32</td>
<td style="text-align: right; width: 67px;">49</td>
<td style="width: 67px; text-align: right;">81</td>
</tr>
<tr>
<td></td>
<td style="text-align: right;">Total</td>
<td style="text-align: right;">45</td>
<td style="text-align: right;">55</td>
<td style="text-align: right;">100</td>
</tr>
</tbody>
</table>
<p>Now consider the users you sent on the long route. Of the 100 users, how many different ways are there to divide them up so that there are 55 going the long way and 45 going the short way? To answer that we use the same formula for combinations that we used to calculate  binomial probabilities: number of combinations = <em>n</em>! / (<em>f</em>! * (<em>n</em> &#8211; <em>f</em>)!). From now on, I&#8217;ll abbreviate that formula as COMBIN(<em>n</em>, <em>f</em>), which also happens to be the Excel function for calculating combinations. You use either the 45 or 55 for <em>f</em> since it means the same thing, and gives the same answer. That is, if there is<em> x</em> number of ways to get 45 out of 100 on the short route, there must also be the same x number of ways to get 55 out of 100 on the long route since every way of getting 45 on the short route is also a way to get 55 on the long route.</p>
<p>So, the answer to the question is:</p>
<div style="margin-left: 40px;">COMBIN(100,55) = 6.1448e28 (i.e., a really big number)</div>
<p>Now of 19 total users that stumbled, how many different ways are there to split them into 6 of them taking the long route and 13 of them taking the short route?</p>
<p style="margin-left: 40px;">COMBIN(19,6) = 27,132 (again, it doesn&#8217;t matter if I use 6 or 13, but I&#8217;ll use 6 to be consistent)</p>
<p>And of the 81 that didn&#8217;t stumble, how many ways are there to get 49 of them in the Long Route cell?</p>
<p style="margin-left: 40px;">COMBIN(81,49) = 3.6219e22 (lots smaller than the first number, but still pretty impressive)</p>
<p>For every one of those 27,132 ways of filling the stumbler row there are 3.6219e22 ways to fill the non-stumbler row, so you can get the total number of different ways of filling both rows to arrive at the counts we&#8217;ve observed by multiplying the two ways together:</p>
<p style="margin-left: 40px;">27,132 * 3.6219e22 = 9.8269e26</p>
<p>Divide that by the number ways of getting 45 and 55 total users on the short and long way, and that&#8217;s the proportion of ways to get the observed counts in each row given the totals of each column. It&#8217;s therefore the probability of getting the observed counts.</p>
<p style="margin-left: 40px;">p = 9.8269e26 / 6.1448e28 = 0.01599</p>
<p>That&#8217;s the probability of the precise configuration of counts you observed.</p>
<p>As a general formula, the probability of a particular two-by-two crosstabulation table of counts is:</p>
<p style="margin-left: 40px;">p = COMBIN(<em>tr</em>1,<em>f</em>1) * COMBIN(<em>tr</em>2,<em>f</em>2) / COMBIN(<em>tc</em>,<em>t</em>)</p>
<p>Where:</p>
<ul>
<li><em> tr</em>1 is the total for the first row.</li>
<li><em>tr</em>2 is the total for the second row.</li>
<li><em>f</em>1 is one of the counts from the first row.</li>
<li><em>f</em>2 is one of the counts from the second row.</li>
<li><em>tc</em> is one of the column totals</li>
<li><em>t</em> is the total sample size.</li>
</ul>
<p>That only gets you the p-value of precisely the observed configuration of observations. Now, similar to what you do with a binomial test, you need to calculate the p-value for each way of having a stronger relationship between stumbling and route while keeping the column and row totals the same. For example:</p>
<table style="text-align: left; width: 412px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td style="width: 80px;"></td>
<td style="width: 99px;"></td>
<td style="width: 68px; text-align: center;" colspan="2">Route</td>
<td style="width: 67px;"></td>
</tr>
<tr>
<td style="width: 80px;"></td>
<td style="text-align: right; width: 99px;"></td>
<td style="text-align: right; width: 68px;">Short</td>
<td style="text-align: right; width: 67px;">Long</td>
<td style="width: 67px; text-align: right;">Total</td>
</tr>
<tr>
<td style="width: 80px;">Response</td>
<td style="text-align: right; width: 99px;">Stumble</td>
<td style="text-align: right; width: 68px;">14</td>
<td style="text-align: right; width: 67px;">5</td>
<td style="width: 67px; text-align: right;">19</td>
</tr>
<tr>
<td style="width: 80px;"></td>
<td style="text-align: right; width: 99px;">Not Stumble</td>
<td style="text-align: right; width: 68px;">31</td>
<td style="text-align: right; width: 67px;">50</td>
<td style="width: 67px; text-align: right;">81</td>
</tr>
<tr>
<td></td>
<td style="text-align: right;">Total</td>
<td style="text-align: right;">45</td>
<td style="text-align: right;">55</td>
<td style="text-align: right;">100</td>
</tr>
</tbody>
</table>
<p>And:</p>
<table style="text-align: left; width: 412px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td style="width: 80px;"></td>
<td style="width: 99px;"></td>
<td style="width: 68px; text-align: center;" colspan="2">Route</td>
<td style="width: 67px;"></td>
</tr>
<tr>
<td style="width: 80px;"></td>
<td style="text-align: right; width: 99px;"></td>
<td style="text-align: right; width: 68px;">Short</td>
<td style="text-align: right; width: 67px;">Long</td>
<td style="width: 67px; text-align: right;">Total</td>
</tr>
<tr>
<td style="width: 80px;">Response</td>
<td style="text-align: right; width: 99px;">Stumble</td>
<td style="text-align: right; width: 68px;">15</td>
<td style="text-align: right; width: 67px;">4</td>
<td style="width: 67px; text-align: right;">19</td>
</tr>
<tr>
<td style="width: 80px;"></td>
<td style="text-align: right; width: 99px;">Not Stumble</td>
<td style="text-align: right; width: 68px;">30</td>
<td style="text-align: right; width: 67px;">51</td>
<td style="width: 67px; text-align: right;">81</td>
</tr>
<tr>
<td></td>
<td style="text-align: right;">Total</td>
<td style="text-align: right;">45</td>
<td style="text-align: right;">55</td>
<td style="text-align: right;">100</td>
</tr>
</tbody>
</table>
<p>And so on.</p>
<p>If you&#8217;re doing a two-tailed test, then you also have to use the Method of Small p-values to find the corresponding configurations in the opposite tail, where there is proportionally more stumbling on the long route than the short route, and add in their p-values too.</p>
<p>For our stumbling data, that all sums up to a p-value of 0.0386. How do you like that? All this time your results met Sven&#8217;s requirement for statistical significance. It was just a matter of finding the right test.</p>
<p>I went through all that math above just so you know what Fisher&#8217;s Exact is up to under the hood. In practice you use an on-line or mobile app. I can recommend the <a href="http://www.graphpad.com/quickcalcs/contingency1.cfm">one at GraphPad Software</a> and <a href="http://www.langsrud.com/stat/fisher.htm">one by Øyvind Langsrud</a>. Unfortunately, Excel doesn&#8217;t have a Fisher Exact function.</p>
<h3>Chi-square Tests of Independence</h3>
<p>Just like you can use the normal approximation of the binomial distribution to estimate the p-value from a the binomial test, you can also use the normal approximation to estimate the p-value for the relationship between two categorical variables. That approximation is the <em>chi-square</em> (not &#8220;chi-squared&#8221;) test. It uses the chi-square distribution, which is sort of a normal distribution for multiple variables combined.</p>
<p>In general a chi-square test is useful for testing how well some observed values fits expectations. To use chi-square to test the independence of two categorical variables, we calculate the counts we would <em>expect</em> to get in each cell if the hypothetical state of independence were true. For example, overall 19/100 or 19% of your users stumbled on the way to  the card reader. If stumbling is independent of route, then you would expect that of the 55 users that took the long route 19% or 10.45 would stumble (on average).</p>
<p style="margin-left: 40px;">Expected count of stumbling users on long route = 55 * 19/100 = 10.45</p>
<p>Likewise, the expected number of user stumbling on the short route is the total proportion of user stumbling times the number who took the sort route:</p>
<p style="margin-left: 40px;">Expected count of stumbling users on the short route = 45 * 19/100 = 8.55</p>
<p>Now do the same calculations for those <em>not</em> stumbling. The expected number of users not stumbling on the long route is the total proportion of users not stumbling times the number of users on the long route:</p>
<p style="margin-left: 40px;">Expected count of non-stumbling users on long route = 55* 81/100 = 44.55</p>
<p>And likewise for the short route:</p>
<p style="margin-left: 40px;">Expected count of non-stumbling users on the short route = 45 * 81/100 = 36.45</p>
<p>So you see a pattern here. For any cross-tabulation table of two categorical variables, if the variables are independent (uncorrelated), then the expected count <em>fe</em> for a cell in the <em>r</em>th row and <em>c</em>th column is:</p>
<p style="margin-left: 40px;"><em>fe</em> for cells in row <em>r</em> and column <em>c</em> = <em>tc</em> * <em>tr</em> / <em>t</em></p>
<p>Where <em>tc</em> is the total for column <em>c</em>, <em>tr</em> is the total for column <em>r</em>, and <em>t</em> is the grand total (your sample size).</p>
<p>To get the chi-square statistic, calculate the following for each cell:</p>
<p style="margin-left: 40px;">2 * <em>f</em> * LN( <em>f</em> / <em>fe</em> )</p>
<p>Where <em>f</em> is the count you observed in the cell and LN() is the natural logarithm function. This form of calculating chi-square is known as the &#8220;<a title="Wikipedia - G-test" href="http://en.wikipedia.org/wiki/G-test">G-test</a>&#8221; to distinguish it from an older somewhat less accurate calculation. While the G-test is more accurate than the alternative, it is still using a normal approximation. For our data we get for each cell:</p>
<p style="margin-left: 40px;">2 * 6 * LN(6 &#8211; 10.45) = -6.66</p>
<p style="margin-left: 40px;">2 * 13 * LN(13 &#8211; 8.55) = 10.89</p>
<p style="margin-left: 40px;">2 * 49 * LN(49 &#8211; 44.55) = 9.33</p>
<p style="margin-left: 40px;">2 * 32 * LN(32 &#8211; 36.45) = -8.33</p>
<p>The older alternative calculation is suitable when you have no spreadsheet software or scientific calculator. It&#8217;s:</p>
<p style="margin-left: 40px;">(<em>f</em> &#8211; <em>fe</em>)^2 / <em>fe</em></p>
<p>Or:</p>
<p style="margin-left: 40px;">(6 &#8211; 10.45)^2 / 10.45 = 1.89</p>
<p style="margin-left: 40px;">(13 &#8211; 8.55)^2 /8.55 = 2.32</p>
<p style="margin-left: 40px;">(49 &#8211; 44.55)^2 / 44.55 = 0.44</p>
<p style="margin-left: 40px;">(32 &#8211; 36.45)^2 / 36.45 = 0.54</p>
<p>The chi-square statistic is the sum of these numbers:</p>
<p style="margin-left: 40px;">Chi-square = -6.66 + 10.89 + 9.33 + -8.33 = 5.23</p>
<p>Or, doing it the old-fashioned way:</p>
<p style="margin-left: 40px;">Chi-square = 1.89 + 2.32 + 0.44 + 0.54 = 5.20</p>
<p>Doesn&#8217;t make much difference, especially since it&#8217;s all an approximation anyway.</p>
<p>The p-value of a chi-square can be found with the CHIDIST() function in Excel. The degrees of freedom for a cross-tabulation of two binary variables is 1.</p>
<p style="margin-left: 40px;"><em>p</em> = CHIDIST(5.23,1) = 0.0222.</p>
<p style="margin-left: 40px;"><em>p</em> = CHIDIST(5.20,1) = 0.0226.</p>
<p>The chi-square test is always two-tailed, so that&#8217;s your final p-value. As you can see, it&#8217;s only approximately equal to the true p-value of 0.0386 that we got with Fishers Exact. Like the normal approximation of the binomial distribution, the larger the sample size and the more evenly the counts are distributed (i.e., the more the row and column totals are close to each other), the more accurate it is. In the case of our stumbling data, the sample size is pretty big, but the row totals are very different from each other, which accounts for the inaccuracy. A small count in one or more cells of the cross-tabulation table, like the of 6 stumblers on the long route, is a warning sign to avoid chi-square.</p>
<p>Also like the normal approximation of the binomial, there&#8217;s no particularly good reason to use the chi-square test these days when you can use Fisher&#8217;s Exact. The main reason I&#8217;m covering Chi-square is the same reasons I covered the normal approximation of the binomial:</p>
<ul>
<li>It&#8217;s handy if for some reason you don&#8217;t have access to an app for Fisher&#8217;s Exact. The formula is sufficient simple that you whip it up in a spreadsheet pretty quickly -much easier than doing Fisher&#8217;s Exact in a spreadsheet.</li>
<li>Some <a title="Usereffect - Split Test Calculator &amp; Decision Tool" href="http://www.usereffect.com/split-test-calculator">on-line apps</a> for <a title="Split Test A/B Calculator" href="http://www.splittestcalculator.com/">calculating the p-value</a> for the relation between two binary variables use chi-square rather than Fisher&#8217;s Exact, so you need to be aware when you&#8217;re only getting an estimate.</li>
</ul>
<h4>A-B-C-etc. Testing</h4>
<p>There is one other reason to know about the chi-square test, and that is it&#8217;s easily scalable beyond binary variables. For instance, you can use it with three or more different designs (e.g., three different ways of warning users about the cable), or three or more different user response categories (e.g., stumble, not stumble, and turn around and not go to the card reader). You merely add rows and columns of count data to your cross-tabulation table. You still calculate <em>fe</em> the same way for each cell, and still sum up [2 * <em>f</em> * LN( <em>f</em> / <em>fe</em> )] for all your cells to get your chi-square statistic. You&#8217;ll just be doing it to more than four cells.</p>
<p>The only change is to your degrees of freedom. For any cross-tabulation table, the degrees of freedom for a chi-square test is:</p>
<p style="margin-left: 40px;"><em>df</em> = (<em>r</em> &#8211; 1) * (<em>c</em> &#8211; 1)</p>
<p>Where <em>r</em> is the number of rows and <em>c</em> is the number of columns in your table. For two binary variables:</p>
<p style="margin-left: 40px;"><em>df</em> = (2 &#8211; 1) * (2 &#8211; 1) = 1</p>
<p>For a usability test with 4 difference designs and 3 different user response categories;</p>
<p style="margin-left: 40px;"><em>df</em> = (4 &#8211; 1) * (3 &#8211; 1) = 6</p>
<p>The chi-square test is sufficiently simple you can use it for such elaborate usability tests. Fisher&#8217;s Exact, in contrast, gets very complicated quickly when you scale it to more than binary variables. You wouldn&#8217;t want to do it by hand, even in a spreadsheet.</p>
<p>A single-table Chi-square analysis is the appropriate way to do so-called multivariate testing, rather than breaking the test down into a <a title="Smashing - Multivariate Testing in Action: Five Simple Steps to Increase Conversion Rates" href="http://www.smashingmagazine.com/2010/11/24/multivariate-testing-in-action-five-simple-steps-to-increase-conversion-rates/">series of 2-by-2 A-B tests</a>. Consider: if your level of comfort of a Type I Error is 0.05, and you run 6 separate A-B tests, what&#8217;s the chance of at least one leading to a design decision when there really is no difference in conversion rates among any of them? Well, that&#8217;s just another binomial probability -sort of a meta-binomial probability, but it&#8217;s the same calculation:</p>
<p style="margin-left: 40px;">p(1 or more, given a 5% rate) = 1 &#8211; BINOMDIST(0,6,0.05,TRUE) = 0.265</p>
<p>That is, you&#8217;re actual chance of making a Type I Error is better than 1 in 4, more than five times greater than if you did it all as a 2-by-6 Chi-square. If the p-value for the 2-by-6 Chi-square is low enough for you, indicating some kind of correlation between designs and responses, <em>then</em> you can do a series of 2-by-2 tests (using Fisher&#8217;s Exact) in order to check which design is apparently better than the other.</p>
<h3>Be Careful Out There</h3>
<p>You might be wondering if all this is just academic. Binomials, chi-square, Fishers Exact, they all pretty much say the same thing. Let&#8217;s return to the results at DIY Themes, where the <a href="http://visualwebsiteoptimizer.com/ab-split-significance-calculator/">Visual Website Optimizer calculator</a> provided a p-value of 0.051 for getting 8 conversions out of 793 on one design versus 15 out of 736 on the other.</p>
<p>Dig into the Javascript for the calculator and you discover:</p>
<ul>
<li>It performs a one-tailed test. That&#8217;s wrong because the very fact that people are debating the counter-intuitive finding tells me everyone has an interest in either design out-performing the other.</li>
<li>It uses the normal approximation, rather than exact probabilities. That&#8217;s very suspect with some cells having such low counts.</li>
<li>It estimates the binomial probability for just the number of conversions, ignoring the information supplied by users that did <em>not</em> convert.</li>
</ul>
<p>Plug the same numbers in to a Fisher Exact two-tailed test and you discover the true p-value is 0.14, almost three times greater than what Visual Website Optimizer reported. There&#8217;s a one in seven chance of seeing results like this when there is actually no difference between the designs. Personally, that is way too much of a chance of error for me to waste time trying to understand why this form of social proof allegedly backfired. Call me when there&#8217;s more data.</p>
<h3>Summary Checklist</h3>
<h4>Problem: Statistical analysis of count data.</h4>
<p><strong>Potential Solution</strong>:</p>
<ul>
<li>Use the binomial probability distribution for independent counts in two categories.
<ul>
<li>For preference counts of a binary choice, set Hypothetical State A to 50%.</li>
<li>Select the appropriate number of tails.</li>
<li>Check the number of tails your binomial app or function uses.</li>
</ul>
<ul>
<li>Avoid using the normal approximation.</li>
</ul>
</li>
<li>Use Fisher&#8217;s Exact test for A-B test results.
<ul>
<li>Select the appropriate number of tails and be sure your app supports it.</li>
</ul>
<ul>
<li>Avoid tests that ignore the base rate.</li>
<li>Avoid tests that ignore the number of non-conversions.</li>
<li>Avoid tests the use a normal approximation for a simple 2-by-2 cross-tabulation. These include: Chi-square and the G test.</li>
</ul>
</li>
<li>Use Chi-square tests of independence (preferably the G-test) when testing more than two designs.
<ul>
<li>Test all designs simultaneously in a single large cross-tabulation table.</li>
<li>If the single large test indicates a relationship, then do 2-by-2 tests to compare designs with each other.</li>
</ul>
</li>
</ul>
<p>Here&#8217;s a spreadsheet of <a title="Zusch Login - Stat 203 data and analyses" href="/content/blogimages/stat200/Stat203.xls">this post&#8217;s data and analyses</a>.</p>
<p><img class="alignnone" title="A punch card." src="/content/blogimages/stat200/Punchcardw2.jpg" alt="" width="479" height="211" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=269</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stat 202</title>
		<link>http://www.zuschlogin.com/?p=261</link>
		<comments>http://www.zuschlogin.com/?p=261#comments</comments>
		<pubDate>Mon, 06 Feb 2012 18:41:27 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[Analysis & Statistics]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=261</guid>
		<description><![CDATA[Comparing Averages, Part 2

Comparing two new proposed designs.
Two-tailed versus one-tailed t-tests.
Maximizing power with experimental design.
Within-subject testing.
More on the normality assumption.
Data transformations.

 
Prerequisites: Stat 101, Stat 201, mild mad scientist tendencies.
Yes! You got the massive Surfer Stan web site contract. Now you&#8217;re trukin.
The biggest challenge for the site redesign is Paint Your Board, a new feature [...]]]></description>
			<content:encoded><![CDATA[<h3>Comparing Averages, Part 2</h3>
<ul>
<li>Comparing two new proposed designs.</li>
<li>Two-tailed versus one-tailed t-tests.</li>
<li>Maximizing power with experimental design.</li>
<li>Within-subject testing.</li>
<li>More on the normality assumption.</li>
<li>Data transformations.</li>
</ul>
<p><strong> </strong></p>
<p><strong>Prerequisites</strong>: <a title="Zusch Login - Stat 101" href="../../?p=78">Stat 101</a>, <a title="Zusch Login - Stat 201" href="../../?p=219">Stat 201</a>, mild mad scientist tendencies.</p>
<p>Yes! You got the massive Surfer Stan web site contract. Now you&#8217;re trukin.</p>
<p>The biggest challenge for the site redesign is Paint Your Board, a new feature for Stan&#8217;s site. Stan has invested in a computer numerically controlled (CNC) four-color surfboard painter. Stan got it so users can upload any image they want to appear on the boards they&#8217;ve chosen for purchase. You&#8217;ve made two interactive prototype UIs for Paint Your Board. One is an easy-to-understand but awkward-to-use multi-page HTML wizard, where users select the image&#8217;s size, position, orientation, and distortion on their boards through a combination of input fields and Submit buttons. Early testing showed this requires a lot of trial-and-error and page loads to get the results the users desire. It&#8217;s all very time-consuming.</p>
<p>The second prototype is a Flash application where a user drag-and-drops the chosen images over the board and sees the result instantly. In theory this will be several times faster than the HTML approach (not to mention being way rad). However, you know that drag and drop isn&#8217;t terribly discoverable, so the question is, will the improved speed of Flash make up for the time it takes to learn it? Time for another usability test. This time, the question is, which is faster on average, HTML or Flash?</p>
<h3>City of Two Tails</h3>
<h4>Hypothetical State A</h4>
<p>Let&#8217;s select our Hypothetical State A. What true difference in times is definitely <em>not</em> worth favoring one design over another? This is a different situation than last time when comparing an existing home page with a proposed new one. Before you already had a working web site, and were trying to see if it was worth the cost of redesigning a new site. Now both designs are equally complete and at least partially operational (to do the usability test, you had to prototype both designs). However hard it was to make each version, that money and time is already spent. Assuming the future differences in development, installation, and maintenance cost is negligible, there is no additional cost associated with going with one design over the other. So <em>any</em> difference is worth favoring one design over another. You have to choose one of them. If you can conclude that one is even a tiny smidgen better than the other, then that&#8217;s the one to go for. So:</p>
<p>Hypothetical State A: The difference in the completion times is zero.</p>
<p>If we observe a difference that is implausible assuming the real difference is zero then we can confidently favor one design over the other. Significantly (no pun intended), we will favor one design over the other for <em>any</em> implausible difference, either HTML being better than Flash or vice versa.</p>
<p>Last time with the home page designs, we only considered if the new home page was better than the old home page. We never checked to see if the old design was sufficiently better than the new design. We calculated p-values for Hypothetical State B to see how sure we could be that the new design was not considerably better than the old design, but that didn&#8217;t tell us if the old design could be considerably better than the new. It made sense to only consider the new being better than the old because it was really irrelevant if the old design is better than the new one. I mean, who cares? As long as you&#8217;re reasonably sure the new design wasn&#8217;t considerably better than the old, you were not going to go with the new design. Concluding that the old design is better than the new didn&#8217;t add useful information to your decision-making process.</p>
<p>Now we are considering <em>either</em> difference, simultaneously both HTML being better than Flash and Flash being better than HTML. When we calculate the p-value, it&#8217;s not a question of the probability of getting an observed difference so far above Hypothetical State A. It&#8217;s not a question of probability of getting an observed difference so far below Hypothetical State A. We need the probability of getting an observed difference so far from <em>either</em> side of Hypothetical State A. We need the probability of a difference in completion times as <em>extreme or more extreme</em> as what we observe.</p>
<p>For example, suppose we get a difference in completion time of 50 seconds. Let&#8217;s say the standard error is 25 seconds, Our p-value for that t-statistic should represent the probability of getting both 50 seconds or higher above zero, and 50 seconds or lower below zero (that is, -50 seconds or lower), The t-statistic, which converts our deviation from the hypothetical state from seconds to number of standard errors, is:</p>
<p style="margin-left: 40px;"><em>tstat</em> = (<em>diff</em> &#8211; <em>hypo</em>) / <em>se</em></p>
<p>Hypothetical State A is zero difference, so the corresponding t-statistics would be:</p>
<p style="margin-left: 40px;"><em>tstat</em> = (50 &#8211; 0) / 25 = 2.0 for 50 seconds and higher,</p>
<p style="margin-left: 40px;"><em>tstat</em> = (-50 &#8211; 0) /25 = -2.0 for 50 seconds and lower.</p>
<p>So in units of standard error, we want the p-value of getting 2.0 or higher and -2.0 or lower. The sampling distribution would look like this:</p>
<p><img class="alignnone" title="t distribution with two tails for t-values of 2 at each end." src="/content/blogimages/stat200/SamplingDistributionEx8.gif" alt="" width="479" height="166" /></p>
<p>This is called a two-tailed test because there are time-differences in each tail of the sampling distribution that would represent Type I errors that we need to include in our probability. We say we&#8217;ll favor one design if the difference is implausible assuming Hypothetical State A is true, but that really represents two ways to make a Type I error -two ways to favor a design when there is really no difference, so we have to include the probabilities of both extremes to get the total probability of getting a Type I error. We do this by simply adding the probabilities from both tails together. We&#8217;ll add the probability of getting a difference of 2.0 or more with the probability of getting a difference of -2.0 or less. Or, because the t-distribution is symmetrical, we&#8217;ll double the probability of getting 2.0 or more (especially since Excel refuses to take negative t-statistics).</p>
<p>We can get the p-value of out t-statistic using Excel&#8217;s TDIST() function, which requires the t-statistic, the number of tails, and the degrees of freedom. Let&#8217;s say our degrees of freedom (which are directly related to the sample size) is 10. TDIST(2.0, 10, 1) = 0.037 is the probability in one tail, so the probability in two tails is 0.037 * 2 = 0.073.</p>
<p>Or, we simply tell Excel we want to do a 2-tailed t-test, and Excel will double the p-value for us: TDIST(2.0, 10, 2) = 0.073.</p>
<h4>Hypothetical State B</h4>
<p>You may wonder if we even need Hypothetical State B since two-tailed p-values for Hypothetical State A can tell us both if we should choose Flash over HTML or if we should choose HTML over Flash. We still need Hypothetical State B so we can tell with high certainty if there is no considerable difference between Flash and HTML, as opposed to failing to <em>detect</em> a potentially important difference because your sample size is too small. By &#8220;considerable&#8221; in this case, I mean so large we should definitely choose one design over the other.</p>
<p>So now you and Stan set Hypothetical State B. What true difference in times is definitely worth favoring one design over another? Talking it over with Stan, you decide a 20% shorter completion time or better. Or to put it another way, if the faster version takes less than 80% of the time of the other, it&#8217;s definitely the design to go for. For example, if using one design takes five minutes and the other design takes four minutes.</p>
<p>Stan&#8217;s reasoning is that 20% less time to do something is enough to be noticeable, so that&#8217;s definitely worth favoring one design over the other. You could&#8217;ve agree on a certain number of minutes or seconds, but, not knowing how long the Paint Your Board tasks takes (it being a new feature), Stan couldn&#8217;t get tight with such numbers. Besides, having Hypothetical State B as a ratio is going to save us some arithmetic complications, as it turns out.</p>
<p>We have two-tails for Hypothetical State B too, since we need to calculate the p-value of <em>any difference</em> assuming the real difference is 20%; that is, HTML-over-Flash or Flash-over-HTML being 80%.</p>
<p><img class="alignnone" title="Two t distributions straddling 0 with positive and negative versions of same observed difference." src="/content/blogimages/stat200/SamplingDistributionEx9.gif" alt="" width="479" height="119" /></p>
<h3>When You Need a Two-Tailed Test</h3>
<p>Doing a two-tailed t-test has nothing to do with completion time being our measure. You can do a two-tailed test for ratings or any other measure.</p>
<p>What matters is whether you&#8217;re preparing to check for one or two possible outcomes from each hypothetical state. If you are strictly interested in the possibility of Design X being better than Design Y, it&#8217;s a one-tailed test. If you are even remotely interested in Design Y being better than Design X in addition to Design X being better than Design Y, then it&#8217;s a two-tailed test.</p>
<p>It&#8217;s important to firmly decide whether you want to do a one-tailed or two-tailed test because each has advantages and disadvantages, and you can&#8217;t change your mind after you see how the users perform.</p>
<p>The advantage of the two-tailed test is that it tells you more information -for Hypothetical State A alone, it&#8217;ll tell you if the X is better than Y <em>and</em> if Y is better than X. The one-tailed procedure can only tell you if X is better than Y. However, the one-tailed test has more power or &#8220;decision potential,&#8221; as I like to say. You&#8217;re focusing all your resources into only one possible outcome per Hypothetical State, getting more out of it. Because a one-tailed procedure doesn&#8217;t split our Type I and Type II error probabilities each into two pieces, you can make conclusions with less extreme t-statistics. For example, with a one-tailed test you need a t-statistic of about 1.3 (the exact value depending on your degrees of freedom) to have a 0.10 probability of an error. With a two-tailed test, you&#8217;d need a t-statistic of about 1.7 to have the same probability.</p>
<p><img class="alignnone" title="Two smaller tails equal one big tail." src="/content/blogimages/stat200/SamplingDistributionExA.gif" alt="" width="479" height="191" /></p>
<p>A less extreme t-statistic can come from a smaller sample sizes (i.e., bigger standard errors), so you can make decisions with faster and cheaper usability testing.</p>
<p>Given that usability tests already tend to have small sample sizes, the greater decision potential of a one-tailed test is a major advantage. However, you have to decide to use a one-tailed test before you see which design is on average better than the other in your sample. If you wait and see that Flash is faster than HTML, then decide, &#8220;well, I&#8217;ll do a one-tailed test on Flash being better than HTML,&#8221; you&#8217;re really doing a two-tailed test with double your apparent Type I error rate, because if HTML came out faster than Flash you would have done precisely the opposite. It&#8217;s like betting &#8220;heads&#8221; if a coin-toss comes up tails, and betting &#8220;tails&#8221; if it comes up heads. You&#8217;re doubling your chance of losing from 0.5 to 1.0.</p>
<p>Likewise, you can&#8217;t start out planning a one-tailed test then switch over to two-tailed once you see the data going opposite of your one-tailed test. Given Stan can tolerate a 0.10 chance of a error, switching from a one-tailed to a two-tailed after seeing the averatges means having a 0.10 Type I error rate if the data had gone as expected, plus a 0.05 Type I error rate for how the data actually went, for a 0.15 total Type I error rate. Bummer for Stan.</p>
<p>The bottom-line is use the one-tailed procedure when there is some added cost associated with going with Design X over Design Y, such as we had in the rating scale situation, where going with Design X (the new one) meant Stan spending duckets he wouldn&#8217;t have to otherwise. In other words, use a one-tailed test when Design Y being better than Design X is practically equivalent to Design X not being considerably better than Design Y.</p>
<h3>Decision Potential in Usability Testing</h3>
<p>It&#8217;s a pretty straight-forward usability test: get the average difference in time it takes to virtually paint a board with each prototype. However, you learned your lesson from the test with the ratings. You don&#8217;t want to once again be in a situation where both hypothetical states were reasonably plausible given your initial small sample size.</p>
<p>That meant you couldn&#8217;t make any design decision with adequate confidence. We want to maximize our decision potential (or statistical power, broadly speaking) to stay out of the statistical mush -of being unable to make a decision at acceptable Type I and Type II error rates. For a given usability test, we want to have the lowest Type I and Type II error rates regardless of the difference we see in the sample. Going back through Stat 101 and 201, we&#8217;ve already touched on three ways to help decision potential:</p>
<p><strong>Large sample size</strong><em>.</em> The larger the sample sizes the more accurate the statistics from the sample; that is, the smaller their sample error. The smaller the sample error, the higher your confidence that any deviation from either hypothetical state represents the true population values. In fact, as we saw in Stat 201, if we know the averages and standard deviations to expect from the sample, we can calculate the sample size we need to have reasonably good decision potential.</p>
<p>In the case of these completion times, you don&#8217;t have estimates of the standard deviations so you can&#8217;t estimate the sample size you&#8217;ll need. Earlier testing sessions of previous design iterations included a lot of stopping the task to talk with the users to get qualitative feedback, so it didn&#8217;t make sense to try to time the users. But here are some guidelines on choosing a sample size when you don&#8217;t have those statistics: Sample sizes of 5 to 10 users are generally only adequate when you expect one design to blow the other out of the water -like one design having half the completion time as the other, a result you can see coming in earlier design iterations even allowing for imperfect measurement. However, your sense from this formative testing is that the difference between HTML and Flash is going to be close. Alternatively, small sample sizes are adequate when there is very little difference between the two designs <em>and</em> your Hypothetical State B specifies a radical difference in performance. If you&#8217;d need one design to take half as long as the other to be definitely worth it, then 5-to-10 users would be a good starting point. You and Stan, however, see 80% to be definitely worth it -not that big of a difference in completion time. For our example, go big: start with 20 users and be prepared to add more users if you get mushed.</p>
<p><strong>High-powered statistical test</strong>. Some statistical procedures have more decision potential than others. As a general guide, the more information you use from the data and testing process, the greater the decision potential. For comparing averages, the t-test has just about the most decision potential of any test you&#8217;re going to do on a spreadsheet, so we&#8217;re already doing the best we can in this regard. Simple alternatives to the t-test use less information in the data. For example, tests like the Mann-Whitney U and Wilcoxon Signed-rank use the rank order of the completion times rather than the actual completion time to the nearest second. Other tests, like Chi-square or the sign test simply classify the completion times as relatively &#8220;slower,&#8221; and &#8220;faster.&#8221; Anytime you reduce your data in this way, you&#8217;re losing decision potential. The main reason to consider such alternatives to the t-test is if either the data is already reduced (e.g., that&#8217;s how you got it from the client), or if the normality assumption cannot be met.</p>
<p><strong>One-tailed Test</strong>. As we just covered above, a one-tailed test has greater decision potential than a two-tailed test. However, we&#8217;re interested in either Paint Your Board design being faster than the other (or either board not being considerably faster than the other), so we&#8217;re doing a two-tailed test, which makes it all the more important to compensate the loss in decision potential.</p>
<p>Let&#8217;s look more closely at the t-test and see if there something else we can do. To get high decision potential, you need large t-statistics for either Hypothetical State A or B. The numerator for the t-statistic represents the deviation of the sample from the hypothetical state, and that&#8217;s going to be what that&#8217;s going to be. The denominator of the t-statistic is the standard error. You&#8217;ve got to keep your standard error down. Big sample sizes do that, of course, but they&#8217;re expensive and time consuming so you don&#8217;t want them to be any bigger than they have to be -you remember quite well how you missed a couple beautiful days at the beach because you had to nearly quadruple your sample size for the ratings test in Stat 201. What else can you do?</p>
<p>The only variable other than sample size in the formula for the standard error is the sample standard deviations. You need to make them as small as you can. You want to minimize the variability in the numbers you conduct your t-test on. There are several ways of doing this:</p>
<p><strong>More similar users</strong>. If all your users had the same level of skill and knowledge, that would reduce variability. This is why scientists do experiments on genetically inbred white rats raised in controlled environments -they&#8217;re all very much alike in whatever rat talents and skills they have, so that minimizes variability, allowing smaller sample sizes. However, limiting the range of skill and knowledge of you users would make your sample unrepresentative of your population of users. Heck, run a bunch of white rats on your Paint Your Board feature, and they&#8217;ll all do equally well (poorly), but it won&#8217;t mean anything for your users. What you can do is more carefully select your users to make sure you aren&#8217;t getting any who are truly unrepresentative of your users. For example, you want to be sure not to include any total kooks who keep confusing the top of the surfboard from the bottom (&#8221;which way do the fins go again?&#8221;), adding to their task completion time.</p>
<p><strong>More tightly controlled task</strong>. You get less variability if you focus your usability test task on precisely the thing you&#8217;re testing, and exclude all else. For example, the UI to upload the image for the board is the same for both the HTML and Flash version, so don&#8217;t start the stopwatch until after the users upload their image. Otherwise users who get lost in their own file hierarchies have slow completion times relative to those who rip through their folders. Including the image-uploading won&#8217;t change the difference in the average completion times because by random chance you can expect equal number of hierarchy-lost users in each group, so they cancel out. However, it increases the variability of the completion times. Likewise you want to eliminate other sources of extraneous variation. Make sure your instructions are clear and consistent for all users so you don&#8217;t have any taking unusually long times because they misunderstood something. Make sure there aren&#8217;t any interruptions once the task is started. Keep the users on task no matter how much they want to wander off and explore other features of the site.</p>
<p><strong>Within Subjects Testing</strong>. You substantially reduce variability by having each user try <em>both</em> designs and look at the change in completion time of <em>each</em> user. This is call a &#8220;within subjects&#8221; test (or a &#8220;repeated measures&#8221; experiment) because you&#8217;re varying the UI design within each user or &#8220;subject.&#8221;. The alternative is &#8220;between-subjects&#8221; testing, which is what we had with the ratings in Stat 201. There you varied the UI design between two separate groups of users. Within-subjects testing has the effect of factoring out individual average differences, reducing variability. Users who tend to be fast on both prototypes are no longer so different from users who are slow on both prototypes because we now use the <em>change</em> in completion times.</p>
<h3>Using Within-subject Testing</h3>
<p>Within-subject testing is great for increasing decision potential, but it has a couple disadvantages. First of all you need more time per user, so you probably have to compensate them more. However, that&#8217;s usually cheaper than having to recruit more users, given the overhead of identifying suitable ones. As long as it doesn&#8217;t make the usability test so long no one wants to do it, that isn&#8217;t a major problem. Usually, you&#8217;ll get more decision potential from a within-subject test of a certain number of users than you would with a between-subjects test of twice as many users. Both approaches have the same total amount of user time, so the compensation cost is about the same, but within-subject gives you more decision potential for the compensation buck. Thus, even if the only cost were paying users for their time, you&#8217;re still usually better off with a within-subjects test.</p>
<p>A more serious problem is order effects. There might be differences in performance merely due to users trying one prototype before the other. For example if the users try the HTML version first then the Flash version, they might be faster with Flash simply because they got some practice painting their board, not because Flash is better. Or if the HTML version were faster, then maybe users were getting fatigued or bored by the time they got to paint their board (again) with the Flash version. The solution is to balance out the order effects by randomly assigning exactly half of your users to try the Flash version first while assigning the other half to try the HTML version first. This is called <em>cross-over</em> within-subject testing.</p>
<p>Within-subject testing should be considered for all usability tests regardless of the measure. We could&#8217;ve done it for the test comparing ratings of the new and old home page (<em>now</em> I tell you). That not only would&#8217;ve lowered the standard error, but also would&#8217;ve encouraged users to make contrasting ratings for the two versions if they believed one was better than the other. As always, you want to balance out the order effects by having exactly half your users seeing one version first while the other half sees the other first. Who knows? There may be primacy preference effects where users tend to like the first thing they see the most. Or maybe recency effects where they assume the second thing they see must be &#8220;improved.&#8221; A cross-over test eliminates such concerns, pre-empting any tedious (but legitimate) arguments over data interpretation.</p>
<p>The only time to not use within-subjects is when you&#8217;re likely to get extreme order effects -when doing the task the first time effectively negates the meaning of doing the task again. For example, say you&#8217;re testing two menu designs to see how they communicate a web site&#8217;s information architecture. Users are going to at least partially learn the IA with the first menu design they use, so they&#8217;ll be much better when they try the second one. In fact there may not be much new learning of the IA at all so it&#8217;s no longer reasonable to compare the two.</p>
<h3>Normal Enough?</h3>
<p>Finally we get to run the usability test. Here&#8217;s your data:</p>
<table style="text-align: left; width: 357px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td style="width: 91px;">Data</td>
<td style="text-align: right; width: 75px;">HTML</td>
<td style="text-align: right; width: 77px;">Flash</td>
<td style="text-align: right; width: 80px;"></td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">User</td>
<td style="text-align: right; width: 75px;">Time</td>
<td style="text-align: right; width: 77px;">Time</td>
<td style="text-align: right; width: 80px;">Difference</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">1</td>
<td style="text-align: right; width: 75px;">209</td>
<td style="text-align: right; width: 77px;">280</td>
<td style="text-align: right; width: 80px;">71</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">2</td>
<td style="text-align: right; width: 75px;">272</td>
<td style="text-align: right; width: 77px;">209</td>
<td style="text-align: right; width: 80px;">-63</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">3</td>
<td style="text-align: right; width: 75px;">158</td>
<td style="text-align: right; width: 77px;">155</td>
<td style="text-align: right; width: 80px;">-3</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">4</td>
<td style="text-align: right; width: 75px;">392</td>
<td style="text-align: right; width: 77px;">305</td>
<td style="text-align: right; width: 80px;">-87</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">5</td>
<td style="text-align: right; width: 75px;">392</td>
<td style="text-align: right; width: 77px;">448</td>
<td style="text-align: right; width: 80px;">56</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">7</td>
<td style="text-align: right; width: 75px;">170</td>
<td style="text-align: right; width: 77px;">305</td>
<td style="text-align: right; width: 80px;">135</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">8</td>
<td style="text-align: right; width: 75px;">289</td>
<td style="text-align: right; width: 77px;">251</td>
<td style="text-align: right; width: 80px;">-38</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">9</td>
<td style="text-align: right; width: 75px;">479</td>
<td style="text-align: right; width: 77px;">600</td>
<td style="text-align: right; width: 80px;">121</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">10</td>
<td style="text-align: right; width: 75px;">258</td>
<td style="text-align: right; width: 77px;">140</td>
<td style="text-align: right; width: 80px;">-118</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">11</td>
<td style="text-align: right; width: 75px;">600</td>
<td style="text-align: right; width: 77px;">502</td>
<td style="text-align: right; width: 80px;">-98</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">12</td>
<td style="text-align: right; width: 75px;">245</td>
<td style="text-align: right; width: 77px;">247</td>
<td style="text-align: right; width: 80px;">2</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">13</td>
<td style="text-align: right; width: 75px;">265</td>
<td style="text-align: right; width: 77px;">196</td>
<td style="text-align: right; width: 80px;">-69</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">14</td>
<td style="text-align: right; width: 75px;">182</td>
<td style="text-align: right; width: 77px;">177</td>
<td style="text-align: right; width: 80px;">-5</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">15</td>
<td style="text-align: right; width: 75px;">296</td>
<td style="text-align: right; width: 77px;">239</td>
<td style="text-align: right; width: 80px;">-57</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">16</td>
<td style="text-align: right; width: 75px;">318</td>
<td style="text-align: right; width: 77px;">231</td>
<td style="text-align: right; width: 80px;">-87</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">18</td>
<td style="text-align: right; width: 75px;">303</td>
<td style="text-align: right; width: 77px;">238</td>
<td style="text-align: right; width: 80px;">-65</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">19</td>
<td style="text-align: right; width: 75px;">269</td>
<td style="text-align: right; width: 77px;">382</td>
<td style="text-align: right; width: 80px;">113</td>
</tr>
<tr>
<td style="text-align: right; width: 91px;">20</td>
<td style="text-align: right; width: 75px;">383</td>
<td style="text-align: right; width: 77px;">329</td>
<td style="text-align: right; width: 80px;">-54</td>
</tr>
<tr>
<td style="width: 91px;">Statistics</td>
<td style="text-align: right; width: 75px;"></td>
<td style="text-align: right; width: 77px;"></td>
<td style="text-align: right; width: 80px;"></td>
</tr>
<tr>
<td style="width: 91px;">Sample</td>
<td style="text-align: right; width: 75px;">18</td>
<td style="text-align: right; width: 77px;">18</td>
<td style="text-align: right; width: 80px;">18</td>
</tr>
<tr>
<td style="width: 91px;">Average</td>
<td style="text-align: right; width: 75px;">304.4</td>
<td style="text-align: right; width: 77px;">290.7</td>
<td style="text-align: right; width: 80px;">-13.7</td>
</tr>
<tr>
<td style="width: 91px;">Std Dev</td>
<td style="text-align: right; width: 75px;">111.9</td>
<td style="text-align: right; width: 77px;">123.1</td>
<td style="text-align: right; width: 80px;">80.3</td>
</tr>
<tr>
<td style="width: 91px;">Skew</td>
<td style="text-align: right; width: 75px;">1.14</td>
<td style="text-align: right; width: 77px;">1.22</td>
<td style="text-align: right; width: 80px;">0.71</td>
</tr>
</tbody>
</table>
<p>Two of your users were &#8220;No Shows&#8221; who didn&#8217;t arrive for the usability test, so you have 18 rather than 20 users. With a within-subjects test, we&#8217;re only interested in the statistics from the difference of the completion times (in seconds) for each user. In this example, we&#8217;ll arbitrarily make each user&#8217;s difference be the Flash design completion time minus the HTML completion time, so a negative number means that a user was faster with Flash and a positive number means a user was faster with HTML (it won&#8217;t make a difference if it were HTML minus Flash as long as you keep track what positive and negative mean).</p>
<p>With a negative average of the difference scores, we see that on average most users are faster with Flash, but only by 13.7 seconds. With within-subjects testing the standard error is still derived from the sample standard deviation, but purely from the standard deviation of the difference scores. The formula for within-subjects testing is:</p>
<p style="margin-left: 40px;"><em>se</em> = <em>sd</em> / SQRT(<em>n</em>)</p>
<p>Where <em>sd</em> is the standard deviation of the differences and <em>n</em> is the number of users (or number of difference scores). With the data above:</p>
<p style="margin-left: 40px;"><em>se</em> = 80.3 / SQRT(18) = 18.94</p>
<p>Without even doing the t-tests we have a sense where things are going: The average difference of -13.7 seconds is well within one standard error of 0 (our Hypothetical State A), so our data is consistent with no difference between Flash and HTML. We should expect it to be pretty plausible that we get -13.7 seconds assuming Hypothetical State A is true. But we&#8217;ll still do the math.</p>
<p>As always, we also take a look at the distribution of the sample. It&#8217;s more-or-less bell-shaped, but it&#8217;s lopsided. Looking at the completion times for either HTML or Flash, we see most numbers are bunched up at the relatively low end while there&#8217;re relatively few at the high end. Most of your numbers are below average, which sounds like Lake Wobegon in some dark parallel universe, but its perfectly possible mathematically, and happens to be true in this case. The difference scores are not so badly lopsided, but I wouldn&#8217;t trust the distribution you get from a sample of difference scores.</p>
<p>This is called <em>skewed</em> data, and it&#8217;s common for the times to complete an action. It makes sense: there&#8217;s a limit to how fast a user can go -they certainly can&#8217;t complete a task in less than zero seconds, but there is no limit to how slow they can go. The effect on the differences in completion times, which is what we really care about, is not entirely predictable. Data may end up lopsided one way or the other, or not at all.</p>
<p>You can get a sense of skewness by just eyeballing how the data is distributed around the average, but there are also formulas that quantify skewness, which can be easier especially with large data sets. Using Excel&#8217;s SKEW() function, our data has a skewness of 1.11 overall, which is pretty high. A zero would be a perfectly symmetrical distribution, and negative skew would means skewness in the opposite direction, with sparse data stretched out below the average. Generally, skewness between -1 and 1 is mild.</p>
<p>But that&#8217;s not a big deal, is it? After all, the t-test only requires that the sampling distribution be normal, not the data distribution. The statistical high priests tell us that the sampling distribution will tend to be normal. Specifically, it will be close enough to normal <em>if the sample sizes are large enough</em>.</p>
<p>We&#8217;ve a pretty decent sample size -eighteen -so is that large enough?</p>
<p>Well, it depends on the shape of the distribution of data. In particular, skewness is the killer, where the greater the skewness in the data, the larger the sample has to be, blah, blah, but the short answer is no.</p>
<p><em>No?</em></p>
<p>No. Seriously. Don&#8217;t blindly do a t-test on completion times or reaction times from a usability test. The data is generally too skewed and the samples are generally too small to get an accurate answer from a t-test. You want more like 30 data points per design before you can stop worrying about the skewness commonly seen in completion times.</p>
<h3>Data Transformations</h3>
<p>But I wasn&#8217;t just wasting your time. You <em>can</em> do a t-test on completion times or reaction times, but you must first <em>transform</em> the times. Yes, Igor! Transform my data! BWAHAHAHAHAHA!</p>
<p>Okay, what the hell is transforming data? It simply means mathematically manipulating each data point in the same way. In our case, we want to manipulate the data so that the distribution has little or no skewness which is what&#8217;s keeping us from doing a t-test.</p>
<h4>The Log Transform</h4>
<p>The transformation that usually works for reaction and completion times is to take the logarithm of each time. Base 10 or natural logarithm, it doesn&#8217;t matter, but, out of habit, I use the natural logarithm (the LN() function in Excel). Here&#8217;s our natural logarithm transformed data:</p>
<table style="text-align: left; width: 462px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td style="width: 58px;">Data</td>
<td style="text-align: right; width: 72px;">HTML</td>
<td style="text-align: right; width: 73px;">Flash</td>
<td style="width: 71px; text-align: right;">HMTL</td>
<td style="width: 70px; text-align: right;">Flash</td>
<td style="text-align: right; width: 66px;"></td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">User</td>
<td style="text-align: right; width: 72px;">Time</td>
<td style="text-align: right; width: 73px;">Time</td>
<td style="width: 71px; text-align: right;">LN(Time)</td>
<td style="width: 70px; text-align: right;">LN(Time)</td>
<td style="text-align: right; width: 66px;">Difference</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">1</td>
<td style="text-align: right; width: 72px;">209</td>
<td style="text-align: right; width: 73px;">280</td>
<td style="width: 71px; text-align: right;">5.34</td>
<td style="width: 70px; text-align: right;">5.63</td>
<td style="text-align: right; width: 66px;">0.29</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">2</td>
<td style="text-align: right; width: 72px;">272</td>
<td style="text-align: right; width: 73px;">209</td>
<td style="width: 71px; text-align: right;">5.61</td>
<td style="width: 70px; text-align: right;">5.34</td>
<td style="text-align: right; width: 66px;">-0.26</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">3</td>
<td style="text-align: right; width: 72px;">158</td>
<td style="text-align: right; width: 73px;">155</td>
<td style="width: 71px; text-align: right;">5.06</td>
<td style="width: 70px; text-align: right;">5.04</td>
<td style="text-align: right; width: 66px;">-0.02</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">4</td>
<td style="text-align: right; width: 72px;">392</td>
<td style="text-align: right; width: 73px;">305</td>
<td style="width: 71px; text-align: right;">5.97</td>
<td style="width: 70px; text-align: right;">5.72</td>
<td style="text-align: right; width: 66px;">-0.25</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">5</td>
<td style="text-align: right; width: 72px;">392</td>
<td style="text-align: right; width: 73px;">448</td>
<td style="width: 71px; text-align: right;">5.97</td>
<td style="width: 70px; text-align: right;">6.10</td>
<td style="text-align: right; width: 66px;">0.13</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">7</td>
<td style="text-align: right; width: 72px;">170</td>
<td style="text-align: right; width: 73px;">305</td>
<td style="width: 71px; text-align: right;">5.14</td>
<td style="width: 70px; text-align: right;">5.72</td>
<td style="text-align: right; width: 66px;">0.58</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">8</td>
<td style="text-align: right; width: 72px;">289</td>
<td style="text-align: right; width: 73px;">251</td>
<td style="width: 71px; text-align: right;">5.67</td>
<td style="width: 70px; text-align: right;">5.53</td>
<td style="text-align: right; width: 66px;">-0.14</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">9</td>
<td style="text-align: right; width: 72px;">479</td>
<td style="text-align: right; width: 73px;">600</td>
<td style="width: 71px; text-align: right;">6.17</td>
<td style="width: 70px; text-align: right;">6.40</td>
<td style="text-align: right; width: 66px;">0.23</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">10</td>
<td style="text-align: right; width: 72px;">258</td>
<td style="text-align: right; width: 73px;">140</td>
<td style="width: 71px; text-align: right;">5.55</td>
<td style="width: 70px; text-align: right;">4.94</td>
<td style="text-align: right; width: 66px;">-0.61</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">11</td>
<td style="text-align: right; width: 72px;">600</td>
<td style="text-align: right; width: 73px;">502</td>
<td style="width: 71px; text-align: right;">6.40</td>
<td style="width: 70px; text-align: right;">6.22</td>
<td style="text-align: right; width: 66px;">-0.18</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">12</td>
<td style="text-align: right; width: 72px;">245</td>
<td style="text-align: right; width: 73px;">247</td>
<td style="width: 71px; text-align: right;">5.50</td>
<td style="width: 70px; text-align: right;">5.51</td>
<td style="text-align: right; width: 66px;">0.01</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">13</td>
<td style="text-align: right; width: 72px;">265</td>
<td style="text-align: right; width: 73px;">196</td>
<td style="width: 71px; text-align: right;">5.58</td>
<td style="width: 70px; text-align: right;">5.28</td>
<td style="text-align: right; width: 66px;">-0.30</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">14</td>
<td style="text-align: right; width: 72px;">182</td>
<td style="text-align: right; width: 73px;">177</td>
<td style="width: 71px; text-align: right;">5.20</td>
<td style="width: 70px; text-align: right;">5.18</td>
<td style="text-align: right; width: 66px;">-0.03</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">15</td>
<td style="text-align: right; width: 72px;">296</td>
<td style="text-align: right; width: 73px;">239</td>
<td style="width: 71px; text-align: right;">5.69</td>
<td style="width: 70px; text-align: right;">5.48</td>
<td style="text-align: right; width: 66px;">-0.21</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">16</td>
<td style="text-align: right; width: 72px;">318</td>
<td style="text-align: right; width: 73px;">231</td>
<td style="width: 71px; text-align: right;">5.76</td>
<td style="width: 70px; text-align: right;">5.44</td>
<td style="text-align: right; width: 66px;">-0.32</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">18</td>
<td style="text-align: right; width: 72px;">303</td>
<td style="text-align: right; width: 73px;">238</td>
<td style="width: 71px; text-align: right;">5.71</td>
<td style="width: 70px; text-align: right;">5.47</td>
<td style="text-align: right; width: 66px;">-0.24</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">19</td>
<td style="text-align: right; width: 72px;">269</td>
<td style="text-align: right; width: 73px;">382</td>
<td style="width: 71px; text-align: right;">5.59</td>
<td style="width: 70px; text-align: right;">5.95</td>
<td style="text-align: right; width: 66px;">0.35</td>
</tr>
<tr>
<td style="text-align: right; width: 58px;">20</td>
<td style="text-align: right; width: 72px;">383</td>
<td style="text-align: right; width: 73px;">329</td>
<td style="width: 71px; text-align: right;">5.95</td>
<td style="width: 70px; text-align: right;">5.80</td>
<td style="text-align: right; width: 66px;">-0.15</td>
</tr>
<tr>
<td style="width: 58px;">Statistics</td>
<td style="text-align: right; width: 72px;"></td>
<td style="text-align: right; width: 73px;"></td>
<td style="width: 71px; text-align: right;"></td>
<td style="width: 70px; text-align: right;"></td>
<td style="text-align: right; width: 66px;"></td>
</tr>
<tr>
<td style="width: 58px;">Sample</td>
<td style="text-align: right; width: 72px;">18</td>
<td style="text-align: right; width: 73px;">18</td>
<td style="width: 71px; text-align: right;">18</td>
<td style="width: 70px; text-align: right;">18</td>
<td style="text-align: right; width: 66px;">18</td>
</tr>
<tr>
<td style="width: 58px;">Average</td>
<td style="text-align: right; width: 72px;">304.4</td>
<td style="text-align: right; width: 73px;">290.7</td>
<td style="width: 71px; text-align: right;">5.66</td>
<td style="width: 70px; text-align: right;">5.60</td>
<td style="text-align: right; width: 66px;">-0.063</td>
</tr>
<tr>
<td style="width: 58px;">Std Dev</td>
<td style="text-align: right; width: 72px;">111.9</td>
<td style="text-align: right; width: 73px;">123.1</td>
<td style="width: 71px; text-align: right;">0.35</td>
<td style="width: 70px; text-align: right;">0.39</td>
<td style="text-align: right; width: 66px;">0.290</td>
</tr>
<tr>
<td style="width: 58px;">Skew</td>
<td style="text-align: right; width: 72px;">1.14</td>
<td style="text-align: right; width: 73px;">1.22</td>
<td style="width: 71px; text-align: right;">0.20</td>
<td style="width: 70px; text-align: right;">0.39</td>
<td style="text-align: right; width: 66px;">0.532</td>
</tr>
</tbody>
</table>
<p>The log transformation pulls in the right-hand tail of a distribution making positively skewed distributions more symmetrical. Note the skewness is pretty much gone, both from the times for each version and the difference in the times. We have nearly equal number of datapoints on each side the mean. The difference between the averages is now -0.063 instead of -13.7, but of course it&#8217;s still showing the Flash version is faster than the HTML version. But now we can do a t-test and figure the probability of getting a difference of -0.063 with a sample of eighteen users.</p>
<h4>When to Transform</h4>
<p>There are no hard and fast rules for when to transform or not. Completion times typically are skewed, but don&#8217;t have to be. Skewness tends to be low for long, multi-step routine tasks with trained users, as long as none leave the computer to catch some waves in the middle of the task. Furthermore, what we really care about is the skewness of the differences in the times, which may or may not be skewed even when the source times data are skewed. However, the skewness you see is itself based on a small sample and can be off by some amount from the true amount of skewness in the population. Skewness can go all over the place for the differences in completion times, and what you see in the sample is not always the best indication of what&#8217;s in the population. I wouldn&#8217;t trust it.</p>
<p>As a rule of thumb for sample sizes typical in usability tests (i.e., 10 or less data points per design), you should generally assume completion times are skewed unless:</p>
<ul>
<li>There is very little positive skewness in the sample (say under 0.50), or,</li>
<li>You have prior data or other information that indicates there is no skew.</li>
</ul>
<p>For intermediate sample sizes of 10 to 30, I would suggest focusing on the skewness of the completion times, not the differences of the completion times. If the raw completion times are (close enough to) normal, then the differences in the completion times will be normal too. If doing the transformation reduces the skewness (makes it closer to zero) then it&#8217;s probably worth doing.</p>
<p>For over 30, you&#8217;re probably okay without any data transformation of completion time data (where skewness is generally less than 2). Let the Central Limit Theorem to its job.</p>
<p>The main reason not to do a transformation is that it changes a bit what you&#8217;re testing. Generally the average of the transformed data is not equal to the transformation of the average of the data. In our example, LN(-13.7) does not equal -0.063. A t-test on transformed data means you are no longer comparing arithmetic averages. Rather, you are comparing some other indication of the central tendency. That can make it harder to explain your results to your client.</p>
<p>Fortunately, in the case of the log transformation, you are effectively comparing the <em>geometric</em> averages. While the arithematic average is all numbers added together and divided by <em>n</em>, the geometric average is all numbers <em>multiplied</em> together taken to the <em>n</em>th root. Sort of an average worthy of a multi-gigahertz processor. This is fortunate because, for completion times, it seems the <a title="Sauro - Average Task Times in Usability Tests: What to Report?" href="http://www.measuringusability.com/average-times.php">geometric average is generally a better</a> indication of the central tendency than the arithematic average.</p>
<p>To get the geometric average from our averages of the transformed data, reverse the transformation of the averages:</p>
<p style="margin-left: 40px;">EXP(average of LN-transformed data) = geometric average</p>
<p style="margin-left: 40px;">EXP(5.66) = 287 seconds = geometric average of HTML</p>
<p style="margin-left: 40px;">EXP(5.60) = 270 seconds = geometric average of Flash</p>
<h4>The Arcsine Transformation</h4>
<p>Rating scales, like I said, tend not to be skewed much, so transformations are usually not necessary. However, you can get skewness -indeed you should expect skewness -if you are getting any floor or ceiling effects, where scores tend to be bunched up at one or the other extreme of the scale. For example, if our rating scale from Stat 201 averaged about 30 for its possible range of 5 to 35, meaning on average users were giving 6&#8217;s on the 7-point items, I would expect skewness. It&#8217;s as if users were pushed up against the ceiling of 35 points. Some apparently felt that &#8220;Agree&#8221; and &#8220;Strongly Agree&#8221; were not sufficiently strong for their level of agreement. They needed &#8220;Totally Agree,&#8221; &#8220;Massively Agree&#8221; and &#8220;F-ing Epicly Agree&#8221; beyond it. If you get skewed ratings due to floor or ceiling effects, you can try the following transformation to reduce skewness:</p>
<ul>
<li>Convert the user&#8217;s scores to the proportion of total possible range of points, so that 0 corresponds to the lowest possible score and 1 corresponds to the highest possible score. For example, with our scale that goes from 5 to 35 points, a 30-point score becomes (30 &#8211; 5)/(35 &#8211; 5) or 0.833.</li>
<li>Take the arc sine (in Excel the ASIN() function) of the proportion. So a proportion of 0.833 becomes 0.985 radians (Excel by default gives arc sines in radians; it doesn&#8217;t matter if you use radians or degrees since they&#8217;re arbitrary units for a rating)</li>
</ul>
<p>The above transformation has the effect of reducing floor and ceiling effects, stretching what otherwise would be compressed differences at the extreme ends of the scale.</p>
<h3>The t-test</h3>
<p>The t-test follows the same steps as we saw in Stat 201:</p>
<p><strong>Step 1. Calculate your standard error</strong>. For the transformed data, it&#8217;s:</p>
<p style="margin-left: 40px;"><em>se</em> = 0.290 / SQRT(18) = 0.0683</p>
<p><strong>Step 2. Calculate your sample t-statistic</strong>, which is still the deviation of your observation from the hypothetical state in units of the standard error. We&#8217;re dealing with transformed data now, but that doesn&#8217;t change Hypothetical State A. If the real difference in the un-transformed data is zero, then the difference in the log-transformed data will also be zero, assuming the data for each design have the same distribution as well as the same average. So we&#8217;ll still calculate the probability of seeing the -0.063 difference in the transformed data assuming the real difference is 0.</p>
<p>So the sample t-statistic is:</p>
<p style="margin-left: 40px;"><em>tstat</em> = (<em>diff</em> &#8211; <em>hypo</em>) / <em>se</em></p>
<p style="margin-left: 40px;"><em>tstat</em> = (-0.063 &#8211; 0) / 0.0683 = -0.92</p>
<p>We draw our sampling distribution, as always, putting most of the distribution within a standard error of the average.:</p>
<p><img class="alignnone" title="t-distribution, with both tails shaded from 0.92 on." src="/content/blogimages/stat200/SamplingDistributionExB.gif" alt="" width="479" height="160" /></p>
<p><strong>Step 3 through 3 and a half. Get the p-value</strong>, working your way around Excel. For a within-subjects t-test -or any t-test on a single column of numbers like we&#8217;re doing here -the degrees of freedom is your sample size minus 1:</p>
<p style="margin-left: 40px;"><em>df </em>= <em>n</em> &#8211; 1</p>
<p style="margin-left: 40px;"><em>df</em> = 18 &#8211; 1 = 17</p>
<p>Since we&#8217;re doing a two-tailed test always enter the positive tail into Excel so it won&#8217;t trip out and give you an error, and let Excel double it for you to include the other tail.</p>
<p style="margin-left: 40px;"><em>p</em> = TDIST(ABS(-0.92), 17, 2) = 0.373</p>
<p>No surprise here: it looks like it&#8217;s reasonably plausible that we&#8217;d see a difference as extreme as 0.063 in a sample size of eighteen when there is in fact no difference in the population. That&#8217;s just as we suspected when we calculated the standard error for the untransformed data. Properly transforming is not going to magically insert more certainty into your data; it&#8217;s just going to shift the data around as a group to make the statistical test work more accurately.</p>
<p>At this stage, however, we don&#8217;t know the likelihood of seeing this difference when there is in fact a considerable difference in the population. Time to test Hypothetical State B.</p>
<p><strong>Step 1. Calculate your standard error</strong>. That doesn&#8217;t change when we go to Hypothetical State B:</p>
<p style="margin-left: 40px;"><em>se </em>= 0.0683</p>
<p><strong>Step 2. Calculate your observed t-statistic</strong>. Now we have to be careful. For untransformed data, Hypothetical State B was that the faster design takes 80% of the time as the slower design; in other words, the following ratio is true:</p>
<p style="margin-left: 40px;"><em>faster</em>/<em>slower</em> = 0.80</p>
<p>However, taking the log transform changes this equation because the ratio of two numbers is not equal to the ratio of the logarithms of the same two numbers:</p>
<p style="margin-left: 40px;"><em>faster</em>/<em>slower</em> &lt;&gt; Ln(<em>faster</em>)/Ln(<em>slower</em>)</p>
<p>So it would be incorrect to get the probability of seeing a difference of -0.063 assuming the ratio of the transformed data is 0.80. We need to convert Hypothetical State B into it&#8217;s equivalent with log transformed data. To do that, we take advantage of the following mathematical relation:</p>
<p style="margin-left: 40px;">Ln(<em>x</em>) &#8211; Ln(<em>y</em>) = Ln(<em>x</em>/<em>y</em>)</p>
<p>Which means for Hypothetical State B to be true:</p>
<p style="margin-left: 40px;">Ln(<em>faster</em>) &#8211; Ln(<em>slower</em>) = Ln(<em>faster</em>/<em>slower</em>) = Ln(0.80) = -0.223</p>
<p>In other words, Hypothetical State B states that the difference in the log-transformed completion times is -0.223. We&#8217;re doing a two tailed test, so we want to know the probability of getting a difference as extreme as 0.063 (positive or negative) given a real difference of 0.223 (positive or negative respectively).</p>
<p>So our t-statistic for Hypothetical State B is:</p>
<p style="margin-left: 40px;"><em>tstat</em> = (-0.063 &#8211; -0.223) / 0.0683 = 2.35</p>
<p>Be sure the sign of your hypothetical state (positive or negative) matches the sign of your observed difference to allow for the fact that this is a two-tailed test.</p>
<p>Here&#8217;s the sampling distribution:</p>
<p><img class="alignnone" title="Two t-distributions straddling 0, left distribution with right tail shaded from 2.35 up and right distribution with left tail shaded from -2.35 down." src="/content/blogimages/stat200/SamplingDistributionExC.gif" alt="" width="479" height="93" /></p>
<p><strong>Step 3 through 3 and a half. Get the p-value</strong>.</p>
<p>Just another two-tailed test; the degrees of freedom haven&#8217;t changed:</p>
<p style="margin-left: 40px;"><em>p</em> = TDIST(ABS(2.35), 17, 2) = 0.031</p>
<p>So it is a pretty safe bet that there is no considerable difference between the two designs -no good reason to believe one is definitely worth favoring over the other.</p>
<h3>When Two Designs are about the Same</h3>
<p>The good news is that your efforts to minimize the standard error appear to have paid off. With a single test of 18 users you can assert with high confidence that neither design is considerable faster to use than the other. The bad news is that you still have to choose what goes in the final web site, and the completion times are not going to help you much in this regard. Collecting more completion time data is not going to help here. Unless you&#8217;ve been extraordinarily unlucky, then neither Paint Your Board design takes less than 80% of the time as the other. Running more tests is just going to help you narrow down the range -maybe one takes less than 90% or 95% of the time, which is all in the &#8220;whatever&#8221; zone, so why bother?</p>
<p>You need to make a design decision and if completion times won&#8217;t help, you need something else to tell if one is even <em>slightly</em> better than the other. There are several ways you and Stan can proceed.</p>
<h4>Give Them Both?</h4>
<p>You may be tempted to put both designs up on the web site and make it a user option. After all, you went through the trouble of prototyping both -you&#8217;d hate to throw one away. Looking through your data, you see some users were faster with HTML and some were faster with Flash. Maybe it&#8217;s a matter of user personality or experience.</p>
<p>This is rarely a good strategy of design. Essentially, you&#8217;re saying, &#8220;I, a UX professional, can&#8217;t tell which is better, despite rigorous scientific testing, so I&#8217;m going to make the user, who doesn&#8217;t know Flash from Bash, make the decision.&#8221; First of all, just because a user was faster with, say, Flash, in a particular usability test doesn&#8217;t mean that user is <em>generally</em> faster with Flash. The faster performance may be due to various situational factors such as fatigue, learning effects, boredom, distraction, or whatever. You would need to compare each user on multiple Flash and HTML implementations to tell if there are indeed natural-Flash-users and natural-HTML-users.</p>
<p>The more serious problem is this: how are users supposed to know if they are Flash or HTML users, if such creatures exists? What do you put on the website to help them decide? You could provide access to the Flash version through an &#8220;Advanced&#8221; link, which is a common solution to this sort of problem, but users don&#8217;t know you mean &#8220;advanced&#8221; in a particular Flashy way. They are liable to think &#8220;Advanced&#8221; gives them more Paint Your Board options and control, like Advanced Search. It might work to label the Flash version &#8220;Paint Your Board with Drag and Drop&#8221; if users who know how to drag and drop also know what &#8220;drag and drop&#8221; means. I wouldn&#8217;t assume so. Whatever label you use, you&#8217;ll have to test it and see if users with a choice paint their boards faster than users without a choice. And remember: the very fact that you give the users a choice means it&#8217;ll take more time -time to make the decision and time to correct themselves if they choose the wrong one for themselves at first. Adding choice means adding complexity. You should do it when it solves a well understood user problem, not a poorly understood designer problem.</p>
<h4>Revisit Your Designs</h4>
<p>Perhaps the most educational thing you can do is study your quantitative and qualitative data to try to figure out what happened. You expected Flash to have faster completion times but be harder to figure out in the first place. But how exactly did that play out? What part of the Flash instructions took too long to read or were too hard to understand? Maybe there are some simple improvements you can make that will put the Flash version on top.</p>
<p>Review your debriefing comments from your users. Maybe certain users do better with Flash while others do better with HTML because of specific design elements in each. Maybe there is a way to combine the best of HTML with Flash to make a superior design for all users. For example, maybe you can add input fields to the Flash design for those who do well with numeric input, but apply those inputs instantly, rather than through a Submit button, in order to reduce the time-consuming cut-and-try of the HTML design.</p>
<p>Unfortunately, in this case, both designs have already been through a set of iterations and testing since their first paper prototypes, and there isn&#8217;t time left to further tweak the design. Any further improvements will have to wait until Versions 2.</p>
<h4>Review Your Test Limitations</h4>
<p>Take a second look at the limitations of your usability test. All usability tests are to some degree a simulation of actual user behavior. If you consider the differences that likely exist between the test conditions and real conditions, maybe you can see a way to break the tie between the two designs. In tightly controlling the task in order to maximize decision potential, you also limited the range of conditions users used the feature. What may be the same performance in your usability test may not be the same on average when you generalize the results to the wider range of conditions that the users will encounter.</p>
<p>In this example, all your users were unfamiliar with both designs for the Paint Your Board feature, which is pretty typical of usability tests. However, it is reasonable to expect that experienced users will do especially well with the Flash versions since it&#8217;s main issue was learning it in the first place. A study of the qualitative data may find evidence to support this: the videos show users of Flash first struggling with drag and drop, but once they know what to do, they really take off. Breaking the task into two subtasks and running a couple more t-tests may confirm this.</p>
<p>If Flash is essentially tied with HTML for novice users but it looks like Flash will be faster for experienced users, then on average Flash is better for all users. Perhaps that&#8217;s enough to tip the balance. However, Stan tells you that he expects very few experienced users. Even surfers who keep multiple boards in their respective quivers are rarely going to order a custom board -maybe once a year or less for the serious mega-ripper. You don&#8217;t know if users will remember what they learned a year ago. It&#8217;s not a very strong argument for Flash.</p>
<h4>Consider Other Data</h4>
<p>You can look at other data to help break the tie. For example, if you had thought to also include rating scales in this usability test, maybe that would tell you which design the users preferred regardless of the completion times. Right. <em>That</em> would&#8217;ve been a good idea. Okay, but you have other data -serendipitous data you can extract from the videos, key-logging, and user outputs. For example, in Stan&#8217;s opinion the boards resulting from the Flash versions were more creative. Ten users painted their boards exactly the same with each design of Paint Your Board, but eight users painted their boards differently as they went from Flash to HTML or vice versa. Stan says that of the eight users that painted their boards differently, all but one user made a more creative board with Flash.</p>
<p>Hmm. If there were in fact no effect of the Paint Your Board feature design on creativity, then there would be a 50:50 chance of Flash boards being more creative. You turn to the <a title="Zusch Login - Binomial Probabilities" href="../../content/blogimages/67/BinomialTable.htm">binomial probabilities tables</a> from Stat 101 and look down the 50% population rate column for a sample size of eight. It seems that the probability of 7 or more users  getting a better board with Flash is 0.035 given a Hypothetical State of 50:50. We&#8217;re still in a two-tailed situation here, so double that probability to get 0.070 (congratulations: you just did a sign test). Statistically, it seems very likely that Flash does indeed result in more creative boards, at least in Stan&#8217;s opinion. Maybe users weren&#8217;t taking less time with the Flash version, but instead they were using the same amount of time to play with the Flash version to get something extra-rad. Maybe with the HTML version they were merely settling on what they could get in a comparable amount of time.</p>
<p>Sounds reasonable, and maybe that&#8217;s enough to favor Flash over HTML. Of course, it&#8217;s just based on Stan&#8217;s opinion, and maybe Stan was biased, subconsciously rating the Flash boards better because he feels Flash is so swick. To really do this right, you should bring in a bunch of other surfers and have them compare the boards without them knowing if the boards were painted with Flash or HTML. You&#8217;d have them rate the relative creativity on a scale so you&#8217;re capturing the magnitude of the difference for each user, not just the direction of the difference. This provides you with more information yielding greater decision potential. You&#8217;d analyze the data with a t-test on the average rating, with Hypothetical State A set to whatever rating is &#8220;no difference.&#8221; Yeah, that would be the right thing to do. Too bad there&#8217;s no time for more testing.</p>
<h4>Consider Other Business Goals</h4>
<p>If after considering all the data, there still does not appear to be a clear winner, consider each design&#8217;s impact on other UX dimensions than usability. The HTML version provides better accessibility for all those blind surfers out there (<a title="Surfer Mag - Teaching Blind to Surf?" href="http://www.surfermag.com/features/teaching-the-blind-to-surf/">there are some</a>) who also want to impress the sweet wahines (or kanes) with their sweet paint job. However, you could argue that just providing mechanical access to the Paint Your Board controls doesn&#8217;t really provide adequate accessibility anyway since the feedback is inherently visual. It seems the Flash version is cooler. Stan is personally certainly thrilled by it -this is precisely the sort of heavy technology he was looking for to distinguish his site&#8217;s UX from the competition. It&#8217;s perf that something as advanced as his CNC surf board painter would have a coolaphonic UI. If the usability is really equal, that&#8217;s a good a reason as any other to go with Flash.</p>
<h4>Whatever was Better</h4>
<p>If the Flash and HTML version are really tied on completion time, maybe you should flip a coin to decide which design to go with.</p>
<p>No, don&#8217;t do that. The truth is they aren&#8217;t tied. Flash performed better in the sample. With 1- 0.373 = 62.7% certainty you can say that Flash is better than HTML. That&#8217;s not a whole lot of confidence when a coin flip gives you 50% certainty of being right, but it&#8217;s nothing to ignore either. While it&#8217;s plausible that both designs have equal completion times, it is more likely that Flash is better than HTML than vice versa. If all other considerations are equal, and you <em>have</em> to choose one design (and in fact you do), you should go with the one that performed better in the sample. That may not be a great bet, but it&#8217;s a better than the 50:50 bet a coin toss would get you.</p>
<p>Of course, going with the lowest average completion time is exactly what you would&#8217;ve done if you didn&#8217;t bother with the t-test or any inferential statistics, so you may be wondering what the point of it all was. The point was to make an informed decision. There&#8217;s a difference between being statistically mushed, where you are <em>uncertain</em> if one design is considerably better than the other, and this situation, where you are <em>confident</em> that there is no considerable difference between the designs on completion time.</p>
<p>So go ahead with Flash, but go ahead knowing that there really isn&#8217;t much difference in completion time worth worrying about. Go ahead, recognizing you may want to revisit the feature later and see if you can improve it. Go ahead when your decision is bolstered by consideration of other business goals, other data, and/or awareness of the the limitations of the usability test. In this case, no consideration or statistic by itself is a strong argument for the Flash design, but as you discuss the issues with Stan, it&#8217;s clear that in aggregate, going with Flash makes the most sense. After all, a single usability test statistic, however definitive, is just one element of everything that goes into a design decision.</p>
<p>There&#8217;s another reason to do the inferential statistics. The t-test for Hypothetical State B led you to conclude that Flash is not considerable better than HTML on completion time. However, remember it was a two-tailed test: you&#8217;re justified in also concluding that Flash is not considerably <em>worse</em> than HTML. So it was definitely worth doing the t-tests to give you and Stan some piece of mind. With high certainty, going with Flash won&#8217;t be a tragic decision.</p>
<h3>Summary Flow Chart</h3>
<h4>Problem: Comparing averages to determine if a certain design is truly better than another.</h4>
<p><strong>Solution</strong>: Follow the flow chart below.</p>
<p><img class="alignnone" title="(see bullets below)" src="/content/blogimages/stat200/TTestFlowChart(final).gif" alt="" width="479" height="1389" /></p>
<ul>
<li>Determine of a one- or two-tailed test is right for you.</li>
<li>With your client, set your Hypothetical States A and B.</li>
<li>Check your data distribution for skewness, transforming it if necessary.</li>
<li>Conduct a t-test for Hypothetical State A
<ul>
<li>Calculate your standard error.</li>
<li>Calculate the t-statistic.</li>
<li>Determine the p-value with something like Excel&#8217;s TDIST() function.</li>
</ul>
</li>
<li>If the p-value is sufficiently low to represent a tolerable chance of a Type I error rate, proceed with the new design.</li>
<li>If the p-value represents an excessive Type I error rate, conduct a t-test for Hypothetical State B.</li>
<li>If the p-value represents a tolerable chance of a Type II error rate, do not proceed with the new design.</li>
<li>If the p-value represents an excessive Type II error rate, calculate the increase in sample size you need to get a low p-value for either Hypothetical State A or B.</li>
<li>Increase your sample size.</li>
<li>Repeat</li>
</ul>
<p>Here&#8217;s an Excel sheet with this post&#8217;s <a title="Zusch Login - Example data and analysis (.xls)" href="/content/blogimages/stat200/Stat202.xls">data and analysis</a>.</p>
<p><img class="alignnone" title="Surfer photo" src="/content/blogimages/stat200/Rippin-CapeHatteras199009mkz96476w2.jpg" alt="" width="479" height="272" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=261</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stat 201</title>
		<link>http://www.zuschlogin.com/?p=219</link>
		<comments>http://www.zuschlogin.com/?p=219#comments</comments>
		<pubDate>Sat, 07 Jan 2012 19:28:26 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[Analysis & Statistics]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=219</guid>
		<description><![CDATA[Comparing averages, Part 1
The second in a series on inferential statistics, covering:

Improving on an existing UI design.
Estimating needed sample sizes.
The normality assumption.
Between-subject testing.
One-tailed t-tests.

Prerequisites: Stat 101, a college-level intro stat course or equivalent sometime in your life, surfer lingo.
Here&#8217;s the scenario: Surfer Stan&#8217;s ecommerce site hasn&#8217;t been updated since single-fin boards made a comeback. Stan [...]]]></description>
			<content:encoded><![CDATA[<h3>Comparing averages, Part 1</h3>
<p>The second in a <a href="../../?p=214">series on inferential statistics</a>, covering:</p>
<ul>
<li>Improving on an existing UI design.</li>
<li>Estimating needed sample sizes.</li>
<li>The normality assumption.</li>
<li>Between-subject testing.</li>
<li>One-tailed t-tests.</li>
</ul>
<p><strong>Prerequisites:</strong> <a title="Zusch Login - Stat 101" href="../../?p=78">Stat 101</a>, a college-level intro stat course or equivalent sometime in your life, <a title="Rippin H20 - Surfer Lingo" href="http://rippinh2o.com/dropzone/surflingo.shtml">surfer lingo</a>.</p>
<p>Here&#8217;s the scenario: Surfer Stan&#8217;s ecommerce site hasn&#8217;t been updated since single-fin boards made a comeback. Stan contacted you because he heard you had gnar-gnar technology to make one sick user experience. That means really good, he assures you. But to get the full contract, you had to prove it. You agreed to build an interactive prototype of the home page and test it out head-to-head against the existing site. You were looking to improve both the aesthetics and the clarity of the design. You thoroughly studied your users and the surfing domain, and got a good handle on, not only how your users see the task, but the values and culture of surfers. Users seemed really thrilled by the early prototypes. They were particularly impressed with how the pulldown menus curl out like breaking waves. You were expecting users to rate it much better than the inconsistent and unharmonious old version. However, on the big day when the fully functioning new version took on old, here&#8217;s what you found:</p>
<table style="text-align: left; width: 462px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td style="text-align: center;" colspan="2">Old Home Page</td>
<td style="text-align: center; width: 62px;" colspan="2">New Home Page</td>
<td style="text-align: right; width: 96px;">Both Pages</td>
</tr>
<tr>
<td>Data</td>
<td></td>
<td style="width: 93px;"></td>
<td style="width: 62px;"></td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">User</td>
<td style="text-align: right;">Rating</td>
<td style="text-align: right; width: 93px;">User</td>
<td style="text-align: right; width: 62px;">Rating</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">1</td>
<td style="text-align: right;">23</td>
<td style="text-align: right; width: 93px;">2</td>
<td style="text-align: right; width: 62px;">26</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">3</td>
<td style="text-align: right;">20</td>
<td style="text-align: right; width: 93px;">4</td>
<td style="text-align: right; width: 62px;">29</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">5</td>
<td style="text-align: right;">31</td>
<td style="text-align: right; width: 93px;">6</td>
<td style="text-align: right; width: 62px;">21</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">7</td>
<td style="text-align: right;">16</td>
<td style="text-align: right; width: 93px;">8</td>
<td style="text-align: right; width: 62px;">13</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td>Statistics</td>
<td style="text-align: right;"></td>
<td style="width: 93px;"></td>
<td style="text-align: right; width: 62px;"></td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td>Sample</td>
<td style="text-align: right;">4</td>
<td style="width: 93px;"></td>
<td style="text-align: right; width: 62px;">4</td>
<td style="text-align: right; width: 96px;">8</td>
</tr>
<tr>
<td>Average</td>
<td style="text-align: right;">22.50</td>
<td style="width: 93px;"></td>
<td style="text-align: right; width: 62px;">22.25</td>
<td style="text-align: right; width: 96px;">22.38</td>
</tr>
<tr>
<td>Std Dev</td>
<td style="text-align: right;">6.35</td>
<td style="width: 93px;"></td>
<td style="text-align: right; width: 62px;">6.99</td>
<td style="text-align: right; width: 96px;">6.19</td>
</tr>
<tr>
<td>Difference<br />
in averages</td>
<td></td>
<td></td>
<td style="width: 62px;"></td>
<td style="text-align: right; width: 96px;">-0.25</td>
</tr>
</tbody>
</table>
<p>Look at the statistics. You remember standard deviation (Std Dev), right? It&#8217;s roughly how far on average the numbers are from their average. In this case, most of the eight ratings are within about 6 points of the average 22.38. We use the &#8220;unbiased estimate of the population standard deviation,&#8221; the one with the weird (n &#8211; 1) in the denominator of its formula. It&#8217;s the STDEV() function in Excel. Also check out the distribution of the data, graphing it as a histogram or number line if you like. It&#8217;s got a reasonable bell-shape to it, with most scores clustered in the middle around 22, and few at the extremes. Could be normally distributed, which would be nice, but, as we&#8217;ll see, it doesn&#8217;t have to be for statistical analysis.</p>
<p>Something else should jump out at you: the averages. The new design scored <em>lower</em> than the old design. The difference in the averages (new average minus old average) is -0.25. That&#8217;s a negative statistic in more than one sense. What happened? Nothing wrong with your methodology. You tested a total of eight users, assigning four at random to try each version. That&#8217;s not an atypical number for a usability test. But can you trust the results? With only four users assigned at random to each version, maybe you happened to put one or two negative nutters on the new version. I mean, check out the dawg who gave the new design a 13. He&#8217;s way out there. Is there a reasonable chance you just had bad luck? Put it this way: what is the probability of seeing a -0.25 point difference by chance when eight people randomly use one or the other version?</p>
<h3>Set Your Hypothetical States</h3>
<p>Here&#8217;s where we return to what we learned in Stat 101. When Stan asks you, &#8220;what&#8217;s the probability, bubba?&#8221; you ask back, &#8220;the probability <em>given what</em>, duder?&#8221; You and Stan need to decide on Hypothetical States A and B.</p>
<p>Hypothetical State A: What true improvement in ratings is definitely <em>not</em> worth the new design?</p>
<p>Hypothetical State B: What true improvement in ratings <em>is</em> definitely worth the new design?</p>
<p>In some cases, any improvement at all is worth at least considering. That is, Hypothetical State A should be any difference in the ratings greater than zero (using the arbitrary convention of subtracting the old rating from the new rating). That&#8217;s probably what you were taught to do in stat class, and it makes sense for major sites with a lot of users where even a minuscule improvement translates into big total gains that will pay for the cost of redesign in no time. It can also make sense for niche sites with few users if the site is going to be redesigned anyway (or created in the first place), and the client wants some indication that <em>your</em> redesign in particular is going to help. However, Stan has a very small operation and he already has a functioning web site that&#8217;s doing okay. To justify the expense of building a new one, you have to do better than just <em>any</em> improvement.</p>
<p>There&#8217;re several ways to arrive at your hypothetical states.</p>
<p><strong>Equivalent Cost</strong>. If you can somehow estimate the increase in revenue for each incremental improvement to the site, then you can figure how much improvement you need to pay for the site redesign in a reasonable amount of time. For example, if each point of improvement on the satisfaction scale is correlated with 2 more conversions per month totaling $500 in revenue, then to pay off a $36,000 site redesign in two years, you need at least a 3.0 point improvement. That would definitely make the redesign worth doing (Hypothetical State B). The improvement that&#8217;s definitely <em>not</em> worth redesigning (Hypothetical State A) would be somewhat less than 3 points, when you consider that immediate conversion in a single session isn&#8217;t the only consideration -brand loyalty and word-of-mouth have value too. Generally, you&#8217;re not going to be able to translate scale scores into conversions, however -you won&#8217;t have the data. Stan certainly doesn&#8217;t have that data.</p>
<p><strong>Percentile Improvement</strong>. If you&#8217;re using a standardized scale, such as <a title="Brooke's SUS paper (.doc)" href="http://www.usabilitynet.org/trump/documents/Suschapt.doc">SUS</a>, or a scale for which you have data on a lot of sites, then you can shoot to improve the <a title="Sauro - Measuring Usability with the System Usability Scale (SUS)" href="http://www.measuringusability.com/sus.php">percentile ranking</a> of the site. For example, you and Stan may agree that improving the site 10 percentage points is definitely worth doing while improving it only 2 percentage points is definitely not worth doing. However, in this case, you&#8217;re using a scale tailored specifically for surfers (real surfers, not web surfers) to measure specifically the kind of experience that Stan wants to achieve, so you have no data on percentiles.</p>
<p><strong>Scale Details</strong>. You and Surfer Stan take a third approach, which is to look at the scale items and judge what change would qualify as a sufficient improvement. For Hypothetical State A, you select the &#8220;who cares?&#8221; level of improvement, while for Hypothetical State B, you select the &#8220;effing yeah!&#8221; level of improvement. In this case, let&#8217;s say each user&#8217;s rating is the sum of five 7-point Likert scales for items like &#8220;The home page is totally righteous&#8221; (1 &#8211; strongly disagree to 7 &#8211; strongly agree), so the possible lowest score is 5 (all ones) and the highest is 35  (all sevens). From this, Stan reasons that if the new design on average only improves one item by one point (e.g., moves &#8220;totally righteous&#8221; from 4, neutral, to 5, &#8220;somewhat agree,&#8221;), then it&#8217;s definitely not worth it. In other words:</p>
<p style="margin-left: 40px;">Hypothetical State A: The difference in the averages is 1.00 points.</p>
<p>Alright.</p>
<p>Of course, right now the difference in averages is <em>negative</em> 0.25 points -your new design performed <em>worse</em> than the old design, so it&#8217;s looking like an uphill battle.</p>
<p>Following the same line of reasoning, you and Stan agree that if on average most items (3 out of 5) improve by one point on the scale, then it&#8217;s definitely worth going for the new design. So,</p>
<p style="margin-left: 40px;">Hypothetical State B: The difference in the averages is 3.00 points.</p>
<p>This makes a &#8220;whatever zone&#8221; of  1.00 to 3.00 -a range of population values where it doesn&#8217;t make much difference to Stan whether he stays with the old design or proceeds with the new design. For some reason, I think Surfer Stan would appreciate the &#8220;whatever zone.&#8221;</p>
<p>If your stat class is coming back to you, you probably recognize Hypothetical State A as corresponding to the &#8220;Null Hypothesis&#8221; (H<sub>0</sub>), which is correct. You may also recognize Hypothetical State B as the &#8220;Alternative Hypothesis,&#8221; which is completely wrong. For one thing, A and B are not exhaustive -it&#8217;s possible for both to be wrong about the population. Most intro stat classes, and most advance classes for that matter, don&#8217;t cover Hypothetical State B or its equivalent. Setting and testing Hypothetical State B is a procedure I made up to ensure there&#8217;s adequate statistical power in the analysis, which you probably didn&#8217;t worry too much about in your intro stat class. Such classes are geared towards applications in science where Type I errors are much worse than Type II errors. It&#8217;s true that all scientists try to get as much power as they can (by that I mean statistical power, not evil scientist take-over-the-world power). However, rarely do scientists try to quantify their power. But we&#8217;re doing usability testing where a Type II error is as bad as a Type I, so we&#8217;re going to be setting and testing Hypothetical State B in addition to A.</p>
<p>At this stage, it may be a good time for you and Stan to discuss how much risk of error he&#8217;s comfortable with. Soon you&#8217;ll be looking at p-values and have to decide if it&#8217;s sufficiently low to make a go/no-go decision on whether to proceed with the re-design. So, Stan, what chance would you tolerate being wrong? What chance are you willing to take that you&#8217;re redesigning the site when you definitely shouldn&#8217;t, or not redesigning the site when you definitely should?</p>
<p>Scientists use a 0.05 probability -that&#8217;s their &#8220;level of statistical significance.&#8221; Stan may be a thrillseeker among major brutal waves, but he&#8217;s pretty conservative with his business. But still, a 0.05 probability strikes him as a little strict. He says he&#8217;s happy with 0.10 -a 10% chance being wrong. Dude, that&#8217;s 90% chance of being right.</p>
<p>We now proceed to calculate the probability of getting a -0.25 point difference if Hypothetical State A is true. Our logic is this: If our observed difference is implausible assuming Hypothetical State A is true, then we proceed with the redesign. That is, if the probability of getting at least the observed difference is less than 0.10 for the Definitely Don&#8217;t Redesign state, then we conclude that the true difference in the population is higher -it&#8217;s at least in the Whatever Zone (where redesigning isn&#8217;t an appreciably <em>harmful</em> choice to Stan&#8217;s business), and may be at or above the Definitely Redesign threshold.</p>
<h3>The Normality Assumption</h3>
<p>The t-test is the tried-and-true procedure for calculating the probability of an observed difference in averages. It can detect differences in samples when other statistical tests can&#8217;t. You might think data is data, but some test procedures are more efficient than others, acting like a more powerful microscope to detect smaller effects. Among all test procedures, the t-test ranks among the top.</p>
<p>But the t-test has a catch: it&#8217;s only accurate if the sampling distribution is <em>normal</em> -if it has that bell-shape that was probably on the cover of your stat textbook. The sampling distribution, is not, contrary to its name, the distribution of your sample data. A t-test does not require that your scale scores be normally distributed. That&#8217;s good, because a normal distribution isn&#8217;t just any bell-shape. It&#8217;s a very specific bell-shape. Our data is bell-shaped, but I don&#8217;t know if it&#8217;s a normal distribution. More to the point, I don&#8217;t care, because only the <em>sampling distribution</em> has to be normal.</p>
<p>So what&#8217;s a sampling distribution? It&#8217;s that thing that you never quite got in stat class. One minute you&#8217;re doing histograms and other pretty pictures, and stats is so easy, then POW! Along come sampling distributions, and you lucky to eek out a C+. So never mind. Move along.</p>
<h3>Sampling Distributions</h3>
<p>Okay, I&#8217;ll give it a try. A sampling distribution is this: You&#8217;ve got a difference of two averages equal to -0.25 points. You want to know the probability of seeing that -0.25 in a sample of eight users. I mean, if you did the usability test again on a different sample of eight users, you&#8217;ll almost certainly see a different difference in the averages. Maybe it would be -1.00 points. Maybe 2.50 points <em>in favor</em> of your new design. Now imagine you&#8217;re the god of statistics. You can run a usability test on <em>every possible sample</em> of eight users. Zillions of usability tests. For each one, you get the difference in the averages, zillions of differences. Graph those zillions of differences as a histogram. <em>That&#8217;s</em> a sampling distribution. A sampling distribution is the distribution of numbers (statistics) calculated from every possible sample. Each entire sample supplies <em>one</em> number to the distribution, not all of its data.</p>
<p><img class="alignnone" title="Sampling distribution built from all possible samples." src="/content/blogimages/stat200/SamplingDistribution.gif" alt="" width="479" height="1092" /></p>
<p>Only the gods have ever seen an actual sampling distribution, but fortunately our ancient ancestors, the high priests of statistics, discovered the central limit theorem, which proves mathematically that sampling distributions involving averages tend to be normally distributed. &#8220;Tend to be&#8221;? I admit you&#8217;d expect more certainty from a mathematical proof, but practically you can assume your sampling distribution is close enough to normal if your data distributions are even vaguely bell-shaped and symmetrical, with extreme scores on one side of the average balanced by extreme scores on the other. Rating scales tend to be bell-shaped and symmetrical, so I think we&#8217;re cool on the normal sampling distribution requirement.</p>
<p>If you&#8217;re still with me, you can see why the sampling distribution is so important to our problem. If we know the exact distribution of the difference in averages for every possible sample, we can tell how likely we&#8217;d get our particular difference in averages (-0.25 points). Is it right in the fat part of the sampling distribution where there are a lot of possible samples that produce about that number? Then there&#8217;s a high probability we&#8217;d see -0.25 points. Or is it off in one of the tails of the sampling distribution where there are relatively few possible samples that could produce it? Then we have a low probability we&#8217;d see -0.25 points.</p>
<h3>The Standard Error</h3>
<p>The central limit theorem tells you the shape of the sampling distribution, but to get those probabilities, you need to know the size of the sampling distribution. Fortunately the high priests of statistics come to the rescue again. They discovered there is a mathematical relation between the sampling distribution and the statistics in a sample. You can estimate characteristics about the sampling distribution from your sample data. Specifically, the estimated standard deviation of the sampling distribution of the difference between two averages from two separate groups of users is:</p>
<p style="margin-left: 40px;"><em>se</em> = SQRT(<em>s1</em>^2/<em>n1</em> + <em>s2</em>^2/<em>n2</em>)</p>
<p><em>S1</em> and <em>s2</em> are the standard deviations from each of your groups of users, while <em>n1</em> and <em>n2</em> are the samples sizes for each group of users.</p>
<p>The estimated standard deviation of a sampling distribution is called the &#8220;estimated standard error,&#8221; but I&#8217;ll just call it the &#8220;standard error&#8221; for short and symbolize it with <em>se</em>. They call it the standard error because it&#8217;s the amount of sampling error you could easily expect to get from your sample.</p>
<p>So the estimated standard error for your rating scale data is:</p>
<p style="margin-left: 40px;"><em>se</em> = SQRT(6.35^2 / 4   +   6.99^2 / 4) = 4.72</p>
<p>You, mere mortal, now know that if you could run every possible sample of eight users through your usability test, the standard deviation of those zillions of differences of the averages will be about 4.72. You&#8217;ve observed a -0.25 point difference between the averages, but you now know that -0.25 points could easily be off by 4.72 points from the real difference in the population. The real difference could be more negative&#8230; or it could be positive, where the new page is better than the old. That&#8217;s notorious, bro! You <em>are</em> like a god!</p>
<h3>Take your Tails</h3>
<p>Now that we know the shape and size of the sampling distribution you can calculate the probability of seeing a -0.25 point difference given a hypothetical true difference of 1.00. Actually, the probability of getting exactly -0.25, or 0.00, or any single exact number is pretty small because, no matter what, there&#8217;s a small number of all the possible samples that have exactly that difference. Even the chance of getting a sample difference of exactly 1.00 -precisely the hypothetical population difference -is relatively small (though larger than any other probability), given you&#8217;d expect some deviation due to sampling error. Getting 1.00 in your sample would be like getting exactly 500 heads after flipping a coin 1000 times. It would be a big coincidence, in a weird way.</p>
<p>What we actually want to do is calculate the probability of a <em>range</em> of values that start from the observed difference that would <em>include all values beyond the observed value that would lead to the same design decision</em>. This will include either all values greater than your observed difference or all values less than your observed difference. For the case of Hypothetical State A, if the observed difference is sufficiently larger than 1.00 (the &#8220;who cares?&#8221; threshold), then you decide to redesign the site. Since we&#8217;re looking for <em>larger</em> values, we want the range <em>greater</em> than or equal to our observed difference. We will calculate the probability of getting -0.25 or more given a hypothetical true difference of 1.00. This will include all differences from -0.25 through the right end or &#8220;tail&#8221; of the sampling distribution</p>
<p>For Hypothetical State B, if the observed difference is sufficiently smaller than 3.00, then you decide to not redesign the site. Since we&#8217;re looking for <em>smaller</em> values to make a design decision, we want the range <em>less than</em> or equal to the observed difference. We will calculate the probability of getting -0.25 or less given the hypothetical true difference of 3.00. This will include all differences from -0.25 to the left tail of the sampling distribution.</p>
<p>That&#8217;s the pattern of greater-than and less-than that you get when the larger the values are &#8220;better&#8221; (i.e., lead you to favor the new design over the old). If you were using a different measure of product performance where the smaller the value the better (e.g., task completion time), it would be backwards: For Hypothetical State A, you&#8217;d want the probability getting less than or equal to your observed difference, and for Hypothetical State B, you&#8217;d want the probability of of getting greater than or equal to your observed value.</p>
<h3>The t-test</h3>
<p>Here&#8217;re the steps for a t-test, applied to Hypothetical State A, the probability of getting a -0.25 point difference or more given the true difference is 1.00.</p>
<p><strong>Step 1. Calculate your standard error</strong> from the sample standard deviations. Oh, right. We already did that. It&#8217;s 4.72.</p>
<p>Right away, you can predict this t-test is not going give you a small p-value that would lead to a design decision. You&#8217;ve an observed difference of -0.25, which is only 1.25 points from Hypothetical State A -that&#8217;s less than the standard error of 4.72. Your observed difference is well within range of how much an observed difference <em>typically </em>deviates from the hypothetical value from sample to sample. It has to be pretty plausible that you&#8217;d observe -0.25 given a hypothetical true of 1.00. But let&#8217;s forge on.</p>
<p><strong>Step 2. Calculate your observed <em>t-statistic</em></strong>, which represents the deviation of your observation from the hypothetical state in units of the standard error. A <em>t</em> of 1 means the observed difference is 1.00 standard errors away from the hypothetical difference (which would be plenty plausible). Mathematically,</p>
<p style="margin-left: 40px;"><em>tstat</em> = (<em>diff</em> &#8211; <em>hypo</em>) / <em>se</em></p>
<p>The numerator of the t-statistic formula captures the deviation between the observed difference (<em>diff</em>) and the hypothetical difference (<em>hypo</em>). Dividing by the standard error converts your units from the units of the scale (5 to 35 points) to universal units of number of standard errors. This way, we don&#8217;t need to custom-make a sampling distribution for every variable you measure and test. We can compare your difference in &#8220;t-units&#8221; to a single standard t distribution. A t distribution is a normal distribution with an average of 0 and a standard deviation of 1, with some small adjustment to its shape to account for the fact that we only have an estimate of the standard deviation based on a sample of a particular size. Since our sampling distribution is (close enough to) normal and we estimated the standard deviation (the standard error) from a sample of eight users, it&#8217;s just the thing we need. Bow down once again to the ancient statistical priests.</p>
<p>So with our data,</p>
<p style="margin-left: 40px;"><em>tstat</em> = (-0.25 &#8211; 1.00) / 4.72 = -0.26</p>
<p><strong>Step 3. Get the observed p-value for your t-statistic.</strong> If you had stat back when all surfboards qualified as guns, you&#8217;d used printed tables for this. Today, we can use a spreadsheet function. In Excel, it&#8217;s TDIST(), which takes as parameters your t-statistic, your degrees of freedom, and the number of &#8220;tails.&#8221; The degrees of freedom are used to adjust the normal distribution to account for using an estimated standard error. The degrees of freedom for two separate groups of users is:</p>
<p style="margin-left: 40px;"><em>df</em> = <em>n1</em> + <em>n2</em> &#8211; 2</p>
<p>Or 4 + 4 &#8211; 2 = 6 in our case.</p>
<p>For now, put in one for the number of tails. We&#8217;ll get to two-tailed tests in <a title="Zusch Login - Stat 202" href="http://www.zuschlogin.com/?p=261">Stat 202</a>.</p>
<p>Now if you&#8217;ve done exactly like I said with Excel, it gives you an error rather than a p-value. Did you do something wrong? No, remember MS&#8217;s unofficial slogan:</p>
<p><img class="alignnone" title="Its not your fault. Its... Microsoft!" src="/content/blogimages/stat200/UnofficialMicrosoftSlogan.jpg" alt="" width="477" height="207" /></p>
<p>For reasons I cannot fathom, Excel refuses to accept negative t-values, which is very strange since half of all t-values in the t-distribution are negative. It&#8217;s like a cashier that only accepts one, ten, and fifty dollar bills. Furthermore, the TDIST() function only gives the p-values for the entered t-value or larger. There&#8217;s no flag to pass to tell it you want the p-value for a given t-statistic or smaller.</p>
<p><img class="alignnone" title="Excel t-distribution -only positive half." src="/content/blogimages/stat200/ExcelTDistribution.gif" alt="" width="479" height="141" /></p>
<p>But it&#8217;s not a bug, it&#8217;s a feature, because it forces you to draw a diagram of the sampling distribution in order to figure yourself out of this problem. When you do, you might see something surprising.</p>
<p>Okay, draw your sampling distribution. It&#8217;s a normalish curve with a standard deviation equal to your standard error (4.72, in this case). The midpoint is equal to your hypothetical difference (1.00 for Hypothetical State A). Mark your observed difference on it (-0.25). Below each number, mark the equivalent in t-units: 0 for the midpoint, 1 for the standard error, and -0.26 for the observed t.</p>
<p><img class="alignnone" title="Ex1 Sampling distribution with average and standard error marked." src="/content/blogimages/stat200/SamplingDistributionEx1.gif" alt="" width="479" height="173" /></p>
<p>Now shade the area that you&#8217;re calculating the probability for. For Hypothetical State A than&#8217;s everything at or greater than -0.25 all the way off the right tail of the distribution.</p>
<p><img class="alignnone" title="Sampling distribution, shaded for t = -0.26 and up." src="/content/blogimages/stat200/SamplingDistributionEx2.gif" alt="" width="479" height="174" /></p>
<p>Whoa, is that right? More than half of the curve is shaded. The total probability for the entire curve is 1.00. That is, you have a probability of 1.00 (total certainty) of getting some difference that&#8217;s in the sampling distribution. That makes sense: the sampling distribution by definition includes every possible difference from every possible sample. But if most of the sampling distribution is shaded then the probability of getting a difference of -0.25 points given a population difference of 1.00 point is more than 0.50. Getting a difference of -0.25 or more is not only plausible, its <em>likely</em> given the real difference of 1.00. There is no way you&#8217;re going to get a p-value less than 0.10, or less than any reasonable chance anyone would want to have of making a Type I error. It&#8217;s not just an uphill battle. It&#8217;s an unscalable wall. This is going to be true whenever your range of values includes the hypothetical state.</p>
<p><strong>Step 3-and-a-half. Work around the limitations of your spreadsheet functions.</strong> So, to be fair to Microsoft, you don&#8217;t need to do use TDIST() in this case. But let&#8217;s undo the problem Excel caused and get the exact p-value anyway so you know how to do it. To do this, we rely on the fact that the t-distribution is symmetrical. The p-value for -0.26 or greater is equal to the p-value for 0.26 or less. So the solution is to calculate the p-value for 0.26 or less.</p>
<p><img class="alignnone" title="Sampling distribution, shaded for t = 0.26 and down." src="/content/blogimages/stat200/SamplingDistributionEx3.gif" alt="" width="479" height="174" /></p>
<p>Problem: the TDIST() doesn&#8217;t give the p-values for a t-or-less. Fine. We know the entire distribution totals to 1, so we get the p-value for 0.26 or more and then subtract it from 1.</p>
<p><img class="alignnone" title="Sampling distribution, shaded for t = 0.26 and up." src="/content/blogimages/stat200/SamplingDistributionEx4.gif" alt="" width="479" height="174" /></p>
<p>So the p-value for -0.26 or more is equal to 1 &#8211; TDIST(ABS(-0.26),6,1), Sheesh. There really isn&#8217;t any good way to fix this other than going through sketching the sampling distribution and figuring it out.</p>
<p>TDIST() for a <em>tstat</em> of 0.26, <em>df</em> of 6 and 1 tail gives a p-value of 0.400. So the p-value for Hypothetical State A is 1 &#8211; 0.400 = 0.600. Just as we suspected, we&#8217;re likely to get a difference of -0.25 or more in the sample when the real difference is 1.00.</p>
<p>Okay, so we&#8217;ve nothing to statistically compel us to redesign the site. But does mean we should stick with the old design? Not by itself. It&#8217;s time to calculate the probability of getting -0.25 points if Hypothetical State B were true about the population. Now we have the complimentary logic: If our observed difference (or less) is implausible assuming Hypothetical State B is true, then we stay with the old design. That is, if there is less than a 0.10 probability of getting no more than -0.25 points for the Definitely Redesign state, then we conclude that the true difference in the population is lower than 3.00 points -it&#8217;s at least in the Whatever Zone (where, staying with the old design isn&#8217;t an appreciably harmful choice to Stan&#8217;s business), and may be at or below the Definitely Don&#8217;t Redesign level.</p>
<p>For Hypothetical State B, Step 1 is already done -the standard error isn&#8217;t affected by the hypothetical states. Step 2 is:</p>
<p style="margin-left: 40px;"><em>tstat</em> = (-0.25 &#8211; 3.00) / 4.72 = -0.69</p>
<p><strong> </strong></p>
<p>For Step 3, sketch the sampling distribution:</p>
<p><img class="alignnone" title="Sampling distribution, shaded for t = -0.69 and down with score average at 3." src="/content/blogimages/stat200/SamplingDistributionEx5.gif" alt="" width="479" height="174" /></p>
<p>We&#8217;ve another negative t, so we have to use the equivalent other side of the t-distribution to use the TDIST().</p>
<p><img class="alignnone" title="Sampling distribution, shaded for t = 0.69 and up." src="/content/blogimages/stat200/SamplingDistributionEx6.gif" alt="" width="479" height="174" /></p>
<p>You see in this case we are getting the p-value for the equivalent t <em>or more</em>, so we <em>don&#8217;t</em> have to subtract the result from 1. The p-value is just TDIST(0.69,6,1), or 0.259.</p>
<p>Hmm. It seems that&#8217;s it <em>also</em> pretty plausible you&#8217;d get -0.25 points or less when the true population difference is 3.00. The  p-value is higher than 0.10, so now you&#8217;ve nothing to compel  you to keep the old design. It&#8217;s a no-win situation. If you proceed with the new design, you have a 60% chance of making a Type I error and redesigning when you definitely shouldn&#8217;t. If you keep the old design then you have almost 26% chance of making a Type II error and not redesigning when you should. Basically you can&#8217;t make a reasonably safe design decision one way or the other. Dude, both of your options suck. You&#8217;re bobbing in statistical mush going nowhere.</p>
<h3>Addressing Ambiguous Results</h3>
<h4>More Design</h4>
<p>In this particular case, you may want to offer to Stan that you work to improve the new design for no additional cost to him. Given your observed difference in the averages is within a standard error of Hypothetical State A, you know it&#8217;s quite plausible this -0.25 you&#8217;re seeing is sampling error. However, the fact that the users rated the new design as worse than the old means it&#8217;s more likely the new design really is worse than the old than vice versa. It may not be <em>much</em> more likely, but it&#8217;s still somewhat more likely. Maybe you should make the design better before subjecting it to more summative testing.</p>
<p>On the other hand, if the new design already represents your best effort, and there&#8217;s no hints from the usability test on improving the new design, maybe you&#8217;re business is better off testing more users now than wasting time blindly trying to improve what you have. If the new data forces you to conclude the new design is worse than the old, <em>then</em> you can offer to try to improve the design some more. Or you can walk away. Maybe this just isn&#8217;t the project for you.</p>
<p>This course of action only applies when the new design appears to be doing much worse than intended -like here where it&#8217;s doing worse than the old design. If the new design were doing, say, 3 points <em>better</em> on average than the old, you&#8217;d still be getting pretty big p-values given the hypothetical states (go ahead and calculate them assuming the same standard error), but it would be encouraging -the sample&#8217;s performance would be right on the Definitely Worth It threshold. It would seem you only need a bigger sample size to be convinced it&#8217;s real.</p>
<h4>More Data</h4>
<p>That&#8217;s the other course of action. You could collect more data. We saw in Stat 101 how larger sample sizes mean smaller Type I and Type II error rates for a given level of user performance. That&#8217;s the whole reason why you prefer large sample sizes when you can afford them. Larger sample sizes increase what I call the <em>decision potential</em> of your usability test -your ability to make a decision at acceptable Type I and Type II error rates. Statisticians loosely talk about larger sample sizes increasing statistical power (that is one minus the Type II  error rate), but that&#8217;s only because in scientific work the Type I error rate is traditionally fixed at 0.05, so increasing the sample size will only change the Type II error rate. However, emphasizing only the impact on power masks the fact that bigger sample sizes also helps you make decisions regarding Hypothetical State A as well as Hypothetical State B. For a given Type I error rate (or level of statistical significance), bigger samples mean you can confidently decide to redesign with a sample user performance closer the Hypothetical State A. They also mean you can confidently decide <em>not</em> to redesign with a sample performance closer to Hypothetical State B. Bigger samples give you a smaller in-between range of performance when you can&#8217;t decide either way.</p>
<p>You can see the role of sample size on decision potential in the t-statistic formula. The t-statistic represents the deviation of your observation from the hypothetical state in units of the standard error. To get a lower p-value for either hypothetical state, you need a larger t-statistic -a greater deviation. Looking at the formula for the t-statistic, you see you can&#8217;t do anything to increase the numerator to get a bigger t-statistic, at least, not anything ethical. You can hope that collecting more data will shift the difference in averages to something more favorable for your design, but you can&#8217;t make it happen. It&#8217;s going to be what it&#8217;s going to be (Whoa, says Stan, statistics are <em>deep</em>, bro).</p>
<p>But you can do something to shrink the denominator and thus get a bigger t-statistic. The formula for the standard error shows that gathering more data directly reduces it. Make either or both group sizes bigger (bigger <em>n1</em> and/or <em>n2</em>), and the standard error gets smaller. That&#8217;s just another way of saying what you already know intuitively: the bigger the sample the more accurate the statistics that come from it -the less your observed difference in the averages will tend to deviate from the real one. Since the t-test for Hypothetical States A and B use the sample standard error, a smaller standard error increases the t-statistic for both. Bigger t-statistics mean greater decision potential.</p>
<h3>Estimating Needed Sample Size</h3>
<p>To summarize: bigger sample size means smaller standard error means bigger t statistics mean smaller p-values mean you make a design decision at acceptable Type I and Type II error rates. Not only do you know that increasing the sample size will get you to a design decision, but, because you have standard deviations for each group, you can estimate <em>how much bigger </em>your sample needs to be. Surfer Stan had told you that he prefers his Type I and Type II error rates be kept around 0.10. Play with Excel&#8217;s TDIST() function a little, and you&#8217;ll find you need a t-statistic of about 1.3 to get a p-value of 0.10 with larger sample sizes (and therefore more degrees of freedom). A little algebra tells us:</p>
<p style="margin-left: 40px;"><em>tstat</em> = (<em>diff</em> &#8211; <em>hypo</em>) / <em>se</em></p>
<p style="margin-left: 40px;"><em>needed se = </em>(<em>diff &#8211; hypo</em>)<em> / tstat</em></p>
<p>In the case of Surfer Stan, and Hypothetical State B:</p>
<p style="margin-left: 40px;"><em>needed se = </em>(-0.25 &#8211; 3.00) / 1.3 = 2.50</p>
<p>That is, assuming the difference in the averages remains the same at -0.25, you&#8217;ll be able to conclude the new design is not considerably better than the old if you can get the standard error down from 4.72 to 2.50 -you need to cut the standard error almost in half. Normally, you can use the same formula for Hypothetical State A to see how much smaller the standard error has to be to conclude the new design is better than the &#8220;who cares?&#8221; level of performance, but in this case, with the new design performing worse than the old, there&#8217;s no such number -when your shaded region of the sampling distribution passes through the hypothetical value, your p-values will always be greater than 0.500.</p>
<p>Now let&#8217;s figure out how many more users you need to run to reduce the standard error to 2.50. Assuming you have equal numbers of users trying each design (and it&#8217;s generally a good idea to try to accomplish that) then the standard error is inversely proportional to the square root of your sample size. Algebraically:</p>
<p style="margin-left: 40px;"><em>se</em> = SQRT(<em>s1</em>^2/<em>n1</em> + <em>s2</em>^2/<em>n1</em>)</p>
<p>Given <em>n1</em> = <em>n2</em>, we&#8217;ll just call the sample size of each group <em>ng</em>, so <em>ng</em> = <em>n1</em> = <em>n2</em>:</p>
<p style="margin-left: 40px;"><em>se</em> = SQRT(<em>s1</em>^2/<em>ng</em> + <em>s2</em>^2/<em>ng</em>)</p>
<p style="margin-left: 40px;"><em>se</em> = SQRT( (<em>s1</em>^2<em> </em> + <em>s2</em>^2)/<em>ng </em>)</p>
<p style="margin-left: 40px;"><em>se</em> = SQRT(<em>s1</em>^2<em> </em> + <em>s2</em>^2) / SQRT(<em>ng</em>)</p>
<p><em> </em></p>
<p>If the size of the standard error is inversely related to the square root of your sample size, then the ratio of your current standard error over your needed standard error is equal to the ratio of the square root of your needed sample size over the square root of your current sample size:. Mathematically:</p>
<p style="margin-left: 40px;">(<em>se current</em>) / <em>se needed</em>) = (SQRT(<em>ng needed</em>) / SQRT(<em>ng current</em>))</p>
<p>More algebra:</p>
<p style="margin-left: 40px;"><em>ng needed = </em>(<em>se current</em>) / <em>se needed</em>)^2 * <em>ng current</em><em> </em></p>
<p>You currently have 4 users in each group (<em>ng</em> = 4). Given a standard error of 4.72, and a needed standard error of 2.50:</p>
<p style="margin-left: 40px;"><em>ng needed = </em>(4.72 / 2.50)^2 * 4 = 14.28</p>
<p>Conclusions:</p>
<ul>
<li>You need an estimated 14 users (rounded) per group, which means,</li>
<li>Since you have 4 users so far, you need 14 &#8211; 4 = 10 more users per group, which means,</li>
<li>You need to find a total of 2 * 10 = 20 more users, which means,</li>
<li>You&#8217;ve at lot more usability testing to do, which means,</li>
<li>You can forget about spending two days of this business trip lying on the beach, conducting &#8220;ethnographic research.&#8221;</li>
</ul>
<p>Going from a sample of eight to 28 seems like a lot more work than should be necessary (especially just to convince yourself the new design won&#8217;t be substantially better than the old). However, remember the standard error varies with the inverse of the <em>square root</em> of the sample size. If you need to cut the standard error in half, you need to <em>quadruple</em> your sample size. Even then, running 20 more users does not guarantee you&#8217;ll be able to make a go/no-go decision. It&#8217;s an estimate assuming the difference between the averages remains at -0.25 and the standard deviations remain the same. They probably won&#8217;t, of course, because there&#8217;s sampling error. But look at the bright side: running a nice big sample also gives you the best chance of finding out that the new design is actually better than the old, if it really is better. Text me when you&#8217;re done. I&#8217;ll be hitting the waves.</p>
<h3>The t-test Redux</h3>
<p>A day or two later, here&#8217;s data from 20 more users appended onto the original data, along with the revised statistics:</p>
<table style="text-align: left; width: 462px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td style="text-align: center;" colspan="2">Old Home Page</td>
<td style="text-align: center; width: 62px;" colspan="2">New Home Page</td>
<td style="text-align: right; width: 96px;">Both Pages</td>
</tr>
<tr>
<td>Data</td>
<td></td>
<td style="width: 93px;"></td>
<td style="width: 62px;"></td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">User</td>
<td style="text-align: right;">Rating</td>
<td style="text-align: right; width: 93px;">User</td>
<td style="text-align: right; width: 62px;">Rating</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">1</td>
<td style="text-align: right;">23</td>
<td style="text-align: right; width: 93px;">2</td>
<td style="text-align: right; width: 62px;">26</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">3</td>
<td style="text-align: right;">20</td>
<td style="text-align: right; width: 93px;">4</td>
<td style="text-align: right; width: 62px;">29</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">5</td>
<td style="text-align: right;">31</td>
<td style="text-align: right; width: 93px;">6</td>
<td style="text-align: right; width: 62px;">21</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">7</td>
<td style="text-align: right;">16</td>
<td style="text-align: right; width: 93px;">8</td>
<td style="text-align: right; width: 62px;">13</td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td style="text-align: right;">9</td>
<td style="text-align: right;">28</td>
<td style="text-align: right;">10</td>
<td style="text-align: right;">26</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td style="text-align: right;">11</td>
<td style="text-align: right;">20</td>
<td style="text-align: right;">12</td>
<td style="text-align: right;">21</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td style="text-align: right;">13</td>
<td style="text-align: right;">25</td>
<td style="text-align: right;">14</td>
<td style="text-align: right;">31</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td style="text-align: right;">15</td>
<td style="text-align: right;">17</td>
<td style="text-align: right;">16</td>
<td style="text-align: right;">29</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td style="text-align: right;">17</td>
<td style="text-align: right;">18</td>
<td style="text-align: right;">18</td>
<td style="text-align: right;">27</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td style="text-align: right;">19</td>
<td style="text-align: right;">21</td>
<td style="text-align: right;">20</td>
<td style="text-align: right;">26</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td style="text-align: right;">21</td>
<td style="text-align: right;">17</td>
<td style="text-align: right;">22</td>
<td style="text-align: right;">29</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td style="text-align: right;">23</td>
<td style="text-align: right;">16</td>
<td style="text-align: right;">24</td>
<td style="text-align: right;">33</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td style="text-align: right;">25</td>
<td style="text-align: right;">35</td>
<td style="text-align: right;">26</td>
<td style="text-align: right;">23</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td style="text-align: right;">27</td>
<td style="text-align: right;">15</td>
<td style="text-align: right;">28</td>
<td style="text-align: right;">29</td>
<td style="text-align: right;"></td>
</tr>
<tr>
<td>Statistics</td>
<td style="text-align: right;"></td>
<td style="width: 93px;"></td>
<td style="text-align: right; width: 62px;"></td>
<td style="text-align: right; width: 96px;"></td>
</tr>
<tr>
<td>Sample</td>
<td style="text-align: right;">14</td>
<td style="width: 93px;"></td>
<td style="text-align: right; width: 62px;">14</td>
<td style="text-align: right; width: 96px;">28</td>
</tr>
<tr>
<td>Average</td>
<td style="text-align: right;">21.57</td>
<td style="width: 93px;"></td>
<td style="text-align: right; width: 62px;">25.93</td>
<td style="text-align: right; width: 96px;">23.75</td>
</tr>
<tr>
<td>Std Dev</td>
<td style="text-align: right;">6.14</td>
<td style="width: 93px;"></td>
<td style="text-align: right; width: 62px;">5.11</td>
<td style="text-align: right; width: 96px;">5.97</td>
</tr>
<tr>
<td>Skew</td>
<td style="text-align: right;">1.05</td>
<td style="width: 93px;"></td>
<td style="text-align: right; width: 62px;">-1.23</td>
<td style="text-align: right; width: 96px;">-0.02</td>
</tr>
<tr>
<td>Difference<br />
in averages</td>
<td></td>
<td></td>
<td style="width: 62px;"></td>
<td style="text-align: right; width: 96px;">4.36</td>
</tr>
</tbody>
</table>
<p>Now we&#8217;ve got a different story to tell: The new page scored 4.36 points better than the old. Let&#8217;s run a t-test on Hypothetical State A.</p>
<p>Step 1: Standard Error</p>
<p style="margin-left: 40px;"><em>se</em> = SQRT(<em>s1</em>^2/<em>n1</em> + <em>s2</em>^2/<em>n2</em>)</p>
<p><em> </em></p>
<p style="margin-left: 40px;"><em>se</em> = SQRT( 6.14^2 / 14  +  5.11^2 / 14 ) = 2.13</p>
<p>Cool. Due to small changes in the standard deviations, our standard error is a little lower than we hoped to get by adding 20 more users.</p>
<p>Step 2: t-statistic</p>
<p style="margin-left: 40px;"><em>tstat</em> = (<em>diff</em> &#8211; <em>hypo</em>) / <em>se</em></p>
<p style="margin-left: 40px;"><em>tstat</em> = (4.36 &#8211; 1.00) / 2.13 = 1.57</p>
<p>With a bigger difference in the averages and a smaller standard error, it&#8217;s no surprise the t-statistic is substantially larger.</p>
<p>Step 3 through 3-and-a-half: p-value</p>
<p>We sketch our sampling distribution. We&#8217;ve a positive t-statistic and we we want to know the the probability of getting a difference of 4.36 or greater, so it looks like this:</p>
<p><img class="alignnone" title="Sampling distribution, shaded for t = 1.57 and up." src="/content/blogimages/stat200/SamplingDistributionEx7.gif" alt="" width="479" height="174" /></p>
<p>For once, we don&#8217;t have to go through any contortions to use TDIST(). Degrees of freedom are now:</p>
<p style="margin-left: 40px;"><em>df</em> = <em>n1</em> +<em> n2</em> &#8211; 2</p>
<p style="margin-left: 40px;"><em>df</em> = 14 + 14 &#8211; 2  = 26</p>
<p>And so:</p>
<p style="margin-left: 40px;"><em>p</em> = TDIST(1.57, 26, 1) = 0.064</p>
<p>The p-value is 0.064. It&#8217;s pretty implausible that the new design is insufficiently better than the old -maybe not the most implausible thing you&#8217;ve ever faced, but implausible enough that Stan believes giving you the contract for the entire new site is a good business decision with tolerable risk. It seems the initial result from the sample of eight users was just sampling error. Lucky.</p>
<p>You can run the t-test for Hypothetical State B if you want, but you should already be able to tell it&#8217;ll have a pretty big p-value since the observed difference is within one standard error (the new smaller standard error) of the hypothetical value. In fact, since the observed difference (4.36) is greater than the hypothetical state (3.00), and we&#8217;re testing for the probability of getting the observed difference or smaller, you know the p-value will be over 0.500. It&#8217;s a mirror image of the situation we had with the initial sample and Hypothetical State A. However, at this stage it doesn&#8217;t matter what the p-value is. If the p-value were very low, then you&#8217;d be pretty sure there isn&#8217;t a <em>definite</em> advantage with the new design, but you&#8217;d still be pretty sure it is at least better than the &#8220;who cares?&#8221; level of performance. You&#8217;d conclude you&#8217;re in the Whatever Zone, to which Stan would likely say, &#8220;whatever,&#8221; and give you the contract, especially after already sinking some money into the test home page.</p>
<p>So congratulations. On to more designing, more usability testing, and <a title="Zusch Login - Stat 202" href="http://www.zuschlogin.com/?p=261">more statistics</a>. Whoo!</p>
<h3>Summary Flow Chart</h3>
<h4>Problem: Comparing averages to determine if a certain design is truly better than another.</h4>
<p><strong>Solution</strong>: Follow the flow chart below. Consider it provisional, because there are other issues to address that we&#8217;ll cover in <a title="Zusch Login - Stat 202" href="http://www.zuschlogin.com/?p=261">Stat 202</a>.</p>
<p><img class="alignnone" title="Flow chart (read bullets below)" src="/content/blogimages/stat200/TTestFlowChart(provisional).gif" alt="" width="479" height="852" /></p>
<ul>
<li>With your client, set your Hypothetical States A and B.</li>
<li>Conduct a t-test for Hypothetical State A
<ul>
<li>Calculate your standard error.</li>
<li>Calculate the t-statistic.</li>
<li>Determine the p-value with something like Excel&#8217;s TDIST() function.</li>
</ul>
</li>
<li>If the p-value is sufficiently low to represent a tolerable chance of a Type I error rate, proceed with the new design.</li>
<li>If the p-value represents an excessive Type I error rate, conduct a t-test for Hypothetical State B.</li>
<li>If the p-value represents a tolerable chance of a Type II error rate, do not proceed with the new design.</li>
<li>If the p-value represents an excessive Type II error rate, calculate the increase in sample size you need to get a low p-value for either Hypothetical State A or B.</li>
<li>Increase your sample size.</li>
<li>Repeat</li>
</ul>
<p>Here&#8217;s an Excel sheet with <a title="Zusch Login - 201 Example data and analysis (.xls)" href="/content/blogimages/stat200/Stat201.xls">this post&#8217;s </a><a title="Zusch Login - 201 Example data and analysis (.xls)" href="/content/blogimages/stat200/Stat201.xls">data and analysis</a>.</p>
<h3>Update 4/14/2012</h3>
<h4>Precisely Calculating Degrees of Freedom</h4>
<p>The simple formula for degrees of freedom, <em>df</em> = <em>n1</em> + <em>n2</em> &#8211; 2, is good enough for most usability testing situations. However, if there are big differences in standard deviations of your two groups of users, then you need to make complicated adjustment. As a rule of thumb, your should calculate the adjustment if one standard deviation is twice the size or larger than the other. For example, you&#8217;d make the adjustment if, after running 20 more users, the new home page had a standard deviation of, say, 12.00 while old home page remained at 6.14.</p>
<p>How complicated is the adjustment? Well, first let&#8217;s define the error variances, <em>v1</em> and <em>v2</em>, for each group as:</p>
<p style="margin-left: 40px;"><em>v1</em> = <em>s1</em>^2 / <em>n1</em></p>
<p style="margin-left: 40px;"><em>v2</em> = <em>s2</em>^2 / <em>n2</em></p>
<p>The adjusted degress of freedom are then:</p>
<p style="margin-left: 40px;"><em>df</em> = (<em>v1</em> + <em>v2</em>)^2 / (<em>v1</em>^2 / ( <em>n1</em> &#8211; 1) + <em>v2</em>^2 / (<em>n2</em> &#8211; 1))</p>
<p>When using TDIST(), round the result to the nearest integer. TDIST() accepts only integers for the degrees of freedom and will truncate any decimal number, so rounding is more accurate.</p>
<h4>Impact of Using the Adjusted Degrees of Freedom</h4>
<p>When the group standard deviations are about the same, the results are essentially equal to what you get with the simple <em>df</em> formula. For example, with the standard deviations of 6.14 and 5.11 that we got with 28 users:</p>
<p style="margin-left: 40px;"><em>v1</em> = 6.14^2 / 14 = 2.69<em> </em></p>
<p style="margin-left: 40px;"><em>v2</em> = 5.11^2 / 14 = 1.86</p>
<p style="margin-left: 40px;"><em>df</em> = (2.69 + 1.86)^2 / (2.69^2 / ( 14 &#8211; 1) + 1.86^2 / (14 &#8211; 1)) = 25.17</p>
<p>We round 25.17 to 25, which, yields same p-value (rounded to three places) as we got with df = 26 earlier:</p>
<p style="margin-left: 40px;">TDIST(1.57, 25, 1) = 0.064</p>
<p>A few degrees of freedom here or there don&#8217;t make much difference when the total sample size is about 30 or more.</p>
<p>However, if the standard deviations were very different, such as 6.14 and 12.00:</p>
<p style="margin-left: 40px;"><em>v1</em> = 6.14^2 / 14 = 2.69<em> </em></p>
<p style="margin-left: 40px;"><em>v2</em> = 12.00^2 / 14 = 10.29</p>
<p style="margin-left: 40px;"><em>df</em> = (2.69 + 10.29)^2 / (2.69^2 / ( 14 &#8211; 1) + 10.29^2 / (14 &#8211; 1)) = 19.36</p>
<p>Rounding to 19,</p>
<p style="margin-left: 40px;">TDIST(1.57, 19, 1) = 0.066</p>
<p>Okay, it <em>still</em> doesn&#8217;t make much difference, but it&#8217;s good we played it safe and made the adjustment. The smaller sample sizes, the bigger the difference. For example if there were 4 per group,  the p-value goes from 0.083 with simple formula to 0.095 for the complicated adjustment (the adjustment can only increase p-values).</p>
<p>So, you&#8217;re generally safe to use the simple formula for degrees of freedom in usability testing. On the other hand, you can do no wrong using the complicated adjustment. Just to be extra-anal, I&#8217;ve updated the spreadsheet with this post&#8217;s examples to use the adjustment.</p>
<h4>The Significance of Very Different Standard Deviations</h4>
<p>Parenthetically, a large difference in your standard deviations may itself be a signficant finding, in both senses of the word. For a simple way to get the p-value for the differences of two sample standard deviations, read up on the <a title="Wikipedia - F-test of Equality of Variances" href="http://en.wikipedia.org/wiki/F-test_of_equality_of_variances">F-test</a>. A higher standard deviation in one group indicates those users are comparitively polarized. For example, if the new home page had a standard deviation of 12.00, it would suggest that, relative to the old home page, users tended to either love or hate the new home page. That could have design or deployment implications.</p>
<h4>What&#8217;s This All About, Anyway?</h4>
<p>If you&#8217;re leafing through your intro stat textbook trying to figure out where all this is coming from, then it&#8217;s this: the procedure I&#8217;ve outlined in this post is a &#8220;t-test for separate variance estimates,&#8221; in contrast to the &#8220;t-test for a pooled varance estimate&#8221; that most textbooks present. The t-test for a pooled variance estimate assumes the two groups have the same population standard deviation and any difference you see in the sample standard deviations is sampling error. You then estimate the population standard deviation with essentially a weighted average of the two sample standard deviations.</p>
<p>However, my philosophy is don&#8217;t assume anything you don&#8217;t have to assume. Usually, it&#8217;s pretty reasonable to assume the two groups have the same population standard deviation, but why take the chance? The t-test with separate variance estimates is always the safe option. It gives the same p-value as the t-test for a pooled variance estimate when your two groups have the same number of users and there&#8217;s little difference in the sample standard deviations, both which are usually true in usability testing. However, it protects you in case any differences in the sample standard deviations are, in fact, reflected in the population. So you lose nothing but gain peace of mind by using the the t-test for separate variance estimates. The only drawback is the more complicated adjusted degrees of freedom calculation, which is important to do when sample standard deviations are <em>very</em> different and sample sizes are small.</p>
<h4>No, What&#8217;s This <em>Really</em> All About?</h4>
<p>I forgot about adjusting the degrees of freedom. Hey, you can&#8217;t believe everything on the web.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=219</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Really Significant Statistics</title>
		<link>http://www.zuschlogin.com/?p=214</link>
		<comments>http://www.zuschlogin.com/?p=214#comments</comments>
		<pubDate>Sat, 07 Jan 2012 19:07:40 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[Analysis & Statistics]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=214</guid>
		<description><![CDATA[A series on statistics applied to usability engineering
Now you&#8217;ve done it. You should&#8217;ve kept your mouth shut. There you were, comparing user ratings between a couple web home pages, and, to your disappointment, the amateurish proto-CSS design had better average survey rating than the fully researched state-of-the-art replacement you&#8217;ve been promoting. But you&#8217;re not about [...]]]></description>
			<content:encoded><![CDATA[<h4>A series on statistics applied to usability engineering</h4>
<p>Now you&#8217;ve done it. You should&#8217;ve kept your mouth shut. There you were, comparing user ratings between a couple web home pages, and, to your disappointment, the amateurish proto-CSS design had better average survey rating than the fully researched state-of-the-art replacement you&#8217;ve been promoting. But you&#8217;re not about to give up. After all, there were only eight users in the test. Maybe that wasn&#8217;t enough. So you put on your most authoritative voice and try, &#8221;Of course, we should do an inferential statistical test to see if this is just sampling error.&#8221; Whoa, dude, you know statistics? &#8220;Well, yeah, I took an intro course in college years ago, and so I know we should-&#8221; Cool, brudda. Go run the stats and tell us what it shows.</p>
<p>Uh oh. You remember what statistics is about, but do you remember how to do it? Lucky for you, you ended up on this web site. Here I&#8217;ll explain how to perform statistical analyses to answer questions like whether your sample size is large enough to draw valid conclusions. I&#8217;ll cover analysis of common measurement types used in usability studies and common usability test designs. That should be doable in a single blog post, no?</p>
<p>No. Sometime last month while writing this, It finally dawned on me this was too much for one post. So, instead I present to you a series of posts on statistics and usability, which, contrary to previous series like <a title="Zusch Login - Learning from Lusers (intro)" href="../../?p=12">Learning from Lusers</a>, I&#8217;ll post one after the other each month like a DJ playing a block of classic Led Zeppelin.</p>
<p>We start with:</p>
<p><a title="Zusch Login - Stat 101" href="../../?p=78">Stat 101</a>: Sample size, inferences about the user population, Type I and II errors, statistical significance, and statistical power.</p>
<p>Yes, Stat 101 from May 2010, which retroactively becomes the first in the series. Stat 101 covers the basic principles of statistics for those with no knowledge of stats. It includes tables you can apply to task failure rates observed in your usability tests. It concludes that:</p>
<ul>
<li>You can do statistical analysis of small sample size usability tests.</li>
<li>You <em>should</em> do statistical analysis of small sample size usability tests.</li>
<li>Doing so will often show that you have perfectly valid data from your small sample size usability tests.</li>
</ul>
<p>If you haven&#8217;t read Stat 101, go ahead and read it, even if you&#8217;re pretty good with statistics. Stat 101 applies your typical academic statistics to the problem of user interface design, and thus there are some unconventional points, processes, and perspectives that aren&#8217;t covered in a typical college course that we&#8217;ll use in the later posts. And tell Wayne in Finance I said &#8220;hi.&#8221;</p>
<p>After Stat 101, we&#8217;ll go to the 200-series.</p>
<p><a title="Zusch Login - Stat 201" href="http://www.zuschlogin.com/?p=219">Stat 201</a>: Comparison of averages, analysis of user ratings, improving on an existing UI design, estimating needed sample sizes, the normality assumption, between-subject testing, and one-tailed t-tests.</p>
<p><a title="Zusch Login - Stat 202" href="http://www.zuschlogin.com/?p=261">Stat 202</a>: More comparisons of averages, analysis of completion times, choosing between two new UI designs, maximizing statistical power or &#8220;decision potential,&#8221; within-subject testing, two-tailed t-tests, and data transformations.</p>
<p><a title="Zusch Login - Comparing Counts" href="http://www.zuschlogin.com/?p=269">Stat 203</a>: Analysis of frequency data, such as task completion rates and conversions, binomial tests, chi-square tests, and more.</p>
<p>And we&#8217;ll work with Surfer Stan.</p>
<p>The 200 series applies the concepts I covered in Stat 101, but moves beyond the simple case of how to interpret <em>x</em> number of users failing at task <em>y</em> in a usability test. Now were going to start looking at &#8220;relationship inferences,&#8221; which will help us decide which design alternative is better. At the same time, while Stat 101 is a pre-requisite, I&#8217;m not picking up where Stat 101 left off (that&#8217;s why it doesn&#8217;t start with Stat 102). We&#8217;re going to get into more sophisticated analyses, and I&#8217;m afraid I can&#8217;t compress an entire stat textbook into a few posts. The 200 series assumes you&#8217;ve had some stat, and the formulas I present are review -maybe a review from when there was such a thing as &#8220;record stores,&#8221; but a review anyway. If you are a usability engineer, and you&#8217;ve never had intro stats, what are you waiting for? Go take it now. Or at least read a book on it. Nothing like bending your brain around sampling distributions to wile away the Sunday afternoon.</p>
<p>How sophisticated will the analyses be? Well, you&#8217;re going to have to do some actual calculations this time, but nothing you can&#8217;t do with the built-in formulas of a spreadsheet. No need to rush out an plunk down the hefty licensing fee for <a title="SAS - SAS/STAT Software" href="http://www.sas.com/technologies/analytics/statistics/stat/index.html">SAS</a>. We aren&#8217;t going to do any multivariate principle component maximum likelihood structural hazard modeling whatevers. Instead, I&#8217;m talking about the t-test, the chi-square test, and binomial tests (the latter actually introduced in Stat 101). The series is geared to people who occasionally need to compare human performance on a couple alternative designs. In particular, the 200 series is for UX practitioners who want to know which of two designs is better for the users, which is the most common statistical situation in usability engineering. I&#8217;m also assuming you merely want to make a reasonably well-informed design decisions, something better than, &#8220;oh, I guess that sample size is big enough,&#8221; and you don&#8217;t need high-precision academic-grade absolutely-the-best statistical tests. If you want the latter, then hire or contract a professional statistician with his or her own SAS license. All statistics is approximation. It&#8217;s just that some approximations are better than others. I&#8217;m aiming to go over some stats that are good enough for most needs in usability engineering.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=214</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Quality of Quality UIs</title>
		<link>http://www.zuschlogin.com/?p=204</link>
		<comments>http://www.zuschlogin.com/?p=204#comments</comments>
		<pubDate>Tue, 04 Oct 2011 23:09:52 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[Challenges]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=204</guid>
		<description><![CDATA[UX as the key to quality products
When I was a usability engineer for a telecommunications development firm, there was a big push for ISO 9001 certification, which was intended to indicate that we produced quality products. I wanted to produce quality products, but the truth was I didn’t know how to make quality UIs. In [...]]]></description>
			<content:encoded><![CDATA[<h4>UX as the key to quality products</h4>
<p>When I was a usability engineer for a telecommunications development firm, there was a big push for ISO 9001 certification, which was intended to indicate that we produced quality products. I wanted to produce quality products, but the truth was I didn’t know how to make quality UIs. In retrospect, I see that many of my designs back then were inferior, making it only half-way towards elegance. Windows were simplified, when they could’ve been eliminated entirely. Layouts were functional but cluttered and wasteful. Disabling was not used consistently. There was no <a title="Zusch Login - Empirical Visions" href="../../?p=35">vision</a>. I wanted a process that would help me achieve quality.</p>
<p>Unfortunately, the definition of &#8220;quality&#8221; in ISO 9001 is different from an ordinary person&#8217;s definition of quality. &#8220;Quality&#8221; means &#8220;no defects,&#8221; which means &#8220;performs according to spec.&#8221; The trick, as I saw when we developed our quality process for ISO 9001, is that the spec or requirements can be anything you want, and can even be altered retroactively to match actual product performance. So ISO 9001 certification really meant having a process for painstakingly documenting precisely how low our quality was. If your binders are thick enough, and updated enough, you have &#8220;quality&#8221; no matter how superior or inferior the product you’re shipping.</p>
<p>One less cynical thing I acquired from my time in telecommunications is a high respect for the software testers. Part of the respect was because it seemed like such an incredibly monotonous but important job. The other part of the respect was from how they made me a better designer. Prior to true usability testing, functional software testing is actually a good way to find UI issues and requirements we didn’t know we needed. Testers were the closest I could get to usability test participants (the development team explicitly forbid me from doing any actual user research, apparently afraid I might lead users to believe they might be getting a quality product). Testers would notice usability issues from <em>actually using</em> the app, <a title="Spolsky - Talk at Yale: Part 1 of 3" href="http://www.joelonsoftware.com/items/2007/12/03.html">not running scripts for it</a>. From this, I began to learn what makes true quality.</p>
<p>Any complicated project needs a system for documenting its goals and progress. There are too many details to remember and too many individuals to coordinate to avoid writing things down and tracking them. However, documentation is not equivalent to quality. Does an expert furniture maker follow a blueprint? Does a top chef follow a recipe? Being schooled in industrial engineering, I&#8217;m familiar with the widely accepted definitions of quality as &#8220;conformance to requirements&#8221; or &#8220;absence of defects,&#8221; but I&#8217;ve always felt these are missing something. Industrial engineering is specifically concerned with the design and analysis of product production. Thus, its definition of quality is limited to the quality of the production -the degree the finished product varies from design. It has limited relevance to software engineering where actual production (i.e., software duplication) has no variability at all, and the line between designing the software and developing it is blurred, or, <a title="Nielsen - Agile User Experience Projects" href="http://www.useit.com/alertbox/agile-user-experience.html">in the case of agile development</a>, non-existent. Production quality is only part of overall quality. Production is only one step of the product lifecycle. It doesn&#8217;t matter how little the final product varies from design if the design is crappy to begin with. Particularly with software and websites, we need to consider the <em>design</em> quality when assessing overall product quality.</p>
<h3>A Broader Definition of Quality</h3>
<p>So what exactly is overall quality?</p>
<p>My Aerostich <a title="Aerostich - Roadcrafter One-piece" href="http://www.aerostich.com/roadcrafter-one-piece-suit.html">Roadcrafter</a> motorcycle riding suit is an overall high quality product. That&#8217;s me wearing it in the obligatory photo of myself on the obligatory <a title="Zusch Login - About" href="../../?page_id=2">About</a> page, The Roadcrafter has excellent functional performance, protecting me from wind and rain. It&#8217;s durable, long-lasting, and trustworthy, with a stellar reputation of literally saving your skin in event of an involuntary transition from the sport of motorcycle riding to the sport of asphalt body surfing. It&#8217;s easy to maintain, being machine washable and dryable. It&#8217;s comfortable -Gortex makes it breathable while waterproof, and the foam in the crash armor is soft to slow velocities characterizing normal joint movements, while rigid to high velocities that would come from impact in a crash. It&#8217;s convenient, with many pockets to carry various riding paraphenelia (e.g., gloves, sunglasses, keys), and with a clever &#8220;upside-down&#8221; zipper design for easy donning. It&#8217;s versatile, suitable for fair and foul weather from over 100 F to sub-freezing. It&#8217;s tasteful and attractive. It’s made with superior design, top-notch materials, and excellent production standards to achieve its level of performance. These are the things that make any product a high quality product.</p>
<p>When you think of the high quality products  in your life, you realize they are the things that provide you the greatest net gain. Whether you&#8217;re talking about a riding suit for consumers to wear, or a ball bearing in an industrial machine somewhere, a high quality product is one that delivers the greatest benefits for the least compromises for whomever is using it. That is, with the exclusion of one significant attribute of the product: the monetary cost. It&#8217;s understood that high quality often means shelling out more lucre. Some consumers even assume that more expensive products necessarily have higher quality. Certain software vendors and consultants have succeeded in increasing demands for their products and services by <em>increasing</em> their prices, contrary to what Microeconomics 101 would teach you. But let&#8217;s put the relation of monetary cost and quality aside for now.</p>
<p>Including everything else but price in the equation, the higher the cost-benefit, the higher the quality. A high-quality web site, for example, would have excellent layout and information architecture, readable font, elegant pleasing aesthetics, and correct and useful information, all things that benefit the user. Littering your web site with ads reduces the quality of the web site, because ads are a cost in the cost-benefit equation. Web site ads generally are distracting, ugly, and not useful to the user. More to the point, users don&#8217;t like them; they&#8217;ll actively attempt to avoid them. PBS is touted as &#8220;quality television&#8221; (I think that used to be their slogan) in part because they don&#8217;t interrupt their programs with ads, unlike commercial television.</p>
<p>The equation for overall product quality is quite simple:</p>
<p style="margin-left: 40px;"><strong>Overall Product Quality = User Experience Quality </strong></p>
<p>High quality is synonymous with an excellent total user experience. When we talk about improving the quality of a product, we&#8217;re really talking about improving the quality of the user experience. This rolls both design and production quality into the definition, because the quality of both affect the user experience. It also rolls in quality of availability, purchasing, service, support, maintenance, upgrading, and retirement, because these also impact the user experience. As a UX professional, you&#8217;re in the quality business. Achieving quality really means maximizing the dimensions of a positive user experience, which are:</p>
<ul>
<li>Usability</li>
<li>Usefulness</li>
<li>Desirability</li>
<li>Reliability</li>
</ul>
<p>You might recognize that the first three elements are among Peter Morville&#8217;s <a title="Semantic Studios - User Experience Design" href="http://semanticstudios.com/publications/semantics/000029.php">facets of user experience</a>. You may wonder why I didn&#8217;t go on and list Morville&#8217;s remaining four facets of UX. It&#8217;s because they don&#8217;t belong. <em>Findable</em> and <em>credible</em> are characteristics specific to static web sites where the user goal is to retrieve information. I suspect that being an information architect gave Morville a limited perspective of the scope of UX and the products it applies to. I&#8217;m going to absorb credible into <em>reliable</em>, as I&#8217;ll discuss below. Findable is already absorbed; it&#8217;s simply the chief form of usability that static web sites need -make it easy to find the information. <em>Accessible</em> is also really a component of usability, just usability for certain select group of users. At least, that&#8217;s the way it should be in a quality mass-market product -accessibility shouldn&#8217;t just be ticking off a <a title="W3C - Web Content Accessibility Guidelines (WCAG) 2.0" href="http://www.w3.org/TR/WCAG/">W3C checklist</a>.</p>
<p>As for <em>valuable</em>, that facet isn&#8217;t a benefit to the user, but rather represents the faith that the other facets will deliver value to the product maker. Which is <a title="Search Engine Land - The Dark Side Of Usability: When Business Goals &amp; User Goals Collide" href="http://searchengineland.com/the-dark-side-of-usability-when-business-goals-user-goals-collide-24245">not always true</a>. Valuable, along with Morville&#8217;s concept of credible, show that his facets are really a list of Things UX Professionals are Concerned About, which is not quite the same as things that make a positive user experience.</p>
<h3>Usability</h3>
<p>High-quality products are usable. They have high ease of use, making low demands for the users&#8217; time, and physical and mental effort. They don&#8217;t hassle the user. They allow the appropriately trained and experienced users to maximize their performance. For example, a high quality sports car provides tight precise steering and easy to modulate brakes with superior feedback, allowing the skilled driving enthusiast to take curves quickly and confidently.</p>
<p>Usability implies a good fit with the user. High quality products also fit well with the user, being comfortable, clear, and convenient. High quality products are comfortable, fitting physically by having good ergonomics. Just as a high quality suit fits the wearer well without uncomfortable pinches or bunches of fabric, a high quality mobile electronic device also fits the user, being comfortable to hold and operate. High quality products are also clear, fitting mentally with the owner. For example, a good quality textbook will be clearly and precisely written, provide excellent illustrations, and be well-organized pedagogically, building on knowledge the readers already know. It will have a complete index with terms consistent with the users&#8217; mental concepts, as they are both before and after reading the book. Likewise, a high quality web site will have well-organized content carefully prepared in a language familiar to users. Finally, high-quality products are convenient, fitting the owners&#8217; lifestyle. For example, a high quality refrigerator will have features like ice and water available from the door to make one of the most common household tasks the easiest to complete. Likewise, high quality software includes features to make the most common user tasks the easiest to do.</p>
<p>Good quality products are <em>effortless</em>, For example, it&#8217;s easier to play well on a high quality guitar, with light strings and low action, than a cheap clunky-feeling knock-off. Likewise, your high quality websites should be effortless, allowing the user to flow through it. In your usability testing, you want more than just a high proportion of your users arriving at the right content. It&#8217;s not enough that users eventually complete the check-out pages and buy something. You want them to get there <em>quickly</em> with minimum pauses, typing, and clicks. Clear and consistent design minimizes delays associated with confusion or error. The rest is about designing in speed. A clunky-feeling website has inadequate servers and bloated content that takes longer than a few seconds to download. A high quality web site delivers content at desktop-speeds -half a second or less.</p>
<p>Clunky websites or apps have tedious unnecessary steps, forcing the users to jump through hoops to get their content. High quality site or app design minimizes excise, seeking to support a task with the fewest the number of clicks. You can become over-concerned with click-counting. For example, throwing everything on a single web page would certainly minimize navigation, but can result in so much cluttered and confusing content that users spend more time and effort searching for their target information than they would if they had to click a couple times. Long, unorganized, unbroken, unlabeled, un-scannable content can waste just as much time and effort as clicking. Likewise for verbose, vague, and task-irrelevant text that takes a long time to read, whether its copy on a web page, captions for input controls, or messages in an error.</p>
<p>Nonetheless, when you&#8217;re at the design stage, prior to usability testing with a stopwatch, click-counting remains a pretty good way to estimate time and effort to complete a task, and <em>unnecessary</em> clicks are a clear sign of low quality. For example, when setting up my <a title="Dillobits - Insync" href="http://www.dillobits.com/insync.html">automatic backup with InSync</a>, the Destination dialog opened each time at the root of the destination drive, forcing me to click through the directory hierarchy to select each destination folder for my documents, bookmarks, and email. Of course the paths for the documents, bookmarks, etc. are very similar, so this involves a lot of repetitive clicking. Some developer got lazy and didn&#8217;t bother to preserve the selection from the last use of the Destination dialog.</p>
<p>One project manager I know likes to think we&#8217;re all born with a fixed number of clicks to last our life, which should not be squandered. In a sense, he&#8217;s right: on a familiar web site, a click takes about two seconds, including time to move the mouse, but not including page load time. We only live for so many seconds. Personally, I rather not spend it clicking. If you run into a developer that insists that one little unnecessary click is just not that big of a deal, show them the following code (if you pardon my untested pseudocode):</p>
<p><code>Integer sum10s(Integer max) {<br />
// Sum all values divisible by 10 that you get<br />
// when counting up to max.<br />
// Return negative value for negative max.<br />
Integer sum = 0, ispositive = 1;<br />
Character str[12];<br />
IntegerToString(max, &amp;str);<br />
if (str[0] = ’-’) {</code></p>
<div style="margin-left: 40px;"><code>str[0] = ' ';<br />
max = StringToInteger(str);<br />
ispositive = 2;<br />
</code></div>
<p><code> }<br />
for (Integer n = 0; n &lt; max; n++) {<br />
</code></p>
<div style="margin-left: 40px;"><code>IntegerToString(n, &amp;str);<br />
if (StringToInteger(str[strlen(str)-1]) == 0)<br />
</code></p>
<div style="margin-left: 40px;"><code>sum += n;<br />
</code></div>
</div>
<p>}<br />
<code>if (ispositive == 2) sum = 0 - sum;<br />
return(sum);<br />
}</code></p>
<p>Your developer should say, &#8220;WTF?&#8221; and promptly replace it with something like:</p>
<p><code>inline Integer sum10s(int max) {<br />
// Sum all values divisible by 10 that you get<br />
// when counting up to max.<br />
//</code><code> Return negative value for negative max.</code><br />
<code>return ((max/10)^2 + max/10) * 5;<br />
}</code></p>
<p>Other than the original code being an offense to all that is holy, why should anyone care about it? Well it’s slower. It’s harder to maintain. It’s buggy (most egregiously, it returns the wrong value when max is exactly divisible by 10). It&#8217;s obviously poor quality code. But practically what difference does it make? How many microseconds will it save by the second version even for large values of max? How much more work is it to maintain –will it ever need maintaining? What’re the odds and impact of any bug (e.g., is max ever exactly divisible by 10)? Is the original code worth re-writing?</p>
<p>Probably.</p>
<p>The developer&#8217;s reaction to the original code is the same as my reaction to a interaction design with an unnecessary click. What’s one little extra click?</p>
<ul>
<li>The task takes a couple more seconds to do.</li>
<li>It’s one more thing to support the users on (training, documentation, help, and tech support).</li>
<li>It’s one more chance for the user to mistakenly click the wrong thing.</li>
</ul>
<p>In other words, it makes the user’s process slower, it’s harder to maintain (your users), and it’s interaction-buggy. The two seconds associated with an unnecessary click dwarfs any processing-time savings you’d get by fixing your basic Code of Abomination (your abominations may vary). For most applications, refactoring some code is less important for the user experience than saving one click, better organizing and labeling the content, or editing and tightening the text.</p>
<p>High quality products are maintainable, in which maintenance tasks are usable just like the operational tasks are usable. A high-quality lawnmower is not only easy to start but easy to prepare for the season; for example, the owner can replace the air filter without any tools. Service for your a high-quality car includes the convenience of providing a loaner car to the owner.</p>
<h3>Usefulness</h3>
<p>If you&#8217;ve read other stuff on this site, you&#8217;re probably not surprised I gave usability top billing on the dimensions of user experience, since that is what I tend to emphasize the most. However, that&#8217;s merely a reflection of my expertise. As it happens, I don&#8217;t think that usability is the most important dimension for UX, or, by extension, quality. Usability only reduces cost -the effort of using the product -but it doesn&#8217;t represent any benefit.</p>
<p><em>Usefulness</em> is all about benefit. Usefulness is the functional benefit a product provides the user, the degree the product fulfills its operational purpose. It&#8217;s how well a jacket keeps the owner warm and comfortable and how good of pictures a camera takes.</p>
<p>For a car, it&#8217;s how quickly and safely it goes, stops, and turns. I once had a sociology professor named Mike Johnson who was quite vocal in his contempt for status symbols, products acquired not so much for their functional benefits for the owners but because they are believed to impress others -friends, family, and business associates. Mike Johnson was not impressed with people out to impress other people. Decades ago, before you could find anti-lock brakes on cars, Mike visited a friend in California who had just bought a Mercedes. Mike didn&#8217;t say anything, but his friend knew how Mike felt about such things. So, the friend is driving Mike down an empty highway at night, and the friend says, &#8220;Hey, Mike, watch this.&#8221; He takes both hands off the steering wheel and slams on the brakes, locking all four wheels. SCREEEEEEEEEEEEEEECH!!! The Mercedes skids to a stop in a perfectly straight line. The friend turns to Mike and says, &#8220;<em>That</em> is why I got a Mercedes.&#8221;</p>
<p>I can only assume Mike replied with, &#8220;OK! OK! I BELIEVE YOU! I BELIEVE YOU!&#8221;</p>
<p>There is a difference between usefulness and usability. The usefulness of web sites is the usefulness of their content, regardless of how easy it is to access it (the usable dimension). The usefulness of an application is the the degree it takes input and processes it into a correct and useful product for the users, regardless of how easy it is to provide the input, set the processing parameters, or read the output.</p>
<p>We can see the difference and importance of usefulness relative to usability in my experience with the web site of <a title="My Garmin Login" href="https://my.garmin.com/mygarmin/login.htm?service=https%3A%2F%2Fmy.garmin.com%2Fmygarmin%2Fcustomers%2FmyGarminHome.faces">Garmin</a> when I attempted to check on the status of a repair order I had with them. Garmin makes of aircraft navigation equipment, among other things. You would expect they would have a high appreciation of the importance of quality. However:</p>
<ul>
<li>After logging in to MyGarmin and clicking on &#8220;Repairs and Exchanges&#8221; I was confronted with the message, &#8220;You currently do not have any devices that have been exchanged for repair,&#8221; which sounds like they never received my returned device, but what they really mean is they <em>don&#8217;t currently have</em> my device. At the very least, the message should&#8217;ve been &#8220;<em>We</em> currently do not have any devices that you have sent in for repair&#8221; (emphasis added for illustrative purposes).  <strong>Design Weakness 1</strong>: Confusing copy.</li>
<li>Fortunately, there was a place to enter the RMA number they gave me earlier to return the product, but that meant some shuffling through my digital papers to find the RMA number. <strong>Design </strong><strong>Weakness</strong><strong> 2</strong>: Forcing the user to use memory instead of recognition. It&#8217;s not like Garmin doesn&#8217;t know my RMA numbers, and it&#8217;s not like there is a security concern with listing them with a date and letting me choose -I&#8217;m logged into my Garmin account, having given them my user name and password.</li>
<li>After submitting the RMA number, I was prompted to re-enter my login credentials. <strong>Design </strong><strong>Weakness</strong><strong> 3</strong>: Forcing the user the repeatedly enter the same data. Either that, or the flaw was timing out my session after only the few minutes it took me to retrieve the RMA number, time they should have allowed since they&#8217;re the ones that required the number.</li>
<li>Then I was again prompted for the RMA number. <strong>Design </strong><strong>Weakness</strong><strong> 4</strong>: See Design Weakness 3.</li>
<li>Then I got an error message, saying the RMA number should be digits only and no letters, even though I entered exactly the alphanumeric RMA number that Garmin itself had supplied me. <strong>Design </strong><strong>Weakness</strong><strong> 5</strong>: Intolerant entry formats. <strong>Design </strong><strong>Weakness</strong><strong> 6</strong>: Inconsistent formats used throughout the system.</li>
<li>I stripped the letters from the RMA number and re-entered it, and finally got a page saying the device had been repaired and shipped Thursday. Now, a high quality site would have simply provided that information when I clicked &#8220;Repairs and Exchanges&#8221; back in the beginning -they could&#8217;ve listed the status of the most recent repair orders, which I&#8217;d bet would fulfill the goals of the vast majority of the users.  <strong>Design </strong><strong>Weakness</strong><strong> 7</strong>: Requiring unnecessary steps.</li>
</ul>
<p>All the design weaknesses above are usability weaknesses, and in aggregate they indicate a low quality web site. However, there was also a usefulness design weakness in that they didn&#8217;t actually provide me with the information I really needed. Certainly it is somewhat useful to know that they received and repaired the device and shipped it back to me, but what I really needed to know at that point is <em>when will I get it back</em>. They had neglected to say how it was shipped or to provide me with a tracking number. If they shipped it by first class mail, I could see it in a couple days. Shipping by UPS ground could mean a week. Shipping by continental drift&#8230;.</p>
<p>Even if they had fixed all the usability problems in Design Weakness 1 though 7, I still would have had at best a mediocre user experience because of low usefulness. It doesn&#8217;t matter how easy you make it to get the content on your web site if it isn&#8217;t the right content. Failure to correctly determine the content your users need will result in low quality.</p>
<p>Enjoy your flight.</p>
<p>We can also see the importance of usefulness in the success of other websites despite usability problems. Craig’s list,  <a title="NYT- EBay Moves to Recharge Its Auctions" href="http://www.nytimes.com/2007/06/18/technology/18ecom.html?ei=5090&amp;en=3eb260818bb02f33&amp;ex=1339819200&amp;adxnnl=1&amp;partner=rssuserland&amp;emc=rss&amp;adxnnlx=1317683763-bR7COSR9WBdAWTIRzXkVaQ">eBay</a>, Flickr, <a title="Raiz - On Wikipedias design (or lack thereof)" href="http://www.raizlabs.com/blog/?p=236">Wikipedia</a>, and <a title="Bokardo - What if YouTube was simply lucky?" href="http://bokardo.com/archives/what-if-youtube-was-simply-lucky/">YouTube</a> all have or have had usability and other design problems. Yet each dominates their respective domains by being more useful than their competition. This wasn&#8217;t so much due to deliberate design as an artifact of having the most users. With user-supplied content, the <a title="Wikipedia - Network effect" href="http://en.wikipedia.org/wiki/Network_effect">network effect</a> increases a site&#8217;s usefulness. If you&#8217;re looking to buy or sell something, it&#8217;s most useful to go to the site with the most sellers and buyers. If you want photos or videos, it&#8217;s most useful to look where there are the most photos and videos. The success of these sites doesn&#8217;t mean that usability or other dimensions of the user experience don&#8217;t matter. They merely mean that users will suffer through something of questionable design if the product or service provides something that is sufficiently useful.</p>
<p>Related to usefulness and usability is versatility, or the capacity of the product to remain useful in a variety of environmental or user conditions. A Gortex jacket, for example, that keeps the wearer comfortable in wet and dry conditions is more versatile, and therefore better quality. A chair with adjustments to best support a range of sitter physiques is more versatile, and therefore better quality (provided the adjustments are usable so more than just high-end sitters take advantage of them). High-quality web sites and applications maintain their usefulness for a range of users and environments too. High quality mobile apps choose graphic codes that are still distinguishable on devices used in bright sunlight, for example. High-quality photo manipulation software has features useful to both amateur and professional photographers.</p>
<h3>Desirability</h3>
<p>Desirability also represents the benefits a product provides, but while usefulness comprise the extrinsic benefits, desirability comprise the intrinsic benefits. To be useful, a product has to be useful <em>for</em> something else. That is, it&#8217;s function is to be used to achieve some goal or state in the world outside of the product. An air conditioner functions to chill and dehumidify the ambient air. An mp3 player functions to play music. Presumably achieving these states is emotionally fulfilling to the users, which is why they use the product.</p>
<p>In contrast, to be desirable, as defined here, the mere use or ownership of the product is directly emotionally fulfilling, regardless of any state of the external world. This includes the degree the product looks, sounds, and feels attractive, the degree it is fun to use, and the degree it reflects well symbolically and socially on the user (i.e., the degree it is a status symbol -the kind of things that Mike Johnson hates).</p>
<p>Generally usefulness is the degree the product fulfills its primary purpose, that it fulfills the function it was engineered to accomplished, while desirability is the degree the product fulfills its secondary collateral functions. However, usefulness is not necessarily the primary design challenge in all products. For consumer commodity products, the usefulness is a given, and desirability is the only way to increase benefits. For games and other forms of entertainment, the primary purpose is to directly elicit an emotional response from the user, and usefulness and desirability merge.</p>
<p>Desirability is handled primarily by the styling of the product, that is, by its appearance: how it looks, sounds, and feels; the degree it is attractive or tasteful. This extends to more than just appearance of the product itself to anything associated with the product: it&#8217;s packaging, advertising, point of sale, even the people seen using it.</p>
<p>Being an emotional response, desirability is subjective, which implies that what is high quality to one person may be low quality to another. However, I think there are some characteristics of an aesthetic design that characterize high quality:</p>
<p><em>Well-formed</em>. High quality products follow the classic rules of attractiveness, without being cliche. Colors are chosen that look well together. Shapes are simple and elegant. Balance is appropriately applied. Alignment follows a neat grid. Height-to-width ratios are reasonable. Form is not distorted to shock, disorient, or depress the user. A quality product implies a <em>positive</em> user experience, which implies the aesthetics should primarily elicit positive emotions. We often associate quality with a quiet elegant visual style. A calming response is a positive emotion, so this approach is a proven winner. However, it is not strictly necessary to be quiet to be high quality. High quality can be bold. Excitement and passion are positive emotions too. The trick is to be bold without being gaudy.</p>
<p><em>Integrated</em>. Aesthetic elements should be built into the product, not tacked on as an afterthought. They should be aesthetically consistent with each other. A poor quality web site, for example, will be peppered with clip art of various styles. A high quality site will show aesthetic integrity. A poor quality app will slap on badges, puzzles, cute graphics, and other gimmicks to try to be fun.  A high quality app will richly represent the domain, being fun by <a title="Zusch Login - Professor Q Bert" href="../../?p=134">emphasizing what is fun about the domain</a>. A quality product should not be an aesthetic experiment, a creation the designer glued up from disparate parts and threw to the consumers to see what happens. While that may win design awards, for quality products, all the experimenting should be done before its unleashed on the public. The designer should know exactly what impact to expect.</p>
<p><em>Purposeful</em>. The choices in aesthetic design should be selected with a reason -the aesthetic elements must serve a purpose. The purpose may be to enhance usability or usefulness, but it can also be a purely aesthetic purpose -the choice may be used to communicate something on an emotional level. For example, you can make a control stand out by using bold print or bright red font. From a usability perspective, both can work. However, each has a different aesthetic experience due to different associations the users have with boldness and redness. In a high quality product you deliberately choose the kind of experience to provide. Do you want give your users a newspaper headline experience or a panic button experience? A poor quality app, aesthetic elements are chosen haphazardly with little thought other than it looks nice. Designers blindly follow fashion, or apply a new technology <a title="Zusch Login - Life, the User Interface, and Everything" href="../../?p=56">just because it&#8217;s new</a>, or because that&#8217;s the only thing the designer knows how to do.</p>
<p><em>Honest</em>. The <a title="Zusch Login - A Man of Wealth and Taste" href="../../?p=149">aesthetic design should be consistent</a> with the other dimensions of the user experience. High-quality mountain climbing carabiners are usable, useful, and reliable and should also <em>appear</em> usable, useful, and reliable: The gate should be visibly knurled assuring ease of operation with cold or gloved fingers. It should feel light but rigid in the hand consistent with taking life-depending loads while not weighing the user down. It should snap unambiguously shut indicating a high probability of working in remote regions.</p>
<p>When products cannot meet a certain dimension of quality in some way, they should appear to not meet it: a delicate china cup should look and feel delicate. Likewise for high quality apps and web sites. If your interface looks simple, then the UI better be simple to operate. If your app is powerful, then it should look it.</p>
<h3>Reliability</h3>
<p>A reliable product is one with a high probability of working in operational situations. An app that crashes or exhibits bugs is low quality. A web site with some incorrect information or some broken links is low quality (in this way, credibility is rolled into reliability). High quality apps and sites work.  The cost of low reliability to the user is greater than the sum of the individual problems it creates. A low probability of working harms the user experience even when everything goes well. A history of low reliability can instill dread in the user, a fear that a failure may occur any time, making a negative emotional experience. Even when the low reliability is predictable, the experience is compromised. Usability is reduced as <a title="Zusch Login - Designed to Fail" href="../../?p=48">users have to perform work-arounds</a> to avoid failures, resulting in greater effort, time, or a compromised outcome. They may even avoid using the product at all, reducing usefulness too. How useful is a luxury car, no matter how good the ride, if it never leaves the garage because it might break?</p>
<p>Reliability brings us back to the original intent of the industrial engineering definition of quality, namely, being without defects. A defect in this case is not merely failing to match a spec sheet or requirement, but an aspect of a specific product that keeps it from performing its useful function at a consistently high level. It doesn&#8217;t matter what&#8217;s on the spec sheet really. What matters is what actually happens in the operational environment and whether the product continues to perform. A suitcase whose handle breaks off with normal use is low quality regardless of the design load given in the requirements. Likewise, an app that spits out useless results under certain normal conditions is low quality no matter how much the code is proven &#8220;correct.&#8221;</p>
<p>But I&#8217;m defining reliability, and by extension, quality, to be broader than just an absence of defects. High quality products have, not only a high probability of working when new, but of continuing to work over many operations and a long period of time -the product should be durable. A quality laundry basket should last a long time before wearing out and breaking, for example. The useful performance of a quality database app should not deteriorate as records are added. The content of a quality web site should be regularly reviewed and updated to maintain accuracy. A quality product consistently works now and in the future.</p>
<p>I&#8217;m also expanding the definition of reliability to include more than reliable usefulness. In this case, by &#8220;works,&#8221; I mean maintains all of the other three dimensions of the user experience -usable and desirable, as well as useful. In the case of usability, consider Design Weakness 3 in the Garmin example above. I&#8217;m not sure why I was prompted to login again, but I&#8217;m guessing it doesn&#8217;t happen to everyone all the time. It was a case of episodic usability failure; the site exhibited unreliable usability.</p>
<p>Desirability likewise can be reliable or not, especially when one considers durability. A low quality wristwatch will acquire a scratched crystal and chipped paint with use and age, detracting from the aesthetic pleasure it provides. A high quality watch maintains its attractive appearance, or, at least, acquires an attractive patina. Likewise, a high quality web site will have a style that doesn&#8217;t get old, and doesn&#8217;t go out of fashion.</p>
<h3>Quality versus Apparent Quality</h3>
<p>There is a distinction between true quality and apparent quality, the latter being the quality of a product as perceived by the user. Such perceptions may be based on superficial assessment of the known attributes of the product. For user experience, true quality is more important than apparent quality. Users&#8217; true experience matters more to them than the experience they think they had. That makes more sense than it sounds. Consider an extreme case of a low quality carabiner that&#8217;s perceived as high quality. Sure, the rock climber was feeling mighty happy to hang it on his harness as he approaches El Capitan. But when the carabiner fails spectacularly 400 feet up, one can rest assure that the climber&#8217;s total experience for the day is profoundly negative, granted the negative part is also relatively brief.</p>
<p>This is the issue I have with credibility as the term is applied to web sites. The term means the site is <em>perceived</em> to have reliable information. Credibility is an important benefit to the site owner, but not necessarily to the user. What&#8217;s going to maximize a positive user experience is for the site to <a title="UXMatters - Three Reasons Why Persuasive Design Isn’t Enough to Influence Change" href="http://www.uxmatters.com/mt/archives/2010/09/three-reasons-why-persuasive-design-isnt-enough-to-influence-change.php"><em>have</em> reliable information</a>. That&#8217;s going to help the users make the best decisions and plans that produce the best total experience for them. It&#8217;s about being trust<em>worthy</em> not <em>trusted</em>. If your site has reliable information, then you certainly should make it look like it has reliable information -that&#8217;s part of honest desirability. But a site that steers users the wrong way but seems right is worse that a site that acknowledges the unreliability of its information.</p>
<p>I&#8217;ve already mentioned that consumers tend to assume that higher price products are higher quality because indeed high quality products do tend to cost more to produce, for reasons, I&#8217;m still, at length, getting to. Material composition is another attribute that consumers use to judge quality. High quality materials are often necessary to make a high quality product. Gortex makes motorcycle riding suit wind and water resistant while still being breathable, unlike the urethane-coated nylon suits sold before the advent of Gortex. Full-grain leather is unmatched for abrasion protection, plus it&#8217;s comfortable and durable, so that is an alternative sign of a high quality motorcycle suit. Likewise, you would not expect a high quality app to emerge from a buggy, limited, and all-around low quality API library.</p>
<p>However given that quality actually means user experience, quality materials are only a means to an end. For true high quality, &#8220;quality&#8221; materials are only relevant if they provide an enhanced user experience. Quality is enhanced <em>any</em> way you can make a motorcycle suit wind, water, and abrasion resistant, breathable, and durable, no matter what materials or manufacturing methods you use. Marketers may attempt to boost apparent quality by referring to <a title="Wikipedia - Corinthian leather -yes, it's actually in Wikipedia" href="http://en.wikipedia.org/wiki/Corinthian_leather">Corinthian leather</a> seats, whatever the hell that is, but the function of a seat is to provide a comfortable place to sit. What really matters how it feels. Is it properly shaped? Is it too hot? Too cold? Does it stick to you? Does it look and feel good? How will it last?</p>
<p>Apparent quality can also be influenced by perceived engineering trade-offs. From experience, consumers notice that excellence in one dimension of user experience tends to imply a deficit in another. Something that performs highly on an aspect of usefulness may be expected to be difficult to operate, lack versatility, require finicky maintenance, have an unpleasing utilitarian appearance, or be prone to break down. Sometimes this is true, because engineering trade-offs are real. Think race cars. Think F-117 &#8220;stealth fighter,&#8221; a warplane with proven high usefulness but so ugly, it doesn&#8217;t so much fly as gets repelled by the ground in disgust. The F-117 also requires a massive crew of specially trained technicians to maintain it and keep it useful.</p>
<p><img class="alignnone" title="Angular pointy slab-slided F-117 (USAF photo by SrA Brian Ferguson)" src="/content/blogimages/quality/F117TO-HollomanNMBrianFergusonUSAF.jpg" alt="" width="480" height="443" /></p>
<p>But for most consumer products, high performance on all dimensions of quality are achievable, yet some people still apply the same rule of thumb. They assume that high usability implies a <a title="Akkana - Linus on Gnome Usability" href="http://www.shallowsky.com/blog/linux/linus-on-gnome.html">dumbed-down low capability product</a> of questionable usefulness. Or they believe there is a zero-sum trade-off between an exciting <a title="Digital Web - The End of Usability Culture" href="http://www.digital-web.com/articles/end_of_usability_culture/">attractive appearance and usability</a>. In the latter half of the 1980s, IBM successfully marketed its crude PC against the revolutionary Apple Macintosh because consumers believed that something as nice-looking and easy-to-use as the Mac <a title="Leigh Kimmel - Apple Computer, Inc.: A History" href="http://webspace.webring.com/people/il/leighkimmel/applehistory.html">couldn&#8217;t possibly be a useful machine</a>, when in fact, the Mac was more useful. In actual design, what&#8217;s usable and useful for novices is usually also usable or useful for experts, or, at least, they are <a title="Zusch Login - What Have You Done for Your Power Users Lately?" href="../../?p=14">not antagonistic</a>. Usually <a title="Zusch Login - Beauty and the Beast" href="../../?p=45">beautiful form evolves from excellent function</a>. Think SR-71 Blackbird, rather than F-117.</p>
<p><img class="alignnone" title="Smooth sleek lines of a YA-12 (little brother to SR-71)" src="/content/blogimages/quality/YA12-MobileAL199909mkz526635w2.jpg" alt="" width="480" height="503" /></p>
<p>Whatever the trade-offs, except for some special-purpose niche products, the best user experience and thus the best quality is achieved by balancing all the dimensions. Ultimately if a product gives up too much on some dimensions for the sake of others, it&#8217;s no longer high quality at all.</p>
<h3>Quality and Price</h3>
<p>If you seek to produce high-quality products on all the dimensions of the user experience, there is one trade-off that is hard to avoid, and that&#8217;s price. It&#8217;s not impossible to have something cheap that&#8217;s also high quality, and certainly there are many expensive things that are in fact mediocre or even low quality. However, on average, it takes resources and time to make something that is highly usable, useful, desirable, <em>and</em> reliable. That means high development and production costs.</p>
<p>Achieving high quality is simple. Average-quality products have just the average attention to performance. To achieve high quality, you have to do more. You attend to details and accept only excellence on all dimensions of the user experience. You don&#8217;t release the product until analysis, inspection, and testing confirms it.</p>
<p>It means taking the time and effort to study, design, and develop cascade menus which <a title="PC Mag - AJAX and the Road to Bad Web Sites" href="http://www.pcmag.com/article2/0,2817,2193064,00.asp#fbid=4Bh9zsN7Wj8">respond well to diagonal mouse motion</a> so it&#8217;s slightly easier to pick a menu item with a single smooth slew. It means you fuss with the parameters for response to finger swipes until the scrolling and &#8220;bounce&#8221; look and feel natural. It means working out how to include <a title="Wikipedia - Side Tone" href="http://en.wikipedia.org/wiki/Side_tone">side tone</a> in your cell phone so users feel like they&#8217;re having a normal conversation, not shouting at a tinny little device. You check and edit and recheck your web site&#8217;s content for alignment, visual consistency, smooth transitions, legibility, spelling, grammar, clarity, and correctness. It&#8217;s the kind of work that has given <a title="Zusch Login - Apple: I Call BS" href="../../?p=43">Apple its reputation for quality</a> products.</p>
<p>An ordinary user experience is relatively easy to achieve -everyone knows how to do it, and because there is a large market for, there are plenty of resources available to get you there, so it doesn&#8217;t take too much work. For high quality, you make the extra effort to polish the product, to get it beyond the ordinary. All this extra effort costs more, and the incremental cost increases the further you get from the ordinary, the more you get beyond what&#8217;s widely known and easily available. It means spending $10 per production unit to make a $100 product just 1% better than a $90 product, but you do it anyway.</p>
<p>Because of the potential for high costs and therefore high price, high quality products don&#8217;t make sense for every business. Perhaps it makes more sense for you to pursue high value for your users, which is simply quality divided by price (this is different than the kind of value for the client that Morville is talking about). If you can find a way to deliver ordinary quality at a lower price, you&#8217;re also doing your users a service and you should find lots of buyers. Everyone likes a good value, but not everyone is willing to pay the price for high quality -there&#8217;s other things they want to spend their money on. Before you commit yourself to high-quality products, look into what you can achieve for the price your users can pay.</p>
<h3>Summary Checklist</h3>
<h4>Problem: Building all-around high-quality products</h4>
<p><strong>Potential Solution</strong>: Design and build to create the most positive total user experience. Apply additional time, effort, and money to achieve extraordinary levels of:</p>
<ul>
<li>Usability -the ease of use of the product.</li>
<li>Usefulness -the capability of the product to fulfill extrinsic user needs and goals.</li>
<li>Desirability -the intrinsic attractiveness of the product.</li>
<li>Reliability -the chance the product remains consistently usable, useful, and desirable now and in the future.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=204</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Breaking the Color Code</title>
		<link>http://www.zuschlogin.com/?p=194</link>
		<comments>http://www.zuschlogin.com/?p=194#comments</comments>
		<pubDate>Tue, 07 Jun 2011 23:24:16 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[Basics]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=194</guid>
		<description><![CDATA[Effectively using color to represent data.
A continuation of Putting the G in your GUI.
The primary reason for including colors in your UI can be understood by the logical synthesis of two basic principles:

Colors are pretty.
Users like pretty.

But what about the usability side of UX? Can colors be used for more than aesthetic reasons? Do they [...]]]></description>
			<content:encoded><![CDATA[<h3>Effectively using color to represent data.</h3>
<p>A continuation of <a title="Zusch Login - Putting the G into GUI" href="../../?p=51">Putting the G in your GUI</a>.</p>
<p>The primary reason for including colors in your UI can be understood by the logical synthesis of two basic principles:</p>
<ul>
<li>Colors are pretty.</li>
<li>Users like pretty.</li>
</ul>
<p>But what about the usability side of UX? Can colors be used for more than aesthetic reasons? Do they improve user performance of a task? Well, usually not. Various studies going back to old character-cell displays when color was first introduced generally fail to find an advantage for color. This led me in the days of DOS to purchase a monochrome amber monitor for my first computer, while my coworkers were investing in more expensive sixteen-color VGA units. Yeah, nice blue background you got there for Wordperfect, dude, but does underlined text actually appear underlined? Or does bold look bold. Hmph!</p>
<p>It&#8217;s pretty much the same for the web. Despite an increase in the number of colors we can display by several orders of magnitude, the way colors are typically used does little to improve performance. Coloring your menu items, headers, pictures, and different sections of content generally isn&#8217;t going to make content easier to find and see than a black-and-white version of the same. Usually you can group, emphasize, and distinguish content just as well with spacing, lines, and font size, style, and weight as with color. You need to color your links so users will recognize them as links, of course, but only because we&#8217;ve so successfully set that expectation. If the web from the start used a non-hue convention to distinguish links (like an icon or a gray background), I expect performance would be the same, maybe even better. Users often think that color improves their performance, but it&#8217;s all in their mind, you know -a halo effect of the more pleasant experience that color brings. For most cases, designers are concerned with not <em>degrading</em> user performance when introducing color for aesthetic reasons, rather than enhancing performance with color.</p>
<h3>Colors Use that Improves Performance</h3>
<p>However, there is one area where color has the potential of enhancing user performance, and that&#8217;s the use of color coding, where color is a <a title="Zusch Login - Putting the G into GUI" href="../../?p=51">graphic dimension</a> used to represent an attribute value of a data object. By color, in this case, I specifically mean hue, but saturation and brightness are also typically varied in color codes, especially the latter for accessibility reasons. Color makes things look distinct. Of all the graphic dimensions, only position and maybe shape rival color in making things look different for most practical purposes. This makes color coding helpful for the following user tasks, ranked in order of suitability:</p>
<ul>
<li>Pattern recognition.</li>
<li>Visual search.</li>
<li>Value Identification.</li>
</ul>
<p>Often the same display needs to support all three tasks.</p>
<p>To see how color can help with each of these tasks, consider the following symbol set for the icons or <a title="Zusch Login - Object Control" href="../../?p=22">object controls</a> used to display fanciful naval assets on a tactical display. We&#8217;re using shape coding to represent the class of the object (type of naval asset, in this case), which is often the most sensible thing to do.</p>
<table style="text-align: left; width: 479px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td>Symbol</td>
<td>Class</td>
<td>Abbrev.</td>
</tr>
<tr>
<td><img class="alignnone" title="Eyes" src="/content/blogimages/color/MENE.gif" alt="" width="18" height="16" /></td>
<td>Main Echelon for Naval Engagement</td>
<td>MENE</td>
</tr>
<tr>
<td><img class="alignnone" title="Top hat" src="/content/blogimages/color/BONCR.gif" alt="" width="18" height="16" /></td>
<td>Ballistic Operations Naval Combat Regiment</td>
<td>BONCR</td>
</tr>
<tr>
<td><img class="alignnone" title="Pac-man" src="/content/blogimages/color/TURC.gif" alt="" width="18" height="16" /></td>
<td>Tactical Unit for Reconnaissance and Combat</td>
<td>TURC</td>
</tr>
<tr>
<td><img class="alignnone" title="Button" src="/content/blogimages/color/CLOUN.gif" alt="" width="18" height="16" /></td>
<td>Combat Long-range Operations Unit &#8211; Naval</td>
<td>CLOUN</td>
</tr>
<tr>
<td><img class="alignnone" title="Dart" src="/content/blogimages/color/GLUV.gif" alt="" width="18" height="16" /></td>
<td>Ground-support Levitating Unmanned Vehicle</td>
<td>GLUV</td>
</tr>
<tr>
<td><img class="alignnone" title="Periscope" src="/content/blogimages/color/SUB.gif" alt="" width="18" height="16" /></td>
<td>Submarine</td>
<td>SUB</td>
</tr>
</tbody>
</table>
<p>With shape used to represent the class of the asset, we&#8217;ll use color to represent it&#8217;s current function:</p>
<table style="text-align: left; width: 479px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td>Color</td>
<td>Name</td>
<td>Function</td>
</tr>
<tr>
<td><img class="alignnone" title="Color block" src="/content/blogimages/color/Red.gif" alt="" width="40" height="20" /></td>
<td>Red</td>
<td>Offense</td>
</tr>
<tr>
<td><img class="alignnone" title="Color block" src="/content/blogimages/color/White.gif" alt="" width="40" height="20" /></td>
<td>White</td>
<td>Force Protection</td>
</tr>
<tr>
<td><img class="alignnone" title="Color block" src="/content/blogimages/color/Magenta.gif" alt="" width="40" height="20" /></td>
<td>Magenta</td>
<td>Intelligence</td>
</tr>
<tr>
<td><img class="alignnone" title="Color block" src="/content/blogimages/color/Blue.gif" alt="" width="40" height="20" /></td>
<td>Blue</td>
<td>Command and Control</td>
</tr>
<tr>
<td><img class="alignnone" title="Color block" src="/content/blogimages/color/Yellow.gif" alt="" width="40" height="20" /></td>
<td>Yellow</td>
<td>Special Forces</td>
</tr>
<tr>
<td><img class="alignnone" title="Color block" src="/content/blogimages/color/Green.gif" alt="" width="40" height="20" /></td>
<td>Green</td>
<td>Logistics</td>
</tr>
</tbody>
</table>
<p>The example display below lists the assets, with the icons using both the shape and color codes. The table is sorted by class of asset, and then by identifier.</p>
<p><img class="alignnone" title="Assets list with icons color coded." src="/content/blogimages/color/AssestTable.gif" alt="" width="460" height="825" /></p>
<h4>Pattern Recognition</h4>
<p>Pattern recognition is the spontaneous perception of relations between attributes. In the window above, for example, a casual scan of the table reveals that command and control is primarily the responsibility of the MENEs and vice versa. A solid block of blue icons in the &#8220;MENE&#8221; part of the table, and a lack of blue elsewhere makes this apparent. Color creates a strong sense of grouping which emphasizes such patterns more than other graphic attributes. We could have tried representing the assets&#8217; functions with a different graphic attribute than color. For accessibility reasons, the asset functions are redundantly represented by the shape of the outline of each icon, but this just isn&#8217;t as good as color. It&#8217;s unlikely the pattern would jump out as well if color wasn&#8217;t also used.</p>
<p>Of course, with a table layout, the user could sort the data on Function then scan the Class attribute and see that nearly all command and control is by MENEs, but the user has to think to do that. With color coding, the pattern is detectable without the user interactively looking for it. Besides, sometimes sorting isn&#8217;t an option, such as in this graphic layout below, a map showing the locations of the assets out at sea.</p>
<p><img class="alignnone" title="Tactical map of assets deployed over the sea." src="/content/blogimages/color/Tactical1.gif" alt="" width="480" height="500" /></p>
<p>Here we see another pattern emerging: the command and control assets are all grouped in the central area surrounded by a ring of force protection units; offensive units tend to be more to the east. The separating effects of color are so strong, they in effect make overlapping data appear to have layers, with all things of the same color having their own layer. This is especially helpful when users need to attend to one pattern among overlapping patterns. Users can mentally filter out all but the color of interest to see the relations.</p>
<p>Color coding improves user performance on pattern recognition as long as meaningful patterns are associated with specific values coded by the colors. However, it can work against the users when the patterns depend on something else. For example it is probably less apparent that the BONCRs, whatever their function, are clustered in the upper right. The eye tends to see the different colored BONCRS as separate even though their icons are the same shape.</p>
<p>Sometimes the users can become so focused on the pattern among objects of one color that they fail to see its relation to objects of another color even when they&#8217;re looking right at it. They also may come to over-rely on color and fail to notice other information, such as text fields, that may qualify the interpretation of the color code. For example, a glance at the map may imply a pretty uniform distribution of logistics assets, but closer inspection of the lower left shows logistics being handled mostly by CLOUNs. I don&#8217;t mean to insult anyone, but those CLOUNs have no business doing logistics. Their transports are too small, for one thing.</p>
<p>The separation tendency of color limits how much you can use it. For pattern recognition purposes, you generally have to limit color coding to a single attribute. It&#8217;s probably not effective, for example, to color code the asset&#8217;s function in one part of the object image, and color code its readiness in another part. This can make the object no longer appear as a cohesive whole. Furthermore, users will tend to see the same colors for different attributes as representing the same thing, disrupting the users&#8217; ability to see patterns in a single attribute.</p>
<p>Putting it together, and it&#8217;s apparent that with the great power of color comes great responsibility. You probably should only use color coding for an attribute whose values are reliably known and are highly task relevant.</p>
<h4>Visual Search</h4>
<p>Looking at the map above, find the asset responsible for Special Forces. You probably found it right away, likely faster than if I were to ask you to find the GLUV (there&#8217;s only one, not a pair), even though I made an effort to make each icon visually distinct. You&#8217;d also probably be faster and more accurate at counting the number of assets responsible for intelligence versus counting the number of TURCs.</p>
<p>Visual search tasks like looking for Special Forces and intelligence assets leverages the capacity of colors to visually separate objects, just like pattern recognition. However, visual search is a different task than pattern recognition. With pattern recognition, the user does a general scan and notices that certain objects in certain positions tend to have certain relative attribute values. In visual search, the user is looking for a specific attribute value.</p>
<p>Not appreciating the difference between pattern recognition and visual search can lead to a poor use of color, and that&#8217;s relying on <em>changes</em> in color to be meaningful to users. Users can easily scan a display and find a specific color, but unless they happen to be looking at just the right time in the right place, they will tend to miss something changing color. This is especially the case if the color the object assumes is not unique on the display -it&#8217;s not enough to constitute a major change in the general pattern. For example, if a couple BONCRs shift from a logistics function to offensive, don&#8217;t count on the user noticing right away. There&#8217;re lots of red offensive assets and a couple more is not going to pop out.</p>
<p>If a change in an attribute value requires prompt user response, then instead use some sort of <em>repeating</em> change or motion (<a title="Zusch Login - Putting the G into GUI" href="../../?p=51">time coding</a>), like blinking or other animation. Humans are great at detecting cyclic variations in brightness in the peripheral vision, so such apparent motion will tend to get attention even at locations the user isn&#8217;t attending to. Human color discrimination, in contrast, is poor in the periphery, so hue changes alone are not so good even if they&#8217;re cycling. Of course, constant motion can draw <em>too</em> much attention, becoming a distraction, so you want to provide users with the ability to acknowledge and suppress the motion. At that point, the user knows the change has occurred, so there is no need for continued motion. Instead, however, the user may need to visually re-acquire the changed object, but now the task is visual search, which color coding is good for.</p>
<h4>Value Identification</h4>
<p>What is the function of the GLUV (in the center-right of the map above)? This is value identification, where the user is looking at an object image and must determine the value of an attribute, a task color can be good for because of the relatively wide number of colors we can recognize and distinguish. Text is generally the best for value identification -if users need to tell the function of the GLUV let them just read &#8220;Offense&#8221; from a Function text box. However, adding text attributes to your object image can be cluttering, and if you have graphic representations for other reasons, they may already be sufficient for value identification.</p>
<p>Among graphic dimensions, shape is generally best for identifying categorical data -users can recognize a remarkable number of different shapes, especially if the shapes have some sort of visual association with the concept they represent (e.g., the use of a stylized periscope to represent a submarine in the symbol set we&#8217;re using here). However, if you&#8217;re already using shape for one attribute (e.g., object class), color is a good choice for second attribute (e.g., function).</p>
<h3>Absolute versus Relative Values</h3>
<p>Consider the following graphic pane displaying seawater salinity represented with shades of blue and green, which is relevant for controlling the depth of submarines:</p>
<p><img class="alignnone" title="legend" src="/content/blogimages/color/SalinityScaleCont.jpg" alt="" width="480" height="73" /></p>
<p><img class="alignnone" title="Continuous scale from 3.0 to 4.0, or dark blue through medium green, include submarine." src="/content/blogimages/color/SalinityCSub.jpg" alt="" width="480" height="480" /></p>
<p>And consider these two questions:</p>
<ul>
<li>How is a salinity of 3.4 versus 3.8 distributed over the sea?</li>
<li>How are high versus low salinity distributed over the sea?</li>
</ul>
<p>These are both pattern-recognition tasks, but the first concerns the <em>absolute</em> values of the attribute represented by color, while the second concerns the <em>relative</em> values. Visual search likewise can be for absolute or relative values:</p>
<ul>
<li>Where is salinity of 3.2 found?</li>
<li>Where are there &#8220;holes&#8221; in the salinity?</li>
</ul>
<p>And value identification can also be absolute or relative:</p>
<ul>
<li>What is the salinity of the water where the submarine is now?</li>
<li>Is the salinity more or less than that found immediately south of the submarine?</li>
</ul>
<p>Graphic dimensions in general often are best for tasks concerning relative values. Humans can distinguish minute differences in size, orientation, shape, and color as long as the different representations are right next to each other. You can represent thousands of different values and your users will see the differences.</p>
<p>Graphic dimensions in general and color in particular are generally much less effective for tasks concerning absolute values. Position, size, and orientation may be used to read fairly precise absolute values for numeric or ordinal data, but only if you include an integrated reference (e.g., labeled gradation lines or a coordinate grid) so the task is really about relative comparisons. Otherwise you probably wouldn&#8217;t want to try to represent more than three or four values with these graphic dimensions if the user needs to identify the values reliably. You can have small, medium, and large, you can have horizontal, vertical, and diagonal, but any more is pushing it. Likewise with density coding. Crispness and the time dimensions? Probably best to keep each of them to binary attributes.</p>
<p>For reading absolute values without a reference, color is better than all other graphic dimensions except shape, but the number of color codes should still be far fewer than you can effectively have for reading relative values. A user&#8217;s ability to recognize a precise color when it appears in isolation is limited because <a title="Enders - Perception and the design of forms – Part 3: Colour" href="http://formulate.com.au/articles/padf-part3-colour/">the &#8220;same&#8221; color doesn&#8217;t always look the same</a>.</p>
<ul>
<li>Despite standards, different displays (e.g., monitors, mobile devices, printers) render colors differently from one another due to differences in their design. What looks like amber on one display may look more like light brown on another. As your users move among displays, the potential to confuse colors grows. The extreme case is when they print your beautiful multi-colored data on a black-and-white printer.</li>
<li>Even the same display will show different absolute colors under different conditions. Brightness settings, ambient light level and spectrum, display age, and viewing angle (for LCD displays) all affect the appearances of the colors. Is there a chance your users may be wearing sunglasses? What tint?</li>
<li>Different users see colors differently. There is a fair minority of people with various forms of <a title="UX Matters - Ensuring Accessibility for People With Color-Deficient Vision" href="http://www.uxmatters.com/mt/archives/2007/02/ensuring-accessibility-for-people-with-color-deficient-vision.php">color perception deficiencies</a>, which limits the differences they see among colors. A small minority of people are completely color blind, seeing only shades of brightness.</li>
<li>Colors make colors look different. There are <a title="UX Matters - Color Theory for Digital Displays: A Quick Reference" href="http://www.uxmatters.com/mt/archives/2006/01/color-theory-for-digital-displays-a-quick-reference-part-i.php">contrast effects</a> where the color next to another changes how it looks. For example looking at the salinity display above, is not apparent that the &#8220;knoll&#8221; in salinity in the extreme upper left actually is the exact same salinity level as the &#8220;hole&#8221; in the lower right.</li>
</ul>
<p>Put it together, and you should have no more than six color codes for reading absolute values.</p>
<p><img class="alignnone" title="Legend" src="/content/blogimages/color/SalinityScaleDiscrete.gif" alt="" width="480" height="73" /></p>
<p><img class="alignnone" title="Salinity map redone, with five discrete color codes." src="/content/blogimages/color/SalinityDSub.gif" alt="" width="480" height="500" /></p>
<p>Yes, so few colors limits the precision that of the display. Where once we represented the continuous range of salinity, now we&#8217;re only showing discrete ranges. However, your users are already limited in the precision they can identify absolute values. Showing greater precision is not going to change that.</p>
<p>Even then, you should generally include redundant non-color representations for accessibility and printing reasons. In the re-done salinity display above, for example, there is redundant shade coding in addition to hue, so that higher salinity levels appear brighter as well as greener. If your chosen colors represent some sort of scale, then the brightness values should be consistent with that scale. For example, if you have green-yellow-red as a scale of safety, make sure your green is lighter than your yellow (hint: try amber instead). Below I describe the formulas for calculating and comparing the brightness of colors.</p>
<p>Limiting the number of color codes does not eliminate the contrast effect. In the display above the upper left knoll looks lighter than the lower right hole. But with only five colors to choose from, users will likely recognize them as representing the same salinity. In an actual implementation, I might also show the salinity values of each region as text, perhaps on mouse-over to minimize clutter if other things are shown the on map.</p>
<p>You may be able to get away with more than six color codes if you provide a legend or key, like I&#8217;ve included in the salinity examples above. This is the color-equivalent of providing a reference marks for size, orientation, and position coding, changing an absolute-value task to a relative-value task. However, unlike a coordinate grid for position coding, the legend is not integrated with the colors on the display, so it doesn&#8217;t allow direct comparisons. For all graphic dimensions, the further the separation in time and space, the harder it is to make relative comparisons. A key won&#8217;t help color contrast issues, for example.</p>
<h3>Selecting Your Color Codes</h3>
<p>Having decided on the number of color codes to have, you now have to decide which colors to use. Typical digital displays can render over 16 million colors, but there are several considerations, some mutually contradictory, that constrain your choices.</p>
<h4>Contrast among Codes</h4>
<p>Obviously, your colors need to be distinguishable from each other. You want to avoid the difficulties MS Office 2007 presents its users with too little color difference between active and inactive title bars of the windows (click for full size).</p>
<p><a href="/content/blogimages/color/OfficeTitleBars.gif"><img class="alignnone" title="Comparison of Office title bars." src="/content/blogimages/color/OfficeTitleBarsCompare.gif" alt="" width="413" height="168" /></a></p>
<p>I don&#8217;t know about you, but unless I have two windows side by side, I can&#8217;t tell at a glance if a window is active or not.</p>
<p>Fortunately, you can estimate the perceptual differences between any two colors by converting the colors&#8217; RGB value to <a title="Wikipedia - CIE LUV" href="http://en.wikipedia.org/wiki/CIELUV">Luv coordinates</a>, a color space where the Euclidean differences between colors is proportional to human perceived differences.</p>
<p><img class="alignnone" title="Solid representing color space covered by Luv." src="/content/blogimages/color/LuvSpace.jpg" alt="" width="480" height="423" /></p>
<p>Follow these 5 easy steps, for which, as an example, we&#8217;ll perform on a lovely shade of carnation pink (#FF99CC, or 255, 153, 204):</p>
<p><img class="alignnone" title="Carnation pink" src="/content/blogimages/color/Carnation.gif" alt="" width="480" height="42" /></p>
<p>1. Convert your RGB values into &#8220;rgb&#8221; values using the formula x = (X/255)^2.2</p>
<p style="margin-left: 40px;">r =  (255/255)^2.2 = 1.0000</p>
<p style="margin-left: 40px;">g = (153/255)^2.2 = 0.3250</p>
<p style="margin-left: 40px;">b = (204/255)^2.2 = 0.6121</p>
<p>2. Matrix-multiply your rgb values by a constant matrix to convert them to XYZ color coordinates. As three formulas (rounded to four decimal places), it&#8217;s:</p>
<p style="margin-left: 40px;">X = 0.4124*r + 0.3576*g + 0.1805*b</p>
<p style="margin-left: 40px;">Y = 0.2126*r + 0.7151*g + 0.0721*b</p>
<p style="margin-left: 40px;">Z = 0.0193*r + 0.1192*g + 0.9505*b</p>
<p style="margin-left: 40px;">The Y dimension, incidentally, is the relative brightness value, which will come in handy later.</p>
<p style="margin-left: 40px;">So carnation pink is:</p>
<p style="margin-left: 40px;">X = 0.4124*1.000 + 0.3576*0.3250 + 0.1805*0.6055 = 0.6391</p>
<p style="margin-left: 40px;">Y = 0.2126*1.000 + 0.7151*0.3250 + 0.0721*0.6055 = 0.4892</p>
<p style="margin-left: 40px;">Z = 0.0193*1.000 + 0.1192*0.3250 + 0.9505*0.6055 =  0.6399</p>
<p>3. Calculate L, the gray-scale brightness level:</p>
<p style="margin-left: 40px;">IF Y/0.9999 &gt; 216/24389, L = (Y/0.9999)^(1/3) * 116 &#8211; 16</p>
<p style="margin-left: 40px;">ELSE, L =24389*Y/0.9999/27</p>
<p style="margin-left: 40px;">For carnation pink, 0.4892/0.9999 is more than 216/24389, so:</p>
<p style="margin-left: 40px;">L = (0.4892/0.9999)^1/3 * 116 &#8211; 16 = 75.41</p>
<p>4. Calculate u&#8217; and v&#8217; for the two hue dimensions:</p>
<p style="margin-left: 40px;">u&#8217; = 4 * X / (X + 15*Y + 3*Z)</p>
<p style="margin-left: 40px;">v&#8217; = 9 * Y / (X  + 15*Y + 3*Z)</p>
<p style="margin-left: 40px;">If X, Y, and Z are all 0, then set u&#8217; and v&#8217; to 0. For carnation pink:</p>
<p style="margin-left: 40px;">u&#8217; = 4 * 0.6391 / (0.6391 + 15 * 0.4892 + 3 * 0.6399) = 0.2583</p>
<p style="margin-left: 40px;">v&#8217; = 9 * 0.4892 / (0.6391 + 15 * 0.4892 + 3 * 0.6399) = 0.4449</p>
<p>5. Convert u&#8217; and v&#8217; into u and v coordinates.</p>
<p style="margin-left: 40px;">u = 13 * L * (u&#8217; &#8211; 0.1978)</p>
<p style="margin-left: 40px;">v = 13 * L * (v&#8217; &#8211; 0.4683)</p>
<p style="margin-left: 40px;">For carnation pink:</p>
<p style="margin-left: 40px;">u = 13 * 75.41 * (0.2583 &#8211; 0.1978) = 59.25</p>
<p style="margin-left: 40px;">v = 13 * 75.41 * (0.4449 &#8211; 0.4683) = -22.97</p>
<p>So carnation pink (#FF99CC) has Luv coordinates of 75.41, 59.25, and -22.97 (within rounding error). That&#8217;s only an approximation, of course, assuming a &#8220;standard&#8221; luminous digital display. Individual displays vary a little from the standard, and these numbers mean nothing if you&#8217;re dealing with a printer. But what do you expect from such a simple calculation?</p>
<p>To know how well carnation pink contrasts with say, deep orchid (#9933CC, or 153, 51, 204), get the Luv coordinates for deep orchid (which are 43.36, 30.74, and -95.69) and calculate the three-dimensional distance separating them:</p>
<p><img class="alignnone" title="Deep orchid." src="/content/blogimages/color/Orchid.gif" alt="" width="480" height="42" /></p>
<p style="margin-left: 40px;">Color Difference = sqrt[ (L1 - L2)^2 + (u1- u2)^2 + (v1 - v2)^2 ]</p>
<p>Or:</p>
<p style="margin-left: 40px;">Color Difference = sqrt[ (74.41 - 43.36)^2 + (59.25 - 30.74)^2 + (-22.97 - -95.69)^2 ] = 84.43</p>
<p>For comparison, the difference between black (#000000) and white (#FFFFFF) is 100, so you have quite good color contrast between carnation pink and deep orchid. You should also check the perceived brightness scale contrast, because in a lot of situations, brightness matters more in discriminating colors than hue (and I&#8217;m not just talking about users with color perception deficiencies). The two L values can be directly compared:</p>
<p style="margin-left: 40px;">Brightness Difference = L1 &#8211; L2</p>
<p style="margin-left: 40px;">Brightness Difference = 75.41 &#8211; 43.36 = 32.04</p>
<p>That&#8217;s barely adequate brightness contrast. However, if you want <em>really</em> bad, run the calculations on Office&#8217;s title bars, whose background colors average #DFE7EC and #DAECF8. The color difference is only 9 and brightness difference is essentially nil. No wonder I can&#8217;t recognize them.</p>
<p>Using the above process you can go through potential color candidates to select a set of codes that are reasonably distinct from each other. Do yourself a favor and put the formulas above in a spreadsheet to save yourself some time. Or <a title="Luv calculator tool (Excel)" href="/content/blogimages/color/LuvCalc&amp;Compare.xls">download mine</a>, putting in your RGB values in the framed shaded cells (no warranty expressed or implied, user assumes all risk, do not use while operating heavy machinery).</p>
<p>However, you don&#8217;t have to go through a whole lot of calculations to realize that high saturation colors are going to be more distinct from each other than low saturation colors, so maxing out at least one of the RGB values to FF is a good starting point for a color. Also keep in mind the following:</p>
<ul>
<li>Yellow and white are hard to discriminate since the human eye is maximally sensitive to yellow light (they have L&#8217;s 91 and 100 respectively), especially in low-contrast reading conditions (e.g., using a mobile device in sunlight). Avoid having both pure yellow and white as codes. Instead, you can make your white a pale blue, or make your yellow more of an orange or amber (like I did to code Special Forces), which will still contrast well with red, if you have that too.</li>
<li>Very pale blue and white are also hard to tell apart, so avoid having them both too.</li>
<li>Pure green (#00FF00) and pure cyan (#00FFFF) is another pair than can be easily confused at a glance. Give them a little extra space apart (e.g., #00FF00 and #00A0FF).</li>
<li>Brown and orange also don&#8217;t play well with each other on the same digital display. You may want to use lighter shades of brown for good contrast on a dark background, but tan is just low-saturation orange; they have the same hue and brightness, making them much alike. If you have lots of tan objects on your display, orange is not a good choice of indicating an alarm state.</li>
</ul>
<h4>Background Contrast</h4>
<p>Of course you need your color-coded symbols or icons to stand out against your background so your users can see and read them. Luv coordinates can also be used to determine foreground-background contrast, but brightness contrast (as represented by L or Y) is more important for foreground/background distinction. Thus, you generally want to go with pure white (#FFFFFF) or pure black (#000000) for a background to have maximum contrast with whatever colors you have for your symbols in the foreground.</p>
<p>As comparing L values will show you, if you&#8217;re using high-saturation colors to make them maximally distinguishable from each other, you&#8217;re usually going to get more contrast with a black background than a white one. However, white backgrounds can hide glare better and dark text on large white backgrounds is usually easier to read than light text on large black backgrounds, so if you&#8217;re displaying a lot of text in addition to symbols, you may want to work with a white background. Trying to compromise and use a medium gray background is not going to work.</p>
<p>L and Luv comparisons will also show you that some of your colors stand out more than others against a given background. That can be a good thing if the colors that stand out best are the more important ones to see. If not, then consider adjusting your color values so this is the case. For example, red contrasts relatively poorly against a black background. For coding alert states, you might want to go with orange. If you must use red, maybe you should use a white background, or you could outline the alert symbol in white, or use a red-and-white pattern to make it contrast more against a black background.</p>
<p>If you want to color code the <em>background</em> in addition to objects in the foreground, you&#8217;ve got a real challenge. Now the contrast of your foreground objects is going to depend on the background they happen to be on. Now you need background colors that are distinguishable from each other but still contrast well enough with all your foreground colors. Good luck with that. It&#8217;s pretty much impossible to get high contrast among a large range (over 3) of foreground colors, a large range of background colors, and between each foreground and background color. You must prioritize your contrasts:</p>
<ul>
<li>Most importantly, have good brightness contrast between each foreground/background pair of colors.</li>
<li>Secondly achieve good color contrast among your foreground colors.</li>
<li>Lastly maximize the color contrasts of your backgrounds.</li>
</ul>
<p>The brightness contrast ratio for all possible foreground/background combinations should be <a title="W3C - Constrast Minimum Standard" href="http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html">at least 3.0</a>. We use Y to calculate the ratio:</p>
<p style="margin-left: 40px;">Brightness Ratio = (Y1 + 0.05) / (Y2 + 0.05)</p>
<p style="margin-left: 40px;">Where Y1 is the larger Y of the two colors you&#8217;re comparing.</p>
<p>Background color contrast has lower priority than foregrounds because background codes tend to occupy relatively large areas on the screen, while foreground objects tend to be relatively small symbols or icons. Users can recognize and see differences in colors and brightness better when they occupy large areas. Save your vivid high-saturation colors for foreground objects. Use duller or paler colors for the background. This will not only optimize your user&#8217;s performance, it will also be aesthetically easier on the users&#8217; eyes. Big areas of vivid colors will just drive them bonkers. If you need reference marks or other details in the background (e.g., graticule, borders), try to keep them to shades of gray so they won&#8217;t complicate the perception of the colored objects on top.</p>
<p>If you&#8217;re still having trouble getting good foreground-background contrast for all your color codes, try outlining your foreground objects with a high contrast color like white or black regardless of their background. That&#8217;ll help. In the example below that combines color codes for salinity with those for asset functions, I went a step further and surrounded the symbols with a small area of black.</p>
<p><img class="alignnone" title="Tactical map overlaying assets on salinity" src="/content/blogimages/color/SalinityDTactical.gif" alt="" width="480" height="500" /></p>
<h4>Color Consistency</h4>
<p>Your color codes need to be <a title="Zusch Login - Achieving and Balancing Consistency in User Interface Design" href="../../?p=125">internally consistent</a> throughout your product, of course. That includes using the same mapping of colors to values between sessions -don&#8217;t re-scale the color codes because the current range of values has changed. You also want your colors to be consistent with your user&#8217;s <a title="UX Matters - Applying Color Theory to Digital Displays" href="http://www.uxmatters.com/mt/archives/2007/01/applying-color-theory-to-digital-displays.php">stereotypes from prior experiences</a>. This includes the colors used in similar products (e.g., if users are used to regarding gray to mean &#8220;disabled,&#8221; they may assume the same applies to your icons), and more general cultural meanings associated with various colors. Most people in western civilization associate blue with cold or water. Red means fire, stop, or danger. Be careful who you call dangerous. At the very least, you want to be sure your colors don&#8217;t strongly <em>contradict</em> user expectations. If Offense is your most &#8220;dangerous&#8221; function, then make it red. Red is probably not a good choice for Logistics. Your sea is better off blue than brown, although you could get away with a sea of green as long as you&#8217;re not also trying to represent botanically lush terrestrial regions.</p>
<p>Consistency with user color expectations is complicated by the fact that different users have different stereotypes depending on their experience. <a title="Information is Beautiful - Colors in Culture" href="http://www.informationisbeautiful.net/visualizations/colours-in-cultures/">Different cultures</a>, subcultures within a culture, and eras within a culture will have different meanings for different colors. Color associations may vary by occupation, subject domain, or user role. For example, lay people would likely associate darker shades of blue with deeper water than lighter shades. However, for sailors familiar with traditional nautical charts, the opposite is true -white represents the deepest water.</p>
<h4>Color Arbitrariness</h4>
<p>Except for some stereotypes, color codes are arbitrary, and learning color codes can constitute a substantial memory burden (which is another reason to have only a few color codes). This is especially the case for color coding numerical and ordinal data. Other than ranking green &#8211; yellow/orange &#8211; red as an ordinal scale of threat, people don&#8217;t have a natural ranking for colors. When orders are imposed on colors, they are not consistent across domains. <a title="Wikipedia - Electronic color code" href="http://en.wikipedia.org/wiki/Electronic_color_code">Electrical engineers</a> use a different order than <a title="Wikipedia - Washin-ryu Karate-Do (for example)" href="http://en.wikipedia.org/wiki/Washin_ryu">karate dojos</a>, for example. To someone at Microsoft, <a title="Chen - What do the colors in the elevation dialog mean?" href="http://blogs.msdn.com/oldnewthing/archive/2007/03/30/1991616.aspx">gray suggests greater risk than blue</a>, but I don&#8217;t know about anyone else.</p>
<p>However, this lack of consistent ranking only applies if you attempt to use nearly the entire spectrum. If you keep your color codes to a blend between two or three adjacent primary and secondary colors on the spectrum, people will see an order to it (although they don&#8217;t necessarily know which end is the &#8220;high&#8221; end). You can use Luv coordinates to make sure your colors are appropriately spaced on the scale they represent.</p>
<p>This is what I did for representing salinity, blending it from blue to green. Going through three adjacent colors (e.g., yellow-green-blue) is suitable when the middle of the scale represents a neutral or zero value (rather than simply &#8220;medium&#8221;), and also makes for more color contrast among the codes.</p>
<p>Of course, limiting your colors to a segment of the spectrum mean less color contrast among the codes than using the whole spectrum. However, if you also include changes in brightness like I have done to make it easier for your users, it may be adequate for background color coding, once again relying on the large areas the colors occupy. For foreground objects, you may want to use a different graphic dimension to represent ordinal and numeric data.</p>
<h4>Accessibility</h4>
<p>The best way to provide accessibility to users with color perception deficiencies is through some redundant representation in addition to hue. This includes:</p>
<ul>
<li> Ensuring your color choices are also well separated in brightness (L), while still all contrasting well with the background.</li>
<li>Additional graphic codes like shape or size, such as I&#8217;ve done with the shape of the symbol outlines.</li>
<li>Text representations of the attributes.</li>
</ul>
<p>Of course, presumably you chose color to represent an attribute precisely because of the unique advantages that color provides (e.g., for pattern recognition).</p>
<p>Thus, users who have to rely on the redundant representations will be at a disadvantage no matter what. For example, the brightness difference of the color codes I&#8217;ve chosen for these maps is as low as 6 -that&#8217;s a too small of a difference to see. Furthermore, the brightness differences may imply a ranking that does not accurately characterize the attribute values. There&#8217;s not much you can do about this if you&#8217;re using a large number of color codes.</p>
<p>However, if you have only a few color codes (say, three), it&#8217;s possible to select colors (and levels of brightness) that ameliorate the situation for most users with color perception deficiencies. There are various <a title="Jennifer Farley - Making Your Web Colors Visible For All – Five Color Accessibility Tools" href="http://blogs.sitepoint.com/color-accessibility-tools/">tools on-line for testing your colors</a>. A good place to start with the colors themselves is to stick to yellows and blues, since by far the more common form of deficiency concerns red-versus-green discriminations.</p>
<p>For example, eye-tracking heat maps should go blue-green (or gray)-yellow, rather than the green-yellow-red I usually see. For the most common form of color deficiency, the latter makes the two extreme values hardest to discriminate, precisely the opposite of what you want. The former preserves the &#8220;heat&#8221; metaphor (in Western cultural stereotypes, blue is cold, yellow is hot) and redundant brightness coding is relatively easy (of all the primary and secondary colors, high saturation blue has the lowest L value while high saturation yellow has the highest).</p>
<p>If you must use green and red, try the traffic-light trick and mix some blue with green and some green with red like I&#8217;ve done with the symbols in this set. This will make greens looks bluish and reds look brownish to those with red-green perception deficiencies. If you must use green-yellow-red (e.g., for ranking danger levels), use a pale bluish green and a darker red. This will appear as like blue-yellow-black to those who can&#8217;t discriminate greens and reds, which is still reasonably close to our cultural stereotyped associations between color and danger. It also can provide redundant light-medium-dark brightness coding.</p>
<p><img class="alignnone" title="Example pale bluish green, orange, and red." src="http://www.zuschlogin.com/content/blogimages/24/Colors2.gif" alt="" width="222" height="80" /></p>
<h4>Color Names</h4>
<p>You want high-saturation colors for maximum contrast, and people will generally agree on the names for high-saturation red, yellow, green, and blue. However, other high saturation colors, such as magenta and cyan, have no widely accepted names. Many people don&#8217;t know what &#8220;cyan&#8221; and &#8220;magenta&#8221; mean. Some might call the former &#8220;aqua&#8221; while others call it &#8220;light blue,&#8221; for example. The latter may be &#8220;hot pink,&#8221; &#8220;fuchsia,&#8221; or &#8220;bright purple.&#8221; If you are going to use these colors -or any hues other than red, yellow, green, and blue, be prepared for possible confusion in written or verbal communication (e.g., with tech support). Yet another reason to limit your number of color codes.</p>
<h4>Focal Accommodation</h4>
<p>Due to the physical optical effects of lenses, including the ones in our eyes, different light frequencies require different degrees of focus. To focus on blue objects, for example, the lens of your eyes need to focus &#8220;farther&#8221; than to focus on red objects. This means to switch from looking at red objects to blue objects, users have to refocus their eyes, which can be tiring. You should avoid color sets that results in a lot of high-saturation red and blue objects if the task requires the user to shift focus repeatedly from one to the other.</p>
<p>Blue is hard to focus in general because of its short wave length, a phenomenon that grows more acute as a user ages. High saturation blue (#0000FF) should be avoided for anything that requires detailed study, such as text or subtly varying symbols or icons. Make it a darker or lighter blue (e.g., mix in some green) to avoid problems with this. The default color for unvisited links? <a title="Zusch Login - Major Web Standards for General Usability" href="../../?p=183">Not really a good choice</a>.</p>
<p>On the other hand, the difference in focus levels of different colors could be an phenomenon to exploit. Blue objects tend to appear farther away than red objects, an illusion called “chromostereopsis.” Stare closely at the symbols in the map below, and subs will appear &#8220;deeper&#8221; than the GLUV.</p>
<p><img class="alignnone" title="Blue subs around red GLUV" src="/content/blogimages/color/Chromostereopsis1.gif" alt="" width="480" height="500" /></p>
<p>Well, sometimes it works.</p>
<p>This may help users visually filter out blue objects and focus only on red objects or vice versa. It could also be used to suggest different physical levels. Used to be they&#8217;d color code elevation on maps, with the seas being conveniently blue, and therefore at the bottom, while the mountains were reddish, appearing on top. It didn&#8217;t work out too well because it also meant sea-level deserts, like on the Arabian peninsula, appeared a rich green, suggesting heavy vegetation. Also, chromostereopsis is only a strong effect with very high saturation colors. However, it might be worth trying to use chromostereopsis in certain special-purpose applications. Maybe submerged assets like submarines should be blue while flying assets like GLUVs should be red, for example. More broadly, mixing a little blue in your background (e.g., using a midnight blue or very pale blue) may subtly help your foreground objects appear more &#8220;on top&#8221; of it.</p>
<h3>So Many Colors&#8230;</h3>
<p>&#8230;But so many constraints and considerations. It&#8217;s difficult to come up with a color set that even minimally satisfy them all. It easy to just throw up one&#8217;s hands and let the users choose the colors they want, but that rarely works out. If you as a usability professional can&#8217;t figure out how to balance all these constraints, what chance does a layperson have? If you see a need to let users choose their colors, provide a limited palette for limited purposes  (e.g., to pick the color to represent oneself). You can also provide a global color-contrast setting that adjusts brightness and color contrasts (consistent with Luv calculations) while keeping the hues fixed. Users can then adjust the colors to their liking for their current displays, viewing conditions, and visual abilities.</p>
<p>The effects of combinations of colors is not easily predictable, so once you have selected your colors for both foreground and background, you should test them as a complete system on your users, checking that they all work well together.</p>
<h3>Summary Checklist</h3>
<h4>Problem: Using color codes.</h4>
<p><strong>Potential Solution</strong>:</p>
<ul>
<li>Use color codes to aid pattern recognition, visual search, and possibly value identification.</li>
<li>Reserve color coding for attributes whose values are highly task relevant and reliably known.</li>
<li>Do not rely on color changes to capture user&#8217;s attention.</li>
<li>Limit the number of codes to 6 if absolute values must be identified.</li>
<li>Use Luv coordinates to achieve distinct colors and good foreground-background contrast.</li>
<li>High-saturation colors will be most distinct from each other.</li>
<li>Foreground and background should have a brightness contrast of at least 3.0.</li>
<li>Color codes for large background areas may be closer to each other than color codes for small foreground objects.</li>
<li>Use colors consistently within your app and with user expectations and experiences.</li>
<li>Remember that color codes can be arbitrary and therefore hard to remember.</li>
<li>Consider using part of the spectrum for representing numeric or ordinal data.</li>
<li>Provide redundant representations of the data for accessibility.</li>
<li>Favor blue and yellows for maximum accessibility.</li>
<li>Consider colors that are easily named.</li>
<li>Avoid having high saturation blue and red objects used in the same task.</li>
<li>Avoid high-saturation blue for text or fine detail.</li>
<li>Limit user ability to customize color codes.</li>
</ul>
<p><img class="alignnone" title="Flying Glove. Image from United Artists." src="/content/blogimages/color/Glove.jpg" alt="" width="480" height="338" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=194</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AdCD</title>
		<link>http://www.zuschlogin.com/?p=191</link>
		<comments>http://www.zuschlogin.com/?p=191#comments</comments>
		<pubDate>Fri, 01 Apr 2011 14:44:04 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[April 1st]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=191</guid>
		<description><![CDATA[Today I awoke with an epiphany. The information age is over. For the internet, information is no longer the product, and users are no longer the consumers. The value of something to society is indexed by the money associated with it. Given that web users expect information for free, it follows that information has no [...]]]></description>
			<content:encoded><![CDATA[<p>Today I awoke with an epiphany. The information age is over. For the internet, information is no longer the product, and users are no longer the consumers. The value of something to society is indexed by the money associated with it. Given that web users expect information for free, it follows that information has no value.</p>
<p>The really valuable work is in serving the advertisers by providing them eyeballs and personal information. I realize now that all my efforts to maximize the user experience are misguided. Users are the product and advertisers are the consumers. Effective today I now dedicate myself and this site to advertiser-centered design.</p>
<p>As it is, I’m playing catch-up. The reason businesses pay for UX in the first place is in hope of promoting sales. We create experiences that encourage people to buy, which is what advertisement is all about. It’s time I recognize that UX is a component of advertising.</p>
<p>Sites have long had advertisements to finance themselves. These sites pay for advertisements on other sites to drive users to their sites where they click the advertisements providing the financing for more advertising. Not a few these advertisements on the site advertise other sites also supported by advertisements. Click the right ads from site to site and surely you’ll end up back where you started.</p>
<p>Modern advertisers know how to get others to do their advertising for them. Search engine optimization turns Google search results into advertisements. Companies like Apple turn product launches in “special events” covered by the press, aiming to change the news into advertisement.</p>
<p>This is hardly new or limited to the web. We have long been buying hats, t-shirts, and other apparel that advertise products. We don’t wear clothes. We wear banner ads. Stores like Abercrombie and Fitch and Old Navy advertise apparel which advertises the stores. Today our entertainment isn’t just supported by advertisement. It <em>is</em> advertisement. Hollywood advertises movies that advertise other things through product placement. Cable networks advertise TV shows interlaced with advertisements through the use of “bugs” and “snipes.”</p>
<p>It’s pretty clear where the web and, by extension all of Western Civilization, is heading. Soon everything will be advertisements. Just as the agricultural economy gave way to the industrial economy, which yielded to the service economy, the service economy will fall to the advertising economy, where the majority of the population is involved in advertising. Our world will be filled with advertisements that advertise more advertisements people can experience, ad infinitum. It’s a utopia where everything will be free, paid for by advertisements. The economy will be distilled to its essence: pure selling.</p>
<p>I want a piece of that.</p>
<p><a href="http://www.zuschlogin.com/"><img class="alignnone" title="Zusch Login: Uncompromising Usability" src="/content/blogimages/AdCD/ZLAd1.gif" alt="Zusch Login: Uncompromising Usability" width="480" height="45" /></a></p>
<p>You may have noticed a subtle change to this web site: I’ve started including advertisements. At first I wasn’t sure where or how to advertise to attract advertisers, but then I realized that, since I’m an UX expert, I must also be an advertising expert. And as an advertising expert, it would be hypocritical if I didn’t acknowledge that the most important thing for me to advertise is me.</p>
<p><a href="http://www.zuschlogin.com/"><img class="alignnone" title="Bridge the gulf: Read Zusch Login" src="/content/blogimages/AdCD/ZLAd2.gif" alt="Bridge the gulf: Read Zusch Login" width="480" height="82" /></a></p>
<p>I turns out I could offer myself some very reasonable advertisement rates, which have nonetheless proven very lucrative for me. I’ve brought in thousands of dollars in revenue from myself on my first day. There’re expenditures to be counted still, of course, including a substantial advertising budget, but that is to be expected since advertisements is all I’ll be producing from now on. I’ll make profits through volume. You got a better business plan for today’s economy?</p>
<p><a href="http://www.zuschlogin.com/"><img title="Lots of ads. Jobs photo by Acadben via Wikimedia." src="/content/blogimages/AdCD/ZLAd3.gif" alt="Increasingly tacky ads to Zusch Login." width="480" height="1300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=191</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Major Web Standards for General Usability</title>
		<link>http://www.zuschlogin.com/?p=183</link>
		<comments>http://www.zuschlogin.com/?p=183#comments</comments>
		<pubDate>Sun, 06 Mar 2011 16:30:14 +0000</pubDate>
		<dc:creator>Michael Zuschlag</dc:creator>
				<category><![CDATA[Browser and Beyond]]></category>

		<guid isPermaLink="false">http://www.zuschlogin.com/?p=183</guid>
		<description><![CDATA[Using published standards and guidelines to catch usability issues.
What can I say? We blew it. The web came along, and we human factors engineers were AWOL. Not that anyone tried to include us. I know I was home at the time, yet CERN never called me to say, &#8220;Well, Mike, we&#8217;re going to launch the [...]]]></description>
			<content:encoded><![CDATA[<h4>Using published standards and guidelines to catch usability issues.</h4>
<p>What can I say? We blew it. The web came along, and we human factors engineers were AWOL. Not that anyone tried to include us. I know I was home at the time, yet CERN never called me to say, &#8220;Well, Mike, we&#8217;re going to launch the Information Age, and we&#8217;re wondering if you had any advice.&#8221;  Maybe they thought allowing for the human factor just wasn&#8217;t that hard, so they&#8217;d take care of it themselves. Typical. And to be honest, it wasn&#8217;t that hard. Making links appear bright blue seemed like a reasonable enough standard. In a time when web pages generally appear as black text on a pale gray background, blue would stand out, suggesting liveliness and therefore interactivity, while avoiding the Western emotional associations of green, yellow, or red. Underlining links was icing on the cake, providing a redundant cue that aids accessibility. They were probably pretty proud they thought to do that.</p>
<h3>The Web That Wasn&#8217;t</h3>
<p>Of course, if they had consulted a human factors expert, she or he would have pointed out that bright blue objects can be difficult to focus on, especially for older users -not too good for reading text. She or he would have also pointed out that underlining interferes with reading, owing mostly to masking of the decenders of lower-case letters.</p>
<p>I like to think we would have done better, if we were involved. Maybe we would&#8217;ve suggested background shading to indicate links, rather than colored font and underlining, This would maximize readability while still making links stand out and look active in an accessible manner, like highlighted text in a physical book. We could have allowed developers to specify the size of mouse-sensitive areas so that links with short labels could have large targets. Lists of links would appear as unbroken shaded rectangles, like sidebar menus often do today, eliminating the dilemma of choosing between cluttering underlining for link lists and no underlining cues for in-line links in order to achieve a consistent link appearance across the site.</p>
<p>We could have tested and developed a standard set of icons to put with each link text, like a cite or footnote number, that would provide a redundant cue of a link. These would distinguish links from other uses of background shading (which would be rare, much as it is today) and identify links when the presence of shading is ambiguous (e.g., when the entire page is links). But most importantly, the icons themselves would indicate:</p>
<ul>
<li>The location of the linked content, whether on the same page, the same site, or another site.</li>
<li>The medium or format of the content (e.g., html, pdf, image, sound, or video).</li>
<li>Whether the link opens a new window or not.</li>
<li>Whether the content had been visited before or not (rather than using arbitrary color, a standard that has fallen into disuse since no one uses standard colors anymore).</li>
</ul>
<p>With some minor tweaks to HTTP and HTML behavior, the icon could indicate whether the content has been updated since the last visit, which is often what users really care about. Maybe it could even indicate if a link is broken.</p>
<p>Tooltips would provide text representation of the icon&#8217;s information, as usual, but with standard icons, experienced users can extract this information with a quick visual sweep of the page. The tooltip would also display the size of the content (or estimated download time) and URL of the content (if no title tag is provided), rather than it appearing far down in the status bar where few users notice it. Animation in the icons would indicate if the browser is attempting to retrieve the content, so users can see the effect of their clicks right where they&#8217;re looking, rather than shifting attention to a distant and ambiguous throbber or status bar.</p>
<p>Oh, well, too late now.</p>
<h3>Standards for Today</h3>
<p>Returning from dreamland, it seems that too many web sites of reality have enough trouble complying with the meager existing standards and guidelines of today. Sites respond too slowly. Trivial input format variations are rejected. Unnecessary navigation and other input are imposed. Lengthy work by the user is discarded without warning or alternatives. Links masquerade as ordinary text and vice versa. Information is shown in no meaningful order to the user.</p>
<p>These are obvious design flaws. Anyone with any UX background could predict that such things will interfere with usability, yet somehow they make it into production. My hunch is that whoever was in charge of the web site just wanted it that way (&#8221;it makes perfect sense to <em>me</em>&#8220;), and summarily dismissed others&#8217; concerns as merely a difference of opinion or taste. A simple usability test may settle the issue, but you can&#8217;t test everything and not every issue is truly testable by a small sample size usability test. Academic research results are great, but some issues don&#8217;t interest academic researchers. They want to build general theories of HCI or develop innovative interfaces. Testing something with obvious results doesn&#8217;t fit well with that.</p>
<p>That leaves citing authoritative standards and guidelines to bolster your argument against bad design. There are a number of such standards and guidelines you can cite, and they all have their uses, but also their limitations:</p>
<ul>
<li><a title="Usability.gov Guidelines" href="http://usability.gov/guidelines/index.html">Usability.gov</a> represents the gold standard of web UI guidelines, with each based on cited research. How this became the responsibility of the National Cancer Institute is beyond me, but I&#8217;m glad they did it. However, being researched based, they tend to be limited to issues of academic research interest.</li>
<li>Lynch and Horton&#8217;s <a title="Web Style Guide Online Contents" href="http://webstyleguide.com/wsg3/index.html">Yale Web Style Guide</a> provides valuable guidelines, although it tends to focus on graphic design and typography.</li>
<li>Ameritech Web Page User Interface Standards and Design Guidelines by Mark Detweiler and Richard Omanson has many recommendations that are as relevant today as they were back when most screens were 640 by 480 pixels. That was also back when there was a company called &#8220;Ameritech,&#8221; and copies of this document are hard to come by now.</li>
<li><a title="W3C - Web Content Accessibility Guidelines 2.0" href="http://www.w3.org/TR/WCAG20/">W3C Accessibility</a> standards have done as much to improve the UIs for typical users as it has for those with disabilities. We all benefit from site characteristics like proper use of markup and redundant channels of communication. But, not surprisingly, these standards have limited scope for usability.</li>
<li>Operating system guidelines, such as those for <a title="Apple - Human Interface Guidelines" href="http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGIntro/XHIGIntro.html">Apple</a>, <a title="Microsoft - Windows User Experience Interaction Guidelines" href="http://msdn.microsoft.com/en-us/library/aa511258.aspx">Microsoft</a>, and <a title="Gnome Human Interface Guidelines" href="http://library.gnome.org/devel/hig-book/stable/">Gnome</a>, may be used. For example, they tell us we should label our buttons with what they do (e.g., &#8220;Register&#8221;), rather than with a general uninformative term (e.g., &#8220;Submit&#8221;). However many such guidelines were never intended to apply to the web world, and they&#8217;re easy to dismiss as not applicable.</li>
<li>Guru books, like those by <a title="Amazon - Don't Make Me Think" href="http://www.amazon.com/Dont-Make-Me-Think-Usability/dp/0321344758/ref=sr_1_1?s=books&amp;ie=UTF8&amp;qid=1299422366&amp;sr=1-1">Krug</a> and  <a title="Amazon - Designing Web Usability" href="http://www.amazon.com/Designing-Web-Usability-Jakob-Nielsen/dp/156205810X/ref=sr_1_1?s=books&amp;ie=UTF8&amp;qid=1299422296&amp;sr=1-1">Nielsen</a>, contain solid advice. However, some may dismiss them as just the opinion of someone who happens to have a high hourly consulting rate.</li>
</ul>
<p>Perhaps less well-known are more general human factors standards that also may be applied to web site design. Various major organizations have such standards (e.g., ISO, <a title="MIT - NASA HRF Human-Computer Interface Design Guide" href="http://snebulos.mit.edu/projects/reference/International-Space-Station/LS71130.pdf">NASA</a>, <a title="FAA Human Factors Design Standard" href="http://hf.tc.faa.gov/hfds/">FAA</a>, ASTM) that provide a significant supplement to the above standards and guidelines. Among the most venerable standards documents is the US Department of Defense Design Criteria Standard: Human Engineering, known to its friends as <a title="US Navy - MIL-STD 1472F" href="http://www.public.navy.mil/navsafecen/Documents/acquisition/MILSTD1472F.pdf">MIL-STD 1472</a>. First published around 1968, MIL-STD 1472 has served as the inspiration, if not the source, for many human factors standards to come, making it the literal mother of all HF standards. Originally a consolidation of older standards and updated semi-regularly ever since, MIL-STD 1472 represents the collective research and operational experience of decades of human-machine performance under the most demanding circumstances. There&#8217;s nothing quite like life-or-death situations to highlight usability problems.</p>
<p>Human factors as a distinct field came into its own during World War II when the military was confronted with ordinary people having to operate extraordinary complicated and unfamiliar technologies of the time, like radar, multi-engine high-performance aircraft, bombsights, and artillery targeting computers. It was a situation analogous to the recent one with the web, with ordinary people using increasingly capable servers and networks. While there&#8217;s a huge gulf separating a 1940s analog electromechanical artillery computer from the modern gigahertz and terabyte web server, the human operators are in many ways still the same. Thus, many MIL-STD standards remain relevant.</p>
<p>MIL-STD 1472 is a standards document, not a best practices document. It specifies the minimal requirements, and as such will only catch gross usability flaws. One has to wonder about some of the standards, like 5.2.3.1.5.1 Graduations, which specify that the gradations of analog gauges &#8220;shall progress by 1, 2, or 5 units or decimal multiples thereof.&#8221; I mean, did some manufacturer deliver a jeep with a speedometer marked at 0, 7, 14, and 21 mph? Who would ever think of designing something like that? Well, presumably someone did, and the results in a time of war were ugly, so they made a standard to prevent it from happening again. Basic standards like these are fine for our purpose of dismissing stupid designs that aren&#8217;t worth a usability test.</p>
<h3>MIL-STD 1472 and Web Sites</h3>
<p>Of course, general standards like 1472 have their weaknesses too. But, along with other standards and guidelines, it&#8217;s another tool to have in your toolbox. MIL-STD 1472 comprises human factors standards for all kinds of products, from safety glasses to aircraft carriers. Standards scattered throughout the document can apply to your web site. For example, much of Section 5.5 Labeling applies as much to headings, fields, and link labels on a web site as they do to physical labels. However, Section 5.14 is dedicated specifically to computer UIs, so let&#8217;s focus there.</p>
<p>As might be expected for standards dating to the 1960&#8217;s, much of Section 5.14 were intended for antiquated computer systems featuring simple menus and forms. Contemporary GUI features, like direct manipulation, multiple windows, and scrollbars, are not addressed in the latest version, 1472-F. So that makes it just about perfect for your average modern web site. Strip away the browser, and you&#8217;ll recognize that a website is not all that different from early interactive character-cell user interfaces seen in the 1970s. Users may use multiple windows or tabs, but web sites don&#8217;t. Web sites divide their UI into pages, while character-cell UIs divide them into screens. The typical web site is almost entirely a menu interface. Whether arranged in a neat sidebar or distributed in-line with content, each link is by most definitions a menu item. Occasionally a web site has a modal form to complete, where the user keys in some simple alphanumeric strings into fields and selects an Execute command when done. That&#8217;s pretty much what the military was dealing with 30-odd years ago.</p>
<p>Nonetheless, general standards need to be subject to interpretation when applying them to a specific technology like web sites. The text of the standards may have a legal tone to them, but for the purpose of achieving the best usability, they should be interpreted according to the spirit of the law, not necessarily the letter. Users don&#8217;t care if you&#8217;re <em>technically</em> complying with standards they&#8217;ve never heard of. They only care if the web site gets them the content they need.</p>
<p>If you&#8217;re new to reading standards, there&#8217;s a big difference between a standard that uses &#8220;shall&#8221; versus &#8220;should.&#8221; &#8220;Should&#8221; indicates a recommendation, something you as a designer can choose not to comply with if you have good reason. In my book, a &#8220;good reason&#8221; is research-backed analysis or usability test results that show that following a standard will result in inferior usability. You shouldn&#8217;t violate a &#8220;should&#8221; because of a hunch on user performance or to avoid inconveniencing the developers. &#8220;Shall&#8221; indicates a requirement. The design must follow &#8220;shalls&#8221; to be in compliance with the standard.</p>
<p>Here, then are some 1472 standards that I think are most apt for web sites along with my interpretation for them.</p>
<h3>Top 1472 Standards for Web Sites</h3>
<h4>IA and Layout</h4>
<p><cite><strong>5.14.3.2.2.2 Related data on same page.</strong> When partitioning displays into multiple pages, functionally related data items shall be displayed together on one page.</cite></p>
<p>This means that content shall be divided among pages by function, task, or similarity. Prose and forms shall not be arbitrarily divided into pages, such as done to articles at the web site of the Minneapolis Star-Tribune among other on-line newspapers and magazines. The readers get to the end of a page and have to mentally cache the context while they click Next Page and wait several seconds for all the ads to load before they can proceed. And sometimes the only thing on the subsequent page is the post date and contact information for the writer.</p>
<p><cite><strong>5.14.4.1.7 Hierarchical process.</strong> The number of hierarchical levels used to control a process or sequence should be minimized. Display and input formats shall be similar within levels. The system shall indicate the current positions within the sequence at all times.</cite></p>
<p>The first part tells you that you should generally go for a relatively broad and shallow IA hierarchy to minimize the time-consuming page-loads a user must endure. It&#8217;s a &#8220;should&#8221; rather than a &#8220;shall&#8221; because at some point too much content or too many links on one page will interfere with usability, so the standards give you an out. However, it does mean you should avoid pages with sparse content, for example, any time the content takes less than 700 vertical pixels to fill. If two pieces of related content can be visible on the same page without scrolling, then they should be on the same page.</p>
<p>The above standard also covers the labeling of pages, which is elaborated by these standards:<cite></cite></p>
<p><cite><strong>5.14.3.2.2.3 Page labeling.</strong> In a multipage display, each page shall be labeled to show its relation to the others.</cite></p>
<p><cite><strong>5.14.3.1.12 Page numbering.</strong> Each page of a multiple page display shall be labeled to identify the currently displayed page and the total number of pages, e.g., Page 2 of 5.</cite></p>
<p>Collectively, these standards say that if the page is part of a linear or hierarchical navigation structure, then the pathway through the structure to the page shall be represented on the page (e.g., with breadcrumbs). They also say that you shall show progress through linear structures, like search results, wizards, and multi-page forms.</p>
<p><cite><strong>5.14.3.2.5 Context for displayed data.</strong> The user should not have to rely on memory to interpret new data; each data display should provide needed context, including recapitulating prior data from prior displays as necessary.</cite></p>
<p><cite><strong>5.14.4.1.5 Availability of information</strong>. Information necessary to select or enter a specific control action shall be available to the user when selection of that control action is appropriate.</cite></p>
<p>These standards mean that the information that is typically referenced to complete a task shall be available on a page supporting that task without the need to navigate to another page in the site. This is especially important for web forms where navigating away to try to get some key piece of information can mean wiping out the work the user had done so far.</p>
<p><cite><strong>5.14.3.1.4 Order and sequences.</strong> When data fields have a naturally occurring order (e.g., chronological or sequential), such order shall be reflected in the format organization of the fields.</cite></p>
<p>Content shall not have an arbitrary order but rather shall be ordered and/or grouped by at least one of the following as determined by the users’ task:</p>
<ul>
<li>Frequency of use.</li>
<li>Importance to task.</li>
<li>Sequence of entry or review.</li>
<li>Functional relations.</li>
<li>Functional similarity.</li>
<li>Name (i.e., alphabetical).</li>
<li>Date or time stamp.</li>
</ul>
<p>For dynamically created forms or tables, this means don&#8217;t forget the ORDER BY clause in your stored procedures. Note that some of the above criteria for ordering imply your database may need fields specifically for determining display order (e.g., task importance).</p>
<p><cite><strong>5.14.3.5.10 Justification of numeric entry.</strong> Users shall be allowed to make numeric entries in tables without concern for justification; the computer shall right-justify integers, or justify with respect to a decimal point if present.</cite></p>
<p>This means that columns of numbers that use the same units shall have the decimal place of the numbers vertically aligned, so users can compare numbers easily. Columns should look like this:</p>
<table style="width: 123px; height: 112px;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<p align="right">5.0750</p>
</td>
</tr>
<tr>
<td>
<p align="right">1.8000</p>
</td>
</tr>
<tr>
<td>
<p align="right">46.5000</p>
</td>
</tr>
<tr>
<td>
<p align="right">.5209</p>
</td>
</tr>
<tr>
<td>
<p align="right">8.0000</p>
</td>
</tr>
</tbody>
</table>
<p>Rather than this:</p>
<table style="width: 122px; height: 112px;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<p align="right">5.075</p>
</td>
</tr>
<tr>
<td>
<p align="right">1.8</p>
</td>
</tr>
<tr>
<td>
<p align="right">46.5</p>
</td>
</tr>
<tr>
<td>
<p align="right">.5209</p>
</td>
</tr>
<tr>
<td>
<p align="right">8</p>
</td>
</tr>
</tbody>
</table>
<p>For user-entered numbers, a form shall pad the numbers as necessary to keep the decimal points aligned irrespective of what the users type.</p>
<p><cite><strong>5.14.4.2.6 Simple menus.</strong> If number of selections can fit on one page in no more than two columns, a simple menu shall be used. If the selection options exceed two columns, hierarchical menus may be used.</cite></p>
<p>This means use simple (non-hierarchical) menus up to two columns wide rather than split the menu into two pages, assuming the menu items fit on a page with the other content intended for the page. Avoiding a click to navigate down a level in a menu hierarchy is worth the added scan difficulty that two columns imposes. However, once you get to needing three columns or more, you might be better off splitting the menu up onto separate pages. That&#8217;s up to you.</p>
<p><cite><strong>5.14.3.5.13 Column scanning cues.</strong> A column separation not less than three spaces shall be maintained.</cite></p>
<p>Translating that to the web, columns in tables shall be horizontally separated by a distance equal to 3 spaces of Arial font of the same point size as used in the columns when the browser is set to display medium text size. This makes the columns appear as cohesive wholes, making it easier to scan down them without the eye &#8220;jumping&#8221; to an adjacent column. In some cases, such spacing obviates the need for cluttering vertical rules, further improving scanability.</p>
<h4>Graphic Design</h4>
<p><cite><strong>5.14.3.3.1 [Display Coding] Use. </strong>Coding shall be employed to differentiate between items of information and to call the user&#8217;s attention to changes in the state of the system. Coding should be used for critical information, unusual values, changed items, items to be changed, high priority messages, special areas of the display, errors in entry, criticality of command entry, and targets. Consistent, meaningful codes shall be used. Coding shall not reduce legibility or increase transmission time.</cite></p>
<p>In other words, colors and other graphic elements should be selected to consistently <a title="Zusch Login - Graphics of Distinction" href="../../?p=28"><em>mean</em> something</a>, not just make the web page look good. Specifically:</p>
<ul>
<li>All navigation menus shall use the same color and style for all pages.</li>
<li>The navigation menu shall appear visually distinct from any other content that may appear in its place on a page.</li>
<li>All text links shall have the same color unique to links, except that visited links may have a different color than visited links.</li>
</ul>
<p><cite><strong>5.14.5.6 Highlighted option selection.</strong> Any displayed message or datum selected as an option or input to the system shall be highlighted to indicate acknowledgment by the system.</cite></p>
<p>This means selected items need to be somehow graphically distinguished from non-selected items. For example, on a navigation menu sidebar, the selected menu item shall change appearance on selection, and that appearance shall be maintained as long as that menu selection is maintain. If the menu item corresponding to your current page looks like all the other menu items, then you&#8217;re doing it wrong.</p>
<p><cite><strong>5.14.4.8.3 Supplementary verbal labels.</strong> Where icons are used to represent control actions in menus, verbal labels shall be displayed, or made available for display, with each icon to help assure that its intended meaning will be understood.</cite></p>
<p>So each icon needs at least a tooltip, but keep in mind these are minimum standards. For most actions, you get better usability if you include a static text label, or even <a title="Zusch Login - Toolbar FUBAR" href="../../?p=16">use a text label <em>instead</em> of the icon</a>.</p>
<h4>Responsiveness</h4>
<p><cite><strong> 5.14.9 System response time</strong>. Maximum system response times for real-time systems shall not exceed the values of Table XXII.</cite></p>
<p>Below I&#8217;ve reproduced portions of Table XXII with a separate column to give the equivalent application for web sites. For example, any user mouse click, including input to a custom AJAX control, shall result in some kind of a visual response within 0.2 seconds. A page shall begin to appear in a window within 2 seconds after the user selects its link.</p>
<table style="text-align: left; width: 480px;" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td>Input</td>
<td>sec.</td>
<td>Web Equivalent</td>
</tr>
<tr>
<td>Key Print</td>
<td>0.2</td>
<td>Display of a keyed character after any per-character validation and correction.</td>
</tr>
<tr>
<td>XY Entry, Pointing</td>
<td>0.2</td>
<td>Response of some kind of visual verification to a mouse click.</td>
</tr>
<tr>
<td>Sketching</td>
<td>0.2</td>
<td>Update period for any drawing or any dragging.</td>
</tr>
<tr>
<td>Page Scan</td>
<td>0.5</td>
<td>Update period for carousels and other scrolling controls.</td>
</tr>
<tr>
<td>Page Turn</td>
<td>1.0</td>
<td>Response of tabs, lightboxes, and other loading of content within part of a web page.</td>
</tr>
<tr>
<td>Host Update., Simple Inquiry</td>
<td>2.0</td>
<td>Response from selecting a link until a page begins loading.</td>
</tr>
<tr>
<td>Error Feedback</td>
<td>2.0</td>
<td>Response for any server-side validation after data submission.</td>
</tr>
<tr>
<td>Complex Inquiry</td>
<td>10.0</td>
<td>Response for ad hoc queries or other operations involving submission of multiple fields.</td>
</tr>
<tr>
<td>File Update</td>
<td>10.0</td>
<td>Response for loading non-HTML content, such as pdfs.</td>
</tr>
</tbody>
</table>
<p>Once again, these are <em>minimum</em> standards assuming worse-case conditions.</p>
<p>Too often discussions of response time for web sites take one of two extremes. One extreme is &#8221;make it as short as possible.&#8221; This does little to help you specify the appropriate server and network performance for the real world. The other extreme is, &#8220;right before the point where users abandon the site.&#8221; I would hardly define &#8220;usable&#8221; to mean &#8220;the level of performance where users just barely stop assuming your site is broken.&#8221; Table XXII provides an alternative to the extremes that has held up remarkably well over the decades.</p>
<p><cite><strong>5.14.1.2 Computer response.</strong> Every input by a user shall consistently produce some perceptible response output from the computer.</cite></p>
<p><cite><strong>5.14.5.2 Stand-by.</strong> When system functioning requires the user to stand-by, a WORKING, BUSY, or WAIT message or appropriate icon should be displayed until user interaction is again possible. Where the delay is likely to exceed 15 seconds, the user should be informed. For delays exceeding 60 seconds, a count-down display should show delay time remaining.</cite></p>
<p><cite><strong>5.14.2.1.3 Processing delay.</strong> Where system overload or other system conditions will result in a processing delay, the system shall acknowledge the data entry and provide an indication of the delay to the user. If possible, the system shall advise the user of the time remaining for the process or of the fraction of the process completed.</cite></p>
<p>For most web sites, the above standards are not much of an issue. Most input is asynchronous, so there&#8217;s no need for a BUSY indication. The browser&#8217;s throbber provides immediate response for the most common input, link-clicking, so you don&#8217;t have to worry about it. Start loading your pdfs and other bulky files within 10 seconds for worse case conditions, as discussed earlier, and you don&#8217;t have to worry about informing the user that they&#8217;ll need to wait over 15 seconds. However, if you start getting fancy, employing AJAX or Flash which can subvert the throbber and other browser feedback, then you may find you have to create your own feedback, including progress bars or equivalent for anything over 60 seconds.</p>
<p><cite><strong>5.14.2.1.8.4 Explicit actuation.</strong> A separate, explicit action, distinct from cursor position, shall be required for the actual entry (e.g., enabling, actuation) of a designated position.</cite></p>
<p><cite><strong>5.14.3.6.9 Confirming cursor position.</strong> For most graphics data entry, pointing should be a dual action, with the first action positioning the cursor at a desired position and the second action confirming that position to the computer. An exception may be a design allowing &#8220;free-hand&#8221; drawing of continuous lines where the computer must store and display a series of cursor positions as they are entered by the user.</cite></p>
<p>Here the main culprits on web sites are a breed of Javascript pulldown menus that display their contents on mouse-over rather than a click. Menus shall only appear when the user clicks the mouse. However, the above standards should not be interpreted to preclude the use of mouseover effects to provide pointer position feedback or supplemental information to the user, such as through tooltips.</p>
<h4>Forms and Fields</h4>
<p><cite><strong>5.14.3.1.6 Recurring data fields</strong>. Recurring data fields within a system shall have consistent names and should occupy consistent relative positions across displays.</cite></p>
<p>This is just a matter avoiding oversights and double-checking that you&#8217;re being consistent. You don&#8217;t want people being unsure if the &#8220;Check Date&#8221; is necessarily the same the &#8220;Payment Date.&#8221;</p>
<p><cite><strong>5.14.3.1.1 Consistency</strong>. Display formats should be consistent within a system. When appropriate for users, the same format should be used for input and output. Data entry formats should match the source document formats. Essential data, text, and formats should be under computer, not user, control.</cite></p>
<p>This standard was probably made with keypunching in mind, but in this era of copy and paste it&#8217;s ever more important. For example, your web site should never reject the input of a date, phone number, credit card number, or other datum when it has the <a title="UIE - Two More Usability Challenges for Designing Web Apps" href="http://www.uie.com/articles/web_app_challenges_2/">same format your own web site uses</a>.</p>
<p><cite><strong>5.14.3.7.10 Predefined formats</strong>. When text formats must follow predefined standards, the required format shall be provided automatically. Where text formats are a user option, a convenient means should be provided to allow the user to specify and store for future use the formats that have been generated for particular applications.</cite></p>
<p><cite><strong>5.14.3.5.7 Numeric punctuation</strong>. Long numeric fields should be punctuated with spaces, commas, or slashes. Conventional punctuation schemes should be used if in common usage. Where none exist, a space should be used after every third or fourth digit. Leading zeros shall not be used in numerical data except where needed for clarity.</cite></p>
<p>And while we&#8217;re on the topic of credit card numbers, we must stop <a title="LukeW - Flexible Credit Card Inputs" href="http://www.lukew.com/ff/entry.asp?1015">this madness</a> of <a title="Dotnet - Stupid Users and Usability of UI" href="http://dotnet.sys-con.com/node/874977">rejecting user input</a> of these numbers with spaces. For any formatted string input, if the user omits delimiters for formatted text, than the delimiters should be added automatically to user input without displaying an error message. Prohibited characters (like letters in a credit card number) should be automatically suppressed or removed from user input without displaying an error message.</p>
<p><cite><strong>5.14.4.3.6 Cursor.</strong> A displayed cursor shall be positioned by the system at the first data entry field when the form is displayed.</cite></p>
<p>This means that when displaying a cleared form or a form with new content for a session, focus shall be placed on the editable control at the topmost leftmost position. Save the user from having to use the mouse to click into the field. This applies to pages for searching and querying.</p>
<p><cite><strong>5.14.7.1 Workload reduction</strong>. Default values shall be used to reduce user workload. Currently defined default values should be displayed automatically in their appropriate data fields with the initiation of a data entry transaction and the user shall indicate acceptance of the default.</cite></p>
<p><cite><strong>5.14.7.4 Defaults for sequential entries</strong>. Where a series of default values have been defined for a data entry sequence, the experienced user shall be allowed to default all entries or to default until the next required entry.</cite></p>
<p>That means that when a list box, dropdown list (combo box), checkbox, or radio button (option button) is used to acquire user input of an unknown value, it shall default firstly to a value that does not result in damage to the system or lost of data, and secondly to the most frequent value.</p>
<p>I&#8217;m not sure where the web got the idea to never use defaults, except to default to opt in for annoying email spam. Radio buttons are often left with none selected. Dropdown list default to nonsensical &#8220;Select an option.&#8221; values. Thick-client desktop apps worked fine with defaults for these controls for years before the web showed up. I suspect that many web designers think you get more accurate data if you force the user to explicitly choose an option. While there may be situations where this is the case, usually <em>defaults</em> make it more likely you get accurate data, especially when there&#8217;s one choice that is likely to be correct. By freeing the user from selecting the value you avoid the possible slips the users might make, as well as make input faster for the users.</p>
<p><cite><strong>5.14.8.1 Error correction</strong>. Where users are required to make entries into a system, an easy means shall be provided for correcting erroneous entries. The system shall permit correction of individual errors without requiring re-entry of correctly entered commands or data elements.</cite></p>
<p>If the user makes an error on a form and submits, you can show an error message on the subsequent page. That&#8217;s <a title="UIE - Web Form Design in the Wild, Part I" href="http://www.uie.com/articles/forms-fairmont-hotel/">not the best way</a> of handling errors, but it meets a minimum standard of usability. However, when the user goes to the form to correct the error, all entries for all fields shall be just as the user left it. Do not present a cleared form. Do not clear <em>any</em> fields, not even the password field. It adds work and sets the user up for another error.</p>
<p><cite><strong>5.14.4.1.13 Feedback for correct input</strong>. Control feedback responses to correct user input shall consist of changes in state or value of those display elements which are being controlled and shall be presented in an expected and logically natural form. An acknowledgment message shall be provided only where the more conventional mechanism is not appropriate or where feedback response time must exceed one second.</cite></p>
<p><cite><strong>5.14.5.4 Input confirmation</strong>. Confirmation shall not cause displayed data removal.</cite></p>
<p>Web forms use way too many confirmation pages. Partly this is because of the unreliability of web connections and the long delay between the user selecting the Submit button and the server sending some kind of acknowledgment. As a minimum standard, a confirmation page is acceptable for such cases, but the confirmation page should display what data is being confirmed. A purchase confirmation, for example, should list the products, prices, and shipping.</p>
<p>Once you get into AJAX, with response times less than a second, there shall be no confirmation message. It is sufficient and less distracting to display the changes to the data as the confirmation.</p>
<h3>Summary Checklist, Such that it is</h3>
<h4>Problem: Preventing bad designs without relying on usability testing.</h4>
<p><strong>Potential Solution</strong>: Use standards and guidelines such as MIL-STD 1472</p>
<p>For more of my interpretations of MIL-STD  1472 for the apps, specifically for tables, see <a title="UI StackExchange - Table usability" href="http://ui.stackexchange.com/questions/2418/table-usability-readable-font-for-a-data-table">Table usability/Readable font for a data table</a> at <a title="UI StackExchange" href="http://ui.stackexchange.com/">UI StackExchange.</a></p>
<p><img class="alignnone" title="MIL-STD 1472: Preventing dumbass designs since 1968." src="/content/blogimages/webstds/MILSTD1472.gif" alt="" width="480" height="150" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zuschlogin.com/?feed=rss2&amp;p=183</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
