<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>#Prob ECSE-2500 Engineering Probability, Spring 2019, Rensselaer Polytechnic Institute (Posts about exam)</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/</link><description></description><atom:link href="https://wrf.ecse.rpi.edu/Teaching/probability-s2019/categories/cat_exam.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2019 &lt;a href="mailto:frankwr@rpi.edu"&gt;W Randolph Franklin (WRF), RPI&lt;/a&gt; </copyright><lastBuildDate>Sat, 04 May 2019 17:27:09 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Engineering Probability  Exam 3 - Sat 2019-05-04</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/exam3/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;p&gt;Name, RPI email:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.



.
&lt;/pre&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="lowerroman simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring three 2-sided 8.5"x11" papers with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all nine pages.&lt;/li&gt;
&lt;li&gt;Each part of a question is worth 5 points.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;li&gt;You may write &lt;strong&gt;FREE&lt;/strong&gt; as your answer for two questions, and get the 5 points.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;These few questions are about the population of adult males, which has a mean of 70 inches and a standard deviation of 4 inches.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability that a particular person's height is between 68 and 74?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;If we take a sample of 100, what is its mean?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is its standard deviation?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;These questions are about tossing 3 fair dice and looking at the 3 numbers that show.   However, these dice have only &lt;strong&gt;2&lt;/strong&gt; faces (to make this question easier).   The faces are labeled 1 and 2.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the expected value of the number showing on the first die?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the pmf of the smallest die?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the expected value of the smallest die?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the probability that the smallest number is 1 given that the first number is 2?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the probability that the first number is 2 given that the smallest number is 1?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are the first number and the smallest number are independent?  Prove your answer.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the MAP estimator for the smallest number, given that the first number is 2?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;This question is about a continuous probability distribution on 2 variables.&lt;/p&gt;
&lt;p&gt;$$f_{XY}(x,y) = \begin{cases}   c (x+y) &amp;amp; \text{  if  }  (0\le x) \ \&amp;amp; \ (0\le y)\  \&amp;amp; \ (0\le x+y \le 1) \\ 0 &amp;amp;  \text{   otherwise}\end{cases}$$&lt;/p&gt;
&lt;p&gt;The nonzero region is the triangle with vertices (0,0), (1,0) and (0,1).&lt;/p&gt;
&lt;p&gt;&lt;em&gt;c&lt;/em&gt; is some constant, but I didn't tell you what it is.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is &lt;em&gt;c&lt;/em&gt;?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $F_{XY}(x,y)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_X(x)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are X and Y independent?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $P[X\le Y]$ ?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $E[X]$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $COV[X,Y]$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $\rho_{X,Y}$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_Y(y|x)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $E[Y|x]$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;I'm comparing two types of widgets, red and blue.   Assume that the probability of each widget dieing in a small interval dt, given that it was alive at the start, is independent of its age.  Assume that the probability of the red widget dieing in the next hour is 0.1%, for the blue, it's 0.01%.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;Give the pdf for the red widget's lifetime.  (You have enough info to do this; there is only one possible probability distribution.)&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;If you have 100 red widgets, what's the probability that their mean lifetime is within 10% of the population mean?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;If you start two widgets at the same time, what's the probability that the red widget will last longer?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Normal distribution:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
x          f(x)      F(x)      Q(x)                x          f(x)      F(x)      Q(x)
-3.0000    0.0044    0.0013    0.9987             0.1000    0.3970    0.5398    0.4602
-2.9000    0.0060    0.0019    0.9981             0.2000    0.3910    0.5793    0.4207
-2.8000    0.0079    0.0026    0.9974             0.3000    0.3814    0.6179    0.3821
-2.7000    0.0104    0.0035    0.9965             0.4000    0.3683    0.6554    0.3446
-2.6000    0.0136    0.0047    0.9953             0.5000    0.3521    0.6915    0.3085
-2.5000    0.0175    0.0062    0.9938             0.6000    0.3332    0.7257    0.2743
-2.4000    0.0224    0.0082    0.9918             0.7000    0.3123    0.7580    0.2420
-2.3000    0.0283    0.0107    0.9893             0.8000    0.2897    0.7881    0.2119
-2.2000    0.0355    0.0139    0.9861             0.9000    0.2661    0.8159    0.1841
-2.1000    0.0440    0.0179    0.9821             1.0000    0.2420    0.8413    0.1587
-2.0000    0.0540    0.0228    0.9772             1.1000    0.2179    0.8643    0.1357
-1.9000    0.0656    0.0287    0.9713             1.2000    0.1942    0.8849    0.1151
-1.8000    0.0790    0.0359    0.9641             1.3000    0.1714    0.9032    0.0968
-1.7000    0.0940    0.0446    0.9554             1.4000    0.1497    0.9192    0.0808
-1.6000    0.1109    0.0548    0.9452             1.5000    0.1295    0.9332    0.0668
-1.5000    0.1295    0.0668    0.9332             1.6000    0.1109    0.9452    0.0548
-1.4000    0.1497    0.0808    0.9192             1.7000    0.0940    0.9554    0.0446
-1.3000    0.1714    0.0968    0.9032             1.8000    0.0790    0.9641    0.0359
-1.2000    0.1942    0.1151    0.8849             1.9000    0.0656    0.9713    0.0287
-1.1000    0.2179    0.1357    0.8643             2.0000    0.0540    0.9772    0.0228
-1.0000    0.2420    0.1587    0.8413             2.1000    0.0440    0.9821    0.0179
-0.9000    0.2661    0.1841    0.8159             2.2000    0.0355    0.9861    0.0139
-0.8000    0.2897    0.2119    0.7881             2.3000    0.0283    0.9893    0.0107
-0.7000    0.3123    0.2420    0.7580             2.4000    0.0224    0.9918    0.0082
-0.6000    0.3332    0.2743    0.7257             2.5000    0.0175    0.9938    0.0062
-0.5000    0.3521    0.3085    0.6915             2.6000    0.0136    0.9953    0.0047
-0.4000    0.3683    0.3446    0.6554             2.7000    0.0104    0.9965    0.0035
-0.3000    0.3814    0.3821    0.6179             2.8000    0.0079    0.9974    0.0026
-0.2000    0.3910    0.4207    0.5793             2.9000    0.0060    0.9981    0.0019
-0.1000    0.3970    0.4602    0.5398             3.0000    0.0044    0.9987    0.0013
      0    0.3989    0.5000    0.5000
