<style type="text/css">
    /* Add Social Bookmars Plugin By Aditya Subawa @ www.adityawebs.com */
    ul.aditya-social { list-style:none; margin:15px auto;display:inline-block; }
    ul.aditya-social li { display:inline; float:left; background-repeat:no-repeat; }
    ul.aditya-social li a { display:block; width:48px; height:48px; padding-right:10px; position:relative; text-decoration:none; }
    ul.aditya-social li a strong { font-weight:normal; position:absolute; left:20px; top:-1px; color:#fff; padding:3px; z-index:9999; text-shadow:1px 1px 0 rgba(0, 0, 0, 0.75); background-color:rgba(0, 0, 0, 0.7); -moz-border-radius:3px; -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); -webkit-border-radius:3px; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); border-radius:3px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);}
    ul.aditya-social li.aditya-facebook { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/facebook.png"); }
    ul.aditya-social li.aditya-twitter { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/twitter.png"); }
    ul.aditya-social li.aditya-stumbleupon { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/stumbleupon.png"); }
    ul.aditya-social li.aditya-digg { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/digg.png"); }
    ul.aditya-social li.aditya-delicious { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/delicious.png"); }
    ul.aditya-social li.aditya-yahoo { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/yahoo.png"); }
    ul.aditya-social li.aditya-reddit { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/reddit.png"); }
    ul.aditya-social li.aditya-technorati { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/technorati.png"); }
    #aditya-cssanime:hover li { opacity:0.2; }
    #aditya-cssanime li { -webkit-transition-property: opacity; -webkit-transition-duration: 500ms;-moz-transition-property: opacity; -moz-transition-duration: 500ms; }
    #aditya-cssanime li a strong { opacity:0; -webkit-transition-property: opacity, top; -webkit-transition-duration: 300ms; -moz-transition-property: opacity, top; -moz-transition-duration: 300ms; }
    #aditya-cssanime li:hover { opacity:1; }
    #aditya-cssanime li:hover a strong { opacity:1; top:-10px; }
    /* Add Social Bookmarks Plugins By Aditya Subawa @ www.adityawebs.com */
    </style>

{"id":1252,"date":"2013-01-16T20:06:29","date_gmt":"2013-01-16T20:06:29","guid":{"rendered":"http:\/\/johncanning.net\/wordpress\/?p=1252"},"modified":"2016-03-10T14:43:27","modified_gmt":"2016-03-10T14:43:27","slug":"1252","status":"publish","type":"post","link":"http:\/\/johncanning.net\/wp\/?p=1252","title":{"rendered":"Why you should graph data"},"content":{"rendered":"<p><span style=\"color: #ff0000;\">Amended 10 March 2016 (corrections\/ update made)<\/span><\/p>\n<figure id=\"attachment_1261\" aria-describedby=\"caption-attachment-1261\" style=\"width: 294px\" class=\"wp-caption alignright\"><a href=\"http:\/\/johncanning.net\/wordpress\/?attachment_id=1261\" rel=\"attachment wp-att-1261\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1261\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/uploads\/2013\/01\/anscombe2-294x300.png\" alt=\"Anscombe's Quartet: Click to enlarge\" width=\"294\" height=\"300\" srcset=\"http:\/\/johncanning.net\/wp\/wp-content\/uploads\/2013\/01\/anscombe2-294x300.png 294w, http:\/\/johncanning.net\/wp\/wp-content\/uploads\/2013\/01\/anscombe2.png 589w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/a><figcaption id=\"caption-attachment-1261\" class=\"wp-caption-text\">Click to enlarge<\/figcaption><\/figure>\n<p>I came across Anscombe\u2019s Quartet on Wikipedia recently. I must confess to not having seen it before and don\u2019t recall seeing it in any introductory statistics books.<\/p>\n<p>The Anscombe\u2019s Quartet is a conceptually and graphically clear way of showing the importance of graphs in statistical analysis. Each of the 11 pairs of observations have the same, x mean, y mean, x variance, y variance, correlation co-efficient and regression equation, though each have very different distributions. They clearly demonstrate the impact of outliers and how non-linear relationships can be identified.<\/p>\n<p>Citation:<\/p>\n<p>F. J. Anscombe (1973) Graphs in Statistical Analysis<i> The American Statistician<\/i> , Vol. 27, No. 1 (Feb., 1973), pp. 17-21<\/p>\n<p>Article Stable URL: <a title=\"Anscombe's Quartet\" href=\"http:\/\/www.jstor.org\/stable\/2682899\">http:\/\/www.jstor.org\/stable\/2682899<\/a> (Not open access)<\/p>\n<p>&nbsp;<\/p>\n<p>LaTeX code below.<br \/>\n<code><br \/>\n\\documentclass{article}<br \/>\n\\usepackage{pgfplots}<br \/>\n\\usepackage{pgfplotstable}<br \/>\n\\pgfplotsset{compat=1.7}<br \/>\n\\usepackage{amssymb, amsmath}<br \/>\n\\usepackage{subcaption}<br \/>\n\\begin{document}<br \/>\n\\begin{figure}<br \/>\n\\caption{Anscombe's quartet is a good demonstration why a scatterplot is so valuable, prior to calculating regression equations and correlation co-efficients. In all four cases the $x's$ have a mean of 9, and variance of 11. The mean of all the $y's$ is 7.5, and a variance 4.125. The correlation co-efficient of each is 0.816 and the linear regression line is $y=3+0.5x $}<br \/>\n\\begin{subfigure}{.45 \\textwidth}<br \/>\n\\centering<br \/>\n\\caption{Normal linear relationship}<br \/>\n\\begin{tikzpicture}<br \/>\n\\begin{axis} [width=5cm, height=5cm, xlabel=X1, ylabel=Y1]<br \/>\n\\addplot[scatter, only marks, mark=x, mark size=4pt]<br \/>\ncoordinates<br \/>\n{<br \/>\n(10, 8.04)<br \/>\n(8.0, 6.95)<br \/>\n(13, 7.58)<br \/>\n(9, 8.81)<br \/>\n(11, 8.33)<br \/>\n(14, 9.96)<br \/>\n(6, 7.24)<br \/>\n(4, 4.26)<br \/>\n(12, 10.84)<br \/>\n(7, 4.82)<br \/>\n(5, 5.68)<br \/>\n};<br \/>\n\\addplot[scatter, mark=.]<br \/>\ncoordinates<br \/>\n{<br \/>\n(0, 4.1)<br \/>\n(20, 12.5)<br \/>\n};<br \/>\n\\end{axis}<br \/>\n\\end{tikzpicture}<br \/>\n\\end{subfigure}<br \/>\n\\begin{subfigure}{.45 \\textwidth}<br \/>\n\\centering<br \/>\n\\caption{Relationship clear, but not linear}<br \/>\n\\begin{tikzpicture}<br \/>\n\\begin{axis}[width=5cm, height=5cm, xlabel=X2, ylabel=Y2]<br \/>\n\\addplot[scatter, only marks, mark=x, mark size=4pt]<br \/>\ncoordinates<br \/>\n{<br \/>\n(10, 9.14)<br \/>\n(8.0, 8.14)<br \/>\n(13, 8.74)<br \/>\n(9, 8.77)<br \/>\n(11, 9.26)<br \/>\n(14, 8.10)<br \/>\n(6, 6.13)<br \/>\n(4, 3.1)<br \/>\n(12, 9.13)<br \/>\n(7, 7.26)<br \/>\n(5, 4.74)<br \/>\n};<br \/>\n\\addplot[scatter, mark=.]<br \/>\ncoordinates<br \/>\n{<br \/>\n(0, 4.1)<br \/>\n(20, 12.5)<br \/>\n};<br \/>\n\\end{axis}<br \/>\n\\end{tikzpicture}<br \/>\n\\end{subfigure}<br \/>\n\\<br \/>\n\\begin{subfigure}{.45 \\textwidth}<br \/>\n\\centering<br \/>\n\\caption{Clear linear relationship, but one outlier offsets the regression line}<br \/>\n\\begin{tikzpicture}<br \/>\n\\begin{axis} [width=5cm, height=5cm, xlabel=X3, ylabel=Y3]<br \/>\n\\addplot[scatter, only marks, mark=x, mark size=4pt]<br \/>\ncoordinates<br \/>\n{<br \/>\n(10, 7.46)<br \/>\n(8.0, 6.77)<br \/>\n(13, 12.74)<br \/>\n(9, 7.11)<br \/>\n(11, 7.81)<br \/>\n(14, 8.84)<br \/>\n(6, 6.08)<br \/>\n(4, 5.39)<br \/>\n(12, 8.15)<br \/>\n(7, 6.42)<br \/>\n(5, 5.73)<br \/>\n};<br \/>\n\\addplot[scatter, mark=.]<br \/>\ncoordinates<br \/>\n{<br \/>\n(0, 4.1)<br \/>\n(20, 12.5)<br \/>\n};<br \/>\n\\end{axis}<br \/>\n\\end{tikzpicture}<br \/>\n\\end{subfigure}<br \/>\n\\begin{subfigure}{.45 \\textwidth}<br \/>\n\\centering<br \/>\n\\caption{Clear relationship, but one outlier puts the regression line at 45 degrees to the other 10 observations}<br \/>\n\\begin{tikzpicture}<br \/>\n\\begin{axis} [width=5cm, height=5cm, xlabel=X4, ylabel=Y4]<br \/>\n\\addplot[scatter, only marks, mark=x, mark size=4pt]<br \/>\ncoordinates<br \/>\n{<br \/>\n(8, 6.58)<br \/>\n(8.0, 5.76)<br \/>\n(8, 7.71)<br \/>\n(8, 8.84)<br \/>\n(8, 7.04)<br \/>\n(8, 5.26)<br \/>\n(19, 12.5)<br \/>\n(8, 5.56)<br \/>\n(8, 7.91)<br \/>\n(8, 6.89)<br \/>\n(8, 6.89)<br \/>\n};<br \/>\n\\addplot[scatter, mark=.]<br \/>\ncoordinates<br \/>\n{<br \/>\n(0, 4.1)<br \/>\n(20, 12.5)<br \/>\n};<br \/>\n\\end{axis}<br \/>\n\\end{tikzpicture}<br \/>\n\\end{subfigure}<br \/>\n\\end{figure}<br \/>\n\\end{document}<br \/>\n<\/code><\/p>\n\n\n<ul class=\"aditya-social\" id=\"aditya-cssanime\">\n<li class=\"aditya-twitter\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D1252&amp;url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D1252\" target=\"_blank\" rel=\"nofollow\" title=\"Twitter\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/twitter.png\" alt=\"Twitter\" title=\"Twitter\" \/><\/a><\/li>\n<li class=\"aditya-delicious\"><a href=\"http:\/\/del.icio.us\/post?url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D1252&amp;title=Why+you+should+graph+data\" target=\"_blank\" rel=\"nofollow\" title=\"del.icio.us\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/delicious.png\" alt=\"del.icio.us\" title=\"del.icio.us\" \/><\/a><\/li>\n<li class=\"aditya-digg\"><a href=\"http:\/\/digg.com\/submit?phase=2&amp;url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D1252&amp;title=Why+you+should+graph+data\" target=\"_blank\" rel=\"nofollow\" title=\"Digg\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/digg.png\" alt=\"Digg\" title=\"Digg\" \/><\/a><\/li>\n<li class=\"aditya-facebook\"><a href=\"http:\/\/facebook.com\/sharer.php?u=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D1252&amp;t=Why+you+should+graph+data\" target=\"_blank\" rel=\"nofollow\" title=\"Facebook\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/facebook.png\" alt=\"Facebook\" title=\"Facebook\" \/><\/a><\/li>\n<li class=\"aditya-technorati\"><a href=\"http:\/\/technorati.com\/faves?add=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D1252\" target=\"_blank\" rel=\"nofollow\" title=\"Technorati\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/technorati.png\" alt=\"Technorati\" title=\"Technorati\" \/><\/a><\/li>\n<li class=\"aditya-reddit\"><a href=\"http:\/\/reddit.com\/submit?url=Why+you+should+graph+data&amp;u=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D1252\" target=\"_blank\" rel=\"nofollow\" title=\"Reddit\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/reddit.png\" alt=\"Reddit\" title=\"Reddit\" \/><\/a><\/li>\n<li class=\"aditya-yahoo\"><a href=\"http:\/\/buzz.yahoo.com\/submit?submitUrl=Why+you+should+graph+data&amp;u=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D1252\" target=\"_blank\" rel=\"nofollow\" title=\"Yahoo Buzz\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/yahoo.png\" alt=\"Yahoo Buzz\" title=\"Yahoo Buzz\" \/><\/a><\/li>\n<li class=\"aditya-stumbleupon\"><a href=\"http:\/\/stumbleupon.com\/submit?url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D1252&amp;title=Why+you+should+graph+data&amp;newcomment=Why+you+should+graph+data\" target=\"_blank\" rel=\"nofollow\" title=\"StumbleUpon\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/stumbleupon.png\" alt=\"StumbleUpon\" title=\"StumbleUpon\" \/><\/a><\/li>\n<\/ul>\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>Amended 10 March 2016 (corrections\/ update made) I came across Anscombe\u2019s Quartet on Wikipedia recently. I must confess to not having seen it before and don\u2019t recall seeing it in any introductory statistics books. The Anscombe\u2019s Quartet is a conceptually and graphically clear way of showing the importance of graphs in statistical analysis. Each of &hellip; <a href=\"http:\/\/johncanning.net\/wp\/?p=1252\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Why you should graph data<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,66],"tags":[],"class_list":["post-1252","post","type-post","status-publish","format-standard","hentry","category-latex","category-statistics"],"_links":{"self":[{"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1252"}],"version-history":[{"count":2,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1252\/revisions"}],"predecessor-version":[{"id":2239,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1252\/revisions\/2239"}],"wp:attachment":[{"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1252"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}