Guest User

Untitled

a guest
Jan 15th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 5.28 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage{amsmath, amsthm, amssymb, amsfonts}
  3. \usepackage{mathrsfs}
  4. \usepackage{algorithmic}
  5. \usepackage{listings}
  6. \usepackage{graphicx}
  7. \usepackage{float}
  8. \usepackage{enumerate}
  9. \usepackage{fancyhdr}
  10. \usepackage[left=0.75in, top=1in, right=0.75in, bottom=1in]{geometry}
  11. \pagestyle{plain}
  12.  
  13. \newtheorem*{thm}{Theorem}
  14. \newtheorem*{cor}{Corollary}
  15. \newtheorem*{claim}{Claim}
  16.  
  17. \floatname{algorithm}{Procedure}
  18. \renewcommand{\algorithmicrequire}{\textbf{Input:}}
  19. \renewcommand{\algorithmicensure}{\textbf{Output:}}
  20.  
  21. \begin{document}
  22. \rhead{Maxwell Anselm\\MATH4335 HW1\\10/11/11\\1.7,10,24, Supplementary problems}
  23. \thispagestyle{fancy}
  24.  
  25. $\quad$ %for vertical space
  26.  
  27. \section*{1.7}
  28.  
  29. A Poisson distribution is a discrete distribution used when counting how many
  30. events occur over a period of time when
  31. \begin{itemize}
  32.     \item the events occur independently of each other and
  33.     \item the expected number of occurrences over a fixed amount of time is
  34.     constant.
  35. \end{itemize}
  36. In such situations, the probability of $k$ events occuring is
  37. \[P(X = k) = \frac{\lambda^k e^{-\lambda}}{k!}\]
  38. where $\lambda$ is the expected number of events in that time period.
  39.  
  40. The textbook application for a Poisson distribution is in the radioactive decay
  41. of atoms, where the average rate of emission is known but the events occur
  42. independently. Poisson distributions do not necessarily need to be over time,
  43. however. One example is the mass production of chocolate chip cookies. We do not
  44. know the exact number of chocolate chips being used, but we can measure the
  45. expected number of chocolate chips per cookie, and it is safe to assume that
  46. chips appear in cookies independently. We can thus use a Poisson distribution to
  47. calculate the probability of a cookie having a specific number of chips.
  48.  
  49. \section*{1.10}
  50.  
  51. \begin{itemize}
  52. \item[(a)] Let $n$ be the number of days in the year. Let our sample space $S$
  53. be the set of all sequencies of $n+1$ people. Let $X$ be the number of people
  54. who have entered the room when we get the first repeat and let $X_i$ be the
  55. decision variable defined by
  56. \[X_i(s) = \begin{cases}
  57.     1 & \text{if the $i^\text{th}$ person is the first repeat}\\
  58.     0 & \text{otherwise}
  59. \end{cases}\]
  60. for all $s \in S$. Then the expected value is
  61. \[E(X) = \sum_{s \in S} P(s) X(s) = \sum_{s \in S} P(s) \sum_{i = 1}^{n + 1} i
  62. X_i(s) = \sum_{i = 1}^{n + 1}i\sum_{s \in S}X_i(s)P(s).\]
  63. But the inner sum simply counts the number of ways for the first repeat to be
  64. when the $i^\text{th}$ person enters the room. Thus
  65. \[\sum_{s \in S}X_i(s)P(s) = \left(\frac{n!}{(n - i + 1)!} (i - 1) n^{n + 1 - i
  66. }\right) \frac{1}{n^{n + 1}}\]
  67. because we can permute the first $i - 1$ people, person $i$'s birthday must
  68. collide with one of the first $i - 1$ and then we can choose whatever birthdays
  69. we want for the remaining $n + 1 - i$ people. Thus
  70. \[E(X) = \sum_{i = 1}^{n + 1} \frac{i (i - 1) n!}{n^i (n - i + 1)!}\]
  71.  
  72. For $n = 365$ we get $E(X) = 24.61658$.
  73.  
  74. \item[(b)]
  75. \[P(X \leq N) = 1 - P(X > N) = 1 - \frac{n}{n} \cdot \frac{n - 1}{n} \cdot \ldots \cdot
  76. \frac{n - N + 1}{n} = 1 - \frac{n!}{n^N (n - N)!}\]
  77.  
  78. Using a computer program to iterate over $N$, we find that the the first
  79. value for which the probability is greater than $\frac{1}{2}$ is $N = 23$.
  80.  
  81. \item[(c)] As in part (b), we get that $N = 58$.
  82. \item[(d)] If we have 365 or fewer people, it is possible for each person
  83. to have a unique birthday. If, however, we have 366 people then by the
  84. pigeonhole principle there must be two people who share a birthday.
  85.  
  86. \item[(e)] $\sqrt{365} \approx 19.1$
  87.  
  88. \section*{1.24}
  89.  
  90. Let $A$ and $B$ be the events that 1 and 2 are fixed points of a permutation,
  91. respectively. Then
  92. \[P(A \cap B) = \frac{(n-2)!}{n!}\]
  93. \[P(A^C \cap B) = \frac{(n - 2)(n - 2)!}{n!}\]
  94. where we can think of the second probability coming from the first because if 1
  95. is not a fixed point then we can start with 1 being a fixed point and then
  96. swap it with one of the $n-2$ other numbers.
  97.  
  98. We can perform a sanity check with these probabilities since
  99. \[P(A \cap B) + P(A^C \cap B) = \frac{(n - 2)! + (n - 2)(n - 2)!}{n!} = \frac{(n
  100. - 2)!(1 + n - 2)}{n!} = \frac{(n - 1)!}{n!} = \frac{1}{n} = P(B)\]
  101. \end{itemize}
  102.  
  103. We can also calculate
  104. \[P(B|A) = \frac{n (n - 2)!}{n!} = \frac{(n - 2)!}{(n - 1)!} = \frac{1}{n - 1}\]
  105. \[P(B|A^C) = \frac{(n - 2)(n - 2)!}{(n - 1)(n - 1)!} = \frac{n - 2}{(n - 1)^2}.\]
  106.  
  107. Let $X$ and $Y$ be random variables that can take on values $x_j$ and $y_k$ for
  108. $j \in J$, $k \in K$, respectively. Then
  109. \begin{align*}E(X + Y) &= \sum_j\sum_k(x_j + y_k)P(X = x_j, Y = y_k)\\
  110. &= \sum_j\sum_k x_j P(X = x_j, Y = y_k) + \sum_k\sum_j y_k P(X = x_j, Y = y_k)\\
  111. &= \sum_j x_j P(X = x_j) + \sum_k y_k P(Y = y_k)\\
  112. &= E(X) + E(Y)
  113. \end{align*}
  114. Since no restrictions were placed upon $X$ and $Y$, this relationship holds for
  115. all sums of random variables. Thus for
  116. \[X = \sum_{i = 1}^nX_i,\]\[E(X) = \sum_{i = 1}^nE(X_i).\]
  117.  
  118. \section*{Supplement}
  119.  
  120. Note Stirling's approximation:
  121. \[n! \sim \sqrt{2\pi n}\left(\frac{n}{e}\right)^n\]
  122. Then we can approximate
  123. \[\prod_{j = 0}^{k - 1}\frac{n - j}{n} = \frac{n!}{n^k (n-k)!} \approx
  124. \frac{\sqrt{2\pi n}}{n^k \sqrt{2\pi (n - k)}} \left(\frac{n}{e}\right)^n
  125. \left(\frac{e}{n-k}\right)^{n-k} = \left(\frac{n}{n-k}\right)^{n - k +
  126. \frac{1}{2}} e^{-k}\]
  127.  
  128. \end{document}
Add Comment
Please, Sign In to add comment