<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Probabilistic Lookup</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Bill G.</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-55773</link>
		<dc:creator>Bill G.</dc:creator>
		<pubDate>Mon, 13 Dec 2010 19:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-55773</guid>
		<description>&lt;p&gt;Thanks to Dick and all the contributors of this site.  I have picked up hundreds of tips here.  Many thanks.&lt;/p&gt;
&lt;p&gt;I am trying to develop a function that will count the number of runs within a range with one run being defined as when the value encounters a sign change (i.e. from positive to negative or negative to positive).  Consider the following range: starting in cell A1 and continuing down to cell A10 I have these numbers:  125, 200, 175, -50, -75, 135, -65, -225, -90, and 115.  The first three values (125, 200, 175) are positive and are considered as one run (a winning streak).  The next two values are negative (-50, -75) thus are considered another run (a losing streak).  The next value (135) is positive and is considered another run.  The next three values (-65, -225, -90) are negative and thus is considered another run.  Finally, the last value in the range (115) is positive, thus is considered another run.  Therefore, for this example range the total number of runs 5.  I have developed functions to calculate the longest winning and losing streaks, but I am really hitting a wall developing a function to calculate the total number of runs within a range.  Any suggestions on how to approach this problem would be greatly appreciated.  Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks to Dick and all the contributors of this site.  I have picked up hundreds of tips here.  Many thanks.</p>
<p>I am trying to develop a function that will count the number of runs within a range with one run being defined as when the value encounters a sign change (i.e. from positive to negative or negative to positive).  Consider the following range: starting in cell A1 and continuing down to cell A10 I have these numbers:  125, 200, 175, -50, -75, 135, -65, -225, -90, and 115.  The first three values (125, 200, 175) are positive and are considered as one run (a winning streak).  The next two values are negative (-50, -75) thus are considered another run (a losing streak).  The next value (135) is positive and is considered another run.  The next three values (-65, -225, -90) are negative and thus is considered another run.  Finally, the last value in the range (115) is positive, thus is considered another run.  Therefore, for this example range the total number of runs 5.  I have developed functions to calculate the longest winning and losing streaks, but I am really hitting a wall developing a function to calculate the total number of runs within a range.  Any suggestions on how to approach this problem would be greatly appreciated.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cyrus Sujar...</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-33623</link>
		<dc:creator>Cyrus Sujar...</dc:creator>
		<pubDate>Tue, 15 Jul 2008 17:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-33623</guid>
		<description>&lt;p&gt;Statistical Perfection yields the best results. Sorry so late but I was helping someone with homework and came across this unsatisfactory answer. What you need is an &quot;adjusted cumulative frequency&quot; column to the left of the names. Luckily, the data includes the cumulative frequency:&lt;/p&gt;
&lt;p&gt;adj.cf  name        freq   cum.freq(%)  rank&lt;br&gt;
0       MARY        2.629  2.629         1&lt;br&gt;
.02629  PATRICIA    1.073  3.702         2&lt;br&gt;
.03702  LINDA       1.035  4.736         3&lt;br&gt;
.04736  BARBARA     0.980  5.716         4&lt;br&gt;
.05716  ELIZABETH   0.937  6.653         5&lt;/p&gt;
&lt;p&gt;=VLOOKUP(RAND(), $A$2:$B$6, 2)&lt;br&gt;
or if you use the actual data&lt;br&gt;
=VLOOKUP(RAND(), $A$2:$B$4275, 2)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.excelforum.com/showthread.php?t=628930&quot; rel=&quot;nofollow&quot;&gt;http://www.excelforum.com/showthread.php?t=628930&lt;/a&gt;&lt;br&gt;
shows similar question with Letters of alphabet&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Statistical Perfection yields the best results. Sorry so late but I was helping someone with homework and came across this unsatisfactory answer. What you need is an &#8220;adjusted cumulative frequency&#8221; column to the left of the names. Luckily, the data includes the cumulative frequency:</p>
<p>adj.cf  name        freq   cum.freq(%)  rank<br />
0       MARY        2.629  2.629         1<br />
.02629  PATRICIA    1.073  3.702         2<br />
.03702  LINDA       1.035  4.736         3<br />
.04736  BARBARA     0.980  5.716         4<br />
.05716  ELIZABETH   0.937  6.653         5</p>
<p>=VLOOKUP(RAND(), $A$2:$B$6, 2)<br />
or if you use the actual data<br />
=VLOOKUP(RAND(), $A$2:$B$4275, 2)</p>
<p><a href="http://www.excelforum.com/showthread.php?t=628930" rel="nofollow">http://www.excelforum.com/showthread.php?t=628930</a><br />
shows similar question with Letters of alphabet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Reynolds</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-20158</link>
		<dc:creator>Andrew Reynolds</dc:creator>
		<pubDate>Thu, 13 Jul 2006 18:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-20158</guid>
		<description>&lt;p&gt;{=OFFSET($A$1,MATCH(RAND(),1-EXPONDIST(ROW(1:[n])-1,[tweakable constant],TRUE),-1),0)} ... so entered as an array formula over the required output cells.&lt;/p&gt;