&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;End of exam 3, total 100 points.&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/exam3/</guid><pubDate>Sat, 04 May 2019 04:00:00 GMT</pubDate></item><item><title>Engineering Probability  Exam 3 Solutions - Sat 2019-05-04</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/exam3-sol/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;style&gt; .red {color:red} &lt;/style&gt;
&lt;style&gt; .blue {color:blue} &lt;/style&gt;&lt;p&gt;Name, RPI email:&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;WRF solutions&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;OK to give a formula w/o working it out.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="lowerroman simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring three 2-sided 8.5"x11" papers with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all nine pages.&lt;/li&gt;
&lt;li&gt;Each part of a question is worth 5 points.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;These few questions are about the population of adult males, which has a mean of 70 inches and a standard deviation of 4 inches.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability that a particular person's height is between 68 and 74?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;68 is mean - std/2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;74 is mean + std&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Q(-.5) - Q(1) =  .69 - .16 = .53&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;If we take a sample of 100, what is its mean?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;100.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is its standard deviation?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;4/sqrt(100) = .4&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;These questions are about tossing 3 fair dice and looking at the 3 numbers that show.   However, these dice have only &lt;strong&gt;4&lt;/strong&gt; faces (to make this question easier).&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the expected value of the number showing on the first die?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;2.5&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the pmf of the smallest die?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Enumeration works.  8 cases: 111, 112, 121, 122, 211, 212, 221,&lt;/span&gt; 222&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Let X = smallest die.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;p(X=1) = 7/8, p(X=2)=1/8&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the expected value of the smallest die?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;1/8 * 2 + 7/8 * 1 = 9/8&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the probability that the smallest number is 1 given that the first number is 2?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Enumerate.   p= 3/4&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the probability that the first number is 2 given that the smallest number is 1?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;3/7&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are the first number and the smallest number are independent?  Prove your answer.&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;p(1st is 2) = 1/2.  p(smallest is 2) = 1/8.  p(1st is 2 and&lt;/span&gt; smallest is 2) = 1/4&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;1/2 * 1/8 ne 1/4.   Not independent&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the MAP estimator for the smallest number, given that the first number is 2?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;P[smallest is 1|first is 2] = 3/4, so MAP = 1&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;This question is about a continuous probability distribution on 2 variables.&lt;/p&gt;
&lt;p&gt;$$f_{XY}(x,y) = \begin{cases}   c (x+y) &amp;amp; \text{  if  }  (0\le x) \ \&amp;amp; \ (0\le y)\  \&amp;amp; \ (0\le x+y \le 1) \\ 0 &amp;amp;  \text{   otherwise}\end{cases}$$&lt;/p&gt;
&lt;p&gt;The nonzero region is the triangle with vertices (0,0), (1,0) and (0,1).&lt;/p&gt;
&lt;p&gt;&lt;em&gt;c&lt;/em&gt; is some constant, but I didn't tell you what it is.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is &lt;em&gt;c&lt;/em&gt;?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;The integral is 1/3.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;c=3&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $F_{XY}(x,y)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$F_{XY}(x,y)=\begin{cases} 0 &amp;amp; \text{  if  } x\le0 \cup  y\le0 \\ 1 &amp;amp; \text{  if  } x\ge 1 \cap  y\ge1 \\ 3/2 (x^2y+xy^2) &amp;amp; \text{  if } 0\le x \cap  0\le y \cap  x+y\le1 \\  (\int_0^x\int_0^{1-x} + \int_0^{1-y}\int_{1-x}^y + \int_{1-y}^x\int_{1-x}^{1-x_0}) (3(x_0+y_0) dy_0dx_0) &amp;amp; \text{ otherwise}\end{cases}$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;The last case above splits the nonzero integration region into two rectangles and a triangle.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;It's also acceptable to draw a figure and say something intelligent w/o being explicit about all the details.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_X(x)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f_X(x)= \int_0^{1-x}f_{XY}(x,y) dy = 3/2 (1-x)^2, 0\le x\le1$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Note that $\int_0^1 f_X(x)=1$, which is correct.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are X and Y independent?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f_X(x)= 3/2 (1-x)^2$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f_Y(y)= 3/2 (1-y)^2$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f_{XY}(x,y)= 3(x+y)\ne f_X(x) f_Y(y)$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;no.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $P[X\le Y]$ ?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Integrate: $ \int_0^1 \int_0^{\min{x,1-x)} f(x0,y0) dy0 dx0 = 1/2$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;That's reasonable because X and Y are symmetric.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;The box around the above expression is a meaningless unwanted artifact.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $E[X]$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;1/8&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $COV[X,Y]$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;E[XY] = 1/10.   E[Y] = E[X].  COV = 1/10 - 1/8 * 1/8 = .085.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $\rho_{X,Y}$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;OK to write the formula&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_Y(y|x)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;In the nonzero triangle, $f_Y(y|x)=F_{XY}(x,y)/F_X(x)$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $E[Y|x]$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$\int yf_Y(y|x) dy$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;I'm comparing two types of widgets, red and blue.   Assume that the probability of each widget dieing in a small interval dt, given that it was alive at the start, is independent of its age.  Assume that the probability of the red widget dieing in the next hour is 0.1%, for the blue, it's 0.01%.&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;Give the pdf for the red widget's lifetime.  (You have enough info to do this; there is only one possible probability distribution.)&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;exponential.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f(x) = l e^{-l}$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;From the section on reliability, l=001.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;If you have 100 red widgets, what's the probability that their mean lifetime is within 10% of the mean?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Normal approx works.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Pop variance:  $1/l^2$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Sample variance: $1/(100 l^2)$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Sample std: $1/(10 l)$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Pop and sample mean: $1/l$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;sample mean w/i 10% of pop mean = w/i one sample std&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Prob: Q(-1) - Q(1) = .68&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;If you start two widgets at the same time, what's the probability that the red widget will last longer?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;let x be lifetime of a red widget, y blue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$l_1=0.001, l_2=0.0001$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;joint prob: $F(x,y) = l_1 l_2 \exp(-l_1x -l_2y)$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$P[X&amp;gt;Y] = \int_0^\infty \int_0^x F(x,y) dy dx$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Normal distribution:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
x          f(x)      F(x)      Q(x)
-3.0000    0.0044    0.0013    0.9987
-2.9000    0.0060    0.0019    0.9981
-2.8000    0.0079    0.0026    0.9974
-2.7000    0.0104    0.0035    0.9965
-2.6000    0.0136    0.0047    0.9953
-2.5000    0.0175    0.0062    0.9938
-2.4000    0.0224    0.0082    0.9918
-2.3000    0.0283    0.0107    0.9893
-2.2000    0.0355    0.0139    0.9861
-2.1000    0.0440    0.0179    0.9821
-2.0000    0.0540    0.0228    0.9772
-1.9000    0.0656    0.0287    0.9713
-1.8000    0.0790    0.0359    0.9641
-1.7000    0.0940    0.0446    0.9554
-1.6000    0.1109    0.0548    0.9452
-1.5000    0.1295    0.0668    0.9332
-1.4000    0.1497    0.0808    0.9192
-1.3000    0.1714    0.0968    0.9032
-1.2000    0.1942    0.1151    0.8849
-1.1000    0.2179    0.1357    0.8643
-1.0000    0.2420    0.1587    0.8413
-0.9000    0.2661    0.1841    0.8159
-0.8000    0.2897    0.2119    0.7881
-0.7000    0.3123    0.2420    0.7580
-0.6000    0.3332    0.2743    0.7257
-0.5000    0.3521    0.3085    0.6915
-0.4000    0.3683    0.3446    0.6554
-0.3000    0.3814    0.3821    0.6179
-0.2000    0.3910    0.4207    0.5793
-0.1000    0.3970    0.4602    0.5398
      0    0.3989    0.5000    0.5000
 0.1000    0.3970    0.5398    0.4602
 0.2000    0.3910    0.5793    0.4207
 0.3000    0.3814    0.6179    0.3821
 0.4000    0.3683    0.6554    0.3446
 0.5000    0.3521    0.6915    0.3085
 0.6000    0.3332    0.7257    0.2743
 0.7000    0.3123    0.7580    0.2420
 0.8000    0.2897    0.7881    0.2119
 0.9000    0.2661    0.8159    0.1841
 1.0000    0.2420    0.8413    0.1587
 1.1000    0.2179    0.8643    0.1357
 1.2000    0.1942    0.8849    0.1151
 1.3000    0.1714    0.9032    0.0968
 1.4000    0.1497    0.9192    0.0808
 1.5000    0.1295    0.9332    0.0668
 1.6000    0.1109    0.9452    0.0548
 1.7000    0.0940    0.9554    0.0446
 1.8000    0.0790    0.9641    0.0359
 1.9000    0.0656    0.9713    0.0287
 2.0000    0.0540    0.9772    0.0228
 2.1000    0.0440    0.9821    0.0179
 2.2000    0.0355    0.9861    0.0139
 2.3000    0.0283    0.9893    0.0107
 2.4000    0.0224    0.9918    0.0082
 2.5000    0.0175    0.9938    0.0062
 2.6000    0.0136    0.9953    0.0047
 2.7000    0.0104    0.9965    0.0035
 2.8000    0.0079    0.9974    0.0026
 2.9000    0.0060    0.9981    0.0019
 3.0000    0.0044    0.9987    0.0013
