{"id":1199,"date":"2025-09-26T10:27:55","date_gmt":"2025-09-26T09:27:55","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1199"},"modified":"2026-01-13T15:03:10","modified_gmt":"2026-01-13T15:03:10","slug":"included-stats-functions","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/included-stats-functions\/","title":{"rendered":"Included Stats Functions"},"content":{"rendered":"<p>Mwnci statistical functions that are not part of the builtin functions can be loaded with<\/p>\n<pre>include(\"stats\")<\/pre>\n<h2>Functions<\/h2>\n<div class=\"table-wrap\">\n<table class=\"confluenceTable\">\n<tbody>\n<tr>\n<td class=\"confluenceTd\"><strong>Command<\/strong><\/td>\n<td class=\"confluenceTd\"><strong>Definition<\/strong><\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-average-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">average()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the average (mean) of all the values in an array.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-covariance-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">covariance()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the covariance of two data sets (arrays).<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-geomean-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">geomean()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the average value or mean which signifies the central tendency of the set of numbers by finding the product of their values.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-harmonicmean-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">harmonicmean()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the average rate of change for a given set of numbers.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-mean-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">mean()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns mean (average) of all the values in an array.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-median-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">median()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the median (middle value) of the given numeric array.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-mode-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">mode()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the mode (central tendency) of the given numeric or nominal array.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-stdev-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">stdev()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the standard deviation of a given data set.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-variance-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">variance()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns how far a set of numbers are spread out from their average value.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Mwnci statistical functions that are not part of the builtin functions can be loaded with include(&#8220;stats&#8221;) Functions Command Definition average() Returns the average (mean) of all the values in an array. covariance() Returns the covariance of two data sets (arrays). geomean() Returns the average value or mean which signifies the central tendency of the set &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/included-stats-functions\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Included Stats Functions&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1199","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1199"}],"version-history":[{"count":9,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1199\/revisions"}],"predecessor-version":[{"id":1353,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1199\/revisions\/1353"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}