&lt;p&gt;A1 is one cell above the input list&lt;br&gt;
[n] is the upper bound for the number of input values + 1&lt;br&gt;
[tweakable constant] controls the decay in probabilities for the exponential function. 0.1 &#039;works&#039; over 10,000 cells, 0.9 can be seen to &#039;work&#039; for a shorter list. 0.1 is very &#039;slow&#039; decay in probability.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>{=OFFSET($A$1,MATCH(RAND(),1-EXPONDIST(ROW(1:[n])-1,[tweakable constant],TRUE),-1),0)} &#8230; so entered as an array formula over the required output cells.</p>
<p>A1 is one cell above the input list<br />
[n] is the upper bound for the number of input values + 1<br />
[tweakable constant] controls the decay in probabilities for the exponential function. 0.1 &#8216;works&#8217; over 10,000 cells, 0.9 can be seen to &#8216;work&#8217; for a shorter list. 0.1 is very &#8216;slow&#8217; decay in probability.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Stackhouse</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-20156</link>
		<dc:creator>Shawn Stackhouse</dc:creator>
		<pubDate>Thu, 13 Jul 2006 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-20156</guid>
		<description>&lt;p&gt;For a graphical representation of name popularity over the decades, check out the totally fun Baby Name Wizard at &lt;a href=&quot;http://www.babynamewizard.com/namevoyager/&quot; rel=&quot;nofollow&quot;&gt;http://www.babynamewizard.com/namevoyager/&lt;/a&gt;  &lt;/p&gt;
&lt;p&gt;Poor Mary ain&#039;t what she used to be!  &lt;/p&gt;
&lt;p&gt;From these charts, you can easily pinpoint when I was born.  :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>For a graphical representation of name popularity over the decades, check out the totally fun Baby Name Wizard at <a href="http://www.babynamewizard.com/namevoyager/" rel="nofollow">http://www.babynamewizard.com/namevoyager/</a>  </p>
<p>Poor Mary ain&#8217;t what she used to be!  </p>
<p>From these charts, you can easily pinpoint when I was born.  <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Walkenbach</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-20154</link>
		<dc:creator>John Walkenbach</dc:creator>
		<pubDate>Thu, 13 Jul 2006 14:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-20154</guid>
		<description>&lt;p&gt;Thanks to everyone. I haven&#039;t gone through them all yet, but this is a great help.&lt;/p&gt;
&lt;p&gt;BTW, here&#039;s where I got the names from:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.census.gov/genealogy/names/names_files.html&quot; rel=&quot;nofollow&quot;&gt;http://www.census.gov/genealogy/names/names_files.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And each name has a frequency.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks to everyone. I haven&#8217;t gone through them all yet, but this is a great help.</p>
<p>BTW, here&#8217;s where I got the names from:</p>
<p><a href="http://www.census.gov/genealogy/names/names_files.html" rel="nofollow">http://www.census.gov/genealogy/names/names_files.html</a></p>
<p>And each name has a frequency.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J Walker</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-20153</link>
		<dc:creator>J Walker</dc:creator>
		<pubDate>Thu, 13 Jul 2006 13:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-20153</guid>
		<description>&lt;p&gt;Mpemba:&lt;br&gt;
You shouldn&#039;t be surprised Mary was at the top of the list. If you go to the site you linked and check the &quot;Popularity of a Name&quot; on Female for the past 100 years using the name Mary, you&#039;ll find it was a very popular name for a very long time.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Mpemba:<br />
You shouldn&#8217;t be surprised Mary was at the top of the list. If you go to the site you linked and check the &#8220;Popularity of a Name&#8221; on Female for the past 100 years using the name Mary, you&#8217;ll find it was a very popular name for a very long time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-20151</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Thu, 13 Jul 2006 13:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-20151</guid>
		<description>&lt;p&gt;RNDBTWN? thght mst b mssng smthng, hng n tls &gt; dd-ns &gt; nlyss tlpk.&lt;/p&gt;
&lt;p&gt;It&#039;s making a lot more sense now.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>RNDBTWN? thght mst b mssng smthng, hng n tls &gt; dd-ns &gt; nlyss tlpk.</p>
<p>It&#8217;s making a lot more sense now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mpemba</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-20150</link>
		<dc:creator>Mpemba</dc:creator>
		<pubDate>Thu, 13 Jul 2006 12:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-20150</guid>
		<description>&lt;p&gt;Me again:&lt;br&gt;