&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;End of exam 3, total 70 points.&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/exam3-sol/</guid><pubDate>Sat, 04 May 2019 04:00:00 GMT</pubDate></item><item><title>Engineering Probability 2019 Class 18 and Exam 2 Answers - Thu 2018-03-21</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/class18-exam2-ans/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;p&gt;Name, RCSID: W. Randolph Franklin answers&lt;/p&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="upperalpha simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring two 2-sided 8.5"x11" paper with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all seven pages.&lt;/li&gt;
&lt;li&gt;Do all questions.&lt;/li&gt;
&lt;li&gt;Each part of a question is worth 5 points.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;You're designing a circuit with a chip.&lt;/p&gt;
&lt;ol class="lowerroman simple"&gt;
&lt;li&gt;The chip was manufactured in one of two plants, but you don't know which.&lt;/li&gt;
&lt;li&gt;The random variable Y says which plant the chip came from.   Y=1 or 2.&lt;/li&gt;
&lt;li&gt;Half the chips come from each plant.&lt;/li&gt;
&lt;li&gt;Chips from the first plant (Y=1) have a lifetime X that is U[0,10].&lt;/li&gt;
&lt;li&gt;For chips from the second plant (Y=2), X is U[0,20].&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You pick a random chip, power it up, and it's still working at time X=5.&lt;/p&gt;
&lt;p&gt;Answer the following questions.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What are $f(X=x|Y=1)$ and $f(X=x|Y=2)$?&lt;/p&gt;
&lt;p&gt;$f(X=x|Y=1) = \begin{cases}0.1 &amp;amp;  for&amp;amp; 0\le x\le 10\\ 0 &amp;amp; otherwise\end{cases}$&lt;/p&gt;
&lt;p&gt;$f(X=x|Y=2) =  \begin{cases}0.05 &amp;amp;  for&amp;amp; 0\le x\le 20\\ 0 &amp;amp; otherwise\end{cases}$&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What are $f(X=x \,\&amp;amp;\, Y=1)$ and $f(X=x \,\&amp;amp;\, Y=2)$?&lt;/p&gt;
&lt;p&gt;$P[Y=1] = 1/2$&lt;/p&gt;
&lt;p&gt;$f(X=x \,\&amp;amp;\, Y=1) = f(X=x|Y=1) P[Y=1] =  \begin{cases}0.05 &amp;amp;  for&amp;amp; 0\le x\le 10\\ 0 &amp;amp; otherwise\end{cases}$&lt;/p&gt;
&lt;p&gt;$f(X=x \,\&amp;amp;\, Y=2) =  \begin{cases}0.025 &amp;amp;  for&amp;amp; 0\le x\le 20\\ 0 &amp;amp; otherwise\end{cases}$&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_X(x)$ ?&lt;/p&gt;
&lt;p&gt;$f_X(x) = f(X=x \,\&amp;amp;\, Y=1) + f(X=x \,\&amp;amp;\, Y=2) \\
=   \begin{cases}0.075 &amp;amp;  for&amp;amp; 0\le x\le 10\\
0.025 &amp;amp;  for&amp;amp; 10\le x\le 20\\
0 &amp;amp; otherwise\end{cases}$&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $P[Y=1|X=5]$ ?&lt;/p&gt;
&lt;p&gt;There are different ways to do this.  Here's one, which works with $P[5\le X\le5+d]$ for some small positive $d$.&lt;/p&gt;
&lt;p&gt;$P[Y=1|X=5] = \lim_{d\rightarrow 0} P[Y=1|5\le X\le5+d] $&lt;/p&gt;
&lt;p&gt;$P[Y=1|5\le X\le5+d] = P[Y=1 \&amp;amp; 5\le X\le5+d] / P[5\le X\le5+d]$&lt;/p&gt;
&lt;p&gt;$= .05d / ( .075d) = 2/3 $&lt;/p&gt;
&lt;p&gt;Note that this is different from asking what are the probabilities for the two source for chips that are still alive at time 5.   This is asking about chips whose lifetime is 5, not 5 or more.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Assume that a bicycle tire's pdf for failing at time x is:
$f(x) = c(1/4 - x + x^2), \,\, 0\le x\le1 $&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $c$?&lt;/p&gt;
&lt;p&gt;Integrating f(x) from 0 to 1 gives 1/12, so c=12.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the mean?&lt;/p&gt;
&lt;p&gt;$E[X] = \int_0^1 x f(x) = 1/2$&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the variance?&lt;/p&gt;
&lt;p&gt;$E[X^2] = \int_0^1 x^2 f(x) = 2/5$&lt;/p&gt;
&lt;p&gt;$VAR[X] = 2/5 -(1/2)^2 = 3/20$.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the cdf?&lt;/p&gt;
&lt;p&gt;$F_X(x) = \begin{cases} 0 &amp;amp; if&amp;amp; x\le0 \\ 3x-6x^2+4x^3&amp;amp;if&amp;amp;0\le x\le1\\1 &amp;amp;if&amp;amp;1\le x \end{cases} $&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the reliability?&lt;/p&gt;
&lt;p&gt;$R(x) = 1 - F_X(x) = \begin{cases} 1  &amp;amp; if &amp;amp;  x\le0 \\ 1-(3x-6x^2+4x^3) &amp;amp; if &amp;amp; 0\le x\le1\\0 &amp;amp; if &amp;amp; 1\le x \end{cases}$&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the MTTF?&lt;/p&gt;
&lt;p&gt;$\int_0^1 R(x) dx = (x- 3/2 x^2 + 2x^3 - x^4)|_0^1 = 0.5$&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;This question is about a web server with service requests coming independently at an average of 1 per second.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability that in one hour there are more than 3720 hits?   Here I want a number, not just a formula.  The table at the end of this exam is useful.&lt;/p&gt;
&lt;p&gt;The thinking part of this question is this:  The distribution of the number of hits in one hour is Poisson with a=3600.   So, the mean is 3600 and the std 60.   The Gaussian is an excellent approximation near the mean.&lt;/p&gt;
&lt;p&gt;3720=m+2s.   P=Q(2)=0.023.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Use the Markov inequality to compute an approximation to the above answer.&lt;/p&gt;
&lt;p&gt;P &amp;lt;= 3600/3720 = 0.97.   (i.e., almost meaningless).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Use the Chebyshev inequality to compute an approximation to the above answer.&lt;/p&gt;
&lt;p&gt;P[| X-3600 | &amp;gt;= 120] &amp;lt;=  60^2/120^2 = 1/4.&lt;/p&gt;
&lt;p&gt;Both tails are equally probable because we're quite far from the origin. So&lt;/p&gt;
&lt;p&gt;P[X&amp;gt;=3720] &amp;lt;= 1/8.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Let X be a normal random variable with mean 1000 and standard deviation 10.  Give the following numbers, using the supplied table.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;P[X&amp;gt;1015].&lt;/p&gt;
&lt;p&gt;That will be Q(1.5) in the table = 0.067.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;P[990&amp;lt;X&amp;lt;1010].&lt;/p&gt;
&lt;p&gt;That will be F(1) - F(-1) = 0.68.  approx.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;For what value of x is P[X&amp;lt;x]=.1?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Look for F(x)=.1 in the table.  That's about -1.3.&lt;/p&gt;
&lt;p&gt;Our x will be 1000+10(-1.3) = 987.&lt;/p&gt;
&lt;p&gt;Normal distribution:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
x          f(x)      F(x)      Q(x)
-3.0000    0.0044    0.0013    0.9987
-2.9000    0.0060    0.0019    0.9981
-2.8000    0.0079    0.0026    0.9974
-2.7000    0.0104    0.0035    0.9965
-2.6000    0.0136    0.0047    0.9953
-2.5000    0.0175    0.0062    0.9938
-2.4000    0.0224    0.0082    0.9918
-2.3000    0.0283    0.0107    0.9893
-2.2000    0.0355    0.0139    0.9861
-2.1000    0.0440    0.0179    0.9821
-2.0000    0.0540    0.0228    0.9772
-1.9000    0.0656    0.0287    0.9713
-1.8000    0.0790    0.0359    0.9641
-1.7000    0.0940    0.0446    0.9554
-1.6000    0.1109    0.0548    0.9452
-1.5000    0.1295    0.0668    0.9332
-1.4000    0.1497    0.0808    0.9192
-1.3000    0.1714    0.0968    0.9032
-1.2000    0.1942    0.1151    0.8849
-1.1000    0.2179    0.1357    0.8643
-1.0000    0.2420    0.1587    0.8413
-0.9000    0.2661    0.1841    0.8159
-0.8000    0.2897    0.2119    0.7881
-0.7000    0.3123    0.2420    0.7580
-0.6000    0.3332    0.2743    0.7257
-0.5000    0.3521    0.3085    0.6915
-0.4000    0.3683    0.3446    0.6554
-0.3000    0.3814    0.3821    0.6179
-0.2000    0.3910    0.4207    0.5793
-0.1000    0.3970    0.4602    0.5398
      0    0.3989    0.5000    0.5000
 0.1000    0.3970    0.5398    0.4602
 0.2000    0.3910    0.5793    0.4207
 0.3000    0.3814    0.6179    0.3821
 0.4000    0.3683    0.6554    0.3446
 0.5000    0.3521    0.6915    0.3085
 0.6000    0.3332    0.7257    0.2743
 0.7000    0.3123    0.7580    0.2420
 0.8000    0.2897    0.7881    0.2119
 0.9000    0.2661    0.8159    0.1841
 1.0000    0.2420    0.8413    0.1587
 1.1000    0.2179    0.8643    0.1357
 1.2000    0.1942    0.8849    0.1151
 1.3000    0.1714    0.9032    0.0968
 1.4000    0.1497    0.9192    0.0808
 1.5000    0.1295    0.9332    0.0668
 1.6000    0.1109    0.9452    0.0548
 1.7000    0.0940    0.9554    0.0446
 1.8000    0.0790    0.9641    0.0359
 1.9000    0.0656    0.9713    0.0287
 2.0000    0.0540    0.9772    0.0228
 2.1000    0.0440    0.9821    0.0179
 2.2000    0.0355    0.9861    0.0139
 2.3000    0.0283    0.9893    0.0107
 2.4000    0.0224    0.9918    0.0082
 2.5000    0.0175    0.9938    0.0062
 2.6000    0.0136    0.9953    0.0047
 2.7000    0.0104    0.9965    0.0035
 2.8000    0.0079    0.9974    0.0026
 2.9000    0.0060    0.9981    0.0019
 3.0000    0.0044    0.9987    0.0013
