Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.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{amsmath}
  19. \usepackage{epsfig}
  20. \usepackage{subfigure}
  21. \usepackage[colorlinks,bookmarks,pdfpagemode=UseOutlines,linkcolor=blue,urlcolor=blue]{hyperref}
  22. \usepackage{courier}
  23. \usepackage{setspace}
  24. \usepackage[mathscr]{euscript}
  25. \usepackage{amsmath,amsthm,amssymb}
  26. \usepackage{listings}
  27. \lstset{basicstyle=\footnotesize\ttfamily,breaklines=true}
  28. \lstset{frame=single, language=Python, showstringspaces=false}
  29.  
  30.  
  31. %%% Some Mathematical Definitions
  32. \DeclareMathOperator{\newand}{~AND~}
  33. \DeclareMathOperator{\newor}{~OR~}
  34. \DeclareMathOperator{\xor}{~XOR~}
  35. \DeclareMathOperator{\imply}{~IMPLIES~}
  36. \DeclareMathOperator{\newiff}{~IFF~}
  37. \DeclareMathOperator{\newnot}{NOT}
  38. \def\T{{\bf T}}
  39. \def\F{{\bf F}}
  40. \newcommand{\inv}{^{\raisebox{.2ex}{$\scriptscriptstyle-1$}}}
  41.  
  42. %%% Document Headers
  43. %% Left Header
  44. \lhead{\textbf{Molly Soja}\\
  45. }
  46. %% Right Header
  47. \rhead{Solutions to HW6}
  48.  
  49. \newcounter{problem}
  50. \newenvironment{problem}[1]{\begin{trivlist} \refstepcounter{problem}
  51. \item[\hskip \labelsep{\bf Problem \theproblem \mbox{} #1}]}{\end{trivlist}}
  52.  
  53. \onehalfspacing
  54. %%%%
  55.  
  56. \begin{document}
  57. \thispagestyle{fancy}
  58.  
  59.  
  60. \begin{problem}{}
  61. We throw 2n balls uniformly at random into n bins independently. Let X be the number of non-empty bins.\\ \\
  62. What is the probability that a specific bin is non-empty (Hint: there is a standard discrete distribution that you can apply)?\\ \\
  63. In expectation, how many non-empty bins are there (Hint: Define Xi to be 1 if the i’th bin is non-empty and 0 otherwise. Write X in terms of Xi)? The answer should be in terms of n.\\ \\
  64. Note that 1 − (1 − 1/n)cn ≈ 1 − 1/ec for large n. In expectation, what is the percentage of non-empty bins?\\ \\
  65. \textbf{Solution}: \\
  66.  
  67.  
  68. \end{problem}
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79. \begin{problem}{}
  80. Write a program to simulate the experiment in problem 1. Try n ∈ {102, 103, 106}. Report the number of non-empty bins in each case. Does the answer seem to concentrate around the expectation? It is enough to include your code in your solution, i.e., you do not need to submit your code separately.\\
  81. \textbf{Solution}: \\
  82. \end{problem}
  83.  
  84.  
  85.  
  86. \bewpage\pagebreak
  87. \begin{problem}{}
  88.  
  89. If X and Y are any two random variables, then the covariance of X and Y is defined by Cov[X,Y] = E[(X−E[X])(Y −E[Y])]. Note that Cov[X,X] = Var[X].\\
  90.  
  91. Show that, if X and Y are independent, then Cov [X, Y ] = 0 (the converse is not true however: Cov[X,Y] = 0 does not imply that X and Y are independent). \\
  92.  
  93. Show that Var[X+Y]=Var[X]+Var[Y]+2Cov[X,Y]. \\
  94. \textbf{Solution}: \\
  95. \end{problem}
  96.  
  97.  
  98.  
  99.  
  100. \begin{problem}{}
  101. Let X be a continuous random variable with the distribution given by the following pdf\\
  102.  
  103. \[ f(x) = \begin{cases}
  104. x^3 - x^2 & 2\leq x\leq a \\
  105. 0 & otherwise
  106. \end{cases}
  107. \]
  108.  
  109. Find a so that f(x) is a valid pdf.\\\\
  110. What is the expected value of X?\\
  111. \textbf{Solution}: \\
  112.  
  113.  
  114. \end{problem}
  115. \pagebreak\newpage
  116.  
  117.  
  118. \begin{problem}{}
  119. The lifespan of endangered Siberian tigers (in years) approximately follows the normal distribution with parameters μ = 17,σ = 2. Let X be the lifespan of a specific Siberian tiger. Note that X is a continuous random variable (for example., X can be 18.2 years).\\
  120.  
  121. What is the probability that a Siberian tiger lives longer than 20 years but
  122. no more than 25 years? One way to do it is to go on https://www.wolframalpha.com/ and type “NormalDistribution[μ, σ] from a to b”. \\
  123.  
  124. WhatisE[X]andVar[X]?\\
  125.  
  126. Give an upper bound on the probability that a Siberian tiger dies before 13 years old or after 21 years old using Chebyshev inequality. Hint: this simply means X ≤ 13 or X ≥ 21 and so what can you say about $\mid X - E(X) \mid$\\
  127. \textbf{Solution}: \\
  128.  
  129. \end{problem}
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement