{"id":2486,"date":"2009-10-30T14:42:51","date_gmt":"2009-10-30T14:42:51","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2009\/10\/30\/allstats\/"},"modified":"2009-10-30T14:42:51","modified_gmt":"2009-10-30T14:42:51","slug":"allstats","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2009\/10\/30\/allstats\/","title":{"rendered":"allstats"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction>\r\n      <p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/5021\">Bob<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/25572-allstats\">Allstats<\/a>  by Francisco de Castro.\r\n      <\/p>\r\n   <\/introduction>\r\n   <p>The file is simple enough. Given a data set,<\/p><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">x = randn(1000,1);\r\nhist(x,100)<\/pre><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/pickallstats_01.png\"> <p><tt>allstats<\/tt> returns a list of statistical values.\r\n   <\/p><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">myStats = allstats(x)<\/pre><pre style=\"font-style:oblique\">myStats = \r\n      min: -3.1289\r\n      max: 2.9371\r\n     mean: -0.06815\r\n      std: 1.0019\r\n     mode: -3.1289\r\n     q2p5: -1.9519\r\n       q5: -1.7128\r\n      q25: -0.73464\r\n      q50: -0.072006\r\n      q75: 0.55077\r\n      q95: 1.6351\r\n    q97p5: 1.8844\r\n<\/pre><p>The mean should be close to zero,<\/p><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">myStats.mean<\/pre><pre style=\"font-style:oblique\">ans =\r\n     -0.06815\r\n<\/pre><p>and the standard deviation should be close to one.<\/p><pre style=\"background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200)\">myStats.std<\/pre><pre style=\"font-style:oblique\">ans =\r\n       1.0019\r\n<\/pre><p>How convenient.<\/p>\r\n   <p>As it turns out, this month the File Exchange recently celebrated a major milestone. <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/25572-allstats\">Allstats<\/a> has the honor of being the official 10,000-th submission. Congratulations to Francisco and every contributor who made this\r\n      possible! Growth of the File Exchange has been absolutely amazing.\r\n   <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/fxgrowth.png\"> <\/p>\r\n   <p>If only my retirement account was that impressive! (sigh)<\/p>\r\n   <p><a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2486#respond\">Comments?<\/a><\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_dcb967a0e4f64bc0a4cb6315e3f64178() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='dcb967a0e4f64bc0a4cb6315e3f64178 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' dcb967a0e4f64bc0a4cb6315e3f64178';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Robert Bemis';\r\n        copyright = 'Copyright 2009 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_dcb967a0e4f64bc0a4cb6315e3f64178()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.9<br><\/p>\r\n<\/div>\r\n<!--\r\ndcb967a0e4f64bc0a4cb6315e3f64178 ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/5021 Bob>'s \r\n% pick this week is \r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/25572-allstats Allstats> \r\n%  by Francisco de Castro.\r\n%%\r\n% The file is simple enough. Given a data set,\r\nx = randn(1000,1);\r\nhist(x,100)\r\n%%\r\n% |allstats| returns a list of statistical values.\r\nmyStats = allstats(x)\r\n%%\r\n% The mean should be close to zero,\r\nmyStats.mean\r\n%%\r\n% and the standard deviation should be close to one.\r\nmyStats.std\r\n%%\r\n% How convenient.\r\n%%\r\n% As it turns out, this month the File Exchange recently celebrated a major\r\n% milestone. \r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/25572-allstats Allstats> \r\n% has the honor of being the official 10,000-th submission. Congratulations\r\n% to Francisco and every contributor who made this possible! Growth of the\r\n% File Exchange has been absolutely amazing. \r\n%%\r\n% <<..\/images\/pick\/fxgrowth.png>>\r\n%%\r\n% If only my retirement account was that impressive! (sigh)\r\n%%\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2486#respond Comments?>\r\n\r\n##### SOURCE END ##### dcb967a0e4f64bc0a4cb6315e3f64178\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   \r\n      Bob's pick this week is Allstats  by Francisco de Castro.\r\n      \r\n   \r\n   The file is simple enough. Given a data set,x = randn(1000,1);\r\nhist(x,100) allstats returns a list of... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2009\/10\/30\/allstats\/\">read more >><\/a><\/p>","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2486"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2486"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2486\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}