&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;End of exam 2, total 80 points.&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/class18-exam2-ans/</guid><pubDate>Fri, 22 Mar 2019 04:00:00 GMT</pubDate></item><item><title>Engineering Probability 2019: Class 18 and Exam 2 - Thu 2018-03-21</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/class18-exam2/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;p&gt;Name, RCSID:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.



.
&lt;/pre&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="upperalpha simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring two 2-sided 8.5"x11" paper with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all seven pages.&lt;/li&gt;
&lt;li&gt;Do all questions.&lt;/li&gt;
&lt;li&gt;Each part of a question is worth 5 points.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;You're designing a circuit with a chip.&lt;/p&gt;
&lt;ol class="lowerroman simple"&gt;
&lt;li&gt;The chip was manufactured in one of two plants, but you don't know which.&lt;/li&gt;
&lt;li&gt;The random variable Y says which plant the chip came from.   Y=1 or 2.&lt;/li&gt;
&lt;li&gt;Half the chips come from each plant.&lt;/li&gt;
&lt;li&gt;Chips from the first plant (Y=1) have a lifetime X that is U[0,10].&lt;/li&gt;
&lt;li&gt;For chips from the second plant (Y=2), X is U[0,20].&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You pick a random chip, power it up, and it's still working at time X=5.&lt;/p&gt;
&lt;p&gt;Answer the following questions.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What are $f(X=x|Y=1)$ and $f(X=x|Y=2)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What are $f(X=x \,\&amp;amp;\, Y=1)$ and $f(X=x \,\&amp;amp;\, Y=2)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_X(x)$ ?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $P[Y=1|X=5]$ ?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Assume that a bicycle tire's pdf for failing at time x is:
$f(x) = c(1/4 - x + x^2), \,\, 0\le x\le1 $&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $c$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the mean?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the variance?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the cdf?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the reliability?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the MTTF?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;This question is about a web server with service requests coming independently at an average of 1 per second.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability that in one hour there are more than 3720 hits?   Here I want a number, not just a formula.  The table at the end of this exam is useful.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.






.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Use the Markov inequality to compute an approximation to the above answer.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Use the Chebyshev inequality to compute an approximation to the above answer.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.








.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Let X be a normal random variable with mean 1000 and standard deviation 10.  Give the following numbers, using the supplied table.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;P[X&amp;gt;1015].&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.






.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;P[990&amp;lt;X&amp;lt;1010].&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.






.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;For what value of x is P[X&amp;lt;x]=.1?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.






.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Normal distribution:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
x          f(x)      F(x)      Q(x)
-3.0000    0.0044    0.0013    0.9987
-2.9000    0.0060    0.0019    0.9981
-2.8000    0.0079    0.0026    0.9974
-2.7000    0.0104    0.0035    0.9965
-2.6000    0.0136    0.0047    0.9953
-2.5000    0.0175    0.0062    0.9938
-2.4000    0.0224    0.0082    0.9918
-2.3000    0.0283    0.0107    0.9893
-2.2000    0.0355    0.0139    0.9861
-2.1000    0.0440    0.0179    0.9821
-2.0000    0.0540    0.0228    0.9772
-1.9000    0.0656    0.0287    0.9713
-1.8000    0.0790    0.0359    0.9641
-1.7000    0.0940    0.0446    0.9554
-1.6000    0.1109    0.0548    0.9452
-1.5000    0.1295    0.0668    0.9332
-1.4000    0.1497    0.0808    0.9192
-1.3000    0.1714    0.0968    0.9032
-1.2000    0.1942    0.1151    0.8849
-1.1000    0.2179    0.1357    0.8643
-1.0000    0.2420    0.1587    0.8413
-0.9000    0.2661    0.1841    0.8159
-0.8000    0.2897    0.2119    0.7881
-0.7000    0.3123    0.2420    0.7580
-0.6000    0.3332    0.2743    0.7257
-0.5000    0.3521    0.3085    0.6915
-0.4000    0.3683    0.3446    0.6554
-0.3000    0.3814    0.3821    0.6179
-0.2000    0.3910    0.4207    0.5793
-0.1000    0.3970    0.4602    0.5398
      0    0.3989    0.5000    0.5000
 0.1000    0.3970    0.5398    0.4602
 0.2000    0.3910    0.5793    0.4207
 0.3000    0.3814    0.6179    0.3821
 0.4000    0.3683    0.6554    0.3446
 0.5000    0.3521    0.6915    0.3085
 0.6000    0.3332    0.7257    0.2743
 0.7000    0.3123    0.7580    0.2420
 0.8000    0.2897    0.7881    0.2119
 0.9000    0.2661    0.8159    0.1841
 1.0000    0.2420    0.8413    0.1587
 1.1000    0.2179    0.8643    0.1357
 1.2000    0.1942    0.8849    0.1151
 1.3000    0.1714    0.9032    0.0968
 1.4000    0.1497    0.9192    0.0808
 1.5000    0.1295    0.9332    0.0668
 1.6000    0.1109    0.9452    0.0548
 1.7000    0.0940    0.9554    0.0446
 1.8000    0.0790    0.9641    0.0359
 1.9000    0.0656    0.9713    0.0287
 2.0000    0.0540    0.9772    0.0228
 2.1000    0.0440    0.9821    0.0179
 2.2000    0.0355    0.9861    0.0139
 2.3000    0.0283    0.9893    0.0107
 2.4000    0.0224    0.9918    0.0082
 2.5000    0.0175    0.9938    0.0062
 2.6000    0.0136    0.9953    0.0047
 2.7000    0.0104    0.9965    0.0035
 2.8000    0.0079    0.9974    0.0026
 2.9000    0.0060    0.9981    0.0019
 3.0000    0.0044    0.9987    0.0013
&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;End of exam 2, total 80 points.&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/class18-exam2/</guid><pubDate>Thu, 21 Mar 2019 04:00:00 GMT</pubDate></item><item><title>Engineering Probability Class 12 and Exam 1 - Thu 2019-02-21</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/class12-exam1/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;p&gt;Name, RCSID:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.




.
&lt;/pre&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="upperalpha simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring one 2-sided 8.5"x11" paper with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all six pages.&lt;/li&gt;
&lt;li&gt;Do any 14 of the 17 questions or subquestions.   Cross out the 3 that you don't do.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;You are trying to pass your driving test to get a driving license.   You can take the test only once a month.   For each time you try, you pass with probability 1/3.   The random variable is the number of months until you pass for the first time.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What's the relevant probability distribution?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.





.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What's the expected number of months until you pass?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.







.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What's the standard deviation?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.







.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;In this year 2019, which has 365 days, the set of outcomes is the set of days of the year, from Jan 1 to Dec 31.   Event A is that the day is Monday.   Event B is that the day is in Jan.   Here is a calendar for Jan:&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre class="literal-block"&gt;
    January 2019
Su Mo Tu We Th Fr Sa
       1  2  3  4  5
 6  7  8  9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is the probability of B?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.







.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Are A and B independent?   Prove your answer (don't just state it).&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;You are scanning a B&amp;amp;W page and transmitting it over a noisy channel.   A black bit is coded as 1 and a white bit as 0.   Event A is that a random bit is black.    P(A) = .01.     Event B is that the bit is received as black.   Sometimes the bit is changed during transmission.   1% of the white bits are changed to black.   But 10% of the black bits are changed to white.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is the probability of B?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.







.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is P(A and B))?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is P(A' and B')?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is the probability that the bit arrived correct?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.










.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is P(A|B), the probability that 1 was transmitted, if you received 1?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is P(A' | B'), the probability that 0 was transmitted, if you received 0?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Now you take that received page and transmit it a second time over the same noisy channel.   Let event C be that you receive a black bit the 2nd time.   Compute P(C).&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.













.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; An LCD display has 1000 * 1000 pixels. A display is accepted if it has 15 or fewer faulty pixels. The probability that a pixel is faulty coming out of the production line is 1e-5. Find the proportion of displays that are accepted.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.












.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Pretend that there are only 28 students in this class.  This is about their birthdays.  Assume that they are uniformly distributed over the year (although this is actually false.)&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What's the probability that no one has a birthday on Feb 29?   (Year 2000 was a leap year.)   As always a reasonable formula is ok.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.







.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Now pretend that no one has a birthday on Feb 29.  What's the probability everyone has a different birthday?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Assume that RPI has 7000 students, and their birthdays are uniformly distributed and no one is on Feb 29.  Use a reasonable approximate distribution to compute the probability that exactly 20 students' birthday is today, Feb 21.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.










