<?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 Re: Random Sampling in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/random-sampling/m-p/219769#M12515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's not a random sample -- that's a systematic sample. For a random sample you'd need &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to know the actual IDs to highlight them, but for a systematic sample you just need to know&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the modulus operator for your database and the selection starting point, then you can select &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using a WHERE clause, e.g., WHERE mod(id,9) = 1. Keep in mind that the range of a modulus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is [0..N-1], so mod(9,9) = 0.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: SQL-Server doesn't have a "mod" function, but it has an operator (e.g., WHERE id % 9 = 1)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Dec 2010 11:00:56 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2010-12-03T11:00:56Z</dc:date>
    <item>
      <title>Random Sampling</title>
      <link>https://community.esri.com/t5/data-management-questions/random-sampling/m-p/219768#M12514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an attribute table with a list of IDs that extends to 8000+.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The study thats being done - has randomly selected households with an interval of 9. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I highlight just the selected household IDs on the map ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you ! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;N J A&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 04:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/random-sampling/m-p/219768#M12514</guid>
      <dc:creator>N_JA</dc:creator>
      <dc:date>2010-12-03T04:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Random Sampling</title>
      <link>https://community.esri.com/t5/data-management-questions/random-sampling/m-p/219769#M12515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's not a random sample -- that's a systematic sample. For a random sample you'd need &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to know the actual IDs to highlight them, but for a systematic sample you just need to know&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the modulus operator for your database and the selection starting point, then you can select &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using a WHERE clause, e.g., WHERE mod(id,9) = 1. Keep in mind that the range of a modulus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is [0..N-1], so mod(9,9) = 0.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: SQL-Server doesn't have a "mod" function, but it has an operator (e.g., WHERE id % 9 = 1)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 11:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/random-sampling/m-p/219769#M12515</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-12-03T11:00:56Z</dc:date>
    </item>
  </channel>
</rss>

