<?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 Using outlier with grouping in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50206#M22207</link>
    <description>&lt;P&gt;How can I use outlier with grouping. For instance, if I want to group my data by country, I would like to remove outliers from each group's data, not from the population as a whole. This is a problem for me because some countries generate far more events than others, which skews the data. So, while a data point might seem like an outlier for the total population, it might be relatively normal for that particular country. Is there a way to do this?&lt;/P&gt;

&lt;P&gt;Here's an example to help clarify:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user | country | foo | bar
---------------------------
1    | us      | 1   | 10
2    | us      | 2   | 12
3    | us      | 21  | 12
4    | ca      | 20  | 13
5    | ca      | 21  | 11

Ultimate output desired:
country | avg(foo) | avg(bar)
-----------------------------
us      | 1.5      | 11
ca      | 20.5     | 12
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the above, in the US users 3's foo value is an outlier, but that's a normal value for CA users. What I would like to be able to do is detect that user 3 is an outlier and discard that data, but keep the values for users 4 and 5 intact. Also, in my data there would be a lot more US events which would cause almost all the CA values to look like outliers.&lt;/P&gt;</description>
    <pubDate>Fri, 11 May 2012 18:06:21 GMT</pubDate>
    <dc:creator>caffein</dc:creator>
    <dc:date>2012-05-11T18:06:21Z</dc:date>
    <item>
      <title>Using outlier with grouping</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50206#M22207</link>
      <description>&lt;P&gt;How can I use outlier with grouping. For instance, if I want to group my data by country, I would like to remove outliers from each group's data, not from the population as a whole. This is a problem for me because some countries generate far more events than others, which skews the data. So, while a data point might seem like an outlier for the total population, it might be relatively normal for that particular country. Is there a way to do this?&lt;/P&gt;

&lt;P&gt;Here's an example to help clarify:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user | country | foo | bar
---------------------------
1    | us      | 1   | 10
2    | us      | 2   | 12
3    | us      | 21  | 12
4    | ca      | 20  | 13
5    | ca      | 21  | 11

Ultimate output desired:
country | avg(foo) | avg(bar)
-----------------------------
us      | 1.5      | 11
ca      | 20.5     | 12
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the above, in the US users 3's foo value is an outlier, but that's a normal value for CA users. What I would like to be able to do is detect that user 3 is an outlier and discard that data, but keep the values for users 4 and 5 intact. Also, in my data there would be a lot more US events which would cause almost all the CA values to look like outliers.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2012 18:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50206#M22207</guid>
      <dc:creator>caffein</dc:creator>
      <dc:date>2012-05-11T18:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using outlier with grouping</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50207#M22208</link>
      <description>&lt;P&gt;It seems like you have already solved this problem per your other question.  Please correct me if I am mistaken.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 22:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50207#M22208</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-05-17T22:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using outlier with grouping</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50208#M22209</link>
      <description>&lt;P&gt;Not really. My other question is about finding various box and whisker plot values for a full whole set of data. For this question I'm asking how I can loop through a set of groups and remove outliers within each group, rather than the population as a whole.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 22:39:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50208#M22209</guid>
      <dc:creator>caffein</dc:creator>
      <dc:date>2012-05-17T22:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using outlier with grouping</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50209#M22210</link>
      <description>&lt;P&gt;Essentially I want to say&lt;BR /&gt;
[search]...|outlier by country|table country, avg(foo), avg(bar)&lt;/P&gt;

&lt;P&gt;I know outlier doesn't support "by", but that's basically what I'm going for.&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2012 00:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50209#M22210</guid>
      <dc:creator>caffein</dc:creator>
      <dc:date>2012-05-18T00:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using outlier with grouping</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50210#M22211</link>
      <description>&lt;P&gt;Oops, sorry, I just rememebered this issue.  Let me think about this again.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 18:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50210#M22211</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-07-06T18:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using outlier with grouping</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50211#M22212</link>
      <description>&lt;P&gt;A pretty similar question (as it seems to me at least) was posted a couple of days ago, and the question/answer/following discussion perhaps might help you get some inspiration on how to achieve your goal? &lt;A href="http://splunk-base.splunk.com/answers/52107/how-do-i-remove-data-read-anomalies"&gt;http://splunk-base.splunk.com/answers/52107/how-do-i-remove-data-read-anomalies&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 18:32:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50211#M22212</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-06T18:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using outlier with grouping</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50212#M22213</link>
      <description>&lt;P&gt;I think that will do the trick. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 18:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50212#M22213</guid>
      <dc:creator>caffein</dc:creator>
      <dc:date>2012-07-06T18:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using outlier with grouping</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50213#M22214</link>
      <description>&lt;P&gt;Oh and just to put down how I think this would work:&lt;BR /&gt;
[search] | eventstats median(foo) as medfoo, stdev(foo) as stdfoo by country | where abs(foo - medfoo)&amp;lt;stdfoo | table avg(foo) by country&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 20:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Using-outlier-with-grouping/m-p/50213#M22214</guid>
      <dc:creator>caffein</dc:creator>
      <dc:date>2012-07-06T20:10:24Z</dc:date>
    </item>
  </channel>
</rss>