.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Able and Baker take turns tossing a coin until one gets Head.  The winner is the person who made that toss.   So, if Able gets a head on the first toss, he wins.  If Able tosses Tail and then Baker tosses Head, Baker wins.   And so on.  What's the probability that Able eventually wins the game?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.







.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;End of exam 1, total 70 points.&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/class12-exam1/</guid><pubDate>Thu, 21 Feb 2019 05:00:00 GMT</pubDate></item><item><title>Engineering Probability Class 12 and Exam 1 Answers - Thu 2019-02-21</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/class12-exam1-ans/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;p&gt;Name, RCSID:&lt;/p&gt;
&lt;p&gt;WRF answers&lt;/p&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="upperalpha simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring one 2-sided 8.5"x11" paper with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all six pages.&lt;/li&gt;
&lt;li&gt;Do any 14 of the 17 questions or subquestions.   Cross out the 3 that you don't do.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;You are trying to pass your driving test to get a driving license.   You can take the test only once a month.   For each time you try, you pass with probability 1/3.   The random variable is the number of months until you pass for the first time.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What's the relevant probability distribution?&lt;/p&gt;
&lt;p&gt;geometric&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What's the expected number of months until you pass?&lt;/p&gt;
&lt;p&gt;p=1/3, mean=1/p.  So 3.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What's the standard deviation?&lt;/p&gt;
&lt;p&gt;sqrt(1-p)/p = 3 sqrt(2/3) = 2.4&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;In this year 2019, which has 365 days, the set of outcomes is the set of days of the year, from Jan 1 to Dec 31.   Event A is that the day is Monday.   Event B is that the day is in Jan.   Here is a calendar for Jan:&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre class="literal-block"&gt;
    January 2019
Su Mo Tu We Th Fr Sa
       1  2  3  4  5
 6  7  8  9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is the probability of B?&lt;/p&gt;
