<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ABinomcdf</id>
	<title>TI-BASIC:Binomcdf - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ABinomcdf"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Binomcdf&amp;action=history"/>
	<updated>2026-04-04T03:58:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Binomcdf&amp;diff=1490&amp;oldid=prev</id>
		<title>Maintenance script: Automated superscript correction</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Binomcdf&amp;diff=1490&amp;oldid=prev"/>
		<updated>2016-02-24T22:25:47Z</updated>

		<summary type="html">&lt;p&gt;Automated superscript correction&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:25, 24 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot;&gt;Line 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# cumSum(binomcdf(N,0 gives the list {1 2 ... N+1}, and cumSum(not(binompdf(N,0 gives the list {0 1 2 ... N}.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# cumSum(binomcdf(N,0 gives the list {1 2 ... N+1}, and cumSum(not(binompdf(N,0 gives the list {0 1 2 ... N}.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# With seq(, you normally do math inside the list: seq(3I&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;2&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;,I,0,5&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# With seq(, you normally do math inside the list: seq(3I&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;sup&amp;gt;&lt;/ins&gt;2&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/sup&amp;gt;&lt;/ins&gt;,I,0,5&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# With these commands, you do the same math outside the list: 3Ans&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;2&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^ &lt;/del&gt;where Ans is the list {0 1 ... 5}.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# With these commands, you do the same math outside the list: 3Ans&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;sup&amp;gt;&lt;/ins&gt;2&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/sup&amp;gt; &lt;/ins&gt;where Ans is the list {0 1 ... 5}.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Binomcdf&amp;diff=1266&amp;oldid=prev</id>
		<title>KermMartian at 19:25, 24 February 2016</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Binomcdf&amp;diff=1266&amp;oldid=prev"/>
		<updated>2016-02-24T19:25:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:25, 24 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l90&quot;&gt;Line 90:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 90:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since &amp;quot;at most N&amp;quot; is equivalent to &amp;quot;0 or 1 or 2 or 3 or ... N&amp;quot;, and since we can combine these probabilities by adding them, we can come up with an expression for binomcdf( by adding up values of [[TI-BASIC:Binompdf|Binompdf(]]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since &amp;quot;at most N&amp;quot; is equivalent to &amp;quot;0 or 1 or 2 or 3 or ... N&amp;quot;, and since we can combine these probabilities by adding them, we can come up with an expression for binomcdf( by adding up values of [[TI-BASIC:Binompdf|Binompdf(]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[TI-BASIC:Math|Math]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\operatorname{binomcdf}(n,p,k) = \sum_{i=0}^{k}\operatorname{binompdf}(n,p,i) = \sum_{i=0}^{k}\binom{n}{i}\,p^i\,(1-p)^{n-i}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\operatorname{binomcdf}(n,p,k) = \sum_{i=0}^{k}\operatorname{binompdf}(n,p,i) = \sum_{i=0}^{k}\binom{n}{i}\,p^i\,(1-p)^{n-i}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[TI-BASIC:&lt;/del&gt;/math&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|/math]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;&lt;/ins&gt;/math&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(If you&amp;#039;re not familiar with sigma notation, &amp;lt;math&amp;gt;\sum_{i=0}^{k}&amp;lt;/math&amp;gt; just means &amp;quot;add the following up for each value of i 0 through k&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(If you&amp;#039;re not familiar with sigma notation, &amp;lt;math&amp;gt;\sum_{i=0}^{k}&amp;lt;/math&amp;gt; just means &amp;quot;add the following up for each value of i 0 through k&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>KermMartian</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Binomcdf&amp;diff=1175&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Binomcdf&amp;diff=1175&amp;oldid=prev"/>
		<updated>2016-02-24T18:38:30Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=BINOMCDF.GIF&lt;br /&gt;
|summary=Calculates the binomial cumulative probability, either at a single value or for all values&lt;br /&gt;
|syntax=for a single value:&lt;br /&gt;
binomcdf(&amp;#039;&amp;#039;trials&amp;#039;&amp;#039;, &amp;#039;&amp;#039;probability&amp;#039;&amp;#039;, &amp;#039;&amp;#039;value&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
for a list of all values (0 to &amp;#039;&amp;#039;trials&amp;#039;&amp;#039;)&lt;br /&gt;
binomcdf(&amp;#039;&amp;#039;trials&amp;#039;&amp;#039;, &amp;#039;&amp;#039;probability&amp;#039;&amp;#039;&lt;br /&gt;
|location=Press:&lt;br /&gt;
# 2ND DISTR to access the distribution menu&lt;br /&gt;
# ALPHA A to select binomcdf(, or use arrows.&lt;br /&gt;
Press ALPHA B instead of ALPHA A on a TI-84+/SE with OS 2.30 or higher.&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=2 bytes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
This command is used to calculate the binomial cumulative probability function. In plainer language, it solves a specific type of often-encountered probability problem, that occurs under the following conditions:&lt;br /&gt;
# A specific event has only two outcomes, which we will call &amp;quot;success&amp;quot; and &amp;quot;failure&amp;quot;&lt;br /&gt;
# This event is going to repeat a specific number of times, or &amp;quot;trials&amp;quot;&lt;br /&gt;
# Success or failure is determined randomly with the same probability of success each time the event occurs&lt;br /&gt;
# We&amp;#039;re interested in the probability that there are &amp;#039;&amp;#039;&amp;#039;at most&amp;#039;&amp;#039;&amp;#039; N successes&lt;br /&gt;
&lt;br /&gt;
For example, consider a couple that intends to have 4 children. What is the probability that at most 2 are girls?&lt;br /&gt;
&lt;br /&gt;
# The event here is a child being born. It has two outcomes &amp;quot;boy&amp;quot; or &amp;quot;girl&amp;quot;. In this case, since the question is about girls, it&amp;#039;s easier to call &amp;quot;girl&amp;quot; a success.&lt;br /&gt;
# The event is going to repeat 4 times, so we have 4 trials&lt;br /&gt;
# The probability of a girl being born is 50% or 1/2 each time&lt;br /&gt;
# We&amp;#039;re interested in the probability that there are at most 2 successes (2 girls)&lt;br /&gt;
&lt;br /&gt;
The syntax here is binomcdf(&amp;#039;&amp;#039;trials&amp;#039;&amp;#039;, &amp;#039;&amp;#039;probability&amp;#039;&amp;#039;, &amp;#039;&amp;#039;value&amp;#039;&amp;#039;). In this case:&lt;br /&gt;
&lt;br /&gt;
 :binomcdf(4,.5,2&lt;br /&gt;
&lt;br /&gt;
This will give .6875 when you run it, so there&amp;#039;s a .6875 probability out of 4 children, at most 2 will be girls.&lt;br /&gt;
&lt;br /&gt;
An alternate syntax for binomcdf( leaves off the last argument, &amp;#039;&amp;#039;value&amp;#039;&amp;#039;. This tells the calculator to compute a list of the results for all values. For example:&lt;br /&gt;
&lt;br /&gt;
 :binomcdf(4,.5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will come to {.0625 .3125 .6875 .9375 1} when you run it. These are all the probabilities we get when you replace &amp;quot;at most 2 girls&amp;quot; with &amp;quot;at most 0&amp;quot;, &amp;quot;at most 1&amp;quot;, etc. Here, .0625 is the probability of &amp;quot;at most 0&amp;quot; girls (or just 0 girls), .3125 is the probability of at most 1 girl (1 or 0 girls), etc.&lt;br /&gt;
&lt;br /&gt;
Several other probability problems actually are the same as this one. For example, &amp;quot;less than N&amp;quot; girls, just means &amp;quot;at most N-1&amp;quot; girls. &amp;quot;At least N&amp;quot; girls means &amp;quot;at most (total-N)&amp;quot; boys (here we switch our definition of what a success is). &amp;quot;No more than&amp;quot;, of course, means the same as &amp;quot;at most&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
= Advanced (for programmers) =&lt;br /&gt;
&lt;br /&gt;
The [[TI-BASIC:Binompdf|Binompdf(]] and binomcdf( commands are the only ones apart from [[TI-BASIC:Seq_List|seq(]] that can return a list of a given length, and they do it much more quickly. It therefore makes sense, in some situations, to use these commands as substitutes for seq(. &lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s how to do it:&lt;br /&gt;
&lt;br /&gt;
# cumSum(binomcdf(N,0 gives the list {1 2 ... N+1}, and cumSum(not(binompdf(N,0 gives the list {0 1 2 ... N}.&lt;br /&gt;
# With seq(, you normally do math inside the list: seq(3I^^2^^,I,0,5&lt;br /&gt;
# With these commands, you do the same math outside the list: 3Ans^^2^^ where Ans is the list {0 1 ... 5}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :seq(2^I,I,1,5&lt;br /&gt;
 can be&lt;br /&gt;
 :cumSum(binomcdf(4,0&lt;br /&gt;
 :2^Ans&lt;br /&gt;
 which in turn can be&lt;br /&gt;
 :2^cumSum(binomcdf(4,0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In general (where f() is some operation or even several operations):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :seq(f(I),I,1,N&lt;br /&gt;
 can be&lt;br /&gt;
 :cumSum(binomcdf(N-1,0&lt;br /&gt;
 :f(Ans&lt;br /&gt;
 which can sometimes be&lt;br /&gt;
 :f(cumSum(binomcdf(N-1,0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the lower bound on I in the seq( statement is 0 and not 1, you can use binompdf( instead:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :seq(f(I),I,0,N&lt;br /&gt;
 can be&lt;br /&gt;
 :cumSum(not(binompdf(N,0&lt;br /&gt;
 :f(Ans&lt;br /&gt;
 which can sometimes be&lt;br /&gt;
 :f(cumSum(not(binompdf(N,0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will not work if some command inside seq( can take only a number and not a list as an argument. For example, seq(L,,1,,(I),I,1,5 cannot be optimized this way.&lt;br /&gt;
&lt;br /&gt;
= Formulas =&lt;br /&gt;
&lt;br /&gt;
Since &amp;quot;at most N&amp;quot; is equivalent to &amp;quot;0 or 1 or 2 or 3 or ... N&amp;quot;, and since we can combine these probabilities by adding them, we can come up with an expression for binomcdf( by adding up values of [[TI-BASIC:Binompdf|Binompdf(]]:&lt;br /&gt;
&lt;br /&gt;
[[TI-BASIC:Math|Math]]&lt;br /&gt;
\operatorname{binomcdf}(n,p,k) = \sum_{i=0}^{k}\operatorname{binompdf}(n,p,i) = \sum_{i=0}^{k}\binom{n}{i}\,p^i\,(1-p)^{n-i}&lt;br /&gt;
[[TI-BASIC:/math|/math]]&lt;br /&gt;
&lt;br /&gt;
(If you&amp;#039;re not familiar with sigma notation, &amp;lt;math&amp;gt;\sum_{i=0}^{k}&amp;lt;/math&amp;gt; just means &amp;quot;add the following up for each value of i 0 through k&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#datatype|ERR:DATATYPE]]&amp;#039;&amp;#039;&amp;#039; is thrown if you try to generate a list of probabilities with &amp;#039;&amp;#039;p&amp;#039;&amp;#039; equal to 0 or 1, and at least 257 trials.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#domain|ERR:DOMAIN]]&amp;#039;&amp;#039;&amp;#039; is thrown if the number of trials is at least 1 000 000, unless the other arguments make the problem trivial.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Binompdf|Binompdf(]]&lt;br /&gt;
* [[TI-BASIC:Geometpdf|Geometpdf(]]&lt;br /&gt;
* [[TI-BASIC:Geometcdf|Geometcdf(]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>