{"id":20799,"date":"2021-11-12T20:18:56","date_gmt":"2021-11-12T14:48:56","guid":{"rendered":"http:\/\/ismiletechnologies.com\/?p=20799"},"modified":"2021-11-17T21:50:37","modified_gmt":"2021-11-17T16:20:37","slug":"how-to-implement-javascript-for-statistics-method","status":"publish","type":"post","link":"https:\/\/ismiletechnologies.com\/en_us\/data-science\/how-to-implement-javascript-for-statistics-method\/","title":{"rendered":"How to Implement JavaScript for Statistics Method"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"20799\" class=\"elementor elementor-20799\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a5d50bd elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a5d50bd\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9b1e573\" data-id=\"9b1e573\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cc2e875 elementor-widget elementor-widget-text-editor\" data-id=\"cc2e875\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span class=\"TextRun SCXW35211764 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW35211764 BCX0\">Over these past few weeks, I\u2019ve learned that<\/span><span class=\"NormalTextRun SCXW35211764 BCX0\">\u00a0<\/span><span class=\"NormalTextRun SCXW35211764 BCX0\">Java<\/span><span class=\"NormalTextRun SCXW35211764 BCX0\">S<\/span><span class=\"NormalTextRun SCXW35211764 BCX0\">cript is an extremely useful programming language. In this blog, we will see how we can use JavaScript to implement statistical methods into our programs.<\/span><\/span><span class=\"EOP SCXW35211764 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-25f4732 elementor-widget elementor-widget-image\" data-id=\"25f4732\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"446\" height=\"344\" src=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/11\/image-22.png\" class=\"attachment-full size-full wp-image-20802\" alt=\"\" srcset=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/11\/image-22.png 446w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/11\/image-22-300x231.png 300w\" sizes=\"(max-width: 446px) 100vw, 446px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1a9f6fe elementor-widget elementor-widget-text-editor\" data-id=\"1a9f6fe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span data-contrast=\"auto\">As you can probably imagine, there exist a couple libraries for statistical methods inside JavaScript. One of them is\u00a0Simple Statistics. Here\u2019s the link for the documentation for this library:<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<br \/><\/span><a href=\"https:\/\/simplestatistics.org\/\"><span data-contrast=\"none\"><span style=\"color: #333399;\">https:\/\/simplestatistics.org\/<\/span><\/span><\/a><span style=\"color: #333399;\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">I will give a basic demonstration of some of the simpler statistical methods.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4291b1d elementor-widget elementor-widget-heading\" data-id=\"4291b1d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"> min and max <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f3ea0c8 elementor-widget elementor-widget-code-highlight\" data-id=\"f3ea0c8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>min(x: Array<number>): number <\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9550f19 elementor-widget elementor-widget-text-editor\" data-id=\"9550f19\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span data-contrast=\"auto\">(max\u00a0is written in the same way, just swap min with max)<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">min and max return the smallest\/largest number in an array. The only parameter is that you input an array of numbers.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e8a443c elementor-widget elementor-widget-heading\" data-id=\"e8a443c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">sum<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e67b54e elementor-widget elementor-widget-code-highlight\" data-id=\"e67b54e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>sum(x:Array<number>): number <\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c4f528f elementor-widget elementor-widget-text-editor\" data-id=\"c4f528f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span class=\"TextRun SCXW235036937 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW235036937 BCX0\">sum returns the sum of all the numbers in an array<\/span><span class=\"NormalTextRun SCXW235036937 BCX0\">. Again, the only parameter is that you input an array of numbers.<\/span><\/span><span class=\"EOP SCXW235036937 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a05a1a7 elementor-widget elementor-widget-heading\" data-id=\"a05a1a7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">mean<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8cdc63e elementor-widget elementor-widget-code-highlight\" data-id=\"8cdc63e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>mean(x: Array<number>): number <\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-50d3c28 elementor-widget elementor-widget-text-editor\" data-id=\"50d3c28\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span class=\"TextRun SCXW58239287 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW58239287 BCX0\">Mean returns the average of all the numbers in an array<\/span><span class=\"NormalTextRun SCXW58239287 BCX0\">. The only parameter is that you input an array of numbers.<\/span><\/span><span class=\"EOP SCXW58239287 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d486590 elementor-widget elementor-widget-heading\" data-id=\"d486590\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">variance <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-93a2997 elementor-widget elementor-widget-code-highlight\" data-id=\"93a2997\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>variance(x: Array<number>): number <\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f9c35ae elementor-widget elementor-widget-text-editor\" data-id=\"f9c35ae\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span class=\"TextRun SCXW90278884 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW90278884 BCX0\">Variance returns the sum of squared deviations from all the numbers in an array<\/span><span class=\"NormalTextRun SCXW90278884 BCX0\">. The only parameter is that you input an array of numbers.<\/span><\/span><span class=\"EOP SCXW90278884 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-32aeb2c elementor-widget elementor-widget-heading\" data-id=\"32aeb2c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">zScore <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5df31ea elementor-widget elementor-widget-code-highlight\" data-id=\"5df31ea\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>zScore(x: number, mean: number, standardDeviation: number): number <\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a7a0eeb elementor-widget elementor-widget-text-editor\" data-id=\"a7a0eeb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span data-contrast=\"auto\">zScore\u00a0measures the\u00a0score\u00a0above or below the mean. For this, you need only provide the x\u00a0(observed value), the mean\u00a0(mu), and the\u00a0standard deviation\u00a0(sigma).<\/span><span data-ccp-props=\"{\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\"><br \/>As you can see from these examples,\u00a0Simple\u00a0Statistics is a very intuitive JavaScript library.\u00a0If you have any interest in this library, you can install it with this terminal command (assuming you have node.js):<\/span><span data-ccp-props=\"{\">\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-45ae2dc elementor-widget elementor-widget-code-highlight\" data-id=\"45ae2dc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>npm install --save simple-statistics <\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-aeb1e8f elementor-widget elementor-widget-text-editor\" data-id=\"aeb1e8f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span data-contrast=\"auto\">Again, here is the link to the documentation if you need it:<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<br \/><\/span><a href=\"https:\/\/simplestatistics.org\/\"><span data-contrast=\"none\"><span style=\"color: #333399;\">https:\/\/simplestatistics.org\/<\/span><\/span><\/a><span style=\"color: #333399;\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">In researching for this blog, I also found another library,\u00a0jstat. This blog is already long enough, so I will not be delving into it, but here\u2019s the documentation for that library if you need it:<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<br \/><\/span><span style=\"color: #333399;\"><a style=\"color: #333399;\" href=\"https:\/\/jstat.github.io\/overview.html\">https:\/\/jstat.github.io\/overview.html<\/a><\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<br \/><\/span><span data-contrast=\"auto\">This has been <span style=\"color: #000000;\">Warren Ball, <em>data science intern<\/em><\/span> at\u00a0iSmile\u00a0Technologies. Thanks for reading, I hope this helps.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Over these past few weeks, I\u2019ve learned that&nbsp;JavaScript is an extremely useful programming language. In this blog, we will see how we can use JavaScript to implement statistical methods into our programs.&nbsp; As you can probably imagine, there exist a couple libraries for statistical methods inside JavaScript. One of them is&nbsp;Simple Statistics. Here\u2019s the link [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":20915,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[],"class_list":["post-20799","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v28.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Implement JavaScript for Statistics Method - ISmile Technologies<\/title>\n<meta name=\"description\" content=\"In this blog, we will see how we can use JavaScript to implement the following statistical methods into our programs: min and max, sum, mean, variance\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ismiletechnologies.com\/en_us\/data-science\/how-to-implement-javascript-for-statistics-method\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Implement JavaScript for Statistics Method - ISmile Technologies\" \/>\n<meta property=\"og:description\" content=\"In this blog, we will see how we can use JavaScript to implement the following statistical methods into our programs: min and max, sum, mean, variance\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ismiletechnologies.com\/en_us\/data-science\/how-to-implement-javascript-for-statistics-method\/\" \/>\n<meta property=\"og:site_name\" content=\"ISmile Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ISmileTechnologiesOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-12T14:48:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-17T16:20:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/11\/Implement-JS-for-statistics-method.png\" \/>\n\t<meta property=\"og:image:width\" content=\"780\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"ISmile_Technologies\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@iSmileTechnolo1\" \/>\n<meta name=\"twitter:site\" content=\"@iSmileTechnolo1\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ISmile_Technologies\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/\"},\"author\":{\"name\":\"ISmile_Technologies\",\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/en_za\\\/#\\\/schema\\\/person\\\/56a91efe6f901e20650f59f4f27dd375\"},\"headline\":\"How to Implement JavaScript for Statistics Method\",\"datePublished\":\"2021-11-12T14:48:56+00:00\",\"dateModified\":\"2021-11-17T16:20:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/\"},\"wordCount\":370,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ismiletechnologies.com\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Implement-JS-for-statistics-method.png\",\"articleSection\":[\"Data Science\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/\",\"url\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/\",\"name\":\"How to Implement JavaScript for Statistics Method - ISmile Technologies\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/en_za\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ismiletechnologies.com\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Implement-JS-for-statistics-method.png\",\"datePublished\":\"2021-11-12T14:48:56+00:00\",\"dateModified\":\"2021-11-17T16:20:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/en_za\\\/#\\\/schema\\\/person\\\/56a91efe6f901e20650f59f4f27dd375\"},\"description\":\"In this blog, we will see how we can use JavaScript to implement the following statistical methods into our programs: min and max, sum, mean, variance\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ismiletechnologies.com\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Implement-JS-for-statistics-method.png\",\"contentUrl\":\"https:\\\/\\\/ismiletechnologies.com\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Implement-JS-for-statistics-method.png\",\"width\":780,\"height\":400,\"caption\":\"Implement JS for statistics method\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/data-science\\\/how-to-implement-javascript-for-statistics-method\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data Science\",\"item\":\"https:\\\/\\\/ismiletechnologies.com\\\/category\\\/data-science\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Implement JavaScript for Statistics Method\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/en_za\\\/#website\",\"url\":\"https:\\\/\\\/ismiletechnologies.com\\\/en_za\\\/\",\"name\":\"ISmile Technologies\",\"description\":\"Enterprise IT Consulting and Managed Services\",\"alternateName\":\"ISmile\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ismiletechnologies.com\\\/en_za\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ismiletechnologies.com\\\/en_za\\\/#\\\/schema\\\/person\\\/56a91efe6f901e20650f59f4f27dd375\",\"name\":\"ISmile_Technologies\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3c687532cc0ad1d6dfada75405e8b8c38820a0d9f3e002b8c357317bb29b7bd7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3c687532cc0ad1d6dfada75405e8b8c38820a0d9f3e002b8c357317bb29b7bd7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3c687532cc0ad1d6dfada75405e8b8c38820a0d9f3e002b8c357317bb29b7bd7?s=96&d=mm&r=g\",\"caption\":\"ISmile_Technologies\"},\"sameAs\":[\"https:\\\/\\\/ismiletechnologies.com\\\/\"],\"honorificPrefix\":\"Mr\",\"honorificSuffix\":\"Manager\",\"birthDate\":\"1999-09-02\",\"gender\":\"Male\",\"award\":[\"Employee of the month\"],\"knowsAbout\":[\"Digital Marketing\",\"SEO\",\"SEM\",\"Social Media\",\"PPC\"],\"knowsLanguage\":[\"English\",\"Tamil\"],\"jobTitle\":\"Marketing Manager\",\"worksFor\":\"ISmile Technologies\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Implement JavaScript for Statistics Method - ISmile Technologies","description":"In this blog, we will see how we can use JavaScript to implement the following statistical methods into our programs: min and max, sum, mean, variance","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ismiletechnologies.com\/en_us\/data-science\/how-to-implement-javascript-for-statistics-method\/","og_locale":"en_US","og_type":"article","og_title":"How to Implement JavaScript for Statistics Method - ISmile Technologies","og_description":"In this blog, we will see how we can use JavaScript to implement the following statistical methods into our programs: min and max, sum, mean, variance","og_url":"https:\/\/ismiletechnologies.com\/en_us\/data-science\/how-to-implement-javascript-for-statistics-method\/","og_site_name":"ISmile Technologies","article_publisher":"https:\/\/www.facebook.com\/ISmileTechnologiesOfficial\/","article_published_time":"2021-11-12T14:48:56+00:00","article_modified_time":"2021-11-17T16:20:37+00:00","og_image":[{"width":780,"height":400,"url":"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/11\/Implement-JS-for-statistics-method.png","type":"image\/png"}],"author":"ISmile_Technologies","twitter_card":"summary_large_image","twitter_creator":"@iSmileTechnolo1","twitter_site":"@iSmileTechnolo1","twitter_misc":{"Written by":"ISmile_Technologies","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/#article","isPartOf":{"@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/"},"author":{"name":"ISmile_Technologies","@id":"https:\/\/ismiletechnologies.com\/en_za\/#\/schema\/person\/56a91efe6f901e20650f59f4f27dd375"},"headline":"How to Implement JavaScript for Statistics Method","datePublished":"2021-11-12T14:48:56+00:00","dateModified":"2021-11-17T16:20:37+00:00","mainEntityOfPage":{"@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/"},"wordCount":370,"commentCount":0,"image":{"@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/#primaryimage"},"thumbnailUrl":"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/11\/Implement-JS-for-statistics-method.png","articleSection":["Data Science"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/","url":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/","name":"How to Implement JavaScript for Statistics Method - ISmile Technologies","isPartOf":{"@id":"https:\/\/ismiletechnologies.com\/en_za\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/#primaryimage"},"image":{"@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/#primaryimage"},"thumbnailUrl":"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/11\/Implement-JS-for-statistics-method.png","datePublished":"2021-11-12T14:48:56+00:00","dateModified":"2021-11-17T16:20:37+00:00","author":{"@id":"https:\/\/ismiletechnologies.com\/en_za\/#\/schema\/person\/56a91efe6f901e20650f59f4f27dd375"},"description":"In this blog, we will see how we can use JavaScript to implement the following statistical methods into our programs: min and max, sum, mean, variance","breadcrumb":{"@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/#primaryimage","url":"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/11\/Implement-JS-for-statistics-method.png","contentUrl":"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/11\/Implement-JS-for-statistics-method.png","width":780,"height":400,"caption":"Implement JS for statistics method"},{"@type":"BreadcrumbList","@id":"https:\/\/ismiletechnologies.com\/data-science\/how-to-implement-javascript-for-statistics-method\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Data Science","item":"https:\/\/ismiletechnologies.com\/category\/data-science\/"},{"@type":"ListItem","position":2,"name":"How to Implement JavaScript for Statistics Method"}]},{"@type":"WebSite","@id":"https:\/\/ismiletechnologies.com\/en_za\/#website","url":"https:\/\/ismiletechnologies.com\/en_za\/","name":"ISmile Technologies","description":"Enterprise IT Consulting and Managed Services","alternateName":"ISmile","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ismiletechnologies.com\/en_za\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ismiletechnologies.com\/en_za\/#\/schema\/person\/56a91efe6f901e20650f59f4f27dd375","name":"ISmile_Technologies","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3c687532cc0ad1d6dfada75405e8b8c38820a0d9f3e002b8c357317bb29b7bd7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3c687532cc0ad1d6dfada75405e8b8c38820a0d9f3e002b8c357317bb29b7bd7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3c687532cc0ad1d6dfada75405e8b8c38820a0d9f3e002b8c357317bb29b7bd7?s=96&d=mm&r=g","caption":"ISmile_Technologies"},"sameAs":["https:\/\/ismiletechnologies.com\/"],"honorificPrefix":"Mr","honorificSuffix":"Manager","birthDate":"1999-09-02","gender":"Male","award":["Employee of the month"],"knowsAbout":["Digital Marketing","SEO","SEM","Social Media","PPC"],"knowsLanguage":["English","Tamil"],"jobTitle":"Marketing Manager","worksFor":"ISmile Technologies"}]}},"_links":{"self":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/20799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/comments?post=20799"}],"version-history":[{"count":9,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/20799\/revisions"}],"predecessor-version":[{"id":20920,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/20799\/revisions\/20920"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/media\/20915"}],"wp:attachment":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/media?parent=20799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/categories?post=20799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/tags?post=20799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}