&lt;p&gt;31/365 = .0849&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Are A and B independent?   Prove your answer (don't just state it).&lt;/p&gt;
&lt;p&gt;One year is 52 weeks plus one day. In 2019, the extra day is Tues.&lt;/p&gt;
&lt;p&gt;P(A) = 52/365=.1424&lt;/p&gt;
&lt;p&gt;P(A and B) = 4/365 = .0109.   That does not equal P(A)P(B)=.0120&lt;/p&gt;
&lt;p&gt;no independent.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;You are scanning a B&amp;amp;W page and transmitting it over a noisy channel.   A black bit is coded as 1 and a white bit as 0.   Event A is that a random bit is black.    P(A) = .01.     Event B is that the bit is received as black.   Sometimes the bit is changed during transmission.   1% of the white bits are changed to black.   But 10% of the black bits are changed to white.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is the probability of B?&lt;/p&gt;
&lt;p&gt;P(B)=P(B|A)P(A)+P(B|A ' )P(A ' ) = .9*.01+.01*.99 = .0189&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is P(A and B))?&lt;/p&gt;
&lt;p&gt;P(A and B) = P(B|A) P(A) = .9 .01 = .009&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is P(A' and B')?&lt;/p&gt;
&lt;p&gt;P(A' and B') = P(B' | A' ) P(A') = .99 * .99 = .9801&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is the probability that the bit arrived correct?&lt;/p&gt;
&lt;p&gt;P(A and B) + P(A' and B') = .9891&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is P(A|B), the probability that 1 was transmitted, if you received 1?&lt;/p&gt;
&lt;p&gt;P(A|B) = P(A and B)/P(B) = .009/.0189 = .4761&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What is P(A' | B'), the probability that 0 was transmitted, if you received 0?&lt;/p&gt;
&lt;p&gt;P(A' | B') = P(A' and B') / P(B') = .9801 / .9811 = .9989&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Now you take that received page and transmit it a second time over the same noisy channel.   Let event C be that you receive a black bit the 2nd time.   Compute P(C).&lt;/p&gt;
&lt;p&gt;P(C|B) = P(B|A),   P(C|B') = P(B|A')&lt;/p&gt;
&lt;p&gt;P(C) = P(C|B) P(B) + P(C|B') P(B') = .9 * .0189 + .01 * .9811 = .0268&lt;/p&gt;
&lt;p&gt;That is, with the noise, as you repeatedly retransmit, black bits become more likely.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; An LCD display has 1000 * 1000 pixels. A display is accepted if it has 15 or fewer faulty pixels. The probability that a pixel is faulty coming out of the production line is 1e-5. Find the proportion of displays that are accepted.&lt;/p&gt;
&lt;p&gt;This would be a Poisson distribution with the random variable being the number of bad pixels in a display.  The parameter, a=1e6 * 1e-5 = 10.   We want P(X&amp;lt;=15).   That is&lt;/p&gt;
&lt;p&gt;&lt;span class="math"&gt;\(\sum_{k=0}^{15} e^{-10} 10^k / k! = .9513\)&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Pretend that there are only 28 students in this class.  This is about their birthdays.  Assume that they are uniformly distributed over the year (although this is actually false.)&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; What's the probability that no one has a birthday on Feb 29?   (Year 2000 was a leap year.)   As always a reasonable formula is ok.&lt;/p&gt;
&lt;p&gt;(365/366)^28 = .9244&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Now pretend that no one has a birthday on Feb 29.  What's the probability everyone has a different birthday?&lt;/p&gt;
&lt;p&gt;1st person is always ok.&lt;/p&gt;
&lt;p&gt;P(2nd person's birthday is different) = 364/365&lt;/p&gt;
&lt;p&gt;P(3rd is different from previous 2) = 363/365&lt;/p&gt;
&lt;p&gt;P(k-th student is different from 1st k-1) = (366-k)/365&lt;/p&gt;
&lt;p&gt;P(all different) = product = 365!/338!/365^28 = .3455&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Assume that RPI has 7000 students, and their birthdays are uniformly distributed and no one is on Feb 29.  Use a reasonable approximate distribution to compute the probability that exactly 20 students' birthday is today, Feb 21.&lt;/p&gt;
&lt;p&gt;Use Poisson.  The expected number of students with a birthday today is a=7000/365= 19.17.&lt;/p&gt;
&lt;p&gt;The probability of exactly 20 is  &lt;span class="math"&gt;\(e^{-19.17} 19.17^{20}/20!\)&lt;/span&gt; = .0873&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;em&gt;(5 pts)&lt;/em&gt; Able and Baker take turns tossing a coin until one gets Head.  The winner is the person who made that toss.   So, if Able gets a head on the first toss, he wins.  If Able tosses Tail and then Baker tosses Head, Baker wins.   And so on.  What's the probability that Able eventually wins the game?&lt;/p&gt;
&lt;p&gt;P(Able wins) = P(Able wins on 1st toss) + P(wins on 3rd) + P(5th) + ...&lt;/p&gt;
&lt;p&gt;= 1/2 + 1/8 + 1/32 + ... = 2/3&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;End of exam 1, total 70 points.&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/class12-exam1-ans/</guid><pubDate>Thu, 21 Feb 2019 05:00:00 GMT</pubDate></item><item><title>Engineering Probability 2018  Exam 3 - Tues 2018-05-08</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/2018-exam3/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;p&gt;Name, RCSID:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.



.
&lt;/pre&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="lowerroman simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring three 2-sided 8.5"x11" papers with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all nine pages.&lt;/li&gt;
&lt;li&gt;Each part of a question is worth 5 points.&lt;/li&gt;
&lt;li&gt;You may cross out three question parts, which will not be graded.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;You toss two coins.   Each comes up heads half of the time.   However, for some funny reason, they both come up heads together, or both come up tails together.   Intuitively, they not independent.   This question is to prove that from the definition of independence.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;This time, you toss three coins, A, B, and C.   These are the probabilities:&lt;/p&gt;
&lt;p&gt;P[TTT] = P[THH] = P[HTH] = P[HHT]  = 0&lt;/p&gt;
&lt;p&gt;P[TTH] = P[THT] = P[HTT] = P[HHH] = 1/4&lt;/p&gt;
&lt;p&gt;My notation is that TTH means that coin A is tails, coin B tails, and coin C heads.  Etc.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;Are the individual coins fair (i.e., heads half the time)?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are coins A and B independent?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are all 3 coins independent?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;This question is about a continuous probability distribution on 2 variables.&lt;/p&gt;
&lt;p&gt;$$f_{XY}(x,y) = \begin{cases}   c x y &amp;amp; \text{  if  }  (0\le x) \ \&amp;amp; \ (0\le y)\  \&amp;amp; \ (0\le x+y \le 1) \\ 0 &amp;amp;  \text{   otherwise}\end{cases}$$&lt;/p&gt;
&lt;p&gt;The nonzero region is the triangle with vertices (0,0), (1,0) and (0,1).&lt;/p&gt;
&lt;p&gt;&lt;em&gt;c&lt;/em&gt; is some constant, but I didn't tell you what it is.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is &lt;em&gt;c&lt;/em&gt;?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $F_{XY}(x,y)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_X(x)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are X and Y independent?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $P[X\le Y]$ ?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Define a new random variable $Z=X+Y$.   What is $F_Z(z)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $E[X]$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $COV[X,Y]$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $\rho_{X,Y}$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_Y(y|x)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $E[Y|x]$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Compute $$\int_0^\infty e^{-x^2} dx$$ .&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the legal range for a correlation coefficient?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the variance of the sum of 100 independent variables, each of which is N(0,1)?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;You have 10 independent random variables.  Each is uniform on [0,1].  What is the expected value of the max?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;You toss 10 independent fair coins, one after the other.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the expected total number of heads, given that the first 5 coins came up heads?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability of the total number of heads being 10, given that the first 5 coins came up heads?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;End of exam 3, total 90 points (considering that 3 questions aren't graded).&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/2018-exam3/</guid><pubDate>Mon, 07 May 2018 04:00:00 GMT</pubDate></item><item><title>Engineering Probability 2018 Exam 3 solution - Tues 2018-05-08</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/2018-exam3-sol/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;style&gt; .red {color:red} &lt;/style&gt;
&lt;style&gt; .blue {color:blue} &lt;/style&gt;&lt;p&gt;Name, RCSID: &lt;span class="red"&gt;W. Randolph Franklin, frankwr&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;OK to give the formulas w/o working them out.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="lowerroman simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring three 2-sided 8.5"x11" papers with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all nine pages.&lt;/li&gt;
&lt;li&gt;Each part of a question is worth 5 points.&lt;/li&gt;
&lt;li&gt;You may cross out three question parts, which will not be graded.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;You toss two coins.   Each comes up heads half of the time.   However, for some funny reason, they both come up heads together, or both come up tails together.   Intuitively, they not independent.   This question is to prove that from the definition of independence.&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;P[HT] = 0.  However P[A=H] = P[B=T] = 1/2, so P[HT] != P[A=H]P[B=T].  That's the def of not independent.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;This time, you toss three coins, A, B, and C.   These are the probabilities:&lt;/p&gt;
&lt;p&gt;P[TTT] = P[THH] = P[HTH] = P[HHT]  = 0&lt;/p&gt;
&lt;p&gt;P[TTH] = P[THT] = P[HTT] = P[HHH] = 1/4&lt;/p&gt;
&lt;p&gt;My notation is that TTH means that coin A is tails, coin B tails, and coin C heads.  Etc.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;Are the individual coins fair (i.e., heads half the time)?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;P[A=H] = 0+0+1/4+1/4 = 1/2 so fair.  Ditto B and C.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are coins A and B independent?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;P[A=H,B=H] = 1/4, good.   P[A=H,B=T]=1/4, good.  P[TH] = 1/4, good.  P[TT] = 1/4, good.   Yes independent.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are all 3 coins independent?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;P[HHH] = 1/4 != P[A=H]P[B=H]P[C=H] = 1/8.  Not independent.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;This question is about a continuous probability distribution on 2 variables.&lt;/p&gt;
&lt;p&gt;$$f_{XY}(x,y) = \begin{cases}   c x y &amp;amp; \text{  if  }  (0\le x) \ \&amp;amp; \ (0\le y)\  \&amp;amp; \ (0\le x+y \le 1) \\ 0 &amp;amp;  \text{   otherwise}\end{cases}$$&lt;/p&gt;
&lt;p&gt;The nonzero region is the triangle with vertices (0,0), (1,0) and (0,1).&lt;/p&gt;
&lt;p&gt;&lt;em&gt;c&lt;/em&gt; is some constant, but I didn't tell you what it is.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is &lt;em&gt;c&lt;/em&gt;?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$\int_0^1\int_0^{1-x} xy\ dy\ dx = 1/24$ so $c=24$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $F_{XY}(x,y)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$F_{XY}(x,y)=\begin{cases} 0 &amp;amp; \text{  if  } x\le0 \cup  y\le0 \\ 1 &amp;amp; \text{  if  } x\ge 1 \cap  y\ge1 \\ 6x^2y^2 &amp;amp; \text{  if } 0\le x \cap  0\le y \cap  x+y\le1 \\  (\int_0^x\int_0^{1-x} + \int_0^{1-y}\int_{1-x}^y + \int_{1-y}^x\int_{1-x}^{1-x_0}) (12x_0y_0 dy_0dx_0) &amp;amp; \text{ otherwise}\end{cases}$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;The last case above splits the nonzero integration region into two rectangles and a triangle.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;It's also acceptable to draw a figure and say something intelligent w/o being explicit about all the details.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_X(x)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f_X(x)= \int_0^{1-x}f_{XY}(x,y) dy = 12x(1-x)^2$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Note that $\int_0^1 f_X(x)=1$, which is correct.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Are X and Y independent?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f_X(x)=12x(1-x)^2,f_Y(y)=12y(1-y)^2,f_X(x)f_Y(y)\ne f_{XY}(x,y)$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;No.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $P[X\le Y]$ ?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$\int_0^1\int_0^{\min(x,1-x)} f_{XY}(x,y) dy\ dx$.   However, since $f_{XY}(x,y) = f_{XY}(y,x)$, $P[X\le Y]=1/2$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Define a new random variable $Z=X+Y$.   What is $F_Z(z)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f_Z(z) = \int_0^z f_{XY}(x,z-x) dx = 24\int_0^z x(z-x)dx$ for $0\le z\le 1$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$F_Z(z) = \int f_Z(z)dz$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $E[X]$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$\int_0^1 xf_X(x)dx = 2/5$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $COV[X,Y]$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;E[XY] = $\int_0^1\int_0^{1-x}xyf_{XY}dx dy=8\int_0^1x^2(1-x)^4 dx, E[X]=E[Y]=2/5$, COV[X,Y]=E[XY]-E[X]E[Y].  You don't have to work through the math.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $\rho_{X,Y}$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$\sigma_X=\sigma_Y= E[X^2]-E[X]^2$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$\rho_{X,Y}=COV[X,Y]/(\sigma_X\sigma_Y)$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_Y(y|x)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f_Y(y|x)=f(x,y)/f(x) = 12xy/(4x^3) = 2\frac{y}{x^2}$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $E[Y|x]$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Integrate the above over $y$ to get   $x^{-2}$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Compute $$\int_0^\infty e^{-x^2} dx$$ .&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Consider $\sigma=1/\sqrt{2}$.  Working a little, this will give $\int_0^\infty e^{-x^2} dx=\sqrt{\pi}/2=0.886$.  It was also ok just to use a calculator.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the legal range for a correlation coefficient?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;-1 to 1&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the variance of the sum of 100 independent variables, each of which is N(0,1)?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;100.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;You have 10 independent random variables.  Each is uniform on [0,1].  What is the expected value of the max?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Let $W=\max(X_i).   F_W(w)=w^{10}.  f_W(w)=10w^9.E[W]=10/11.$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;You toss 10 independent fair coins, one after the other.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the expected total number of heads, given that the first 5 coins came up heads?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;The last 5 coins do not depend on the first 5.  So the expectation is 7.5.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability of the total number of heads being 10, given that the first 5 coins came up heads?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;1/32&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;End of exam 3, total 90 points (considering that 3 questions aren't graded).&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/2018-exam3-sol/</guid><pubDate>Mon, 07 May 2018 04:00:00 GMT</pubDate></item><item><title>Engineering Probability 2018 Exam 2 - Thu 2018-03-29</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/2018-exam2/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;p&gt;Name, RCSID:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.



.
&lt;/pre&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="upperalpha simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring two 2-sided 8.5"x11" paper with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all eleven pages.&lt;/li&gt;
&lt;li&gt;Each part of a question is worth 5 points.&lt;/li&gt;
&lt;li&gt;You may cross out two questions, which will not be graded.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;Consider this probability distribution:&lt;/p&gt;
&lt;p&gt;$$f_X(x)= \begin{cases}  a(2-x) &amp;amp;  \text{if }  0\le x\le1\\ 0&amp;amp;\text{otherwise}\end{cases}$$&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $a$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $F_X(x)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is E[X]?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the reliability, R[x]?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the MTTF?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the failure rate, r(x)?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_X(x|x&amp;gt;.5)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Define a new r.v. Y=2X, where X is the r.v. in the previous question.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_Y(y)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $F_Y(y)$?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is E[Y]?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Your web server gets on the average 1 hit per second.   The possible clients are independent of each other.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the name of appropriate distribution for the number of hits per second?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability that it gets exactly one hit in the next two seconds?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the name of appropriate probability distribution for the time between successive hits?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability that the time between two successive hits is less than two seconds?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Let X be an exponential random variable with mean 1.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;Using the Markov inequality, what's P[X&amp;gt;3]?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Using the Chebyshev inequality, what's P[X&amp;gt;3]?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.








.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the exact P[X&amp;gt;3]?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Let X be a normal random variable with mean 100 and standard deviation 10.  Give the following numbers, using the supplied table.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;P[X&amp;gt;100].&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.






.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;P[80&amp;lt;X&amp;lt;100].&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.






.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;You're tossing 10000 fair coins.   What's the probability of getting between 5000 and 5100 heads?  Use the table.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.









.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Evaluate $$\int_0^\infty e^{-2 x^2} dx$$&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.











.
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Let $f_X(x) = 1$ and $f_Y(y)=2y$, both in the range $0\le x, y\le1$.&lt;/p&gt;
&lt;p&gt;Let Z=max(X,Y).&lt;/p&gt;
&lt;p&gt;What is E[Z]?&lt;/p&gt;
&lt;pre class="literal-block"&gt;
.














.
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Normal distribution:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
x          f(x)      F(x)      Q(x)
-3.0000    0.0044    0.0013    0.9987
-2.9000    0.0060    0.0019    0.9981
-2.8000    0.0079    0.0026    0.9974
-2.7000    0.0104    0.0035    0.9965
-2.6000    0.0136    0.0047    0.9953
-2.5000    0.0175    0.0062    0.9938
-2.4000    0.0224    0.0082    0.9918
-2.3000    0.0283    0.0107    0.9893
-2.2000    0.0355    0.0139    0.9861
-2.1000    0.0440    0.0179    0.9821
-2.0000    0.0540    0.0228    0.9772
-1.9000    0.0656    0.0287    0.9713
-1.8000    0.0790    0.0359    0.9641
-1.7000    0.0940    0.0446    0.9554
-1.6000    0.1109    0.0548    0.9452
-1.5000    0.1295    0.0668    0.9332
-1.4000    0.1497    0.0808    0.9192
-1.3000    0.1714    0.0968    0.9032
-1.2000    0.1942    0.1151    0.8849
-1.1000    0.2179    0.1357    0.8643
-1.0000    0.2420    0.1587    0.8413
-0.9000    0.2661    0.1841    0.8159
-0.8000    0.2897    0.2119    0.7881
-0.7000    0.3123    0.2420    0.7580
-0.6000    0.3332    0.2743    0.7257
-0.5000    0.3521    0.3085    0.6915
-0.4000    0.3683    0.3446    0.6554
-0.3000    0.3814    0.3821    0.6179
-0.2000    0.3910    0.4207    0.5793
-0.1000    0.3970    0.4602    0.5398
&lt;/pre&gt;
&lt;p&gt;Normal distribution:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
x          f(x)      F(x)      Q(x)
      0    0.3989    0.5000    0.5000
 0.1000    0.3970    0.5398    0.4602
 0.2000    0.3910    0.5793    0.4207
 0.3000    0.3814    0.6179    0.3821
 0.4000    0.3683    0.6554    0.3446
 0.5000    0.3521    0.6915    0.3085
 0.6000    0.3332    0.7257    0.2743
 0.7000    0.3123    0.7580    0.2420
 0.8000    0.2897    0.7881    0.2119
 0.9000    0.2661    0.8159    0.1841
 1.0000    0.2420    0.8413    0.1587
 1.1000    0.2179    0.8643    0.1357
 1.2000    0.1942    0.8849    0.1151
 1.3000    0.1714    0.9032    0.0968
 1.4000    0.1497    0.9192    0.0808
 1.5000    0.1295    0.9332    0.0668
 1.6000    0.1109    0.9452    0.0548
 1.7000    0.0940    0.9554    0.0446
 1.8000    0.0790    0.9641    0.0359
 1.9000    0.0656    0.9713    0.0287
 2.0000    0.0540    0.9772    0.0228
 2.1000    0.0440    0.9821    0.0179
 2.2000    0.0355    0.9861    0.0139
 2.3000    0.0283    0.9893    0.0107
 2.4000    0.0224    0.9918    0.0082
 2.5000    0.0175    0.9938    0.0062
 2.6000    0.0136    0.9953    0.0047
 2.7000    0.0104    0.9965    0.0035
 2.8000    0.0079    0.9974    0.0026
 2.9000    0.0060    0.9981    0.0019
 3.0000    0.0044    0.9987    0.0013
&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;End of exam 1, total 100 points (considering that 2 questions aren't graded).&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/2018-exam2/</guid><pubDate>Thu, 29 Mar 2018 04:00:00 GMT</pubDate></item><item><title>Engineering Probability 2018 Exam 2 Solution - Thu 2018-03-29</title><link>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/2018-exam2-sol/</link><dc:creator>W Randolph Franklin (WRF), RPI</dc:creator><description>&lt;div&gt;&lt;style&gt; .red {color:red} &lt;/style&gt;
&lt;style&gt; .blue {color:blue} &lt;/style&gt;&lt;p&gt;Name, RCSID:&lt;/p&gt;
&lt;blockquote&gt;
WRF solution&lt;/blockquote&gt;
&lt;p&gt;Rules:&lt;/p&gt;
&lt;ol class="upperalpha simple"&gt;
&lt;li&gt;You have 80 minutes.&lt;/li&gt;
&lt;li&gt;You may bring two 2-sided 8.5"x11" paper with notes.&lt;/li&gt;
&lt;li&gt;You may bring a calculator.&lt;/li&gt;
&lt;li&gt;You may not share material with each other during the exam.&lt;/li&gt;
&lt;li&gt;No collaboration or communication (except with the staff) is allowed.&lt;/li&gt;
&lt;li&gt;Check that your copy of this test has all eleven pages.&lt;/li&gt;
&lt;li&gt;Each part of a question is worth 5 points.&lt;/li&gt;
&lt;li&gt;You may cross out two questions, which will not be graded.&lt;/li&gt;
&lt;li&gt;When answering a question, don't just state your answer, prove it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;Consider this probability distribution:&lt;/p&gt;
&lt;p&gt;$$f_X(x)= \begin{cases}  a(2-x) &amp;amp;  \text{if }  0\le x\le1\\ 0&amp;amp;\text{otherwise}\end{cases}$$&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $a$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;We require that $\int_0^1 f(x) = 1$.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;So, $a=2/3$.   You don't have to write it, but this gives $f_X(x) = \frac{4}{3}-\frac{2}{3}x$ if $0&amp;lt;x&amp;lt;1$.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $F_X(x)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$F(x) = \int_0^x f(w) dw = \begin{cases} 0 &amp;amp; \text{if } x\le0 \\
\frac{4}{3}x - \frac{x^2}{3} &amp;amp; 0&amp;lt;x&amp;lt;1 \\
1 &amp;amp; 1\le x \end{cases}      $$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;You can use any placeholder variable (other than $x$) in place of $w$.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;It doesn't matter where you say $&amp;lt;$ versus $\le$.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is E[X]?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$E[X] = \int_0^1 x f(x) dx =  \int (4/3 x -2/3 x^2)dx = \left. \left(\frac{2 x^2}{3} - \frac{2 x^3}{9}\right)\right|_0^1 = \frac{4}{9}$$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the reliability, R[x]?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$R(x) = 1 - F(x) = \begin{cases} 1 - \frac{4}{3}x + \frac{x^2}{3} &amp;amp; 0&amp;lt;x&amp;lt;1 \\
0 &amp;amp; 1\le x \end{cases}      $$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Lifetimes are nonnegative, so I deleted the case for $x&amp;lt;0$, but it doesn't matter.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the MTTF?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;MTTF = $$\int_0^1 R(x) dx = \int \left(1 -  \frac{4}{3}x + \frac{x^2}{3}\right) dx = \frac{4}{9}$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;MTTF=E[X]. The integral goes up to 1 because R(x) is 0 when x&amp;gt;1.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the failure rate, r(x)?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;For $0&amp;lt;x&amp;lt;1$,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$r(x) = \frac{-R'(x)}{R(x)} =  \frac{\frac{4}{3}-\frac{2x}{3}}{1 - \frac{4}{3}x + \frac{x^2}{3}}
=  \frac{4-2x}{3 - 4 x + x^2}$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;You don't need to simplify it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Note that $r(x)$ grows to infinity as $x$ approaches 1.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_X(x|x&amp;gt;.5)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$P[x&amp;gt;.5] = 1-F(.5) = 5/12$.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$f_X(x|x&amp;gt;.5) = f(x)/P[x&amp;gt;.5] = \begin{cases}  \frac{8}{5}(2-x) &amp;amp;  \text{if }  0.5\le x\le1\\ 0&amp;amp;\text{otherwise}\end{cases}$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;As a check, you can see that $\int f(x|x&amp;gt;.5) dx = 1$.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Define a new r.v. Y=2X, where X is the r.v. in the previous question.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $f_Y(y)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;The nonzero domain for $f_X(x)$ is $0&amp;lt;x&amp;lt;1$, and Y=2X.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;So the nonzero domain for $f_Y(y)$ will be $0&amp;lt;y&amp;lt;2$.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$dy/dx = 2$, so&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$f_Y(y) = f_X(y/2)/2 = \begin{cases} \frac{2}{3} -  \frac{y}{6}  &amp;amp; 0&amp;lt;y&amp;lt;2\\ 0 &amp;amp; \text{otherwise}\end{cases}$$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is $F_Y(y)$?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$F_Y(y) = F_X(y/2)$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$F_Y(y)= \begin{cases} \frac{2}{3} y -  \frac{y^2}{12}  &amp;amp; 0&amp;lt;y&amp;lt;2\\ 0 &amp;amp; y&amp;lt;0 \\ 1 &amp;amp; y&amp;gt;2 \end{cases}$$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is E[Y]?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$ E[Y] = \int_0^2 y\left(\frac{2}{3} -  \frac{y}{6}\right) dy = \left.\left(y^2/3-y^3/18\right)\right|_0^2 = \frac{8}{9}$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Alternatively, E[Y] = 2 E[X].&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Your web server gets on the average 1 hit per second.   The possible clients are independent of each other.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the name of appropriate distribution for the number of hits per second?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Poisson&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability that it gets exactly one hit in the next two seconds?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;That r.v. is Poisson with $\alpha=2$ so $$P[X=1] = \frac{2^1 e^{-2}}{1!} = 2 e^{-2} = .27$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;full points for $2 e^{-2}$.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the name of appropriate probability distribution for the time between successive hits?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Exponential&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What is the probability that the time between two successive hits is less than two seconds?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Mean: $1/\lambda= 1$.    $F(x) = 1-e^{-x}$.  $F(2) = 1-e^{-2}=.14=.86$.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;full points for $1-e^{-2}$.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Let X be an exponential random variable with mean 1.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;Using the Markov inequality, what's P[X&amp;gt;3]?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;See page 181.  $\mu=1$.   $P\le 1/3$.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Using the Chebyshev inequality, what's P[X&amp;gt;3]?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$\mu=\sigma=1$, P[X&amp;lt;0]=0, so $$P[X&amp;gt;3]= P[|X-1|&amp;gt;2] \le 1/4$$&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;What's the exact P[X&amp;gt;3]?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$F(x) = 1-e^{-x}$ so $P[X&amp;gt;3] = 1-F[3] = e^{-3} = .05$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;full points for $e^{-3}$.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Let X be a normal random variable with mean 100 and standard deviation 10.  Give the following numbers, using the supplied table.&lt;/p&gt;
&lt;ol class="loweralpha"&gt;
&lt;li&gt;&lt;p class="first"&gt;P[X&amp;gt;100].&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;0.5&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;P[80&amp;lt;X&amp;lt;100].&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Converted to $\mu=0,\ \sigma=1$, this is P[-2&amp;lt;Y&amp;lt;0] = F(0)-F(-2) = .5 - .02 = .48.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;You're tossing 10000 fair coins.   What's the probability of getting between 5000 and 5100 heads?  Use the table.&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;This is a Bernoulli r.v. with $\mu=5000,\ \sigma=\sqrt{npq}=50$.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;Use a normal approximation; the answer is F(2)-F(0) = .98-.5 = .48.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Evaluate $$\int_0^\infty e^{-2 x^2} dx$$&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;For $\mu=0$, what value of $\sigma$ would make $f(x) = c e^{-2 x^2}$?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$f(x) = \frac{1}{\sqrt{2\pi} \cdot \sigma} \exp\left(\frac{-x^2}{2\sigma^2}\right)$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;so let $\sigma=1/2$ and&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$f(x) = \sqrt{\frac{2}{\pi} } e^{\left(-2 x^2\right)}$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;So $$\int_\infty^\infty e^{-2 x^2} = \sqrt{\frac{\pi}{2} }$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;and  $$\int_0^\infty e^{-2 x^2} dx$$ =  $$\sqrt{\frac{\pi}{8} }$$&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;which could be written various ways.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Let $f_X(x) = 1$ and $f_Y(y)=2y$, both in the range $0\le x, y\le1$.&lt;/p&gt;
&lt;p&gt;Let Z=max(X,Y).&lt;/p&gt;
&lt;p&gt;What is E[Z]?&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$F_X(x) = \int f_X(x) dx = x$,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$F_Y(y) = y^2$.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$F_Z(z) = F_X(z) F_Y(z) = z^3$,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$f_Z(z) = 3 z^2$,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="red"&gt;$$E[Z] = \int_0^1 3 z^3 dz = 3/4 z^4|_0^1 = \frac{3}{4}$$.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Normal distribution:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
x          f(x)      F(x)      Q(x)
-3.0000    0.0044    0.0013    0.9987
-2.9000    0.0060    0.0019    0.9981
-2.8000    0.0079    0.0026    0.9974
-2.7000    0.0104    0.0035    0.9965
-2.6000    0.0136    0.0047    0.9953
-2.5000    0.0175    0.0062    0.9938
-2.4000    0.0224    0.0082    0.9918
-2.3000    0.0283    0.0107    0.9893
-2.2000    0.0355    0.0139    0.9861
-2.1000    0.0440    0.0179    0.9821
-2.0000    0.0540    0.0228    0.9772
-1.9000    0.0656    0.0287    0.9713
-1.8000    0.0790    0.0359    0.9641
-1.7000    0.0940    0.0446    0.9554
-1.6000    0.1109    0.0548    0.9452
-1.5000    0.1295    0.0668    0.9332
-1.4000    0.1497    0.0808    0.9192
-1.3000    0.1714    0.0968    0.9032
-1.2000    0.1942    0.1151    0.8849
-1.1000    0.2179    0.1357    0.8643
-1.0000    0.2420    0.1587    0.8413
-0.9000    0.2661    0.1841    0.8159
-0.8000    0.2897    0.2119    0.7881
-0.7000    0.3123    0.2420    0.7580
-0.6000    0.3332    0.2743    0.7257
-0.5000    0.3521    0.3085    0.6915
-0.4000    0.3683    0.3446    0.6554
-0.3000    0.3814    0.3821    0.6179
-0.2000    0.3910    0.4207    0.5793
-0.1000    0.3970    0.4602    0.5398
&lt;/pre&gt;
&lt;p&gt;Normal distribution:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
x          f(x)      F(x)      Q(x)
      0    0.3989    0.5000    0.5000
 0.1000    0.3970    0.5398    0.4602
 0.2000    0.3910    0.5793    0.4207
 0.3000    0.3814    0.6179    0.3821
 0.4000    0.3683    0.6554    0.3446
 0.5000    0.3521    0.6915    0.3085
 0.6000    0.3332    0.7257    0.2743
 0.7000    0.3123    0.7580    0.2420
 0.8000    0.2897    0.7881    0.2119
 0.9000    0.2661    0.8159    0.1841
 1.0000    0.2420    0.8413    0.1587
 1.1000    0.2179    0.8643    0.1357
 1.2000    0.1942    0.8849    0.1151
 1.3000    0.1714    0.9032    0.0968
 1.4000    0.1497    0.9192    0.0808
 1.5000    0.1295    0.9332    0.0668
 1.6000    0.1109    0.9452    0.0548
 1.7000    0.0940    0.9554    0.0446
 1.8000    0.0790    0.9641    0.0359
 1.9000    0.0656    0.9713    0.0287
 2.0000    0.0540    0.9772    0.0228
 2.1000    0.0440    0.9821    0.0179
 2.2000    0.0355    0.9861    0.0139
 2.3000    0.0283    0.9893    0.0107
 2.4000    0.0224    0.9918    0.0082
 2.5000    0.0175    0.9938    0.0062
 2.6000    0.0136    0.9953    0.0047
 2.7000    0.0104    0.9965    0.0035
 2.8000    0.0079    0.9974    0.0026
 2.9000    0.0060    0.9981    0.0019
 3.0000    0.0044    0.9987    0.0013
&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;End of exam 1, total 100 points (considering that 2 questions aren't graded).&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><category>mathjax</category><guid>https://wrf.ecse.rpi.edu/Teaching/probability-s2019/posts/2018-exam2-sol/</guid><pubDate>Thu, 29 Mar 2018 04:00:00 GMT</pubDate></item></channel></rss>