Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. \documentclass[12pt]{article}
  2.  
  3. \setlength{\topmargin}{-.8in}
  4. % Style modifications
  5. \oddsidemargin -0.1in
  6. \evensidemargin -0.1in
  7. \textwidth 6.75in
  8. \textheight 8.75in
  9. \parskip 0.1in
  10. \parindent 0.0in
  11. \headheight 0.6in
  12. \headsep 0.2in
  13.  
  14. % Packages
  15. \usepackage{amsmath,amsfonts,amssymb,amscd,verbatim,graphicx,fancyhdr}
  16. \usepackage{palatino}
  17. \usepackage{enumerate}
  18. \usepackage{epsfig}
  19. \usepackage{subfigure}
  20. \usepackage[colorlinks,bookmarks,pdfpagemode=UseOutlines,linkcolor=blue,urlcolor=blue]{hyperref}
  21. \usepackage{courier}
  22. \usepackage{setspace}
  23. \usepackage[mathscr]{euscript}
  24. \usepackage{amsmath,amsthm,amssymb}
  25. \usepackage{listings}
  26. \lstset{basicstyle=\footnotesize\ttfamily,breaklines=true}
  27. \lstset{frame=single, language=Python, showstringspaces=false}
  28.  
  29.  
  30. %%% Some Mathematical Definitions
  31. \DeclareMathOperator{\newand}{~AND~}
  32. \DeclareMathOperator{\newor}{~OR~}
  33. \DeclareMathOperator{\xor}{~XOR~}
  34. \DeclareMathOperator{\imply}{~IMPLIES~}
  35. \DeclareMathOperator{\newiff}{~IFF~}
  36. \DeclareMathOperator{\newnot}{NOT}
  37. \def\T{{\bf T}}
  38. \def\F{{\bf F}}
  39. \newcommand{\inv}{^{\raisebox{.2ex}{$\scriptscriptstyle-1$}}}
  40.  
  41. %%% Document Headers
  42. %% Left Header
  43. \lhead{\textbf{Lizzy Hanley}\\\textbf{ Molly Soja}
  44. }
  45. %% Right Header
  46. \rhead{Solutions to extra credit: Lecture 22}
  47.  
  48. \newcounter{problem}
  49. \newenvironment{problem}[1]{\begin{trivlist} \refstepcounter{problem}
  50. \item[\hskip \labelsep{\bf Problem \theproblem \mbox{} #1}]}{\end{trivlist}}
  51.  
  52. \onehalfspacing
  53. %%%%
  54.  
  55. \begin{document}
  56. \thispagestyle{fancy}
  57.  
  58.  
  59. \begin{problem}{}
  60. \textbf{Q1:} 6 cards are drawn from a deck of 52 cards. Let X be the number of kings that are drawn. What is the distribution (and the corresponding parameters) of X?\\
  61. \textbf{Solution}:
  62. \textbf{}Hypergeometric Distribution because we are trying to find the probability of getting a certain amount of kings.\\
  63. \textbf{} m = 140 r = 4 n = 6
  64. $$ P(X = k) = \frac{\binom{4}{X} \binom{48}{6-X}}{\binom{52}{6}}$$
  65.  
  66.  
  67. \end{problem}
  68.  
  69.  
  70.  
  71.  
  72. \begin{problem}{}
  73. \textbf{Q2:} You have 40 red socks, 20 yellow socks, and 80 blue socks that are in a bag. This morning, you do the following. You randomly take out a pair of socks, if the colors do not match, you put them back in and repeat. Let X be the number of trials until you get a pair with matched color. What is the distribution (and the corresponding parameters) of X?\\
  74. \textbf{Solution}:
  75. \textbf{}Negative Binomial Distribution because we want the probability of getting one pair in n tries. \\
  76. \textbf{}k = 1
  77. $$P(X = n) = \binom{n-1}{0}\bigg(\frac{\binom{40}{2}}{\binom{140}{2}} + \frac{\binom{10}{2}}{\binom{140}{2}} + \frac{\binom{20}{2}}{\binom{140}{2}}\bigg)^1\bigg(1-\bigg(\frac{\binom{40}{2}}{\binom{140}{2}} + \frac{\binom{10}{2}}{\binom{140}{2}} + \frac{\binom{20}{2}}{\binom{140}{2}}\bigg)\bigg)^{n-1}$$
  78.  
  79.  
  80.  
  81.  
  82. \end{problem}
  83.  
  84.  
  85.  
  86.  
  87. \begin{problem}{}
  88. \textbf{Q3:} In expectation, the number of rainy days per year in San Diego is 60. Let X be the number of rainy days next year. What is the distribution(and the corresponding parameters) of X?\\
  89. \textbf{Solution}:
  90. \textbf{}Poisson Distribution because we want the probability of seeing the event given what we expect will happen.\\
  91. $$\lambda = 60 $$
  92. $$P(X = k) = \frac{e^{-60}60^k}{k!}$$
  93.  
  94.  
  95. \end{problem}
  96. \newpage\pagebreak
  97. \begin{problem}{}
  98. \textbf{Q4:} You have infinitely many socks in a bag. This morning, you prefer to wear red socks so you do the following. You randomly take out a single sock until you have a pair of red socks. The probabilities that you get a specific color among{red, yellow, blue}are equal. Let X be the number of trials until you get a pair of red socks. What is the distribution (and the corresponding parameters) of X?\\
  99. \textbf{Solution}:
  100. \textbf{}Negative Binomial Distribution because we want the probability of getting 2 same colored socks to get a pair in n tries. \\
  101. \textbf{}k = 2
  102. $$P(X = n) = \binom{n}{1}p^2(1-p)^{n-2}$$
  103.  
  104.  
  105. \end{problem}
  106.  
  107.  
  108.  
  109.  
  110.  
  111. \begin{problem}{}
  112. \textbf{Q5:} There are 6 bulbs in a house out of which 3 are defective. If 2 bulbs are picked randomly, find the probability that at least one is defective.\\
  113. \textbf{Solution}:
  114. \textbf{} Hypergeometric Distribution because we want to know the probability of getting a certain amount of defective bulbs\\k = 1
  115. $$P(X = k) = \binom{6}{1}\bigg(\frac{\binom{3}{1}\binom{6-3}{2-1}}{\binom{6}{2}} + \frac{\binom{3}{2}\binom{6-3}{2-2}}{\binom{6}{2}}\bigg)$$
  116.  
  117.  
  118.  
  119. \end{problem}
  120.  
  121. \textbf{Solve the following problems using the distributions that we discussed.}
  122.  
  123. \begin{problem}{}
  124. \textbf{Q6:} John is taking part in four competitions. If the probability of him winning any competition is 0.3, find the probability of him winning at least one competition.\\
  125. \textbf{Solution}:
  126. \textbf{}Binomial Distribution because
  127.  
  128.  
  129. \end{problem}
  130.  
  131.  
  132. \begin{problem}{}
  133. \textbf{Q7:} The probability that a kid getting an A for a paper is 0.05, find the probability of at most 2 out of 10 kids getting A grade in that paper.\\
  134. \textbf{Solution}:
  135.  
  136.  
  137.  
  138. \end{problem}
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement