<?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 Are counts form the cofilter command &amp;quot;symmetric&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Are-counts-form-the-cofilter-command-quot-symmetric-quot/m-p/308012#M164693</link>
    <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;As I understand it, the cofilter command counts how many times pairs of items occur. If the same user views item A ánd item B then that is counted as a pair. these pairs are counted and in this way we can for example find what items are viewed together more often. See: &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Cofilter"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Cofilter&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The command makes a table with columns:&lt;BR /&gt;
Item 1, Item 1 user count, Item 2, Item 2 user count, Pair count&lt;/P&gt;

&lt;P&gt;If my understanding is correct, this should mean that the resulting dataset should be completely symmetric under the interchange of the labels 1 and 2. However, if I do for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| cofilter user item
| stats dc("Item 1") dc("Item 2")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get a different number of unique items in for the two columns. So what is the flaw in my understanding of the command? Or is there some "running out of memory"-issue that I'm not aware of?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;BR /&gt;
Jacob&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 21:59:52 GMT</pubDate>
    <dc:creator>JacobPN</dc:creator>
    <dc:date>2017-11-29T21:59:52Z</dc:date>
    <item>
      <title>Are counts form the cofilter command "symmetric"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-counts-form-the-cofilter-command-quot-symmetric-quot/m-p/308012#M164693</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;As I understand it, the cofilter command counts how many times pairs of items occur. If the same user views item A ánd item B then that is counted as a pair. these pairs are counted and in this way we can for example find what items are viewed together more often. See: &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Cofilter"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Cofilter&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The command makes a table with columns:&lt;BR /&gt;
Item 1, Item 1 user count, Item 2, Item 2 user count, Pair count&lt;/P&gt;

&lt;P&gt;If my understanding is correct, this should mean that the resulting dataset should be completely symmetric under the interchange of the labels 1 and 2. However, if I do for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| cofilter user item
| stats dc("Item 1") dc("Item 2")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get a different number of unique items in for the two columns. So what is the flaw in my understanding of the command? Or is there some "running out of memory"-issue that I'm not aware of?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;BR /&gt;
Jacob&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:59:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-counts-form-the-cofilter-command-quot-symmetric-quot/m-p/308012#M164693</guid>
      <dc:creator>JacobPN</dc:creator>
      <dc:date>2017-11-29T21:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Are counts form the cofilter command "symmetric"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-counts-form-the-cofilter-command-quot-symmetric-quot/m-p/308013#M164694</link>
      <description>&lt;P&gt;I think I found the answer to my own question:&lt;/P&gt;

&lt;P&gt;The command is NOT symmetric. Instead every pair occurs only once. Seems logical thing in hindsight..&lt;/P&gt;

&lt;P&gt;In other words, to find every item that users have viewed together with e.g. item 34, the correct search is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| cofilter user item
| search "Item 1" = 34 OR "Item 2" = 34
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Nov 2017 12:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-counts-form-the-cofilter-command-quot-symmetric-quot/m-p/308013#M164694</guid>
      <dc:creator>JacobPN</dc:creator>
      <dc:date>2017-11-30T12:43:13Z</dc:date>
    </item>
  </channel>
</rss>