In hindsight I should add that in post 4 my &quot;Occurance&quot; column does not have to be sorted in to ascending order. The order does not matter a jot using this method.&lt;/p&gt;
&lt;p&gt;I must also admit I found it surprising Mary was at the top of the example list. The 2005 data for the USA listed at:&lt;br&gt;
&lt;a href=&quot;http://www.socialsecurity.gov/OACT/babynames/&quot; rel=&quot;nofollow&quot;&gt;http://www.socialsecurity.gov/OACT/babynames/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Top ten for the 2000s&lt;br&gt;
&lt;a href=&quot;http://www.socialsecurity.gov/OACT/babynames/decades/names2000s.html&quot; rel=&quot;nofollow&quot;&gt;http://www.socialsecurity.gov/OACT/babynames/decades/names2000s.html&lt;/a&gt;&lt;br&gt;
Emily 149,420  1.2525%&lt;br&gt;
Madison 123,729  1.0372%&lt;br&gt;
Hannah 110,081  0.9228%&lt;br&gt;
Emma 106,428  0.8921%&lt;br&gt;
Ashley 91,644  0.7682%&lt;br&gt;
Abigail 89,848  0.7532%&lt;br&gt;
Alexis 89,512  0.7503%&lt;br&gt;
Olivia 88,971  0.7458%&lt;br&gt;
Samantha 88,669  0.7433%&lt;br&gt;
Sarah 85,747  0.7188%&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Me again:<br />
In hindsight I should add that in post 4 my &#8220;Occurance&#8221; column does not have to be sorted in to ascending order. The order does not matter a jot using this method.</p>
<p>I must also admit I found it surprising Mary was at the top of the example list. The 2005 data for the USA listed at:<br />
<a href="http://www.socialsecurity.gov/OACT/babynames/" rel="nofollow">http://www.socialsecurity.gov/OACT/babynames/</a></p>
<p>Top ten for the 2000s<br />
<a href="http://www.socialsecurity.gov/OACT/babynames/decades/names2000s.html" rel="nofollow">http://www.socialsecurity.gov/OACT/babynames/decades/names2000s.html</a><br />
Emily 149,420  1.2525%<br />
Madison 123,729  1.0372%<br />
Hannah 110,081  0.9228%<br />
Emma 106,428  0.8921%<br />
Ashley 91,644  0.7682%<br />
Abigail 89,848  0.7532%<br />
Alexis 89,512  0.7503%<br />
Olivia 88,971  0.7458%<br />
Samantha 88,669  0.7433%<br />
Sarah 85,747  0.7188%</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XLurker</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-20149</link>
		<dc:creator>XLurker</dc:creator>
		<pubDate>Thu, 13 Jul 2006 11:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-20149</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If the list is in, say, cells A1 to A10, then how about making your selections with a formula like this:&lt;/p&gt;
&lt;p&gt;=OFFSET($A$1,TRUNC(RAND()^2*COUNTA($A$1:$A$10),0),0)&lt;/p&gt;
&lt;p&gt;The COUNTA is for scalability of the list. Set the power of 2 higher to skew the selection more to the top of the list, or between 0 and 1 to skew the selection to the bottom of the list.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;XLurker&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>If the list is in, say, cells A1 to A10, then how about making your selections with a formula like this:</p>
<p>=OFFSET($A$1,TRUNC(RAND()^2*COUNTA($A$1:$A$10),0),0)</p>
<p>The COUNTA is for scalability of the list. Set the power of 2 higher to skew the selection more to the top of the list, or between 0 and 1 to skew the selection to the bottom of the list.</p>
<p>Cheers,</p>
<p>XLurker</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mpemba</title>
		<link>http://www.dailydoseofexcel.com/archives/2006/07/12/probabilistic-lookup/#comment-20148</link>
		<dc:creator>Mpemba</dc:creator>
		<pubDate>Thu, 13 Jul 2006 11:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1444#comment-20148</guid>
		<description>&lt;p&gt;Darn that formatting: it looked fine in the preview window (Courier) !&lt;/p&gt;
&lt;p&gt;I should add, if you want a working copy of the spreadsheet I&#039;d gladly mail it.&lt;/p&gt;
&lt;p&gt;M&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Darn that formatting: it looked fine in the preview window (Courier) !</p>
<p>I should add, if you want a working copy of the spreadsheet I&#8217;d gladly mail it.</p>
<p>M</p>
]]></content:encoded>
	</item>
</channel>
</rss>

