<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Stdev has a weird behaviour in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Stdev-has-a-weird-behaviour/m-p/159101#M44863</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I'm seeing strange results using stdev.&lt;BR /&gt;
I'm using the following command :&lt;/P&gt;

&lt;P&gt;sourcetype=whatever | stats avg(timetaken) as average, stdev(timetaken) as deviation by uri | where deviation &amp;gt; average&lt;/P&gt;

&lt;P&gt;And I have results that are actually showing a standard deviation that is superior to the average ... which is not mathematically possible according to me unless we have negative "timetaken" values (and that's not the case).&lt;/P&gt;

&lt;P&gt;I tried stdevp too but it's not better.&lt;/P&gt;

&lt;P&gt;Has anyone got a clue ?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Mat&lt;/P&gt;</description>
    <pubDate>Fri, 10 Oct 2014 15:59:38 GMT</pubDate>
    <dc:creator>Mahieu</dc:creator>
    <dc:date>2014-10-10T15:59:38Z</dc:date>
    <item>
      <title>Stdev has a weird behaviour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stdev-has-a-weird-behaviour/m-p/159101#M44863</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I'm seeing strange results using stdev.&lt;BR /&gt;
I'm using the following command :&lt;/P&gt;

&lt;P&gt;sourcetype=whatever | stats avg(timetaken) as average, stdev(timetaken) as deviation by uri | where deviation &amp;gt; average&lt;/P&gt;

&lt;P&gt;And I have results that are actually showing a standard deviation that is superior to the average ... which is not mathematically possible according to me unless we have negative "timetaken" values (and that's not the case).&lt;/P&gt;

&lt;P&gt;I tried stdevp too but it's not better.&lt;/P&gt;

&lt;P&gt;Has anyone got a clue ?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Mat&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 15:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stdev-has-a-weird-behaviour/m-p/159101#M44863</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2014-10-10T15:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev has a weird behaviour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stdev-has-a-weird-behaviour/m-p/159102#M44864</link>
      <description>&lt;P&gt;This is entirely mathematically possible if you have a large range of numbers, especially when not evenly distributed.&lt;/P&gt;

&lt;P&gt;From &lt;A href="http://staff.argyll.epsb.ca/jreed/math30p/statistics/standardDeviation.htm"&gt;http://staff.argyll.epsb.ca/jreed/math30p/statistics/standardDeviation.htm&lt;/A&gt; the example is:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The standard deviation can be larger&lt;BR /&gt;
than the mean. The range of numbers&lt;BR /&gt;
has to be large for this to occur. One&lt;BR /&gt;
such sample is {0, 0, 1, 15, 20},&lt;BR /&gt;
where  [the mean] = 7.2 and [the standard deviation] = 8.6.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 10 Oct 2014 17:22:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stdev-has-a-weird-behaviour/m-p/159102#M44864</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2014-10-10T17:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev has a weird behaviour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stdev-has-a-weird-behaviour/m-p/159103#M44865</link>
      <description>&lt;P&gt;Alright, thanks for that. &lt;BR /&gt;
I'll go back to the Math class then &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Oct 2014 10:17:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stdev-has-a-weird-behaviour/m-p/159103#M44865</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2014-10-11T10:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev has a weird behaviour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stdev-has-a-weird-behaviour/m-p/159104#M44866</link>
      <description>&lt;P&gt;Don't forget that "standard deviation" assumes that the values are distributed in a symmetrical, Gaussian ("Normal" or "Bell") curve. As jtruck's example shows, certain data can exist that doesn't really conform to this Gaussian curve and thus the standard deviation function becomes the wrong tool to analyze the behavior of the data.&lt;/P&gt;

&lt;P&gt;VMWare once did a nice whitepaper (&lt;A href="http://www.vmware.com/files/pdf/vcenter/VMware-vCenter-Operations-How-Normal-Is-Your-Data-WP-EN.pdf"&gt;http://www.vmware.com/files/pdf/vcenter/VMware-vCenter-Operations-How-Normal-Is-Your-Data-WP-EN.pdf&lt;/A&gt;) that explains just now non-"Normal" machine data can be.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 17:15:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stdev-has-a-weird-behaviour/m-p/159104#M44866</guid>
      <dc:creator>prelert</dc:creator>
      <dc:date>2014-10-24T17:15:26Z</dc:date>
    </item>
  </channel>
</rss>

