<?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 Outliers in simulation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45505#M11972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want correlated data, generate your X's from some multivariate distribution with the given correlation structure. Then add outliers (from the same distribution but with an larger variance?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand how you are using NLPCG. You haven't said what you are optimizing. Nevertheless, I don't see how you can get negative values if you specify the blc matrix correctly.&amp;nbsp; Make sure that your initial guess is valid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2011 19:09:55 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2011-12-01T19:09:55Z</dc:date>
    <item>
      <title>Outliers in simulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45499#M11966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone I need to know how can I determine the number of outliers in my simulation? Can anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 18:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45499#M11966</guid>
      <dc:creator>heba2000</dc:creator>
      <dc:date>2011-11-10T18:56:25Z</dc:date>
    </item>
    <item>
      <title>Outliers in simulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45500#M11967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to define an outlier (0/1) then add that up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defining the outlier is the problem, is it something outside the 99.9% CI?&lt;/P&gt;&lt;P&gt; It really depends on what you're looking at and your modelling criteria. How many paramters are you looking at, do you have a single outcome or multiple outcomes. &lt;/P&gt;&lt;P&gt;What's an outlier also depends on business context, for machinery it might be 99% but for medical data could be 95%...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need more details on what your simulating and how to help out. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 19:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45500#M11967</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-11-10T19:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Outliers in simulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45501#M11968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I need is generating the independent variables in a regression relationship and I need the generated independent variables to contain outliers.&lt;/P&gt;&lt;P&gt;By outliers I only mean values that are far away from the set of data generated (either outliers up or down)and not according to certain criteria and not something related to CI . and it is not&amp;nbsp; for a business context it is just for applying .Thanks for your effort &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 19:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45501#M11968</guid>
      <dc:creator>heba2000</dc:creator>
      <dc:date>2011-11-10T19:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Outliers in simulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45502#M11969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok...same idea then. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take each independent variable that was generated and flag if its an outlier or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK there really isn't an absolute statistical definition of what is an outlier, so you'll need to come up with that.&lt;/P&gt;&lt;P&gt; There's some suggested methods on Wikipedia &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://en.wikipedia.org/wiki/Outlier"&gt;http://en.wikipedia.org/wiki/Outlier&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 20:45:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45502#M11969</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-11-10T20:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Outliers in simulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45503#M11970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to do this is to use the idea of a "contaminated normal distribution," which is a specific kind of mixture distribution.&lt;/P&gt;&lt;P&gt;After you define the x variable simulate the y variable as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type = rand("Bernoulli", 0.1); /* outlier with 10% probability */&lt;/P&gt;&lt;P&gt;if type=1 then &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error = rand("Normal", 0, 10); /* error is N(0, 10) */&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error = rand("Normal", 0, 1); /* error is N(0, 10) */&lt;/P&gt;&lt;P&gt;y = intercept + beta*x + error;&lt;/P&gt;&lt;P&gt;outlier = (abs(error)&amp;gt;3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the probability of contamination (0.1), the magnitude of the contamination (10) and the definition of an outlier (3) as your needs require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more info on the general case of sampling from a mixture distribution, see &lt;A href="http://blogs.sas.com/content/iml/2011/09/21/generate-a-random-sample-from-a-mixture-distribution/"&gt;http://blogs.sas.com/content/iml/2011/09/21/generate-a-random-sample-from-a-mixture-distribution/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2011 19:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45503#M11970</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2011-11-12T19:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Outliers in simulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45504#M11971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your effort but I still have problem in this part&lt;/P&gt;&lt;P&gt;If I need the outliers in the independent variables x's I would follow the same procedure? and how to determine the correlation between the produced x's if I produced each x separetly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other problem I have is that I am using NLPCG model and I determined the first row in the blc matrix as zeros as I need my decision variable to be positive but still the produced variables have negative values how can I solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have another model that is linear in both objective function and constraint what is the suitable Call ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 21:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45504#M11971</guid>
      <dc:creator>heba2000</dc:creator>
      <dc:date>2011-11-25T21:21:52Z</dc:date>
    </item>
    <item>
      <title>Outliers in simulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45505#M11972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want correlated data, generate your X's from some multivariate distribution with the given correlation structure. Then add outliers (from the same distribution but with an larger variance?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand how you are using NLPCG. You haven't said what you are optimizing. Nevertheless, I don't see how you can get negative values if you specify the blc matrix correctly.&amp;nbsp; Make sure that your initial guess is valid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 19:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45505#M11972</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2011-12-01T19:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Outliers in simulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45506#M11973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt; The constraints in NLPCG are put in matrix form with the first row representing the lower limit so I put the matrix as&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;con={&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;40.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;51.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;60.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;24.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;53.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;80.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;16.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;34.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;52.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;84.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;42.894&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;0.&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;put still the resulted variables have negative values as -7.05E-18 so how can I solve this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;The other thing is that when I generated xs by this way and added to them the outliers(generated as from same distribution with larger value) the the new variables donot have the same correlation determined in the begining so how can I solve this problem?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;I also need to know how to make a condition so that:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;if correlation between y and x1 greater than or equal 0.5 x1 belongs to matrix H&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;if correlation between y and x1 less than 0.5 x1 belongs to matrix K&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 23:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Outliers-in-simulation/m-p/45506#M11973</guid>
      <dc:creator>heba2000</dc:creator>
      <dc:date>2011-12-02T23:33:44Z</dc:date>
    </item>
  </channel>
</rss>

